/* ================================================================
   FREVALLE WEB — Design System & Global Styles
   Transportes Frevalle SAS · NIT 805015241-4
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
  /* Typography */
  --font-sans: 'Helvetica Neue', 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-display: 'Helvetica Neue', 'Inter', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --font-base: 15px;
  --line-height-body: 1.6;
  --line-height-heading: 1.15;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 150ms var(--ease-default);
  --transition-base: 250ms var(--ease-default);

  /* Radii */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:  14px;
  --r-xl:  20px;
  --r-full: 9999px;

  /* ── Color Palette (Clásico Azul Institucional) ── */
  --bg:           #FAFBFD;
  --bg-elev:      #FFFFFF;
  --bg-deep:      #F2F5F9;
  --bg-dark:      #0A2540;
  --surface-alt:  #EFF3F9;

  --text:         #0A2540;
  --text-muted:   #4A5D75;
  --text-subtle:  #7A8AA0;
  --text-inverse: #FFFFFF;

  --border:       #DCE3ED;
  --border-strong:#B8C4D4;

  --brand:        #003A7D;
  --brand-700:    #002B5E;
  --brand-600:    #1E4E8C;
  --brand-500:    #2E63A8;
  --brand-400:    #4A7FC1;
  --brand-50:     #EAF1FB;

  --accent:       #D4A43C;
  --success:      #2E8B57;
  --success-bg:   #f0fdf4;
  --danger:       #B23A48;
  --danger-bg:    #fef2f2;
  --warn:         #C8851A;
  --warn-bg:      #fffbeb;
  --info:         #0284c7;
  --info-bg:      #f0f9ff;

  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 16px 40px rgba(10, 37, 64, 0.12);

  --radius-btn:  6px;
  --radius-card: 10px;
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;

  --hero-overlay: linear-gradient(110deg, rgba(0, 43, 94, 0.88) 0%, rgba(0, 58, 125, 0.72) 55%, rgba(30, 78, 140, 0.55) 100%);
}

/* ── Base Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: var(--font-base);
  line-height: var(--line-height-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
input, textarea, select { font-family: inherit; font-size: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5,h6 { margin: 0; line-height: var(--line-height-heading); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ── Typography Scale ────────────────────────────────────────── */
.h-display {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.h1 {
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.1;
}
.h2 {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.2;
}
.h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.008em;
  line-height: 1.3;
}
.h4 {
  font-size: 16px;
  font-weight: 600;
}
.eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}
.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
}
.text-muted  { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); font-size: 13px; }
.text-sm     { font-size: 13.5px; }
.text-xs     { font-size: 12px; }
.text-brand  { color: var(--brand); }
.text-center { text-align: center; }

/* ── Layout ──────────────────────────────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.section {
  padding: 100px 0;
}
.section--sm {
  padding: 64px 0;
}
.section--dark {
  background: var(--bg-dark);
  color: var(--text-inverse);
}
.section--alt {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── Grid helpers ────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flex         { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center  { display: flex; justify-content: center; align-items: center; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Navigation ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 253, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s var(--ease);
}
.site-header.on-dark {
  background: rgba(10, 37, 64, 0.92);
  border-bottom-color: rgba(255,255,255,0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 38px; }
.nav-logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand);
}
.nav-logo-text.on-dark { color: #fff; }
.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 13px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 6px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
  background: var(--brand-50);
}
.on-dark .nav-links a { color: rgba(255,255,255,0.75); }
.on-dark .nav-links a:hover,
.on-dark .nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.nav-hamburger {
  display: none;
  padding: 8px;
  border-radius: 6px;
  color: var(--text-muted);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-btn);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-sans);
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; }
.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-700);
  border-color: var(--brand-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: var(--bg-elev);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-outline:hover {
  background: var(--brand);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--surface-alt); color: var(--text); }
.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn-danger:hover { filter: brightness(0.9); }
.btn-sm  { padding: 7px 14px; font-size: 13px; }
.btn-lg  { padding: 14px 28px; font-size: 15px; }
.btn-xl  { padding: 16px 36px; font-size: 16px; }
.btn-full { width: 100%; }
.btn-inverse {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.btn-inverse:hover {
  background: rgba(255,255,255,0.2);
}
.btn-loading { position: relative; color: transparent !important; }
.btn-loading::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: border-color 0.2s var(--ease);
}
.card-hover:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-body { padding: 24px; }
.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 58, 125, 0.12);
}
.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: var(--danger);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-hint  { font-size: 12px; color: var(--text-subtle); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 5px; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.form-check input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-width: 17px;
  margin-top: 1px;
  cursor: pointer;
  accent-color: var(--brand);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A5D75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }

/* ── Alerts ──────────────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid transparent;
}
.alert-success { background: var(--success-bg); color: var(--success); border-color: #bbf7d0; }
.alert-danger  { background: var(--danger-bg); color: var(--danger); border-color: #fecaca; }
.alert-warn    { background: var(--warn-bg); color: var(--warn); border-color: #fed7aa; }
.alert-info    { background: var(--info-bg); color: var(--info); border-color: #bae6fd; }

/* ── Badges / Chips ──────────────────────────────────────────── */
.badge, .chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.badge-primary, .chip-brand  { background: var(--brand-50); color: var(--brand); }
.badge-success, .chip-success { background: var(--success-bg); color: var(--success); }
.badge-warn,    .chip-warn    { background: var(--warn-bg); color: var(--warn); }
.badge-danger,  .chip-danger  { background: var(--danger-bg); color: var(--danger); }
.badge-gray,    .chip         { background: var(--surface-alt); color: var(--text-muted); }

