/* ============================================================
   AUTOCOLCA — Tourism site styles.
   Built on the Appto design system tokens. Adds destination
   accents, immersive-editorial layouts, and gov components.
   ============================================================ */

:root {
  /* Destination accents — grounded in Appto category palette + derived clay */
  --colca:        #0F4C5C;   /* Cañón del Colca — petrol/canyon depth */
  --colca-soft:   #E2EDEF;
  --reserva:      #1F8A5B;   /* Reserva Salinas y Aguada Blanca — altiplano green (derived from mint, darkened for contrast) */
  --reserva-soft: #E0F0E8;
  --volcanes:     #B05A38;   /* Valle de los Volcanes — volcanic clay (derived, harmonious oklch) */
  --volcanes-soft:#F4E6DF;
  /* Ink surfaces — deep forest green-black (nature register, not cold charcoal) */
  --ink:          #16241B;
  --ink-2:        #213227;
  --on-ink:       rgba(255,255,255,0.92);
  --on-ink-soft:  rgba(255,255,255,0.64);
  --hairline-ink: rgba(255,255,255,0.14);
  /* Brand accent — official AUTOCOLCA logo green */
  --accent:       #1B8E45;
  --accent-hover: #126B33;
  --shadow-focus: 0 0 0 3px rgba(27,142,69,0.22);
  /* Warm, natural paper surfaces instead of cool grey */
  --bg:           #F5F7F0;
  --surface-2:    #EAEFE2;
  --border:       #E2E6DA;
  --border-strong:#CDD4C2;
  --fg:           #1C241E;
  --fg-muted:     #5E6B5C;
  /* CTA — earthy canyon terracotta instead of loud orange */
  --cta:          #D9682E;
  --cta-hover:    #BC5723;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-sans);
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
body > main { flex: 1; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; width: 100%; }
.container-wide { max-width: 1480px; margin: 0 auto; padding: 0 28px; width: 100%; }

img { max-width: 100%; display: block; }
::selection { background: rgba(27,142,69,0.18); }

/* ============ TYPE HELPERS ============ */
.eyebrow {
  font-size: 12px; line-height: 1.3; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--fg-muted); display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow.on-ink { color: var(--on-ink-soft); }
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: currentColor; opacity: 0.55; display: inline-block;
}
.eyebrow.bare::before { display: none; }
.display-1 { font-family: var(--font-display); font-weight: 800; font-variation-settings: "opsz" 32;
  font-size: clamp(44px, 6vw, 88px); line-height: 0.98; letter-spacing: -0.035em; margin: 0; }
.display-2 { font-family: var(--font-display); font-weight: 800; font-variation-settings: "opsz" 32;
  font-size: clamp(34px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -0.03em; margin: 0; }
.h-serify { font-style: italic; font-weight: 500; }
.lede { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--fg-muted); }
.mono { font-family: var(--font-mono); }

/* ============ BUTTONS ============ */
.btn { font-family: var(--font-sans); font-weight: 600; font-size: 15px; padding: 13px 22px;
  border-radius: var(--radius-pill); border: 1px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px; line-height: 1; text-decoration: none;
  transition: all var(--dur-base) var(--ease-out); white-space: nowrap; }
