/* ==========================================================================
   Quads Tenerife — sistema de diseño «Arena mineral y basalto» (DESIGN_SYSTEM.md)
   Firma: curvas de nivel, puntos de ruta y línea discontinua de carretera.
   ========================================================================== */

@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-latin.woff2") format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/sourcesans3-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/sourcesans3-italic-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  /* Color — 60 % arena, 30 % basalto, ≤10 % naranja (solo acciones y precio) */
  --sand: #F1EADB;          /* fondo principal: arena mineral (jable) */
  --sand-2: #E6DCC6;        /* bandas alternas, cabecera de tabla */
  --surface: #FCFAF5;       /* tarjetas */
  --basalt: #1E2226;        /* texto principal, superficies oscuras */
  --basalt-2: #2C3238;      /* superficie oscura elevada */
  --ink: #1E2226;
  --ink-2: #4A5057;         /* texto secundario: 6,8:1 sobre arena */
  --line: #D3C7AE;          /* filetes decorativos */
  --line-strong: #8C8475;   /* bordes de control: ≥3:1 sobre arena */
  --orange: #B4501E;        /* naranja quemado: fondo de botón (4,9:1 con --surface) */
  --orange-ink: #943F15;    /* naranja para texto pequeño sobre arena (5,9:1) */
  --orange-hi: #E2773F;     /* acento sobre basalto (≥6:1), punto de ruta */
  --olive: #56653A;         /* estado «carretera confirmada» (5,3:1 sobre arena) */
  --olive-bg: #E4E7D3;
  --cream: #F6F1E7;         /* texto sobre basalto (14:1) */
  --cream-2: #C9C2B4;       /* texto secundario sobre basalto (≥8:1) */
  --focus: #1E2226;

  /* Tipografía */
  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Escala fluida 360 → 1280 px (ratio ≈1,2 en móvil, ≈1,3 en escritorio) */
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1.0625rem, 1.03rem + 0.15vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.13rem + 0.3vw, 1.4rem);
  --step-2: clamp(1.4rem, 1.27rem + 0.6vw, 1.8rem);
  --step-3: clamp(1.7rem, 1.45rem + 1.1vw, 2.4rem);
  --step-4: clamp(2.05rem, 1.6rem + 2vw, 3.3rem);

  /* Espaciado (base 4 px) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 6rem;
  --section: clamp(3rem, 2rem + 4vw, 5.5rem);

  /* Contenedores */
  --w-page: 76rem;   /* 1216 px */
  --w-read: 44rem;   /* ~70 caracteres por línea */
  --gutter: clamp(1rem, .6rem + 2vw, 2rem);

  --r-sm: 6px; --r: 12px; --r-lg: 20px;
  --shadow: 0 1px 0 rgba(30, 34, 38, .06), 0 8px 24px -12px rgba(30, 34, 38, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Curvas de nivel (fondo decorativo) */
  --topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='480' viewBox='0 0 480 480'%3E%3Cg fill='none' stroke='%23000' stroke-width='1'%3E%3Cpath d='M-20 120c60-50 140-70 220-40s150 70 300 10'/%3E%3Cpath d='M-20 150c70-46 150-58 226-28s146 64 294 8'/%3E%3Cpath d='M-20 182c80-40 160-46 232-16s142 56 288 6'/%3E%3Cpath d='M-20 300c90 20 150 70 250 60s160-90 270-60'/%3E%3Cpath d='M-20 332c90 16 156 60 252 50s158-80 268-50'/%3E%3Cpath d='M-20 364c94 12 160 50 254 40s156-70 266-40'/%3E%3Cpath d='M300 250c30-30 80-34 110-10s20 70-20 80-110-30-90-70z'/%3E%3Cpath d='M318 252c20-18 56-20 76-4s12 46-14 52-76-20-62-48z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--sand); color: var(--ink); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6; font-variant-numeric: lining-nums; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 var(--s-4); font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
p { margin: 0 0 var(--s-4); }
a { color: var(--orange-ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
strong, b { font-weight: 650; }
small { font-size: var(--step--1); }
ul, ol { padding-left: 1.25em; margin: 0 0 var(--s-4); }
li + li { margin-top: var(--s-1); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; box-shadow: 0 0 0 6px rgba(226, 119, 63, .45); }
.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; }
.skip-link { position: absolute; left: var(--s-4); top: -4rem; z-index: 100; background: var(--basalt); color: var(--cream); padding: var(--s-2) var(--s-4); border-radius: var(--r-sm); }
.skip-link:focus { top: var(--s-2); }
.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; }
.num, .price, td.num { font-variant-numeric: tabular-nums lining-nums; }
.np { color: var(--ink-2); font-style: italic; }

/* ---------- Botones ---------- */
.btn { --bg: var(--basalt); --fg: var(--cream); display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.25em; border-radius: 999px; border: 2px solid var(--bg); background: var(--bg); color: var(--fg); font: 650 1rem/1.15 var(--font-body); text-decoration: none; cursor: pointer; text-align: center; transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease); }
.btn .ico { width: 1.05em; height: 1.05em; flex: none; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { --bg: var(--orange); --fg: var(--surface); }
.btn--primary:hover { --bg: var(--orange-ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--basalt); }
.btn--ghost:hover { --bg: var(--basalt); --fg: var(--cream); }
.btn--outline { --bg: transparent; --fg: var(--cream); border-color: var(--cream); }
.btn--outline:hover { --bg: var(--cream); --fg: var(--basalt); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: .55em 1em; font-size: .95rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.link-arrow { font-weight: 650; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .15s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(241, 234, 219, .94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(241, 234, 219, .86); backdrop-filter: blur(8px); } }
.site-header__bar { display: flex; align-items: center; gap: var(--s-4); min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name { font: 800 1.2rem/1 var(--font-display); letter-spacing: -0.02em; display: flex; gap: .28em; }
.brand__name span { font-weight: 500; color: var(--ink-2); }
.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: var(--s-1); list-style: none; margin: 0; padding: 0; }
.nav__list > li { margin: 0; position: relative; }
.nav__list > li > a, .nav summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; cursor: pointer; list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ""; width: .45em; height: .45em; margin-left: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s var(--ease); }
.nav details[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.nav__list > li > a:hover, .nav summary:hover { background: var(--sand-2); }
.nav__list > li > a[aria-current], .nav summary[data-current] { box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.nav__panel { position: absolute; top: calc(100% + 6px); left: 0; min-width: 19rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: var(--s-2); display: grid; gap: 2px; }
.nav__panel a { display: block; padding: .65rem .8rem; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 650; }
.nav__panel a small { display: block; color: var(--ink-2); font-weight: 400; margin-top: 2px; }
.nav__panel a:hover, .nav__panel a[aria-current] { background: var(--sand); }
.lang { display: inline-flex; align-items: center; gap: 2px; margin-left: var(--s-2) !important; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; }
.lang span, .lang a { display: inline-grid; place-items: center; min-width: 40px; min-height: 36px; border-radius: 999px; font-size: .85rem; font-weight: 700; letter-spacing: .04em; }
.lang span { background: var(--basalt); color: var(--cream); }
.lang a { color: var(--ink); text-decoration: none; }
.lang a:hover { background: var(--sand-2); }
.header-cta { display: none; }
.mnav { position: static; }
.mnav > summary { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .9rem; border: 2px solid var(--basalt); border-radius: 999px; font-weight: 700; cursor: pointer; list-style: none; }
.mnav > summary::-webkit-details-marker { display: none; }
.mnav > summary svg { width: 22px; height: 22px; }
.mnav__panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: var(--s-4) var(--gutter) var(--s-6); max-height: calc(100dvh - 4rem); overflow-y: auto; }
.mnav__panel ul { list-style: none; padding: 0; margin: 0 0 var(--s-2); }
.mnav__panel li { margin: 0; border-bottom: 1px solid var(--line); }
.mnav__panel li a { display: block; padding: .8rem 0; color: var(--ink); font-weight: 600; text-decoration: none; }
.mnav__panel li a[aria-current] { color: var(--orange-ink); }
.mnav__label { margin: var(--s-5) 0 var(--s-1); font-size: var(--step--1); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.mnav__meta { margin-top: var(--s-5) !important; }
@media (min-width: 1000px) {
  .nav { display: block; }
  .mnav { display: none; }
  .header-cta { display: inline-flex; min-height: 44px; }
}

/* ---------- Kicker con punto de ruta ---------- */
.kicker { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 var(--s-3); font-size: var(--step--1); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-ink); }
.kicker::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px var(--sand), 0 0 0 4.5px var(--orange); flex: none; }
.kicker::after { content: ""; width: 2.5rem; border-top: 2px dashed currentColor; opacity: .55; }

/* ---------- Hero (portada) ---------- */
.hero { position: relative; padding-block: var(--s-6) var(--s-7); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--topo) 0 0 / 520px; opacity: .07; pointer-events: none; }
.hero__grid { position: relative; display: grid; gap: var(--s-6); }
.hero h1 { max-width: 15ch; margin-bottom: var(--s-4); }
.hero__lead { font-size: var(--step-1); line-height: 1.45; color: var(--ink-2); max-width: 36rem; }
.quick { list-style: none; padding: 0; margin: var(--s-5) 0; display: grid; gap: 0; border-top: 2px solid var(--basalt); }
.quick li { margin: 0; display: grid; grid-template-columns: 8.5rem 1fr; gap: var(--s-3); padding: .7rem 0; border-bottom: 1px solid var(--line); }
.quick b { font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .01em; }
.quick span { color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.hero__note { margin: var(--s-3) 0 0; font-size: var(--step--1); color: var(--ink-2); }
.hero__media { position: relative; margin: 0; }
.hero__media img { width: 100%; border-radius: var(--r-lg); object-fit: cover; aspect-ratio: 3 / 2; }
.hero__media .sign { position: absolute; left: var(--s-4); bottom: var(--s-4); }
.hero__rest .quick { margin-top: 0; }
@media (min-width: 900px) {
  .hero { padding-block: var(--s-7) var(--s-8); }
  .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); grid-template-areas: "text media" "rest media"; column-gap: var(--s-7); row-gap: var(--s-5); align-items: start; }
  .hero__text { grid-area: text; align-self: end; }
  .hero__rest { grid-area: rest; }
  .hero__media { grid-area: media; align-self: center; }
  .hero__media img { aspect-ratio: 4 / 5; max-height: 42rem; }
}
/* Señal de carretera (pie de foto con identidad) */
.sign { display: inline-flex; align-items: center; gap: .5rem; background: var(--basalt); color: var(--cream); padding: .4rem .75rem .4rem .45rem; border-radius: 8px; font-size: .85rem; font-weight: 600; line-height: 1.2; box-shadow: 0 0 0 2px var(--cream) inset, 0 0 0 1px var(--basalt); }
.sign b { background: var(--cream); color: var(--basalt); padding: .1rem .4rem; border-radius: 4px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- Secciones ---------- */
.section { padding-block: var(--section); }
.section--tint { background: var(--sand-2); }
.section--dark { background: var(--basalt); color: var(--cream); position: relative; overflow: hidden; }
.section--dark::before { content: ""; position: absolute; inset: 0; background: var(--topo) 0 0 / 520px; filter: invert(1); opacity: .06; pointer-events: none; }
.section--dark > * { position: relative; }
.section--dark a { color: var(--orange-hi); }
.section--dark .kicker { color: var(--orange-hi); }
.section--dark .kicker::before { box-shadow: 0 0 0 3px var(--basalt), 0 0 0 4.5px var(--orange-hi); background: var(--orange-hi); }
.section--dark p, .section--dark li { color: var(--cream-2); }
.section--dark strong { color: var(--cream); }
.section__head { max-width: 48rem; margin-bottom: var(--s-6); }
.section__head p { color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; }
.section--dark .section__head p { color: var(--cream-2); }
.split { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; } .split--media { align-items: center; } }