/* ── Hero Section ────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 120px 0 140px;
}

/* ── Metric Strip ────────────────────────────────────────────── */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 80px;
}
.metric-item {
  padding: 24px 28px;
  background: rgba(10, 37, 64, 0.6);
  backdrop-filter: blur(8px);
}
.metric-value {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.metric-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* ── Service Cards ───────────────────────────────────────────── */
.service-card { overflow: hidden; transition: all 0.25s var(--ease); }
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card .card-img {
  aspect-ratio: 5/3;
  background-size: cover;
  background-position: center;
}
.service-card .num-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}
.service-card .icon-badge {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: var(--brand-50);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Channel Cards ───────────────────────────────────────────── */
.channel-card {
  padding: 28px;
  text-align: left;
  cursor: pointer;
  width: 100%;
  display: block;
  transition: all 0.2s var(--ease);
}
.channel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.channel-card.highlight {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.channel-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--brand-50);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.channel-card.highlight .channel-icon {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.channel-card.highlight .text-muted { color: rgba(255,255,255,0.85); }

/* ── Trust Strip ─────────────────────────────────────────────── */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  align-items: center;
}
.trust-logo {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elev);
}

/* ── Admin Panel ─────────────────────────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: var(--bg-deep);
}
.admin-sidebar {
  background: var(--bg-elev);
  border-right: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-content { overflow: auto; }
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.admin-main { padding: 28px 32px; }
.admin-nav-group { margin-bottom: 20px; }
.admin-nav-group-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding: 0 8px 10px;
  display: block;
}
.admin-nav-item {
  width: 100%;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 6px;
  color: var(--text-muted);
  margin-bottom: 2px;
  text-align: left;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.admin-nav-item:hover { background: var(--surface-alt); color: var(--text); }
.admin-nav-item.active { background: var(--brand-50); color: var(--brand); }
.admin-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--r-full);
  margin-left: auto;
  background: var(--surface-alt);
  color: var(--text-muted);
}
.admin-badge.warn { background: var(--warn-bg); color: var(--warn); }
.admin-badge.danger { background: var(--danger-bg); color: var(--danger); }

/* Table */
.table-admin { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table-admin thead th {
  padding: 11px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}
.table-admin tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.table-admin tbody tr:last-child td { border-bottom: 0; }
.table-admin tbody tr:hover td { background: var(--surface-alt); }
.table-actions { display: flex; gap: 6px; align-items: center; }

/* Metric cards */
.metric-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
}
.metric-card-value { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.metric-card-label { font-size: 13px; color: var(--text-muted); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo-block p {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}
.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: #fff; }
.footer-divider {
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 0 0 24px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition-fast);
}
.footer-social a:hover { border-color: rgba(255,255,255,0.4); color: #fff; }

/* ── WhatsApp Float ──────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
  z-index: 200;
  transition: all 0.2s var(--ease);
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 12px 36px rgba(37, 211, 102, 0.5); }

/* ── PDF Viewer ──────────────────────────────────────────────── */
.pdf-viewer {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-deep);
}
.pdf-viewer iframe {
  width: 100%;
  height: 650px;
  border: 0;
  display: block;
}

/* ── Offer cards ─────────────────────────────────────────────── */
.oferta-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-decoration: none;
}
.oferta-card:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.oferta-meta { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── PQRS form ───────────────────────────────────────────────── */
.anon-toggle {
  display: flex;
  gap: 12px;
}
.anon-toggle label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: all 0.15s var(--ease);
  font-size: 14px;
  font-weight: 500;
}
.anon-toggle input { display: none; }
.anon-toggle input:checked + label,
.anon-toggle label:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-50);
  color: var(--brand);
}

