/* ==========================================================================
   parapente-tenerife.es — sistema visual «Térmica» (fase 3)
   Azul profundo · blanco cálido · acento coral solo para acciones.
   Documentado en MEMORIA-PROYECTO.md § Sistema visual.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* Color (contrastes medidos sobre --warm, ver memoria) */
  --deep: #0E2A47;        /* azul profundo · texto de títulos, fondos oscuros (13,7:1) */
  --deep-2: #16406A;
  --sky: #2F6EA5;         /* enlaces y detalles (5,1:1) */
  --mist: #E4EDF5;        /* fondos fríos suaves */
  --warm: #FBF7F1;        /* blanco cálido · fondo base */
  --paper: #FFFFFF;
  --sand: #F3ECE1;        /* bandas alternas */
  --line: #E2D9CB;
  --ink: #17263B;         /* texto de cuerpo */
  --muted: #566579;       /* texto secundario (5,6:1) */
  --coral: #FF7A50;       /* SOLO acciones: fondo de botón con texto --deep (5,7:1) */
  --coral-hover: #FF916C;
  --coral-ink: #B53816;   /* coral como texto sobre claro (5,6:1 en --warm, 5,1:1 en --sand; fase 6) */
  --ok: #1F7A4D;
  --focus: #FFB547;

  /* Tipografía */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Escala fluida (≈ 1,25 en móvil → 1,333 en escritorio) */
  --fs-xs: 0.8125rem;                               /* 13 */
  --fs-sm: 0.9375rem;                               /* 15 */
  --fs-base: 1.0625rem;                             /* 17 */
  --fs-md: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  --fs-lg: clamp(1.4375rem, 1.25rem + 0.8vw, 1.875rem);
  --fs-xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.625rem);
  --fs-2xl: clamp(2.25rem, 1.6rem + 3vw, 4.25rem);

  /* Espaciado (base 4 px) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --section: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);

  /* Retícula */
  --w-page: 76rem;     /* 1216 px */
  --w-read: 42rem;     /* ≈ 68 caracteres */
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(14 42 71 / 6%), 0 8px 24px -12px rgb(14 42 71 / 22%);
  --shadow-lg: 0 2px 4px rgb(14 42 71 / 6%), 0 24px 48px -24px rgb(14 42 71 / 35%);
  --tap: 44px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--warm);
  color: var(--ink);
  font: 400 var(--fs-base)/1.6 var(--font-body);
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 96;
  color: var(--deep);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-2xl); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-md); font-variation-settings: "opsz" 36; line-height: 1.25; }
p { margin: 0 0 var(--s-4); text-wrap: pretty; }
a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--deep); text-decoration-thickness: 2px; }
strong { font-weight: 650; color: var(--deep); }
small { font-size: var(--fs-xs); }
ul, ol { padding-left: 1.2em; margin: 0 0 var(--s-4); }
li + li { margin-top: var(--s-2); }
.num { font-variant-numeric: tabular-nums; }