/* Filtros por anclas (sin JS) */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0 0 var(--s-6); padding: 0; list-style: none; }
.filters li { margin: 0; }
.filters a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 1rem; border: 1.5px solid var(--line-strong); border-radius: 999px; color: var(--ink); background: var(--surface); text-decoration: none; font-weight: 600; }
.filters a:hover { border-color: var(--basalt); background: var(--sand); }
.filters a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* ---------- Chips ---------- */
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem .2rem .45rem; border-radius: 999px; font-size: .85rem; font-weight: 650; line-height: 1.3; border: 1.5px solid transparent; white-space: nowrap; }
.chip .ico { width: 15px; height: 15px; }
.chip--road { background: var(--olive-bg); color: var(--olive); border-color: var(--olive-bg); }
.chip--mix { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.chip--opt { background: var(--surface); color: var(--ink); border: 1.5px dashed var(--orange-ink); }
.chip--track { background: #F6E1D3; color: var(--orange-ink); border-color: #F6E1D3; }
.chip--nd { background: transparent; color: var(--ink-2); border: 1.5px dashed var(--line-strong); }
.chip--time { background: var(--sand-2); color: var(--ink); }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- Tarjetas de excursión ---------- */
.cards { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.qcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .qcard:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(30,34,38,.06), 0 18px 36px -18px rgba(30,34,38,.35); } }
.qcard__route { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-3); padding: .7rem var(--s-5); background: var(--basalt); color: var(--cream); font-size: .9rem; font-weight: 600; position: relative; }
.qcard__route::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-bottom: 2px dashed rgba(246, 241, 231, .35); }
.qcard__from { display: inline-flex; align-items: flex-start; gap: .4rem; min-width: 0; flex: 1 1 11rem; line-height: 1.3; }
.qcard__from .ico { margin-top: 1px; }
.qcard__from .ico { color: var(--orange-hi); }
.qcard__badge { flex: none; background: var(--orange-hi); color: var(--basalt); font-size: .78rem; font-weight: 800; padding: .15rem .55rem; border-radius: 999px; }
.qcard__body { padding: var(--s-5) var(--s-5) var(--s-4); flex: 1; }
.qcard__title { font-size: var(--step-1); margin-bottom: var(--s-2); }
.qcard__op { color: var(--ink-2); font-size: .95rem; margin-bottom: var(--s-3); }
.qcard__chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.qcard__facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-4); margin: 0; }
.qcard__facts div { min-width: 0; }
.qcard__facts dt { display: flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.qcard__facts dt .ico { width: 15px; height: 15px; }
.qcard__facts dd { margin: 2px 0 0; font-size: .98rem; line-height: 1.4; }
.qcard__wide { grid-column: 1 / -1; }
.qcard__foot { padding: var(--s-4) var(--s-5) var(--s-5); border-top: 1px solid var(--line); display: grid; gap: var(--s-3); }
.qcard__price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .4rem; }
.qcard__price small { color: var(--ink-2); }
.qcard__price b { font: 800 var(--step-2)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.qcard__price span { flex-basis: 100%; color: var(--ink-2); font-size: .92rem; }
.qcard.has-gyg .qcard__foot .btn { display: none; }
.rating { display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; }
.rating .ico { width: 15px; height: 15px; color: var(--orange); fill: var(--orange); }
.rating span { color: var(--ink-2); }

/* Widget de GetYourGuide (tras consentimiento) */
.gyg-slot { padding: var(--s-3) var(--s-5) 0; }
.gyg-slot__btn { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 48px; padding: .6rem .8rem; border: 1.5px dashed var(--line-strong); border-radius: var(--r); background: var(--sand); color: var(--ink); font: 600 .95rem/1.3 var(--font-body); text-align: left; cursor: pointer; }
.gyg-slot__btn small { display: block; font-weight: 400; color: var(--ink-2); }
.gyg-slot__btn:hover { border-color: var(--basalt); }
.gyg-slot.is-loading { min-height: 120px; }

/* ---------- Tabla comparativa (se apila en móvil) ---------- */
.table-wrap { margin: 0 0 var(--s-4); overflow-x: auto; container-type: inline-size; }
@container (min-width: 861px) { .ctable tbody th { min-width: 13rem; } }
.ctable { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); font-size: .98rem; }
.ctable thead th:first-child { border-top-left-radius: var(--r-lg); }
.ctable thead th:last-child { border-top-right-radius: var(--r-lg); }
.ctable caption { text-align: left; padding: 0 0 var(--s-3); color: var(--ink-2); font-size: var(--step--1); caption-side: top; }
.ctable th, .ctable td { padding: .85rem var(--s-4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ctable thead th { background: var(--sand-2); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.ctable tbody tr:last-child > * { border-bottom: 0; }
.ctable tbody th a { color: var(--ink); font-weight: 700; text-decoration: none; }
.ctable tbody th a:hover { text-decoration: underline; }
.ctable tbody th small, .ctable td small { display: block; font-weight: 400; color: var(--ink-2); margin-top: 2px; }
.ctable td.num b { font: 800 1.15rem/1.1 var(--font-display); }
.ctable__cta { white-space: nowrap; }
@container (max-width: 860px) {
  .ctable, .ctable tbody, .ctable tr, .ctable th, .ctable td { display: block; }
  .ctable { background: transparent; border: 0; border-radius: 0; }
  .ctable caption { display: block; }
  .ctable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ctable tbody tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: var(--s-3); overflow: hidden; }
  .ctable tbody th { background: var(--basalt); color: var(--cream); }
  .ctable tbody th a { color: var(--cream); }
  .ctable tbody th small { color: var(--cream-2); }
  .ctable tbody th .rating span { color: var(--cream-2); }
  .ctable td { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--s-3); padding: .6rem var(--s-4); }
  .ctable td::before { content: attr(data-label); font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); padding-top: .15rem; }
  .ctable td.ctable__cta { display: block; }
  .ctable td.ctable__cta .btn { width: 100%; }
}