.btn:active { transform: scale(0.975); }
.btn svg { flex-shrink: 0; }
.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover { background: var(--cta-hover); text-decoration: none; box-shadow: 0 8px 20px rgba(249,115,22,0.28); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; text-decoration: none; }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--surface-2); text-decoration: none; border-color: var(--fg-subtle); }
.btn-on-ink { background: rgba(255,255,255,0.10); color: #fff; border-color: rgba(255,255,255,0.28); backdrop-filter: blur(6px); }
.btn-on-ink:hover { background: rgba(255,255,255,0.18); text-decoration: none; }
.btn-on-ink-solid { background: #fff; color: var(--ink); }
.btn-on-ink-solid:hover { background: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0,0,0,0.25); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-ghost-link { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit;
  font-weight: 600; font-size: 15px; color: var(--fg); display: inline-flex; align-items: center; gap: 7px;
  transition: gap var(--dur-base) var(--ease-out); }
.btn-ghost-link:hover { gap: 11px; }
.btn-ghost-link svg { transition: transform var(--dur-base) var(--ease-out); }

/* ============ HEADER ============ */
.gov-strip { background: var(--ink); color: var(--on-ink-soft); font-size: 12px; }
.gov-strip .container-wide { display: flex; align-items: center; justify-content: space-between; height: 34px; gap: 16px; }
.gov-strip a { color: var(--on-ink-soft); text-decoration: none; }
.gov-strip a:hover { color: #fff; }
.gov-strip .left { display: flex; align-items: center; gap: 8px; }
/* Bandera del Perú: tres franjas VERTICALES rojo · blanco · rojo (flex-direction: row).
   Antes era `column`, lo que apilaba las franjas en horizontal y parecía otra bandera. */
.gov-strip .flag { width: 20px; height: 13px; border-radius: 2px; overflow: hidden; display: inline-flex; flex-direction: row; box-shadow: 0 0 0 1px rgba(255,255,255,0.18); }
.gov-strip .flag i { flex: 1; }
.gov-strip .right { display: flex; align-items: center; gap: 18px; }
.gov-strip .langs { display: flex; gap: 4px; }
.gov-strip .langs button { background: none; border: 0; color: var(--on-ink-soft); font: inherit; cursor: pointer; padding: 2px 6px; border-radius: 5px; }
.gov-strip .langs button.on { color: #fff; background: rgba(255,255,255,0.12); }

.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,0.86);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); transition: background var(--dur-base); }
.site-header.on-hero { background: transparent; border-bottom-color: transparent; }
.site-header.on-hero .nav-links a, .site-header.on-hero .logo-text b, .site-header.on-hero .logo-text span,
.site-header.on-hero .header-ic { color: #fff; }
.site-header.on-hero .header-ic { border-color: rgba(255,255,255,0.25); }
/* Transparente sobre un hero CLARO de subpágina: texto del nav oscuro/legible. */
.site-header.on-hero-light { background: transparent; border-bottom-color: transparent; }
.header-row { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; text-decoration: none; }
.logo .mark { width: 42px; height: 42px; flex-shrink: 0; }
/* Real logo lockup */
.brand-logo { padding: 0; }
.brand-logo img { height: 38px; width: auto; flex: none; max-width: none; display: block; }
.brand-logo.plate { background: #fff; padding: 8px 16px; border-radius: var(--radius-md); box-shadow: 0 4px 14px rgba(0,0,0,0.18); }
.footer-logo.plate { padding: 12px 18px; align-self: flex-start; }
.footer-logo img { height: 40px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--fg); }
.logo-text span { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); margin-top: 3px; font-weight: 600; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links > div { position: relative; }
.nav-links a, .nav-links button.navbtn { font-size: 15px; font-weight: 600; color: var(--fg); padding: 9px 14px;
  border-radius: var(--radius-sm); cursor: pointer; text-decoration: none; background: none; border: 0; font-family: inherit;
  display: inline-flex; align-items: center; gap: 5px; transition: background var(--dur-fast); }
.nav-links a:hover, .nav-links button.navbtn:hover { background: rgba(127,127,127,0.10); text-decoration: none; }
.site-header.on-hero .nav-links a:hover, .site-header.on-hero .nav-links button.navbtn:hover { background: rgba(255,255,255,0.14); }
.nav-links a.active { color: var(--accent); }
.header-spacer { flex: 1; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-ic { width: 42px; height: 42px; border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--fg); }
.header-ic:hover { background: var(--surface-2); }

/* Hamburger toggle — hidden on desktop, shown when the inline nav collapses (≤860px). */
.nav-toggle { display: none; }
.site-header.on-hero .nav-toggle, .site-header.on-hero-light .nav-toggle { color: #fff; }
.site-header.on-hero-light .nav-toggle { color: var(--fg); }

/* ============ MOBILE NAV (drawer) ============ */
.mobile-nav-backdrop { position: fixed; inset: 0; z-index: 210; background: rgba(8,12,14,0.5); backdrop-filter: blur(2px); }
.mobile-nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 220; width: min(86vw, 360px);
  background: #fff; box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform var(--dur-base) var(--ease-out); visibility: hidden; }
.mobile-nav.open { transform: translateX(0); visibility: visible; }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--border); }
.mobile-nav-head .mn-title { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--fg); }
.mobile-nav-links { flex: 1; overflow-y: auto; padding: 10px 14px; display: flex; flex-direction: column; }
.mobile-nav-links a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px;
  border-radius: var(--radius-md); color: var(--fg); font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; }