/* Foco de teclado visible en todo el sitio */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--focus); }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--deep); color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s-3); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--w-page)); margin-inline: auto; }
.wrap--read { width: min(100% - 2 * var(--gutter), var(--w-read)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--sand { background: var(--sand); }
.section--deep { background: var(--deep); color: #E9EFF6; }
.section--deep h2, .section--deep h3 { color: #fff; }
.section--deep a { color: #BFD8F0; }
.section__head { max-width: var(--w-read); margin-bottom: var(--s-6); }
.section__head p:not(.eyebrow) { color: var(--muted); font-size: var(--fs-md); line-height: 1.5; }
.section--deep .section__head p:not(.eyebrow) { color: #C9D6E4; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font: 700 var(--fs-xs)/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--coral-ink); margin-bottom: var(--s-3);
}
.eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: currentColor; }
.section--deep .eyebrow { color: var(--coral); }
.lead { font-size: var(--fs-md); line-height: 1.5; color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--tap); padding: 0.7rem 1.25rem;
  font: 650 var(--fs-sm)/1.2 var(--font-body); letter-spacing: 0.01em;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--primary { background: var(--coral); color: var(--deep); }
.btn--primary:hover { background: var(--coral-hover); color: var(--deep); transform: translateY(-1px); }
.btn--secondary { background: transparent; color: var(--deep); border-color: var(--deep); }
.btn--secondary:hover { background: var(--deep); color: #fff; }
.btn--ghost-light { background: rgb(255 255 255 / 10%); color: #fff; border-color: rgb(255 255 255 / 55%); }
.btn--ghost-light:hover { background: #fff; color: var(--deep); }
.btn--lg { min-height: 52px; padding: 0.9rem 1.6rem; font-size: var(--fs-base); }
.btn--block { width: 100%; }
.link-arrow { font-weight: 650; text-decoration: none; display: inline-flex; gap: .35em; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }
.ext-note { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--s-2); }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(251 247 241 / 94%);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; gap: var(--s-4); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--s-2); text-decoration: none; color: var(--deep); margin-right: auto; }
.brand svg { width: 34px; height: 34px; }
.brand__name { font: 650 1.1875rem/1 var(--font-display); font-variation-settings: "opsz" 36; letter-spacing: -0.01em; }
.brand__name span { color: var(--coral-ink); }
.nav { display: none; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--s-1); }
.nav__list li + li { margin-top: 0; }
.nav a, .nav summary {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s-3);
  color: var(--ink); text-decoration: none; font-weight: 550; font-size: var(--fs-sm); border-radius: var(--radius-sm); cursor: pointer;
}
.nav a:hover, .nav summary:hover { background: var(--mist); color: var(--deep); }
.nav a[aria-current="page"] { color: var(--deep); box-shadow: inset 0 -2px 0 var(--coral); border-radius: 0; }
.nav details { position: relative; }
.nav summary { list-style: none; gap: .3em; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ""; width: .45em; height: .45em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.nav details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.nav__panel {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 17rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: var(--s-2); display: grid;
}
.nav__panel a { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: var(--s-2) var(--s-3); line-height: 1.3; }
.nav__panel small { color: var(--muted); font-weight: 400; }
.lang { display: inline-flex; align-items: center; font-size: var(--fs-sm); font-weight: 650; color: var(--muted); }
.lang a { color: var(--muted); }
.lang [aria-current] { color: var(--deep); padding: 0 var(--s-2); }
.header-cta { display: none; }

/* Menú móvil: <details> funciona sin JavaScript */
.mnav { position: static; }
.mnav > summary {
  list-style: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-width: var(--tap); min-height: var(--tap); padding: 0 var(--s-3);
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--deep);
  font-weight: 650; font-size: var(--fs-sm); cursor: pointer;
}
.mnav > summary::-webkit-details-marker { display: none; }
.mnav > summary svg { width: 20px; height: 20px; }
.mnav__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--warm); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  padding: var(--s-4) var(--gutter) var(--s-6); max-height: calc(100vh - 64px); overflow: auto;
}
.mnav__panel ul { list-style: none; padding: 0; margin: 0 0 var(--s-5); }
.mnav__panel li + li { margin-top: 0; border-top: 1px solid var(--line); }
.mnav__panel a { display: flex; align-items: center; min-height: 52px; color: var(--deep); font-weight: 600; text-decoration: none; }
.mnav__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: var(--s-4) 0 var(--s-1); }

@media (min-width: 960px) {
  .nav { display: block; }
  .mnav { display: none; }
  .header-cta { display: inline-flex; }
}