/* ---------- Avisos ---------- */
.disclosure { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--step--1); color: var(--ink-2); margin: var(--s-4) 0; max-width: 52rem; }
.disclosure .ico { margin-top: 2px; color: var(--ink-2); }
.rule { border-left: 4px solid var(--orange-hi); background: var(--basalt-2); padding: var(--s-5); border-radius: 0 var(--r) var(--r) 0; margin: var(--s-5) 0; }
.rule__k { font-weight: 800; font-family: var(--font-display); color: var(--cream) !important; font-size: var(--step-1); margin-bottom: var(--s-2); }
.rule__src { font-size: var(--step--1); margin: 0; }
.section:not(.section--dark) .rule { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--orange); }
.section:not(.section--dark) .rule__k { color: var(--ink) !important; }
.note { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--olive); border-radius: 0 var(--r) var(--r) 0; padding: var(--s-4) var(--s-5); }
.pending { border-left-color: var(--line-strong); border-style: dashed; }

/* ---------- Criterios (cómo elegir) ---------- */
.criteria { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); counter-reset: c; }
.criteria article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); position: relative; }
.criteria article::before { counter-increment: c; content: counter(c, decimal-leading-zero); display: block; font: 800 var(--step-2)/1 var(--font-display); color: var(--orange); margin-bottom: var(--s-3); font-variant-numeric: tabular-nums; }
.criteria h3 { font-size: var(--step-1); }
.criteria p { margin: 0; color: var(--ink-2); }