.mobile-nav-links a:hover { background: var(--surface-2); text-decoration: none; }
.mobile-nav-links a.active { color: var(--accent); }
.mobile-nav-links a.mn-sub { padding-left: 16px; font-weight: 500; }
.mobile-nav-links .mn-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.mobile-nav-links .mn-group { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-muted); padding: 16px 12px 6px; }
.mobile-nav-foot { border-top: 1px solid var(--border); padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.mobile-nav-foot .langs { display: flex; gap: 6px; }
.mobile-nav-foot .langs button { flex: 1; background: var(--surface-2); border: 1px solid var(--border); color: var(--fg-muted);
  font: inherit; font-weight: 600; cursor: pointer; padding: 9px 0; border-radius: var(--radius-sm); }
.mobile-nav-foot .langs button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.mobile-nav-foot .btn { justify-content: center; }

/* mega menu */
.mega { position: absolute; top: calc(100% + 10px); left: 0; transform: translateY(6px);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 14px; width: max-content; opacity: 0; pointer-events: none; transition: all var(--dur-base) var(--ease-out); z-index: 80; }
/* Invisible bridge over the gap between the button and the panel, so moving the
   cursor down into the submenu doesn't cross a dead zone that closes it. */
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-links > div:hover .mega,
.nav-links > div:focus-within .mega,
.nav-links > div.open .mega { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mega.cols { display: grid; grid-template-columns: repeat(3, 230px); gap: 8px; }
.mega.cols2 { display: grid; grid-template-columns: repeat(2, 248px); gap: 8px; }
.mega-item { display: flex; gap: 12px; padding: 12px; border-radius: var(--radius-md); cursor: pointer; text-decoration: none; transition: background var(--dur-fast); align-items: center; }
.mega-item:hover { background: var(--surface-2); text-decoration: none; }
.mega-item .mi-ic { width: 38px; height: 38px; border-radius: var(--radius-sm); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
/* Text column: title over description (must stack, not sit inline). */
.mega-item > span:not(.mi-ic) { display: flex; flex-direction: column; min-width: 0; }
.mega-item .mi-t { display: block; font-weight: 700; font-size: 14px; color: var(--fg); margin-bottom: 2px; line-height: 1.25; }
.mega-item .mi-d { display: block; font-size: 12.5px; color: var(--fg-muted); line-height: 1.4; }
.mega-simple { display: flex; flex-direction: column; min-width: 240px; }

/* ============ SECTION ============ */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head .sh-left { max-width: 640px; }
.section-head h2 { margin: 14px 0 0; }
.section-head .sub { color: var(--fg-muted); margin-top: 12px; font-size: 16px; max-width: 540px; }

/* ============ PHOTO PLACEHOLDER SCENES ============ */
.photo { position: relative; overflow: hidden; background: #2a2f33; isolation: isolate; }
/* Foto real superpuesta al degradado de la escena (object-fit cover). */
.photo .photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; display: block; }
.photo > .ph-label { position: absolute; left: 12px; bottom: 12px; z-index: 4; font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.85); background: rgba(0,0,0,0.32); backdrop-filter: blur(4px);
  padding: 5px 10px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0.01em; }
.photo::after { content: ""; position: absolute; inset: 0; z-index: 2;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 3px 3px; mix-blend-mode: overlay; opacity: 0.5; }
/* scene gradients — abstract duotone landscapes */
.scene-canyon  { background:
  linear-gradient(180deg, #2b4d57 0%, #14323b 38%, #0f262c 100%); }
.scene-canyon::before, .scene-condor::before, .scene-reserva::before, .scene-volcanes::before,
.scene-wititi::before, .scene-terraces::before, .scene-night::before {
  content: ""; position: absolute; inset: 0; z-index: 1; }
.scene-canyon::before { background:
  radial-gradient(120% 80% at 80% -10%, rgba(255,196,140,0.5) 0%, transparent 45%),
  linear-gradient(115deg, transparent 40%, rgba(11,30,36,0.85) 41%, rgba(11,30,36,0.85) 50%, transparent 51%),
  linear-gradient(70deg, transparent 55%, rgba(176,90,56,0.55) 56%, transparent 70%); }
.scene-condor { background: linear-gradient(180deg, #e9b27a 0%, #c97f53 45%, #7d4a39 100%); }
.scene-condor::before { background:
  radial-gradient(90% 60% at 50% 120%, rgba(20,24,27,0.7) 0%, transparent 60%),
  radial-gradient(50% 40% at 70% 25%, rgba(255,255,255,0.32) 0%, transparent 55%); }
.scene-reserva { background: linear-gradient(180deg, #bfe0d2 0%, #6fb293 40%, #2f6b54 100%); }
.scene-reserva::before { background:
  radial-gradient(120% 70% at 20% -10%, rgba(255,255,255,0.55) 0%, transparent 40%),
  linear-gradient(100deg, transparent 60%, rgba(31,107,75,0.5) 61%, transparent 78%); }
.scene-volcanes { background: linear-gradient(180deg, #d9a989 0%, #b05a38 50%, #5e2e22 100%); }
.scene-volcanes::before { background:
  radial-gradient(60% 45% at 50% 8%, rgba(255,236,210,0.5) 0%, transparent 55%),
  linear-gradient(120deg, transparent 58%, rgba(94,46,34,0.7) 59%, transparent 75%),
  linear-gradient(60deg, transparent 62%, rgba(94,46,34,0.6) 63%, transparent 80%); }
.scene-wititi  { background: linear-gradient(135deg, #b05a38 0%, #c0392b 30%, #0f4c5c 70%, #1f8a5b 100%); }
.scene-wititi::before { background: radial-gradient(40% 40% at 30% 30%, rgba(255,255,255,0.28), transparent 60%); }
.scene-terraces { background: linear-gradient(180deg, #9db86a 0%, #5e7c3e 50%, #3a5226 100%); }
.scene-terraces::before { background:
  repeating-linear-gradient(160deg, rgba(0,0,0,0.10) 0 14px, rgba(255,255,255,0.06) 14px 28px),
  radial-gradient(100% 60% at 70% -10%, rgba(255,244,214,0.4), transparent 50%); }
.scene-night { background: linear-gradient(180deg, #1b2a3a 0%, #0f1b27 60%, #0a0f16 100%); }
.scene-night::before { background:
  radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 60% 20%, #fff, transparent),
  radial-gradient(1px 1px at 80% 40%, #fff, transparent), radial-gradient(1.5px 1.5px at 40% 50%, #fff, transparent),
  radial-gradient(1px 1px at 75% 65%, rgba(255,255,255,0.8), transparent); }

/* ============ DESTINO CARD ============ */
.dest-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; display: block;
  text-decoration: none; color: #fff; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.dest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.dest-card .photo { width: 100%; height: 100%; }
.dest-card .dc-scrim { position: absolute; inset: 0; z-index: 5; background: linear-gradient(180deg, transparent 30%, rgba(8,12,14,0.82) 100%); }
.dest-card .dc-body { position: absolute; inset: auto 0 0 0; z-index: 6; padding: 26px; }
.dest-card .dc-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; padding: 6px 12px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.16); backdrop-filter: blur(6px); margin-bottom: 14px; }
.dest-card h3 { color: #fff; font-size: 26px; letter-spacing: -0.02em; margin: 0 0 6px; }
.dest-card .dc-meta { color: rgba(255,255,255,0.78); font-size: 14px; display: flex; align-items: center; gap: 14px; }
.dest-card .dc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.dest-card .dc-arrow { position: absolute; top: 22px; right: 22px; z-index: 6; width: 44px; height: 44px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.16); backdrop-filter: blur(6px); display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--dur-base) var(--ease-out); }
.dest-card:hover .dc-arrow { background: #fff; color: var(--ink); transform: rotate(-45deg); }

/* ============ NEWS CARD ============ */
.news-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  cursor: pointer; display: flex; flex-direction: column; transition: all var(--dur-base) var(--ease-out); text-decoration: none; color: inherit; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); text-decoration: none; }
.news-card .nc-media { aspect-ratio: 16/10; position: relative; }
.news-card .nc-cat { position: absolute; top: 14px; left: 14px; z-index: 6; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; padding: 5px 11px; border-radius: var(--radius-pill); color: #fff; }
.news-card .nc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.news-card .nc-date { font-size: 12.5px; color: var(--fg-muted); font-family: var(--font-mono); margin-bottom: 10px;
  display: flex; align-items: center; gap: 7px; }
.news-card h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 10px; }
.news-card .nc-ex { font-size: 14px; color: var(--fg-muted); line-height: 1.55; margin: 0 0 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .nc-more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }

/* chips */
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { font-size: 13.5px; font-weight: 600; padding: 9px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: #fff; color: var(--fg); cursor: pointer; transition: all var(--dur-fast); display: inline-flex; align-items: center; gap: 7px; }
.chip:hover { border-color: var(--fg-subtle); }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* stat */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 4px 28px; border-left: 1px solid var(--hairline-ink); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .sv { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.03em; line-height: 1; }
.stat .sl { font-size: 13.5px; margin-top: 10px; color: var(--on-ink-soft); }

/* ============ FOOTER ============ */
.site-footer { background: var(--ink); color: var(--on-ink); padding: 72px 0 28px; margin-top: auto; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 44px; border-bottom: 1px solid var(--hairline-ink); }
.footer-brand .logo-text b { color: #fff; }
.footer-brand .logo-text span { color: var(--on-ink-soft); }
.footer-brand p { color: var(--on-ink-soft); font-size: 14px; line-height: 1.6; margin: 20px 0 22px; max-width: 320px; }
.footer-col h5 { font-size: 13px; font-weight: 700; color: #fff; margin: 0 0 16px; letter-spacing: 0.02em; }
.footer-col a { display: block; color: var(--on-ink-soft); font-size: 14px; padding: 6px 0; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: var(--radius-pill); border: 1px solid var(--hairline-ink);
  display: inline-flex; align-items: center; justify-content: center; color: var(--on-ink); }
.footer-social a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.footer-badges { display: flex; align-items: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.footer-badge { height: 46px; padding: 0 14px 0 8px; border-radius: var(--radius-sm); border: 1px solid var(--hairline-ink);
  display: inline-flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 700; color: var(--on-ink); letter-spacing: 0.04em; }
.footer-badge .fb-logo { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; display: block; max-width: none; }
/* Aliados institucionales + marcas sociales por destino */
.footer-allies { display: flex; justify-content: space-between; align-items: center; gap: 28px 44px; flex-wrap: wrap;
  padding: 26px 0 4px; margin-top: 18px; border-top: 1px solid var(--hairline-ink); }
.fa-group { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.fa-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-ink-soft); white-space: nowrap; }
.fa-logos { display: flex; gap: 12px; align-items: center; }
.fa-plate { background: #fff; border-radius: var(--radius-md); padding: 8px 14px; display: inline-flex; align-items: center; }
.fa-plate img { height: 46px; width: auto; display: block; max-width: none; }
.fa-badges { display: flex; gap: 14px; align-items: center; }
.fa-badges a { display: inline-flex; border-radius: 50%; transition: transform var(--dur-base) var(--ease-out); }
.fa-badges a:hover { transform: translateY(-3px); text-decoration: none; }
.fa-badges img { height: 56px; width: 56px; border-radius: 50%; display: block; }

.footer-bottom { padding-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--on-ink-soft); }
.footer-bottom .fb-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: var(--on-ink-soft); }
.footer-bottom a:hover { color: #fff; }
.reclamaciones { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--hairline-ink); border-radius: var(--radius-sm); padding: 8px 14px; color: var(--on-ink); font-size: 12px; font-weight: 600; text-decoration: none; }
.reclamaciones:hover { background: rgba(255,255,255,0.06); color: #fff; }
.reclamaciones .book { width: 26px; height: 18px; border-radius: 2px; background: linear-gradient(180deg,#3b82f6,#1d4ed8); flex-shrink: 0; }

/* ============ MISC ============ */
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.pill-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 6px 13px; border-radius: var(--radius-pill); }
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; color: var(--on-ink-soft); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.scroll-cue .line { width: 1px; height: 40px; background: linear-gradient(180deg, currentColor, transparent); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes kbToTop { from { opacity:0 } to { opacity:1 } }
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  html.reveals-armed .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    animation: revealSafety 0.01s linear 1.6s forwards; }
  html.reveals-armed .in-view .reveal { opacity: 1; transform: translateY(0); animation: none; }
  html.reveals-armed .in-view .reveal.d1 { transition-delay: 0.08s; }
  html.reveals-armed .in-view .reveal.d2 { transition-delay: 0.16s; }
  html.reveals-armed .in-view .reveal.d3 { transition-delay: 0.24s; }
  html.reveals-armed .in-view .reveal.d4 { transition-delay: 0.32s; }
}
/* CSS-only failsafe: if JS never adds .in-view, content still becomes visible */
@keyframes revealSafety { to { opacity: 1; transform: translateY(0); } }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
}
@media (max-width: 860px) {
  .nav-links, .gov-strip .right .extra { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-row { height: 64px; gap: 12px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .container, .container-wide { padding: 0 18px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  /* gov-strip: drop the long descriptive text, keep the flag + language switch. */
  .gov-strip .left span { display: none; }
  /* Boleto CTA collapses to an icon-only square next to the hamburger. */
  .header-actions .boleto-cta .btn-text { display: none; }
  .header-actions .boleto-cta { padding: 10px; }
}

/* ============ AÑADIDOS — versión PHP/vanilla ============ */

/* Skip link: oculto hasta recibir foco con Tab */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--ink); color: #fff;
  font-weight: 600; font-size: 14px; padding: 12px 18px; border-radius: var(--radius-md); transition: top var(--dur-base) var(--ease-out); }
.skip-link:focus-visible { top: 16px; color: #fff; text-decoration: none; }

/* Miga de pan semántica (nav > ol) sin perder el estilo original */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap; }
.crumbs li { display: inline-flex; align-items: center; gap: 9px; }

/* Texto de contacto sin enlace en el footer */
.footer-plain { display: block; color: var(--on-ink-soft); font-size: 14px; padding: 6px 0; }
.footer-col a svg, .footer-plain svg { vertical-align: -2px; margin-right: 7px; }

/* Drawer móvil: el backdrop oculto no captura clics */
.mobile-nav-backdrop[hidden] { display: none; }
/* Sin scroll de fondo con el drawer abierto */
body.nav-open { overflow: hidden; }

/* Las tarjetas de noticia dentro de su envoltorio de filtro ocupan toda la celda */
.news-grid > [data-news-item] { display: flex; }
.news-grid > [data-news-item] > .news-card { flex: 1; }
.news-grid > [data-news-item][hidden] { display: none; }

/* Animaciones fuera para quien lo pide (el JS además revela todo de inmediato) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