/* ---------- Migas de pan ---------- */
.crumbs { font-size: var(--fs-sm); color: var(--muted); padding-top: var(--s-5); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.crumbs li + li { margin-top: 0; }
.crumbs li + li::before { content: "›"; margin-right: var(--s-2); color: var(--line); color: var(--muted); }
.crumbs a { color: var(--muted); }

/* ---------- Hero portada ---------- */
.hero { position: relative; color: #fff; background: var(--deep); isolation: isolate; overflow: hidden; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media img { object-position: 50% 60%; }
.hero::after { /* velo para legibilidad: el texto se apoya en el mar */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(8 26 46 / 70%) 0%, rgb(8 26 46 / 35%) 45%, rgb(8 26 46 / 0%) 70%),
    linear-gradient(180deg, rgb(8 26 46 / 55%) 0%, rgb(8 26 46 / 10%) 50%, rgb(8 26 46 / 75%) 100%);
}
.hero .eyebrow { color: var(--coral); }
.hero__media { z-index: -2; }
.hero__inner {
  min-height: min(88svh, 52rem);
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-7);
  padding-block: clamp(2.5rem, 6vw, 5rem) var(--s-6);
}
.hero h1 { color: #fff; max-width: 13ch; margin-bottom: var(--s-4); text-shadow: 0 2px 24px rgb(0 0 0 / 25%); }
.hero__lead { font-size: var(--fs-md); line-height: 1.45; max-width: 34rem; color: #EAF1F8; margin-bottom: var(--s-5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__facts {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2);
}
.hero__facts li { margin: 0; padding: var(--s-3); border-radius: var(--radius-sm); background: rgb(8 26 46 / 55%); backdrop-filter: blur(6px); border: 1px solid rgb(255 255 255 / 18%); }
.hero__facts b { display: block; font: 600 var(--fs-md)/1.15 var(--font-display); color: #fff; }
.hero__facts span { font-size: var(--fs-xs); color: #D6E2EE; line-height: 1.35; display: block; margin-top: 2px; }
.hero__credit { position: absolute; right: var(--s-3); bottom: var(--s-2); font-size: 11px; color: rgb(255 255 255 / 75%); }
.hero__credit a { color: inherit; }
@media (max-width: 599px) {
  .hero__facts { grid-template-columns: 1fr; }
  .hero__facts li { display: flex; align-items: baseline; gap: var(--s-3); }
  .hero__facts b { min-width: 6.5rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero::after { background: linear-gradient(180deg, rgb(8 26 46 / 62%) 0%, rgb(8 26 46 / 38%) 45%, rgb(8 26 46 / 12%) 62%, rgb(8 26 46 / 55%) 100%); }
  .hero__lead { text-shadow: 0 1px 12px rgb(0 0 0 / 35%); }
  .hero__actions .btn--ghost-light { display: none; } /* la selección está justo debajo */
  .hero__inner { gap: var(--s-5); padding-top: var(--s-6); min-height: auto; }
  .hero__lead { font-size: var(--fs-base); }
  .hero__facts li { padding: var(--s-2) var(--s-3); }
  .hero__facts b { font-size: var(--fs-base); min-width: 6.25rem; }
  .hero__credit { position: static; padding: 0 var(--gutter) var(--s-2); text-align: right; }
}
@media (min-width: 960px) {
  .hero__inner { padding-bottom: var(--s-7); }
  .hero__facts { max-width: 46rem; }
}

/* ---------- Cabecera de página interior ---------- */
.page-head { padding-block: var(--s-5) var(--s-7); border-bottom: 1px solid var(--line); background:
  radial-gradient(60rem 20rem at 85% -20%, var(--mist), transparent 70%), var(--warm); }
.page-head h1 { font-size: var(--fs-xl); max-width: 22ch; margin-top: var(--s-4); }
.page-head .lead { max-width: var(--w-read); }
.stamp { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); color: var(--muted); }
.stamp svg { width: 16px; height: 16px; color: var(--ok); }

/* ---------- Tarjetas de vuelo ---------- */
.cards { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); }
.vcard {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.vcard__top { padding: var(--s-5) var(--s-5) 0; }
.vcard__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-3); }
.tag {
  display: inline-flex; align-items: center; gap: .35em; min-height: 26px; padding: 0 .65em;
  border-radius: 999px; font-size: var(--fs-xs); font-weight: 650; background: var(--mist); color: var(--deep);
}
.tag--sur { background: #FDEBDD; color: #7A2E10; }
.tag--norte { background: #E1EEF8; color: #123A61; }
.tag--rol { background: var(--deep); color: #fff; }
.vcard h3 { margin-bottom: var(--s-1); }
.vcard__op { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s-4); }
.vcard__facts { margin: 0; padding: 0 var(--s-5); display: grid; gap: var(--s-3); flex: 1; }
.vcard__facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--s-3); font-size: var(--fs-sm); line-height: 1.4; }
.vcard__facts dt { color: var(--muted); }
.vcard__facts dd { margin: 0; color: var(--ink); }
.np { color: var(--muted); font-style: italic; }
.airbar { display: block; max-width: 12rem; margin-top: 6px; height: 6px; border-radius: 6px; background: var(--mist); position: relative; overflow: hidden; }
.airbar i { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, var(--sky), var(--deep-2)); }
.vcard__note { margin: var(--s-4) var(--s-5) 0; padding: var(--s-3); font-size: var(--fs-xs); line-height: 1.45; background: #FFF4EE; border-radius: var(--radius-sm); color: #6B2A12; }
.vcard__foot {
  margin-top: var(--s-5); padding: var(--s-4) var(--s-5) var(--s-5); border-top: 1px dashed var(--line);
  display: grid; gap: var(--s-3);
}
.vcard__price { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.price { font: 600 var(--fs-lg)/1 var(--font-display); color: var(--deep); font-variant-numeric: tabular-nums; }
.price small { font: 500 var(--fs-xs)/1 var(--font-body); color: var(--muted); margin-right: .3em; }
.price s { font: 400 var(--fs-sm)/1 var(--font-body); color: var(--muted); margin-left: .4em; }
.rating { font-size: var(--fs-xs); color: var(--muted); text-align: right; }
.rating b { color: var(--ink); }

/* ---------- Respuesta rápida / criterios ---------- */
.grid-2 { display: grid; gap: var(--s-6); }
.grid-3 { display: grid; gap: var(--s-5); }
.grid-4 { display: grid; gap: var(--s-5); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.criterion { padding-top: var(--s-4); border-top: 2px solid var(--deep); }
.criterion__n { font: 600 var(--fs-sm)/1 var(--font-display); color: var(--coral-ink); display: block; margin-bottom: var(--s-3); }
.criterion p { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Zonas ---------- */
.zone {
  display: grid; background: var(--paper); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.zone picture img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.zone__body { padding: var(--s-5); display: grid; gap: var(--s-3); align-content: start; }
.zone__body h3 { font-size: var(--fs-lg); margin: 0; }
.zone__body p { margin: 0; color: var(--muted); }
.zone figcaption { font-size: 11px; color: var(--muted); padding: var(--s-2) var(--s-5) 0; }
.altimeter { list-style: none; margin: var(--s-2) 0; padding: 0 0 0 var(--s-4); border-left: 2px solid var(--mist); display: grid; gap: var(--s-2); }
.altimeter li { margin: 0; position: relative; font-size: var(--fs-sm); display: flex; gap: var(--s-3); align-items: baseline; }
.altimeter li::before { content: ""; position: absolute; left: calc(-1 * var(--s-4) - 6px); top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--sky); }
.altimeter b { font: 600 var(--fs-base)/1 var(--font-display); color: var(--deep); min-width: 4.5rem; font-variant-numeric: tabular-nums; }

/* ---------- Pasos de la reserva ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: var(--s-5); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; margin: 0; padding: var(--s-5); border-radius: var(--radius); background: rgb(255 255 255 / 6%); border: 1px solid rgb(255 255 255 / 14%); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--coral); color: var(--deep); font: 700 1rem/1 var(--font-body); margin-bottom: var(--s-4);
}
.steps h3 { margin-bottom: var(--s-2); }
.steps p { margin: 0; color: #C9D6E4; font-size: var(--fs-sm); }

/* ---------- Preguntas frecuentes (details: sin JS) ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  min-height: 56px; padding: var(--s-4) 0; font: 600 var(--fs-md)/1.3 var(--font-display); font-variation-settings: "opsz" 36; color: var(--deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); font: 400 1.25rem/1 var(--font-body); color: var(--deep); }
.faq details[open] summary::after { content: "–"; background: var(--deep); border-color: var(--deep); color: #fff; }
.faq summary:hover { color: var(--sky); }
.faq__a { padding: 0 0 var(--s-5); max-width: var(--w-read); color: var(--ink); }
.faq__a p:last-child { margin: 0; }

/* ---------- Aviso de afiliación ---------- */
.disclosure {
  display: grid; gap: var(--s-3); grid-template-columns: auto 1fr; align-items: start;
  padding: var(--s-5); border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
  font-size: var(--fs-sm); color: var(--muted);
}
.disclosure svg { width: 28px; height: 28px; color: var(--sky); }
.disclosure strong { display: block; margin-bottom: var(--s-1); font-size: var(--fs-base); }
.disclosure p { margin: 0; }
.disclosure--inline { padding: var(--s-3) var(--s-4); font-size: var(--fs-xs); background: var(--mist); border: 0; }
.disclosure--inline svg { width: 20px; height: 20px; }

/* ---------- Tabla comparativa ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-block: var(--s-5); }
.filters a {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s-4);
  border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--deep); font-weight: 600; font-size: var(--fs-sm); text-decoration: none;
}
.filters a:hover { border-color: var(--deep); }
.filters a[aria-current="true"] { background: var(--deep); color: #fff; border-color: var(--deep); }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.ctable { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); line-height: 1.4; }
.ctable caption { text-align: left; padding: var(--s-4) var(--s-5); font-size: var(--fs-sm); color: var(--muted); }
.ctable th, .ctable td { padding: var(--s-4); text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.ctable thead th { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--warm); }
.ctable tbody th { font-weight: 650; color: var(--deep); min-width: 13rem; }
.ctable tbody th small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }
.ctable .col-price { text-align: right; white-space: nowrap; }
.ctable .col-price .price { font-size: var(--fs-md); }
.ctable .col-price .link-arrow { white-space: normal; text-align: left; }
.ctable tbody tr:hover { background: #FDFBF8; }
.ctable tr.is-target { background: #FFF4EE; }
.yes, .part, .no { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; }
.yes { color: var(--ok); } .part { color: #8A5A00; } .no { color: var(--muted); }
.yes::before { content: "●"; font-size: .7em; } .part::before { content: "◐"; font-size: .8em; } .no::before { content: "○"; font-size: .8em; }

.ctable .ctable__group th { background: var(--deep); color: #fff; font: 600 var(--fs-sm)/1.2 var(--font-body); letter-spacing: .02em; padding: var(--s-3) var(--s-4); position: static; }
.ctable tbody:target .ctable__group th { background: var(--coral); color: var(--deep); }
.ctable tbody { scroll-margin-top: 80px; }

/* Tabla → fichas apiladas hasta 1099 px (sin scroll horizontal) */
.ctable .btn--table { display: flex; border-radius: 10px; margin-top: var(--s-3); width: 100%; white-space: normal; font-size: var(--fs-xs); padding: .55rem .8rem; line-height: 1.25; }
@media (max-width: 1099px) {
  .ctable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ctable, .ctable tbody, .ctable tr, .ctable th, .ctable td { display: block; width: 100%; }
  .ctable caption { display: block; }
  .ctable tbody tr { padding: var(--s-4) var(--s-4) var(--s-5); border-top: 1px solid var(--line); }
  .ctable tbody th { border: 0; padding: 0 0 var(--s-3); font-size: var(--fs-base); }
  .ctable tbody tr.ctable__group { padding: 0; border: 0; }
  .ctable .ctable__group th { padding: var(--s-3) var(--s-4); }
  .ctable td { border: 0; padding: var(--s-1) 0; display: grid; grid-template-columns: 8.5rem 1fr; gap: var(--s-3); }
  .ctable td::before { content: attr(data-label); color: var(--muted); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding-top: 2px; }
  .ctable td.col-price { display: block; text-align: left; padding-top: var(--s-3); }
  .ctable td.col-price::before { display: inline-block; width: 8.5rem; margin-right: var(--s-3); }
  .ctable td.col-price:not([data-label])::before { display: none; }
  .ctable .btn--table { font-size: var(--fs-sm); min-height: var(--tap); }
}
@media (min-width: 1100px) {
  .ctable { table-layout: fixed; }
  .ctable thead th:nth-child(1) { width: 17%; } .ctable thead th:nth-child(2) { width: 11%; }
  .ctable thead th:nth-child(3) { width: 11%; } .ctable thead th:nth-child(4) { width: 10%; }
  .ctable thead th:nth-child(5) { width: 9%; }  .ctable thead th:nth-child(6) { width: 10%; }
  .ctable thead th:nth-child(7) { width: 14%; } .ctable thead th:nth-child(8) { width: 18%; }
  .ctable th, .ctable td { padding: var(--s-4) var(--s-3); }
  .ctable tbody th { min-width: 0; }
}

/* Resumen de precios */
.pricebands { display: grid; gap: var(--s-3); }
.pricebands > div { display: grid; grid-template-columns: 10rem 1fr auto; align-items: center; gap: var(--s-4); font-size: var(--fs-sm); }
.pricebands .band { position: relative; height: 10px; background: var(--mist); border-radius: 10px; }
.pricebands .band i { position: absolute; top: 0; bottom: 0; background: var(--deep-2); border-radius: 10px; }
.pricebands .num { color: var(--deep); font-weight: 650; }
@media (max-width: 599px) { .pricebands > div { grid-template-columns: 1fr auto; } .pricebands .band { grid-column: 1 / -1; order: 3; } }

/* Prosa editorial */
.prose { max-width: var(--w-read); }
.prose h2 { margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.note { padding: var(--s-4) var(--s-5); border-left: 3px solid var(--coral); background: var(--paper); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: var(--fs-sm); }

/* ---------- Pie ---------- */
.site-footer { background: var(--deep); color: #C9D6E4; padding-block: var(--s-8) var(--s-6); font-size: var(--fs-sm); }
.site-footer a { color: #E9EFF6; text-decoration-color: rgb(233 239 246 / 40%); }
.site-footer a:hover { color: #fff; }
.site-footer h2 { font: 700 var(--fs-xs)/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #8FA9C3; margin-bottom: var(--s-4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: var(--s-2); }
.site-footer li a { display: inline-flex; min-height: 32px; align-items: center; }
.footer-grid { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.footer-brand p { max-width: 24rem; }
@media (min-width: 1080px) { .footer-grid { grid-template-columns: 1.7fr repeat(4, 1fr); } }
.footer-legal { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgb(255 255 255 / 12%); display: grid; gap: var(--s-3); font-size: var(--fs-xs); color: #9FB3C8; }
.footer-legal p { margin: 0; }
.credits { font-size: var(--fs-xs); color: var(--muted); padding-block: var(--s-5); }
.credits a { color: inherit; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn--primary:hover { transform: none; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- Impresión ---------- */
@media print {
  .site-header, .mnav, .hero__media, .site-footer, .btn { display: none !important; }
  .hero { color: var(--ink); background: none; } .hero h1 { color: var(--deep); }
}

/* ---------- Fase 4: piezas añadidas ---------- */
.rounded-media img { border-radius: var(--radius); margin-top: var(--s-5); width: 100%; height: auto; }
@media (min-width: 1100px) { .ctable--simple { table-layout: auto; } .ctable--simple thead th { width: auto !important; } }
h3 + .cards { margin-top: var(--s-4); }
.figure { margin: 0 0 var(--s-6); }
.figure img { width: 100%; height: auto; border-radius: var(--radius); }
.figure figcaption { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--s-2); }
.guide-links { list-style: none; padding: 0; margin: var(--s-7) 0 0; display: grid; gap: var(--s-3); }
@media (min-width: 820px) { .guide-links { grid-template-columns: repeat(3, 1fr); } }
.guide-links li { margin: 0; }
.guide-links a { display: grid; gap: var(--s-1); height: 100%; padding: var(--s-4) var(--s-5); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.guide-links a:hover { border-color: var(--deep); }
.guide-links b { font: 600 var(--fs-md)/1.2 var(--font-display); color: var(--deep); }
.guide-links b::after { content: " →"; color: var(--coral-ink); }
.guide-links span { font-size: var(--fs-sm); color: var(--muted); }
.contact-card { padding: var(--s-6); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-card h2 { font-size: var(--fs-lg); }
.figure--portrait img { max-height: 34rem; width: auto; max-width: 100%; margin-inline: auto; }
.stamp { display: block; }
.stamp svg { display: inline-block; vertical-align: -3px; margin-right: 6px; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.btn--ghost { background: transparent; color: var(--sky); border-color: transparent; text-decoration: underline; text-underline-offset: .2em; padding-inline: .5rem; }
.btn--ghost:hover { color: var(--deep); }
/* Banner de consentimiento (solo con GA4_ID) */
.consent { position: fixed; inset: auto 0 0 0; z-index: 60; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgb(14 42 71 / 30%); }
.consent__inner { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; justify-content: space-between; padding-block: var(--s-4); }
.consent p { margin: 0; font-size: var(--fs-sm); max-width: 46rem; }
.consent__actions { display: flex; gap: var(--s-3); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: #E9EFF6; text-decoration: underline; cursor: pointer; }

/* ---------- Widget oficial de GetYourGuide en las tarjetas (D-45, solo tras consentimiento) ---------- */
.gyg-slot { border-bottom: 1px solid var(--line); }
.gyg-slot[hidden] { display: none; }
.gyg-slot__btn { display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: var(--tap); padding: var(--s-3) var(--s-5);
  background: var(--sand); border: 0; color: var(--deep); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.gyg-slot__btn svg { width: 22px; height: 22px; flex: none; color: var(--coral-ink); }
.gyg-slot__btn small { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }
.gyg-slot__btn:hover { background: #EDE3D4; }
.gyg-slot.is-loading { min-height: 320px; background: var(--sand); }
.gyg-slot iframe { display: block; width: 100%; border: 0; }
.vcard.has-gyg [data-aff-where="tarjeta"], tr.has-gyg [data-aff-where="tabla"] { display: none; }
.ctable tr.gyg-row td { display: block; padding: 0 0 var(--s-4); background: transparent; }
@media (min-width: 1100px) { .ctable tr.gyg-row td { display: table-cell; padding: 0 var(--s-4) var(--s-5); } }
.ctable tr.gyg-row td::before { display: none; }
.ctable tr.gyg-row .gyg-slot { border-bottom: 0; }
.ctable tr.has-gyg > * { border-bottom: 0; }

/* Página de precios: catálogo frente a selección y recomendaciones */
.price-gap { margin-top: var(--s-5); padding: var(--s-5); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.price-gap h3 { font-size: var(--fs-md); margin-bottom: var(--s-3); }
.price-gap dl { display: grid; gap: var(--s-2); margin: 0 0 var(--s-3); }
.price-gap dl div { display: flex; justify-content: space-between; gap: var(--s-4); font-size: var(--fs-sm); }
.price-gap dt { color: var(--muted); }
.price-gap dd { margin: 0; font-weight: 650; color: var(--deep); }
.price-gap p { font-size: var(--fs-sm); margin: 0; }
.reco h3 { font-size: var(--fs-md); margin-bottom: var(--s-2); }
.reco h3 a { color: var(--deep); }
.criterion.reco p { color: var(--ink); }
.criterion.reco .reco__price { color: var(--muted); }
.reco__price b { font: 600 var(--fs-lg)/1 var(--font-display); color: var(--deep); }

/* Zonas: pasos del vuelo (norte) y esquema del sur (partials/mapa-sur-svg.php) */
.steps-list { margin: var(--s-4) 0; display: grid; gap: var(--s-3); }
.steps-list div { padding: var(--s-3) var(--s-4); background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--sky); border-radius: var(--radius-sm); }
.steps-list dt { font-weight: 650; color: var(--deep); margin-bottom: var(--s-1); }
.steps-list dd { margin: 0; font-size: var(--fs-sm); color: var(--ink); }
.zone-map { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.zone-map__svg { display: block; width: 100%; height: auto; }
.zone-map figcaption { padding: var(--s-4) var(--s-5); font-size: var(--fs-xs); color: var(--muted); }
.zone-map__legend { list-style: none; margin: 0 0 var(--s-3); padding: 0; display: grid; gap: var(--s-2); font-size: var(--fs-sm); color: var(--ink); }
.zone-map__legend li { display: flex; align-items: center; gap: var(--s-2); }
.zm-key { width: 14px; height: 14px; flex: none; border-radius: 50%; }
.zm-key--pick { background: var(--sky); }
.zm-key--take { border: 2px dashed var(--coral-ink); background: rgb(255 122 80 / 18%); }
.zm-key--land { background: var(--ok); border-radius: 2px; transform: rotate(45deg) scale(.8); }
.zm-sea { fill: var(--mist); }
.zm-land-fill { fill: var(--sand); }
.zm-coast { fill: none; stroke: var(--deep-2); stroke-width: 2.5; stroke-linejoin: round; }
.zm-pick { fill: var(--sky); stroke: var(--paper); stroke-width: 2; }
.zm-town { fill: var(--muted); }
.zm-take-area { fill: rgb(255 122 80 / 18%); stroke: var(--coral-ink); stroke-width: 2; stroke-dasharray: 6 5; }
.zm-take { fill: var(--coral-ink); }
.zm-land { fill: var(--ok); stroke: var(--paper); stroke-width: 2; }
.zm-label { font: 650 18px var(--font-body); fill: var(--deep); paint-order: stroke; stroke: var(--sand); stroke-width: 4px; }
.zm-small { font: 500 15px var(--font-body); fill: var(--muted); paint-order: stroke; stroke: var(--sand); stroke-width: 3px; }
.zm-sea-label { font: italic 500 14px var(--font-display); fill: var(--sky); }
.zm-scale line { stroke: var(--deep); stroke-width: 3; }
.zm-north { fill: var(--deep); }

/* Portada: accesos rápidos a precios, sur y norte */
.section--tight { padding-block: var(--s-6); }
.h-small { font-size: var(--fs-lg); margin-bottom: var(--s-4); }
.guide-links--start { margin-top: 0; }
@media (min-width: 900px) { .guide-links--start { grid-template-columns: repeat(3, 1fr); } }