/* ---------- Pasos con línea de ruta ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: var(--s-5); }
.steps li { position: relative; padding-left: 3.5rem; margin: 0; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; background: var(--orange-hi); color: var(--basalt); font: 800 1.1rem/1 var(--font-display); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.15rem; top: 2.8rem; bottom: calc(-1 * var(--s-5) + .4rem); border-left: 2px dashed rgba(246, 241, 231, .4); }
.steps h3 { margin-bottom: var(--s-1); font-size: var(--step-1); color: var(--cream); }
.steps p { margin: 0; }
.section:not(.section--dark) .steps li::after { border-color: var(--line-strong); }
.section:not(.section--dark) .steps h3 { color: var(--ink); }

/* ---------- Media con pie ---------- */
.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--r-lg); }
.figure figcaption { margin-top: var(--s-2); font-size: var(--step--1); color: var(--ink-2); }
.section--dark .figure figcaption { color: var(--cream-2); }

/* ---------- Cabecera de página interior ---------- */
.page-head { padding-block: var(--s-5) var(--s-7); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-head::before { content: ""; position: absolute; inset: 0; background: var(--topo) 120px -40px / 520px; opacity: .07; pointer-events: none; }
.page-head > * { position: relative; }
.page-head__grid { display: grid; gap: var(--s-6); }
.page-head h1 { max-width: 20ch; }
.page-head .lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 40rem; }
.page-head .figure img { aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 900px) { .page-head__grid { grid-template-columns: 1.1fr .9fr; align-items: end; gap: var(--s-7); } }
.facts-strip { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: var(--s-5) 0 0; padding: 0; list-style: none; font-size: .95rem; }
.facts-strip li { margin: 0; display: flex; gap: .4rem; align-items: center; }
.facts-strip .ico { color: var(--orange); }
.meta-line { font-size: var(--step--1); color: var(--ink-2); margin-bottom: var(--s-2); }