/* ── Page headers ────────────────────────────────────────────── */
.page-header {
  padding: 64px 0 48px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
}
.page-header.dark {
  background: var(--bg-dark);
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.1);
}

/* ── Pagination ──────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}
.pagination a, .pagination span {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .active { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-fade { animation: fadeIn 0.5s var(--ease); }

/* ── Modal ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 64, 0.5);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal {
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 100%;
  padding: 32px;
  animation: fadeIn 0.25s var(--ease);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* ── Toast ───────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 80px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: fadeIn 0.3s var(--ease);
}
.toast-success { background: var(--success); color: #fff; }
.toast-error   { background: var(--danger); color: #fff; }
.toast-info    { background: var(--brand); color: #fff; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 60px 0; }
  .section--sm { padding: 40px 0; }
  .h-display { font-size: clamp(32px, 8vw, 52px); }
  .h1 { font-size: clamp(26px, 6vw, 36px); }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-actions .btn:not(.btn-primary) { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .hero-content { padding: 80px 0 100px; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
}

@media (max-width: 480px) {
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric-value { font-size: 26px; }
}

/* ── Mobile Nav ──────────────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg-dark);
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-size: 20px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav a:hover { color: #fff; }

/* ── Utility ─────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.sticky-top { position: sticky; top: 96px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr { border: none; border-top: 1px solid var(--border); }

/* ── Nav Dropdown ─────────────────────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-dropdown-toggle svg { transition: transform 0.2s var(--ease-default); flex-shrink: 0; }
.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown:focus-within .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 210px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: 0;
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.nav-dropdown-menu li a:hover { color: var(--brand); background: var(--brand-50); }
.nav-dropdown-menu li a svg { flex-shrink: 0; color: var(--brand-400); }
.nav-dropdown-divider { height: 1px; background: var(--border); margin: 4px 8px; }
.on-dark .nav-dropdown-menu { background: #0e2d4f; border-color: rgba(255,255,255,0.1); }
.on-dark .nav-dropdown-menu li a { color: rgba(255,255,255,0.75); }
.on-dark .nav-dropdown-menu li a:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* ── Nav Search Button ────────────────────────────────────────── */
.nav-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.nav-search-btn:hover { color: var(--brand); background: var(--brand-50); }
.on-dark .nav-search-btn { color: rgba(255,255,255,0.7); }
.on-dark .nav-search-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* ── Search Overlay ───────────────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(10, 37, 64, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-default);
}
.search-overlay.open { opacity: 1; pointer-events: auto; }
.search-overlay-inner { width: 100%; max-width: 640px; margin: 0 20px; }
.search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elev);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
}
.search-form svg:first-child { flex-shrink: 0; color: var(--text-subtle); }
.search-form input { flex: 1; border: none; outline: none; font-size: 16px; color: var(--text); background: transparent; }
.search-form input::placeholder { color: var(--text-subtle); }
.search-close-btn {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  color: var(--text-muted); flex-shrink: 0;
  transition: all var(--transition-fast);
}
.search-close-btn:hover { color: var(--brand); background: var(--brand-50); }
.search-quick-links {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-top: 10px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.search-quick-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); width: 100%; margin-bottom: 4px; }
.search-quick-links a { font-size: 13px; font-weight: 500; color: var(--brand); background: var(--brand-50); padding: 5px 12px; border-radius: var(--r-full); transition: all var(--transition-fast); white-space: nowrap; }
.search-quick-links a:hover { background: var(--brand); color: #fff; }

@media (max-width: 768px) { .nav-search-btn { display: none; } }