/* Migas */
.crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; padding: 0; margin: 0 0 var(--s-5); font-size: var(--step--1); }
.crumbs li { margin: 0; display: inline-flex; align-items: center; gap: .3rem; color: var(--ink-2); }
.crumbs li + li::before { content: ""; width: 14px; border-top: 2px dashed var(--line-strong); }
.crumbs a { color: var(--ink); }

/* ---------- Prosa (guías) ---------- */
.prose > * + * { margin-top: 0; }
.prose h2 { margin-top: var(--s-7); padding-top: var(--s-2); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s-5); }
.prose p, .prose li { max-width: 68ch; }
.prose blockquote { margin: var(--s-5) 0; padding: var(--s-4) var(--s-5); border-left: 4px solid var(--olive); background: var(--surface); border-radius: 0 var(--r) var(--r) 0; }
.prose blockquote p:last-child { margin: 0; }
.prose cite { display: block; font-style: normal; font-size: var(--step--1); color: var(--ink-2); margin-top: var(--s-2); }
.guide { display: grid; gap: var(--s-7); }
@media (min-width: 1000px) { .guide { grid-template-columns: 16rem minmax(0, 1fr); gap: var(--s-8); } }
.toc { align-self: start; border-top: 2px solid var(--basalt); padding-top: var(--s-3); }
@media (min-width: 1000px) { .toc { position: sticky; top: 5.5rem; } }
.toc p { font: 700 .82rem/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--s-2); }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.toc li { margin: 0; counter-increment: t; }
.toc a { display: flex; gap: .6rem; padding: .45rem 0; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.toc a::before { content: counter(t, decimal-leading-zero); color: var(--orange-ink); font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--orange-ink); }
.toc details summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
@media (min-width: 1000px) { .toc details summary { display: none; } }
.check { list-style: none; padding: 0; }
.check li { position: relative; padding-left: 2rem; }
.check li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--olive-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356653A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat; }
.sources { font-size: var(--step--1); color: var(--ink-2); border-top: 1px solid var(--line); padding-top: var(--s-4); margin-top: var(--s-7); }
.sources ol { padding-left: 1.2em; }

/* ---------- Relacionado ---------- */
.related { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.related li { margin: 0; }
.related a { display: flex; flex-direction: column; gap: var(--s-1); height: 100%; padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-decoration: none; position: relative; transition: border-color .15s var(--ease); }
.related a:hover { border-color: var(--basalt); }
.related b { font: 700 var(--step-1)/1.2 var(--font-display); padding-right: 1.5rem; }
.related b::after { content: "→"; position: absolute; right: var(--s-5); top: var(--s-5); color: var(--orange); }
.related span { color: var(--ink-2); font-size: .98rem; }
/* Tarjetas hacia kayaktenerife.es (partials/kayak.php): icono, dato clave y falso botón dentro del mismo enlace */
.related--kayak a { gap: var(--s-2); }
.related--kayak a > .ico { width: 2rem; height: 2rem; color: var(--orange-ink); }
.related--kayak b::after { content: none; }
.related--kayak b { padding-right: 0; }
.related--kayak .related__key { color: var(--ink); font-weight: 700; }
.related--kayak .related__note { color: var(--ink-2); font-size: var(--step--1); }
.related--kayak .related__cta { margin-top: auto; padding-top: var(--s-2); color: var(--orange-ink); font-weight: 700; }
.related--kayak .related__cta::after { content: " →"; }
.related--kayak a:hover .related__cta { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--basalt); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; min-height: 56px; padding: var(--s-3) 0; font: 700 var(--step-0)/1.35 var(--font-body); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--sand-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E2226' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover span { text-decoration: underline; text-underline-offset: .18em; }
.faq__a { padding: 0 0 var(--s-4); max-width: 68ch; }
.faq__a p { margin: 0; color: var(--ink-2); }

/* ---------- Pie ---------- */
.credits { font-size: .85rem; color: var(--ink-2); padding-block: var(--s-5); }
.credits p { margin: 0; }
.site-footer { background: var(--basalt); color: var(--cream-2); padding-block: 0 var(--s-6); position: relative; }
.site-footer__topo { width: 100%; height: 60px; color: var(--orange-hi); opacity: .45; }
.site-footer a { color: var(--cream); }
.site-footer h2 { font-size: .85rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cream); margin: 0 0 var(--s-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 var(--s-5); }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-block; padding: .3rem 0; text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: var(--s-6); padding-top: var(--s-5); }
.footer-nav { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr 1.6fr; gap: var(--s-8); } }
.footer-brand__logo { display: flex; align-items: center; gap: .6rem; font: 800 1.3rem/1 var(--font-display); color: var(--cream); }
.footer-brand__logo svg { width: 40px; height: 40px; }
.footer-brand__aff { border-left: 3px solid var(--orange-hi); padding-left: var(--s-3); }
.footer-note { font-size: .85rem; }
.footer-legal { border-top: 1px solid rgba(246, 241, 231, .18); margin-top: var(--s-5); padding-top: var(--s-5); font-size: .9rem; }
.footer-legal p { margin-bottom: var(--s-2); }

/* ---------- Banner de cookies ---------- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--basalt); color: var(--cream); border-top: 3px solid var(--orange-hi); padding-block: var(--s-4); }
.consent a { color: var(--cream); }
.consent__inner { display: grid; gap: var(--s-3); }
.consent p { margin: 0; font-size: .95rem; }
.consent__actions { display: flex; gap: var(--s-3); }
.consent__actions .btn { flex: 1; }
@media (min-width: 800px) { .consent__inner { grid-template-columns: 1fr auto; align-items: center; gap: var(--s-6); } .consent__actions .btn { flex: none; min-width: 9rem; } }

/* ---------- CTA móvil (no tapa contenido: el cuerpo reserva su altura) ---------- */
.mcta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom)); background: rgba(241, 234, 219, .96); border-top: 1px solid var(--line); }
body.has-mcta { padding-bottom: 4.6rem; }
/* Que la barra fija no tape el elemento enfocado con el teclado (WCAG 2.4.11) */
html:has(.mcta) { scroll-padding-bottom: 5.5rem; }
@media (min-width: 900px) { .mcta { display: none !important; } body.has-mcta { padding-bottom: 0; } html:has(.mcta) { scroll-padding-bottom: 0; } }

/* ---------- Movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}

/* ---------- Impresión ---------- */
@media print { .site-header, .mcta, .consent, .gyg-slot, .site-footer__topo { display: none !important; } body { background: #fff; } }

/* Tabla de requisitos: columnas de texto más anchas */
.ctable--req { font-size: .95rem; }
.ctable--req tbody th { min-width: 13rem; }
.link-ext { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; margin-top: .3rem; }
.link-ext .ico { width: 14px; height: 14px; }
@container (max-width: 860px) { .ctable tbody th .link-ext { color: var(--orange-hi); } }
.related--stack { grid-template-columns: 1fr; }
@media (max-width: 999px) { .toc details > p { display: none; } }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); }
.section--dark .rule a { color: var(--cream); }

/* Fase 1 (2026-10-29): buscador de requisitos y filas enlazables (#req-…, #precio-…, #quad-…) */
.finder { margin: var(--s-4) 0; padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.finder summary { cursor: pointer; font-weight: 700; }
.finder ul { margin: var(--s-3) 0 0; padding-left: 1.1rem; }
.finder li { margin-bottom: var(--s-2); }
.ctable tr[id], .qcard[id] { scroll-margin-top: 6rem; }
.ctable tr:target > * { background: var(--sand-2); }

/* ---------- Teide (fase 2): esquema de salidas, tablas del recurso y alternativas ---------- */
.tres { display: grid; gap: var(--s-6); align-items: start; margin-bottom: var(--s-5); }
@media (min-width: 900px) { .tres { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.tmap { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-4); }
.tmap__svg { display: block; width: 100%; height: auto; font-family: var(--font-body); }
.tmap figcaption { font-size: var(--step--1); color: var(--ink-2); margin-top: var(--s-3); }
.tmap__park { fill: var(--olive-bg); stroke: var(--olive); stroke-dasharray: 4 4; }
.tmap__parklabel { font-size: 12px; fill: var(--olive); font-weight: 600; }
.tmap__road { fill: none; stroke: var(--basalt); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; opacity: .8; }
.tmap__roadlabel { font-size: 12px; font-weight: 700; fill: var(--basalt); }
.tmap__peak { fill: var(--basalt); }
.tmap__peaklabel { font-size: 13px; font-weight: 700; fill: var(--basalt); }
.tmap__jn { fill: var(--basalt); }
.tmap__pt circle { fill: var(--orange); stroke: var(--surface); stroke-width: 2; }
.tmap__n { font-size: 12px; font-weight: 700; fill: #fff; }
.tmap__label { font-size: 16px; font-weight: 700; fill: var(--ink); }
.tmap__small { font-size: 13px; fill: var(--ink-2); }
.ctable .inc span { display: block; font-weight: 600; }
.ctable .inc small { display: block; color: var(--ink-2); font-size: .85rem; }
.ctable .inc--si span { color: var(--olive); }
.ctable .inc--aparte span { color: var(--orange-ink); }
.ctable .inc--nd span, .ctable .inc--no span { color: var(--ink-2); font-weight: 400; font-style: italic; }
.picks { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); margin-bottom: var(--s-5); }
.pick { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); }
.pick h3 { font-size: var(--step-1); margin: 0; }
.pick p { margin: 0; }
.pick__k { font: 700 var(--step--1)/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--orange-ink); }
.pick__op { color: var(--ink-2); font-size: .95rem; }
.pick__facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2) var(--s-4); margin: var(--s-2) 0 var(--s-3); }
.pick__facts div { margin: 0; }
.pick__facts dt { font-size: var(--step--1); color: var(--ink-2); }
.pick__facts dd { margin: 0; font-weight: 600; }
.pick__facts small { font-weight: 400; color: var(--ink-2); }
.pick .btn { margin-top: auto; }
/* Portada: elección por perfiles antes del catálogo */
.profiles { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); list-style: none; padding: 0; margin: 0 0 var(--s-6); }
.profiles li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--r); padding: var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); }
.profiles h3 { font-size: var(--step-1); margin: 0; }
.profiles p { margin: 0; color: var(--ink-2); }
.profiles a { margin-top: auto; }
