/* ============================================================
   cinematic.css — Dirección de arte editorial e inmersiva
   Capa progresiva: grain + atmósfera + hero asimétrico + bandas.
   Cargada DESPUÉS de components.css → puede pisar lo necesario.
   ============================================================ */

/* ---------- Grain de película (textura global, fijo) ---------- */
.grain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  opacity: .055; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ============================================================
   HERO editorial: imagen de fondo + placa solapada asimétrica
   ============================================================ */
/* Atmósfera difusa sobre el scrim (terracota cálido + índigo de noche) */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 82% 8%, rgba(242,140,60,.20), transparent 60%),
    radial-gradient(70% 60% at 8% 96%, rgba(34,22,52,.34), transparent 62%);
  mix-blend-mode: multiply;
}
.hero__inner { position: relative; z-index: 2; }

/* Placa fotográfica solapada (solo escritorio) — rompe la cuadrícula */
.hero__plate {
  position: absolute; z-index: 2; margin: 0;
  right: clamp(24px, 5vw, 90px); bottom: clamp(-40px, -3vw, -24px);
  width: clamp(220px, 24vw, 340px); aspect-ratio: 4 / 5;
  border-radius: 18px; overflow: hidden;
  transform: rotate(2.5deg);
  box-shadow: 0 40px 80px -30px rgba(10,6,4,.7), 0 0 0 1px rgba(255,255,255,.12) inset;
  border: 6px solid rgba(255,255,255,.9);
}
.hero__plate img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__plate::after {
  content: "Erg Chebbi"; position: absolute; left: 12px; bottom: 10px;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
@media (max-width: 900px) { .hero__plate { display: none; } }

/* Tipografía cinética: que el titular respire (variable font) */
.hero h1 .gradient-text { will-change: font-variation-settings, transform; }

/* ============================================================
   TOURS como BANDAS anchas que se expanden (edge-to-edge)
   Reemplaza el carrusel de tarjetas. Imagen = protagonista.
   ============================================================ */
#tours.section--lux {
  background:
    radial-gradient(80% 70% at 92% 4%, rgba(242,140,60,.14), transparent 60%),
    radial-gradient(75% 80% at 4% 100%, rgba(26,18,42,.16), transparent 60%),
    linear-gradient(180deg, var(--surface-2) 0%, var(--gray) 100%);
}
/* el contenedor de render (data-tours-grid) pasa a fila de bandas */
.tour-bands {
  display: flex; gap: 10px; width: 100%;
  height: clamp(440px, 64vh, 600px);
}
.tour-band {
  position: relative; flex: 1 1 0%; min-width: 0;
  border-radius: var(--radius-lg); overflow: hidden;
  cursor: pointer; isolation: isolate;
  transition: flex-grow .6s cubic-bezier(.2,.8,.2,1), opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 18px 40px -22px rgba(10,6,4,.55);
}
.tour-band:hover, .tour-band:focus-within { flex-grow: 3.4; }
.tour-band__link { position: absolute; inset: 0; display: flex; align-items: flex-end; text-decoration: none; }
.tour-band__media {
  position: absolute; inset: 0; height: 100%; width: 100%; aspect-ratio: auto;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  transform: scale(1.06); transition: transform 1s cubic-bezier(.2,.8,.2,1);
  /* Capa GPU propia: aísla el repaint del parallax de fondo a esta banda (evita micro-tirón en escritorio) */
  will-change: transform; backface-visibility: hidden;
}
.tour-band:hover .tour-band__media { transform: scale(1); }
.tour-band__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,10,6,.66) 0%, rgba(18,10,6,.22) 45%, rgba(18,10,6,.04) 75%);
}
.tour-band__index {
  position: absolute; top: 16px; left: 18px; z-index: 2;
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em;
  color: rgba(255,255,255,.78);
}
.tour-band__content {
  position: relative; z-index: 2; padding: clamp(18px, 2vw, 28px);
  color: #fff; width: 100%; max-width: 460px;
}
.tour-band__meta {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.82);
}
.tour-band__title {
  font-family: var(--font-serif); color: #fff; line-height: 1.02;
  font-size: clamp(1.35rem, 2.4vw, 2.2rem); margin: 6px 0 0;
  text-shadow: 0 2px 18px rgba(0,0,0,.4);
}
/* Detalle que solo aparece al expandir */
.tour-band__reveal {
  max-height: 0; opacity: 0; overflow: hidden;
  transform: translateY(10px);
  transition: max-height .6s ease, opacity .5s ease, transform .5s ease;
}
.tour-band:hover .tour-band__reveal, .tour-band:focus-within .tour-band__reveal {
  max-height: 220px; opacity: 1; transform: none;
}
.tour-band__tagline { color: rgba(255,255,255,.9); font-size: .98rem; margin: 12px 0 0; }
.tour-band__foot { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.tour-band__price b { color: #fff; font-size: 1.1rem; }
.tour-band__price span { color: rgba(255,255,255,.72); font-size: .85rem; }
.tour-band__cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600; color: var(--cta-text);
  background: var(--orange-cta); padding: 11px 22px; border-radius: 100px;
  box-shadow: 0 1px 2px rgba(30,18,10,.2);
}
/* Banda colapsada: el título queda vertical-ish abajo, índice arriba */
.tour-band:not(:hover):not(:focus-within) .tour-band__title { font-size: clamp(1.1rem, 1.6vw, 1.5rem); }

/* Móvil: las bandas se apilan, todo visible */
@media (max-width: 760px) {
  .tour-bands { flex-direction: column; height: auto; gap: 12px; }
  /* La altura sigue al contenido: antes era fija (230px) y el texto largo
     (p.ej. Premium Sahara, 237px) desbordaba hacia arriba y solapaba el índice. */
  .tour-band { height: auto; flex: none; }
  .tour-band__link { position: relative; }
  .tour-band__content { padding-top: 48px; }   /* deja sitio al número índice arriba */
  .tour-band__reveal { max-height: none; opacity: 1; transform: none; }
  .tour-band__media { transform: none; }
  /* Velo más oscuro en toda la tarjeta: el texto ahora ocupa toda la altura y
     debe leerse igual arriba (meta) que abajo (precio/CTA). */
  .tour-band__scrim { background: linear-gradient(to top, rgba(14,7,3,.74) 0%, rgba(14,7,3,.46) 55%, rgba(14,7,3,.28) 100%); }
}

/* Accesibilidad: sin trucos de movimiento si se pide reducir */
@media (prefers-reduced-motion: reduce) {
  .tour-band, .tour-band__media { transition: none; }
  .hero__plate { transform: none; }
}

/* ---------- Enlace "ver todos los viajes" bajo las bandas ---------- */
.tour-bands__more { text-align: center; margin: 28px 0 0; }

/* ---------- "Hola, soy Ayoub" — panel cálido premium ---------- */
.s-guia { background: linear-gradient(170deg, #FFF8EF 0%, #FAEEDD 100%); }
.s-guia .guide {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 28px;
  padding: clamp(22px, 3.5vw, 52px);
  box-shadow: 0 38px 84px -48px rgba(90,46,18,.34);
  align-items: center;
}
.s-guia .guide__quote {
  border-left: 3px solid; border-image: var(--grad-accent) 1;
  font-family: var(--font-serif); font-style: italic; font-size: 1.12rem;
  color: var(--ink); padding-left: 18px; margin: 22px 0;
}
.s-guia .guide__body p { max-width: 52ch; }

/* ---------- Ruta animada del proceso (.s-como) — sustituye la barra recta ---------- */
.steps-progress { display: none; }
.steps-route { position: relative; max-width: 900px; margin: 6px auto 28px; }
.steps-route svg { width: 100%; height: auto; display: block; overflow: visible; }
.steps-route__trail { fill: none; stroke: var(--gray-mid); stroke-width: 2.5; stroke-dasharray: 1 10; stroke-linecap: round; }
.steps-route__draw { fill: none; stroke: url(#routeGrad); stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 2px 4px rgba(201,83,26,.22)); }
.steps-route__wp {
  fill: #fff; stroke: var(--orange); stroke-width: 3;
  transform-box: fill-box; transform-origin: center;
  transition: r .3s cubic-bezier(.2,.8,.2,1), fill .3s ease;
}
.steps-route__wp.is-active { fill: var(--orange); r: 11; }
/* Punto viajero que recorre la ruta (vida) */
.steps-route__rider { fill: var(--orange); filter: drop-shadow(0 0 7px color-mix(in srgb, var(--orange) 75%, transparent)); }
@media (prefers-reduced-motion: reduce) { .steps-route__rider { display: none; } }
/* Texto de los pasos centrado */
.s-como .step { text-align: center; }
.s-como .step__num { margin-left: auto; margin-right: auto; }

/* ---------- Trust condensado: tira slim, sin panel pesado ---------- */
#trust .trustbar { background: none; border: 0; box-shadow: none; padding: 0; }
#trust .trust { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ============================================================
   HERO · trailer cinematográfico (Ken Burns + crossfade)
   Pase de fotos con zoom lento y fundidos. Sustituible por <video> real.
   ============================================================ */
.hero__bg { overflow: hidden; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; will-change: opacity, transform;
  animation: heroKen 20s infinite;        /* más rápido = más trailer */
  backface-visibility: hidden;
}
/* Slide 1: se carga de inmediato (primera imagen visible = LCP). */
.hero__slide--1 { animation-delay: 0s;  background-image: url(../img/hero-dunes.jpg?v=21); background-image: image-set(url(../img/hero-dunes.avif?v=21) type("image/avif"), url(../img/hero-dunes.jpg?v=21) type("image/jpeg")); }
/* Slides 2-5: aquí sólo el animation-delay; la IMAGEN se carga tras el primer
   pintado (clase .is-ready vía JS). Aparecen a los 4/8/12/16s → llegan de sobra.
   Así ~490K salen de la ruta crítica del LCP sin tocar la animación. */
.hero__slide--2 { animation-delay: 4s;  }
.hero__slide--3 { animation-delay: 8s;  }
.hero__slide--4 { animation-delay: 12s; }
.hero__slide--5 { animation-delay: 16s; }
.hero.is-ready .hero__slide--2 { background-image: url(../img/culture.jpg?v=21);        background-image: image-set(url(../img/culture.avif?v=26) type("image/avif"), url(../img/culture.jpg?v=21) type("image/jpeg")); }
.hero.is-ready .hero__slide--3 { background-image: url(../img/camp-luxury.jpg?v=21);     background-image: image-set(url(../img/camp-luxury.avif?v=21) type("image/avif"), url(../img/camp-luxury.jpg?v=21) type("image/jpeg")); }
.hero.is-ready .hero__slide--4 { background-image: url(../img/hero-caravan.jpg?v=21); background-image: image-set(url(../img/hero-caravan.avif?v=26) type("image/avif"), url(../img/hero-caravan.jpg?v=21) type("image/jpeg")); }
.hero.is-ready .hero__slide--5 { background-image: url(../img/ait-ben-haddou.jpg?v=21);  background-image: image-set(url(../img/ait-ben-haddou.avif?v=21) type("image/avif"), url(../img/ait-ben-haddou.jpg?v=21) type("image/jpeg")); }
@keyframes heroKen {
  0%   { opacity: 0; transform: scale(1.04); }
  9%   { opacity: 1; }
  26%  { opacity: 1; }
  34%  { opacity: 0; transform: scale(1.18); }
  100% { opacity: 0; transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide { animation: none; opacity: 0; }
  .hero__slide--1 { opacity: 1; }
}

/* Capa de contraste direccional: oscurece IZQUIERDA (texto) y base, deja luminosa la derecha */
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(96deg, rgba(8,5,3,.54) 0%, rgba(8,5,3,.30) 38%, rgba(8,5,3,.06) 70%, transparent 100%),
    linear-gradient(0deg, rgba(8,5,3,.40) 0%, rgba(8,5,3,.08) 30%, transparent 52%);
}

/* Trust: que "ES · FR · EN · IT" no parta de línea */
#trust .trust__item strong { white-space: nowrap; font-size: clamp(1.05rem, 1.8vw, 1.45rem); }

/* ============================================================
   ITINERARIO con vida: foto real por día (lo que dice el texto, visual)
   ============================================================ */
.s-itin .timeline__body {
  background: var(--surface-2); border: 1px solid var(--gray-mid);
  border-radius: 16px; padding: 0 0 18px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.s-itin .timeline__item:hover .timeline__body { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.timeline__media {
  position: relative; height: clamp(150px, 21vw, 215px); margin-bottom: 14px;
  background-size: cover; background-position: center; will-change: background-position;
}
.timeline__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,12,6,.42), transparent 55%); }
.s-itin .timeline__body h3 { margin: 0 20px 6px; }
.s-itin .timeline__body p { margin: 0 20px; }
.itin-media--1 { background-image: url(../img/ait-ben-haddou.jpg?v=21); background-image: image-set(url(../img/ait-ben-haddou.avif?v=21) type("image/avif"), url(../img/ait-ben-haddou.jpg?v=21) type("image/jpeg")); }
.itin-media--2 { background-image: url(../img/camp-luxury.jpg?v=21);    background-image: image-set(url(../img/camp-luxury.avif?v=21) type("image/avif"), url(../img/camp-luxury.jpg?v=21) type("image/jpeg")); }
.itin-media--3 { background-image: url(../img/culture.jpg?v=21);        background-image: image-set(url(../img/culture.avif?v=26) type("image/avif"), url(../img/culture.jpg?v=21) type("image/jpeg")); }
.itin-media--4 { background-image: url(../img/kasbah-oasis.jpg?v=21);   background-image: image-set(url(../img/kasbah-oasis.avif?v=21) type("image/avif"), url(../img/kasbah-oasis.jpg?v=21) type("image/jpeg")); }

/* ============================================================
   ITINERARIO como MAPA DE RUTA horizontal (4 días del Sahara)
   ============================================================ */
.s-itin, #itinerary {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(201,83,26,.05), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 23px, color-mix(in srgb, var(--gray-mid) 32%, transparent) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, color-mix(in srgb, var(--gray-mid) 32%, transparent) 23px 24px),
    var(--gray);
}
.route__badge {
  display: inline-block; font-family: var(--font-mono); font-size: .76rem;
  letter-spacing: .16em; text-transform: uppercase; color: #fff;
  background: var(--grad-accent); padding: 7px 18px; border-radius: 100px; margin-bottom: 14px;
}
.route__map { position: relative; margin: 6px auto 26px; }
.route__map svg { width: 100%; height: 86px; display: block; overflow: visible; }
.route__trail { fill: none; stroke: var(--gray-mid); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; }
.route__draw  { fill: none; stroke: url(#routeGrad); stroke-width: 4; stroke-linecap: round; }
.route__pin   { fill: var(--surface-2); stroke: var(--orange); stroke-width: 3; transform-box: fill-box; transform-origin: center; }
.route__labels { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 6px; }
.route__labels span { text-align: center; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
.route__days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.route-day {
  background: var(--surface-2); border: 1px solid var(--gray-mid); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.route-day:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.route-day__img { height: 132px; background-size: cover; background-position: center; transform: translateZ(0); will-change: transform, background-position; backface-visibility: hidden; }
.route-day__num { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--purple); padding: 14px 16px 0; }
.route-day h3 { font-size: 1.02rem; line-height: 1.2; margin: 5px 16px 6px; }
.route-day p { font-size: .9rem; color: var(--text-soft); margin: 0 16px 16px; }
@media (max-width: 880px) {
  .route__map { display: none; }
  /* Tarjetas verticales (imagen arriba, texto debajo). El layout en fila rompía
     en móvil: día/título/texto no tienen contenedor, así que flex-direction:row
     los alineaba en 4 columnas aplastadas y el texto se desbordaba. */
  .route__days { grid-template-columns: 1fr; gap: 14px; }
  .route-day { flex-direction: column; }
  .route-day__img { width: 100%; height: 150px; }
}

/* ============================================================
   OPINIONES (testimonios + valoraciones fusionadas)
   Fondo con personas en el desierto · alta transparencia + inmersión
   ============================================================ */
[id^="opiniones"], [id^="reviews"], [id^="recensioni"] { position: relative; isolation: isolate; overflow: hidden; }
[id^="opiniones"]::before, [id^="reviews"]::before, [id^="recensioni"]::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: url(../img/dunes.jpg?v=21);
  background-image: image-set(url(../img/dunes.avif?v=21) type("image/avif"), url(../img/dunes.jpg?v=21) type("image/jpeg"));
  background-size: cover; background-position: center 40%;
  opacity: .17;
}
[id^="opiniones"]::after, [id^="reviews"]::after, [id^="recensioni"]::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--gray) 0%, transparent 18%, transparent 82%, var(--gray) 100%);
}
/* Valoraciones (Google/TripAdvisor) centradas dentro de opiniones */
.proof--reviews { display: none; } /* fuera las cards Google/Tripadvisor (placeholder); el dato real (5/5·17) ya está en el lead y el botón a TripAdvisor */


/* ============================================================
   EXPERIENCIAS · fondo de vídeo (trailer) + cards glass transparentes
   ============================================================ */
.s-exp { position: relative; isolation: isolate; overflow: hidden; }
.exp-stage {
  position: absolute; inset: 0; z-index: -1;
  background-image: image-set(url(../img/hero-sahara.avif?v=21) type("image/avif"), url(../img/hero-sahara.jpg?v=21) type("image/jpeg"));
  background-size: cover; background-position: center;
}
.exp-stage__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.exp-stage__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.16) 18%, rgba(255,255,255,.16) 82%, rgba(255,255,255,.62) 100%);
}
/* Cards glass MÁS transparentes: se ve el vídeo en movimiento detrás */
.s-exp .exp-card {
  background: color-mix(in srgb, var(--surface-2) 50%, transparent);
  border: 1px solid color-mix(in srgb, #ffffff 55%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  backdrop-filter: blur(14px) saturate(1.25);
  box-shadow: var(--shadow-md);
}
@media (prefers-reduced-motion: reduce) { .exp-stage__video { display: none; } }

/* ============================================================
   FOOTER · cielo nocturno estrellado + resplandor de hoguera
   ============================================================ */
.footer {
  background:
    radial-gradient(95% 70% at 50% 122%, rgba(242,140,45,.34), rgba(200,80,26,.12) 42%, transparent 72%),
    radial-gradient(130% 90% at 50% -10%, rgba(44,32,74,.55), transparent 60%),
    linear-gradient(180deg, #0a0e1c 0%, #110f1d 52%, #1a1410 100%);
}
.footer::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-repeat: no-repeat;
  background-image:
    /* halos suaves de las estrellas más brillantes */
    radial-gradient(7px 7px at 12% 14%, rgba(255,255,255,.22), transparent 70%),
    radial-gradient(8px 8px at 49% 12%, rgba(255,255,255,.22), transparent 70%),
    radial-gradient(7px 7px at 84% 11%, rgba(255,255,255,.20), transparent 70%),
    radial-gradient(6px 6px at 66% 16%, rgba(255,255,255,.18), transparent 70%),
    /* estrellas (más grandes y brillantes) */
    radial-gradient(2.6px 2.6px at 12% 14%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 21% 27%, rgba(255,255,255,.9), transparent),
    radial-gradient(2px 2px at 30% 9%, rgba(255,255,255,.95), transparent),
    radial-gradient(1.6px 1.6px at 40% 21%, rgba(255,255,255,.85), transparent),
    radial-gradient(2.8px 2.8px at 49% 12%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 57% 28%, rgba(255,255,255,.85), transparent),
    radial-gradient(2.4px 2.4px at 66% 16%, rgba(255,255,255,.97), transparent),
    radial-gradient(1.6px 1.6px at 75% 25%, rgba(255,255,255,.85), transparent),
    radial-gradient(2.6px 2.6px at 84% 11%, #ffffff, transparent),
    radial-gradient(1.6px 1.6px at 92% 23%, rgba(255,255,255,.9), transparent),
    radial-gradient(1.8px 1.8px at 8% 35%, rgba(255,255,255,.85), transparent),
    radial-gradient(2.1px 2.1px at 28% 41%, rgba(255,255,255,.9), transparent),
    radial-gradient(1.5px 1.5px at 46% 37%, rgba(255,255,255,.78), transparent),
    radial-gradient(1.9px 1.9px at 62% 43%, rgba(255,255,255,.85), transparent),
    radial-gradient(1.6px 1.6px at 78% 39%, rgba(255,255,255,.8), transparent),
    radial-gradient(2.3px 2.3px at 95% 34%, rgba(255,255,255,.92), transparent);
  animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .65; } to { opacity: 1; } }
.footer .container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .footer::after { animation: none; } }

/* ============================================================
   OPINIONES · proof compacto + cards anchos/centrados con efecto + color arriba
   ============================================================ */
/* Badge de color en la parte de arriba (destaque) */
.reviews-badge {
  display: inline-block; font-family: var(--font-mono); font-size: .74rem;
  letter-spacing: .14em; text-transform: uppercase; color: #fff;
  background: var(--grad-accent); padding: 7px 18px; border-radius: 100px; margin-bottom: 14px;
  box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--orange) 70%, transparent);
}
/* Google / TripAdvisor más pequeños */
.proof--reviews .proof__item { padding: 10px 16px; gap: 4px; }
.proof--reviews .proof__logo { font-size: .82rem; }
.proof--reviews .proof__stars { font-size: .82rem; }
.proof--reviews .proof__meta { font-size: .68rem; }
/* Cards más anchos (menos gap) + contenido CENTRADO + efecto transform */
[id^="opiniones"] .testimonials, [id^="reviews"] .testimonials, [id^="recensioni"] .testimonials { gap: 12px; }
[id^="opiniones"] .testimonial, [id^="reviews"] .testimonial, [id^="recensioni"] .testimonial {
  text-align: center; align-items: center;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease;
}
[id^="opiniones"] .testimonial:hover, [id^="reviews"] .testimonial:hover, [id^="recensioni"] .testimonial:hover {
  transform: translateY(-8px) scale(1.025); box-shadow: var(--shadow-lg);
}
[id^="opiniones"] .testimonial__stars, [id^="reviews"] .testimonial__stars, [id^="recensioni"] .testimonial__stars { text-align: center; }
[id^="opiniones"] .testimonial__author, [id^="reviews"] .testimonial__author, [id^="recensioni"] .testimonial__author { text-align: center; }

/* ============================================================
   BLOQUE AYOUB · más cálido, humano y con vida (foto Chefchaouen)
   ============================================================ */
/* Editorial CLARO y cálido (coherente con la página): sin cartón blanco plano,
   pero con vida — foto polaroid con profundidad, glow terracota, comilla y chips. */
.s-guia {
  background:
    radial-gradient(75% 70% at 3% 110%, rgba(224,138,46,.14), transparent 58%),
    radial-gradient(70% 64% at 96% -8%, rgba(124,92,255,.06), transparent 60%),
    linear-gradient(165deg, #FFF7EE 0%, #FBEBD9 60%, #F8E3CD 100%);
  position: relative; isolation: isolate; overflow: hidden;
}
.s-guia::before { content: none; }
/* El contenedor deja de ser un cartón blanco: el contenido respira sobre el crema */
.s-guia .guide {
  background: transparent; border: 0; box-shadow: none;
  padding: clamp(8px, 2vw, 24px) 0;
  grid-template-columns: 0.8fr 1fr; align-items: center; gap: clamp(28px, 5vw, 64px);
}
/* Foto de Ayoub: polaroid cálido inclinado con glow terracota detrás */
.s-guia .guide__media {
  position: relative; transform: rotate(-2deg); border-radius: 18px;
  overflow: visible; box-shadow: none;
  transition: transform .6s cubic-bezier(.2,.8,.2,1); will-change: transform;
}
.s-guia .guide__media::before {
  content: ""; position: absolute; inset: -9%; z-index: -1; border-radius: 30px;
  background: radial-gradient(56% 52% at 48% 46%, rgba(224,120,46,.34), transparent 72%);
  filter: blur(28px); opacity: .9; pointer-events: none;
}
.s-guia .guide__media:hover { transform: rotate(0deg) scale(1.012); }
.s-guia .guide__media img {
  border-radius: 14px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center;
  border: 6px solid #fff;
  box-shadow: 0 42px 84px -34px rgba(90,46,18,.5);
}
.s-guia .guide__badge {
  background: rgba(255,255,255,.92); color: #5A2E12; border: 1px solid var(--gray-mid);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px -12px rgba(90,46,18,.4);
}
/* Texto oscuro sobre claro (paleta de la página) */
.s-guia .section__eyebrow { color: var(--orange); }
.s-guia .guide__body h2 { color: var(--ink); }
.s-guia .guide__body p { color: var(--text-soft); }
.s-guia .guide__body p:first-of-type { color: var(--text); font-size: 1.08rem; }
.s-guia .guide__body p strong { color: var(--ink); }
/* Cita con comilla decorativa grande, cálida */
.s-guia .guide__quote {
  position: relative; color: var(--ink); font-family: var(--font-serif); font-style: italic;
  font-size: 1.14rem; line-height: 1.5; padding: 4px 0 4px 26px; margin: 20px 0 24px;
  border-left: 3px solid; border-image: var(--grad-accent) 1;
}
.s-guia .guide__quote::before {
  content: "\201C"; position: absolute; left: 4px; top: -18px;
  font-family: var(--font-display); font-size: 3.6rem; line-height: 1;
  color: color-mix(in srgb, var(--orange) 34%, transparent);
}
/* Chips de idioma — pills cálidas claras */
.s-guia .guide__langs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; }
.s-guia .guide__langs li {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em;
  color: #5A2E12; padding: 6px 13px; border-radius: 100px;
  background: rgba(255,255,255,.72); border: 1px solid color-mix(in srgb, var(--orange) 26%, var(--gray-mid));
}

/* ============================================================
   RESEÑAS · fondo con viajeros reales + cards más grandes, menos gap
   ============================================================ */
[id^="opiniones"]::before, [id^="reviews"]::before, [id^="recensioni"]::before {
  background-image: url(../img/travelers-group.jpg?v=21);
  opacity: .2;
}
[id^="opiniones"] .testimonials, [id^="reviews"] .testimonials, [id^="recensioni"] .testimonials { gap: 8px; }
[id^="opiniones"] .testimonial, [id^="reviews"] .testimonial, [id^="recensioni"] .testimonial { padding: 30px 26px; }

/* ============================================================
   EXPERIENCIAS · contenido centrado + accent de color + más contraste
   ============================================================ */
/* Cards más sólidas (definidas) para que destaquen sobre la arena */
.s-exp .exp-card {
  background: linear-gradient(160deg, color-mix(in srgb, var(--surface-2) 94%, transparent), color-mix(in srgb, var(--surface-2) 82%, transparent));
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 20px 46px -22px rgba(40,18,6,.5), inset 0 1px 0 rgba(255,255,255,.9);
  text-align: center;
  transition: transform .42s cubic-bezier(.2,.8,.2,1), box-shadow .42s ease, border-color .42s ease;
}
.s-exp .exp-card::before {
  content: ""; display: block; width: 34px; height: 3px; border-radius: 3px;
  background: var(--grad-accent); margin: 0 auto 12px;
  transition: width .42s cubic-bezier(.2,.8,.2,1);
}
/* Movimiento al pasar el ratón */
.s-exp .exp-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: color-mix(in srgb, var(--orange) 45%, #fff);
  box-shadow: 0 32px 64px -22px rgba(40,18,6,.58), inset 0 1px 0 rgba(255,255,255,.95);
}
.s-exp .exp-card:hover::before { width: 58px; }
@media (prefers-reduced-motion: reduce) { .s-exp .exp-card:hover { transform: none; } }
.s-exp .exp-card .exp-card__tag { color: var(--orange); -webkit-text-fill-color: var(--orange); }
.s-exp .exp-card h3 { color: var(--ink); }
.s-exp .exp-card p { color: var(--text); }

/* ============================================================
   "RESERVAR ES ASÍ DE SIMPLE" (.s-como) · unificado con la oferta
   Foto dunes suave de fondo + pasos en glass cards + movimiento
   ============================================================ */
.s-como { position: relative; isolation: isolate; overflow: hidden; padding-bottom: clamp(36px, 5vw, 64px); }
.s-como::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: image-set(url(../img/dunes.avif?v=21) type("image/avif"), url(../img/dunes.jpg?v=21) type("image/jpeg"));
  background-size: cover; background-position: center; opacity: .14;
}
.s-como::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 52%, transparent) 22%, color-mix(in srgb, var(--bg) 52%, transparent) 80%, var(--bg) 100%);
}
.s-como .step {
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid color-mix(in srgb, #ffffff 55%, transparent);
  border-radius: var(--radius-lg); padding: 26px 22px 24px;
  box-shadow: var(--shadow-md);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease;
}
.s-como .step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* ============================================================
   FIXES · cards de reseñas que rellenan + contraste experiencias + FAQ con vida
   ============================================================ */
/* Reseñas: la card ocupa toda su columna (más grande, menos separación) */
[id^="opiniones"] .testimonial, [id^="reviews"] .testimonial, [id^="recensioni"] .testimonial { width: 100%; max-width: none; justify-self: stretch; margin: 0; }

/* Experiencias: subtítulo legible sobre el vídeo */
.s-exp .section__lead { color: var(--ink); }
.s-exp .section__eyebrow { color: var(--purple-dark); }

/* ============================================================
   FAQ con vida + coherencia visual (glass + foto suave + accent)
   ============================================================ */
/* FAQ claro: 2 columnas (panel con CTA + acordeón), sin la foto oscura de fondo */
#faq {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(60% 55% at 100% 0%, rgba(224,138,46,.11), transparent 60%),
    radial-gradient(55% 50% at 0% 100%, rgba(124,92,255,.08), transparent 60%),
    linear-gradient(165deg, #FFFDF8 0%, #FBF1E4 100%);
}
#faq::before, #faq::after { content: none; }   /* fuera la foto camp-night */

.faq-layout {
  display: grid; grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 5vw, 60px); align-items: start; max-width: 1060px;
}
.faq-aside { position: sticky; top: 96px; }
.faq-aside .section__eyebrow { color: var(--orange); }
.faq-aside h2 { margin: 8px 0 12px; }
.faq-aside p { color: var(--text-soft); max-width: 36ch; margin-bottom: 20px; }

/* Aside FAQ: par de botones primario (WhatsApp, relleno) + secundario
   ("Ver todas las preguntas", outline) bien estructurados y con jerarquía. */
.faq-aside .btn { margin-top: 4px; }
.faq-aside__all { margin: 12px 0 0 !important; max-width: none !important; }
.faq-aside__all a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 28px; border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--purple-dark) 42%, transparent);
  color: var(--purple-dark); font-weight: 600; font-size: .98rem; text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.faq-aside__all a:hover { background: color-mix(in srgb, var(--purple-dark) 8%, transparent); border-color: var(--purple-dark); }

/* CTA final centrado que reutiliza .faq-aside (páginas /about): el p de 36ch
   sin auto-márgenes quedaba pegado a la izquierda mientras el título centraba. */
.faq-aside[style*="center"] { position: static; max-width: 640px; margin-inline: auto; }
.faq-aside[style*="center"] p { max-width: 54ch; margin-left: auto; margin-right: auto; text-align: center; }

.faq { display: flex; flex-direction: column; gap: 8px; }

#faq .acc {
  background: linear-gradient(150deg, rgba(255,255,255,.82), rgba(255,249,241,.55));
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,.7); border-radius: 16px;
  box-shadow: 0 10px 26px -18px rgba(90,46,18,.3), inset 0 1px 0 rgba(255,255,255,.75);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
#faq .acc:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -18px rgba(90,46,18,.4); }
#faq .acc[open] {
  background: linear-gradient(150deg, rgba(255,255,255,.94), rgba(255,243,231,.72));
  border-color: color-mix(in srgb, var(--orange) 42%, rgba(255,255,255,.6));
  box-shadow: 0 18px 42px -18px color-mix(in srgb, var(--orange) 42%, transparent), inset 0 1px 0 rgba(255,255,255,.85);
}

@media (max-width: 860px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
}


/* Reseñas · fondo definitivo: selfie de viajeros + camello en primer plano (IMG_1725) */
[id^="opiniones"]::before, [id^="reviews"]::before, [id^="recensioni"]::before {
  background-image: url(../img/travelers-camel.jpg?v=21);
  background-image: image-set(url(../img/travelers-camel.avif?v=21) type("image/avif"), url(../img/travelers-camel.jpg?v=21) type("image/jpeg"));
  background-position: center 44%;
}

/* ============================================================
   ITINERARIO · MAPA ILUSTRADO INTERACTIVO (base pintada + ruta + pines)
   ============================================================ */
.rmap {
  position: relative; margin: 8px auto 30px; max-width: 1000px;
  border-radius: 16px; overflow: hidden; line-height: 0;
  box-shadow: 0 34px 78px -34px rgba(60,30,10,.55);
  border: 1px solid color-mix(in srgb, var(--gray-mid) 70%, #b98a36);
}
.rmap__base { display: block; width: 100%; height: auto; }
.rmap__overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.rmap__trail { fill: none; stroke: rgba(110,55,18,.40); stroke-width: 3; stroke-dasharray: 2.5 11; stroke-linecap: round; }
.rmap__draw  { fill: none; stroke: url(#rmapGrad); stroke-width: 4.5; stroke-dasharray: 2.5 11; stroke-linecap: round; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.rmap__pin {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%,-60%);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: none; border: 0; padding: 0; cursor: pointer; z-index: 3; line-height: 1;
}
.rmap__pin-dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad-accent); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  display: grid; place-items: center;
  box-shadow: 0 5px 14px -3px rgba(0,0,0,.5), 0 0 0 3px rgba(255,255,255,.9);
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.rmap__pin-label {
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .05em; text-transform: uppercase;
  color: #3a2410; background: rgba(255,250,240,.92); padding: 2px 8px; border-radius: 100px; white-space: nowrap;
  box-shadow: 0 2px 7px rgba(0,0,0,.25);
}
.rmap__pin:hover .rmap__pin-dot, .rmap__pin:focus-visible .rmap__pin-dot, .rmap__pin.is-active .rmap__pin-dot { transform: scale(1.3); }
.rmap__compass { position: absolute; bottom: 12px; right: 12px; width: 58px; height: 58px; z-index: 3; opacity: .9; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
/* la tarjeta-día se resalta al activar su pin (y viceversa) */
.route-day.is-highlight { box-shadow: 0 0 0 2px var(--orange), var(--shadow-md); transform: translateY(-4px); }
.route-day { transition: transform .35s ease, box-shadow .35s ease; cursor: default; }
@media (max-width: 600px) {
  .rmap__pin-label { display: none; }
  .rmap__pin-dot { width: 26px; height: 26px; font-size: .82rem; }
  .rmap__compass { width: 46px; height: 46px; }
}

/* Ruta "viva": los puntos fluyen a lo largo del trayecto (como el viaje en marcha) */
.rmap__draw { animation: rmapFlow 1.8s linear infinite; }
@keyframes rmapFlow { to { stroke-dashoffset: -13.5; } }
@media (prefers-reduced-motion: reduce) { .rmap__draw { animation: none; } }

/* ============================================================
   FIXES 2 · bandas legibles+accent, fondo Reservar visible, lead reseñas
   ============================================================ */
/* Bandas: scrim suave (sin oscurecer de más) + accent cálido */
.tour-band__scrim { background: linear-gradient(to top, rgba(14,7,3,.7) 0%, rgba(14,7,3,.36) 36%, rgba(14,7,3,.08) 62%, transparent 88%); }
.tour-band__meta { color: var(--gold); }
/* El bloque de texto cae al fondo: el reveal era <span> inline e ignoraba max-height:0
   (ocupaba espacio invisible y subía el texto). Como block sí colapsa. */
.tour-band__content { display: flex; flex-direction: column; }
.tour-band__reveal { display: block; }
.tour-band__index { color: var(--gold); }
.tour-band__title { text-shadow: 0 2px 22px rgba(0,0,0,.7); }

/* "Reservar es así de simple": que se note la foto del desierto */
.s-como::before { opacity: .44; }
.s-como::after { background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 14%, transparent) 18%, color-mix(in srgb, var(--bg) 14%, transparent) 82%, var(--bg) 100%); }
/* Subtítulo en una sola línea (desktop) */
.s-como .section__lead { max-width: 860px; }
@media (min-width: 920px) { .s-como .section__lead { white-space: nowrap; max-width: none; } }
/* Cards de pasos un punto más definidas, para que el bloque no quede apagado */
.s-como .step { background: color-mix(in srgb, var(--surface-2) 86%, transparent); border-color: rgba(255,255,255,.8); box-shadow: 0 22px 48px -24px rgba(40,18,6,.4); }

/* Subtítulo de reseñas: estrella y 5/5 con accent + segunda frase en su línea */
.rev-accent { color: var(--orange); font-weight: 600; }
.rev-sub { display: block; margin-top: 2px; }

/* ============================================================
   ITINERARIO · ESCENARIO — tarjetas-día con FOTO, asimétricas,
   posicionadas a lo largo del camino e invadiendo el cielo del mapa.
   Color distinto por día + foto del local + enlace pin<->card.
   ============================================================ */
/* Color por día — distintos y reconocibles (oro / verde oasis / rojo atardecer / violeta noche) */
.rmap__pin[data-day="1"] { --c: #E0A22E; }   /* Día 1 · Atlas/kasbah  */
.rmap__pin[data-day="2"] { --c: #2FA178; }   /* Día 2 · Todra/oasis   */
.rmap__pin[data-day="3"] { --c: #DA3F2B; }   /* Día 3 · Sahara        */
.rmap__pin[data-day="4"] { --c: #8466F0; }   /* Día 4 · regreso/noche */
.rmap-stage .route-day:nth-child(1) { --c: #E0A22E; }
.rmap-stage .route-day:nth-child(2) { --c: #2FA178; }
.rmap-stage .route-day:nth-child(3) { --c: #DA3F2B; }
.rmap-stage .route-day:nth-child(4) { --c: #8466F0; }

/* Pin coloreado por su día + halo del mismo color al activarse */
.rmap__pin-dot { background: var(--c, var(--grad-accent)); }
.rmap__pin.is-active .rmap__pin-dot,
.rmap__pin:hover .rmap__pin-dot,
.rmap__pin:focus-visible .rmap__pin-dot {
  transform: scale(1.32);
  box-shadow: 0 6px 18px -3px rgba(0,0,0,.55), 0 0 0 4px color-mix(in srgb, var(--c) 65%, #fff);
}
/* La etiqueta de día hereda el color del pin a cualquier tamaño (pista de enlace) */
.rmap-stage .route-day__num { color: var(--c); }

/* ---------- LAYOUT FLOTANTE CON FOTO (solo desktop ancho) ---------- */
@media (min-width: 1060px) {
  .rmap-stage { position: relative; max-width: 1200px; margin: 6px auto 26px; }
  .rmap-stage .rmap { max-width: 600px; margin: 0 auto; }
  .rmap-stage .route__days {
    position: absolute; inset: 0; display: block; margin: 0; padding: 0;
    pointer-events: none; z-index: 4;
  }
  .rmap-stage .route-day {
    position: absolute; width: 232px; height: auto; min-height: 112px; margin: 0; pointer-events: auto;
    overflow: hidden; border-radius: 16px; isolation: isolate;
    display: flex; flex-direction: column; justify-content: flex-end;
    border: 1px solid color-mix(in srgb, var(--c) 48%, rgba(255,255,255,.14));
    box-shadow: 0 22px 46px -22px rgba(0,0,0,.7);
    transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease, border-color .4s ease;
  }
  /* La foto del local pasa a ser el FONDO completo del card, con scrim para contraste */
  .rmap-stage .route-day__img {
    display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
    background-size: cover; background-position: center;
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
  }
  .rmap-stage .itin-media--1 { background-image: linear-gradient(180deg, rgba(6,4,2,.05) 0%, rgba(6,4,2,.40) 56%, rgba(6,4,2,.78) 100%), url(../img/ait-ben-haddou.jpg?v=21); }
  .rmap-stage .itin-media--2 { background-image: linear-gradient(180deg, rgba(6,4,2,.05) 0%, rgba(6,4,2,.40) 56%, rgba(6,4,2,.78) 100%), url(../img/camp-luxury.jpg?v=21); }
  .rmap-stage .itin-media--3 { background-image: linear-gradient(180deg, rgba(6,4,2,.05) 0%, rgba(6,4,2,.40) 56%, rgba(6,4,2,.78) 100%), url(../img/culture.jpg?v=21); }
  .rmap-stage .itin-media--4 { background-image: linear-gradient(180deg, rgba(6,4,2,.05) 0%, rgba(6,4,2,.40) 56%, rgba(6,4,2,.78) 100%), url(../img/kasbah-oasis.jpg?v=21); }
  /* Texto por encima de la foto, claro y legible */
  .rmap-stage .route-day > :not(.route-day__img) { position: relative; z-index: 1; }
  .rmap-stage .route-day__num { display: block; padding: 0 15px; margin-bottom: 3px;
    font-size: .64rem; color: color-mix(in srgb, var(--c) 48%, #fff); }
  .rmap-stage .route-day h3 { margin: 0 15px 4px; font-size: 1rem; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
  /* Colapsado por defecto: solo día + título (info reducida) */
  .rmap-stage .route-day p {
    margin: 0 15px; font-size: .8rem; line-height: 1.38; color: rgba(244,243,248,.92);
    max-height: 0; opacity: 0; overflow: hidden;
    transition: max-height .45s cubic-bezier(.2,.8,.2,1), opacity .3s ease, margin .45s ease;
  }
  /* Posiciones ASIMÉTRICAS a lo largo del camino (2 y 3 invaden el cielo del mapa) */
  .rmap-stage .route-day:nth-child(1) { left: 0;     top: 232px; }  /* Día 1 abajo-izq (Marrakech)     */
  .rmap-stage .route-day:nth-child(2) { left: 84px;  top: 44px;  }  /* Día 2 alto-izq, sobre el cielo  */
  .rmap-stage .route-day:nth-child(3) { right: 84px; top: 0;     }  /* Día 3 lo más alto, sobre el cielo */
  .rmap-stage .route-day:nth-child(4) { right: 0;    top: 188px; }  /* Día 4 medio-bajo-der (regreso)   */

  /* Insignia numerada DENTRO de la esquina que mira al mapa (sin recortes) */
  .rmap-stage .route-day::before {
    content: ""; position: absolute; top: 12px;
    width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #fff;
    font-family: var(--font-display); font-weight: 700; font-size: .92rem;
    display: grid; place-items: center; z-index: 3;
    box-shadow: 0 4px 12px -2px rgba(0,0,0,.6), 0 0 0 3px rgba(255,255,255,.92);
    transition: transform .3s cubic-bezier(.2,.8,.2,1);
  }
  .rmap-stage .route-day:nth-child(1)::before { content: "1"; }
  .rmap-stage .route-day:nth-child(2)::before { content: "2"; }
  .rmap-stage .route-day:nth-child(3)::before { content: "3"; }
  .rmap-stage .route-day:nth-child(4)::before { content: "4"; }
  .rmap-stage .route-day:nth-child(1)::before,
  .rmap-stage .route-day:nth-child(2)::before { right: 12px; left: auto; }   /* cards izq: insignia arriba-derecha (mira al mapa) */
  .rmap-stage .route-day:nth-child(3)::before,
  .rmap-stage .route-day:nth-child(4)::before { left: 12px; right: auto; }   /* cards der: insignia arriba-izquierda (mira al mapa) */

  /* Estado enlazado: card se eleva, foto hace zoom, borde brilla */
  .rmap-stage .route-day.is-highlight,
  .rmap-stage .route-day:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: var(--c);
    box-shadow: 0 34px 72px -20px rgba(0,0,0,.82), 0 0 0 2px var(--c);
    z-index: 6;
  }
  .rmap-stage .route-day.is-highlight .route-day__img,
  .rmap-stage .route-day:hover .route-day__img { transform: scale(1.08); }
  .rmap-stage .route-day.is-highlight::before,
  .rmap-stage .route-day:hover::before { transform: scale(1.14); }
}

/* Tablet: 2 columnas bajo el mapa (evita 4 columnas comprimidas) */
@media (min-width: 601px) and (max-width: 1059px) {
  .rmap-stage .route__days { grid-template-columns: repeat(2, 1fr); }
}
/* Móvil: acento de color por día en el borde (pista de enlace) */
@media (max-width: 1059px) {
  .rmap-stage .route-day { border-left: 3px solid var(--c); }
}

/* ============================================================
   GARANTÍAS · glassmorphism premium + movimiento + vida (claro)
   Glows de color detrás para que el cristal refracte; cards con
   lift+scale+sheen; marks en gradiente de marca.
   ============================================================ */
/* scope por CLASE para cubrir ES (#garantias), EN (#guarantees), IT (#garanzie) */
.section--lux:has(.guarantees) { position: relative; isolation: isolate; overflow: hidden; }
.section--lux:has(.guarantees)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(36% 46% at 14% 18%, rgba(124,92,255,.07), transparent 62%),
    radial-gradient(42% 52% at 86% 88%, rgba(224,138,46,.09), transparent 62%);
}
.guarantees { gap: clamp(16px, 2vw, 24px); }
.guarantee {
  position: relative; overflow: hidden; padding: 1.9rem 1.4rem;
  background: linear-gradient(165deg, rgba(255,255,255,.82), rgba(255,255,255,.58)) !important;
  border: 1px solid rgba(255,255,255,.7) !important;
  -webkit-backdrop-filter: blur(14px) saturate(135%); backdrop-filter: blur(14px) saturate(135%);
  box-shadow: 0 14px 32px -22px rgba(70,40,90,.26), inset 0 1px 0 rgba(255,255,255,.8) !important;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease, border-color .4s ease;
}
/* Línea-acento superior, discreta, al activar */
.guarantee::before {
  content: ""; position: absolute; top: 0; left: 24%; right: 24%; height: 2px; border-radius: 0 0 2px 2px;
  background: var(--grad-accent); opacity: 0; transition: opacity .4s ease, left .4s ease, right .4s ease;
}
/* Brillo sutil que barre la placa al pasar el ratón */
.guarantee::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-18deg); opacity: 0; pointer-events: none;
}
.guarantee:hover, .guarantee:focus-within {
  transform: translateY(-5px) scale(1.012);
  border-color: color-mix(in srgb, var(--purple) 28%, #fff) !important;
  box-shadow: 0 22px 46px -24px rgba(60,30,80,.32), inset 0 1px 0 rgba(255,255,255,.9) !important;
}
.guarantee:hover::before, .guarantee:focus-within::before { opacity: .9; left: 14%; right: 14%; }
.guarantee:hover::after { animation: guaranteeSheen .9s ease; }
@keyframes guaranteeSheen { 0% { left: -60%; opacity: 0; } 30% { opacity: .7; } 100% { left: 125%; opacity: 0; } }
/* Mark = texto naranja sólido legible (el clip-text dejaba una caja naranja) */
.guarantee__mark {
  display: block; margin: 0 auto .55rem; font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem); letter-spacing: .01em;
  background: none !important; -webkit-background-clip: border-box; background-clip: border-box;
  -webkit-text-fill-color: var(--orange) !important; color: var(--orange) !important;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.guarantee:hover .guarantee__mark { transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) {
  .guarantee:hover, .guarantee:focus-within { transform: none; }
  .guarantee:hover::after { animation: none; }
  .guarantee:hover .guarantee__mark { transform: none; }
}

/* ============================================================
   FLECHA "¡Este soy yo!" — anotación dibujada a mano sobre la
   foto de Ayoub; se traza sola al revelarse (detalle desenfadado).
   ============================================================ */
.guide__pointer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none; z-index: 5;
}
.guide__pointer-text {
  font-family: var(--font-display); font-weight: 700; font-size: 30px;
  fill: var(--orange); opacity: 0; transition: opacity .5s ease .3s;
}
.guide__pointer-arrow {
  fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 340; stroke-dashoffset: 340;
}
.guide__pointer-head { fill: var(--orange); opacity: 0; }
/* Disparo al revelarse la foto */
.s-guia .guide__media.is-revealed .guide__pointer-text { opacity: 1; }
.s-guia .guide__media.is-revealed .guide__pointer-arrow { animation: ptrDraw 1s cubic-bezier(.4,0,.2,1) .45s forwards; }
.s-guia .guide__media.is-revealed .guide__pointer-head { animation: ptrFade .35s ease 1.3s forwards; }
@keyframes ptrDraw { to { stroke-dashoffset: 0; } }
@keyframes ptrFade { to { opacity: 1; } }
/* Sin animación: estado final visible */
@media (prefers-reduced-motion: reduce) {
  .guide__pointer-arrow { stroke-dashoffset: 0; }
  .guide__pointer-head, .guide__pointer-text { opacity: 1; }
}
/* En móvil (1 columna) la flecha estorba: se oculta */
@media (max-width: 720px) { .guide__pointer { display: none; } }

/* ============================================================
   AYOUB · vida: dunas al pie, glow que respira, chips que saltan,
   flecha más fina y suave.
   ============================================================ */
/* (Duna al pie retirada: creaba una banda con borde duro entre bloques) */
/* La foto respira con un leve flotar del halo */
.s-guia .guide__media::before { animation: ayoubGlow 7s ease-in-out infinite; }
@keyframes ayoubGlow { 0%,100% { transform: translateY(0) scale(1); opacity: .85; } 50% { transform: translateY(-7px) scale(1.05); opacity: 1; } }
/* Chips de idioma: saltan suave al pasar el ratón (resorte) */
.s-guia .guide__langs li {
  transition: transform .32s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, border-color .3s ease, background .3s ease;
  cursor: default;
}
.s-guia .guide__langs li:hover {
  transform: translateY(-5px);
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 10px 20px -8px color-mix(in srgb, var(--orange) 48%, transparent);
}
/* Flecha: trazo más fino y suave (menos "tosco") */
.guide__pointer-arrow { stroke-width: 4; stroke-linejoin: round; }
.guide__pointer-text { font-size: 27px; }
@media (prefers-reduced-motion: reduce) {
  .s-guia .guide__media::before { animation: none; }
}

/* ============================================================
   FORMULARIO (.s-contacto) · fluido, glass y con acentos
   ============================================================ */
.s-contacto {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(52% 48% at 100% 0%, rgba(124,92,255,.07), transparent 60%),
    radial-gradient(55% 55% at 0% 100%, rgba(224,138,46,.10), transparent 60%),
    linear-gradient(170deg, #FFFDF8 0%, #FBF2E6 100%);
}
/* Tarjeta del formulario = glass premium con filete de acento */
.s-contacto .form {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.88), rgba(255,250,243,.70));
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 30px 70px -34px rgba(90,46,18,.42), inset 0 1px 0 rgba(255,255,255,.85);
}
.s-contacto .form::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-accent);
}
/* Campos: vivos, con foco cálido y etiqueta que se tiñe */
.s-contacto .field label { transition: color .25s ease; }
.s-contacto .field input, .s-contacto .field select, .s-contacto .field textarea {
  background: rgba(255,255,255,.72);
  border: 1px solid color-mix(in srgb, var(--gray-mid) 85%, transparent);
  border-radius: 12px;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.s-contacto .field input:focus, .s-contacto .field select:focus, .s-contacto .field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 20%, transparent);
  background: #fff;
}
.s-contacto .field:focus-within label { color: var(--orange); }
/* Botón enviar = pill de acento (energía y coherencia con los CTA) */
.s-contacto .form button[type="submit"] {
  background: var(--grad-accent); background-size: 160% 100%; color: #2a1407; border: 0;
  border-radius: 100px; font-family: var(--font-display); font-weight: 700;
  box-shadow: 0 14px 32px -12px color-mix(in srgb, var(--orange) 55%, transparent);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, background-position .5s ease;
}
.s-contacto .form button[type="submit"]:hover {
  transform: translateY(-2px); background-position: 100% 50%;
  box-shadow: 0 22px 42px -12px color-mix(in srgb, var(--orange) 60%, transparent);
}
/* Líneas de contacto (WhatsApp/email) en glass a juego */
.s-contacto .contact__line {
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.7);
}
.s-contacto .contact__line:hover { border-color: color-mix(in srgb, var(--orange) 40%, var(--gray-mid)); }

/* ============================================================
   MÁS VIAJES (#otros-viajes) · destacado, tarjetas cinematográficas
   ============================================================ */
#otros-viajes .more-tours { gap: 30px; }
#otros-viajes .more-tours__head h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
#otros-viajes .more-tours__head p { font-size: 1.05rem; }
@media (min-width: 861px) {
  #otros-viajes .more-tours__list {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1060px;
  }
  #otros-viajes .more-tours__list li { width: 100%; }
  #otros-viajes .more-tours__list a { width: 100%; height: clamp(290px, 26vw, 350px); }
}
#otros-viajes .more-tours__list a {
  border-radius: 20px; box-shadow: 0 26px 54px -26px rgba(40,18,6,.5);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease;
}
#otros-viajes .more-tours__list img { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
#otros-viajes .more-tours__list a::after {
  background: linear-gradient(180deg, rgba(8,6,4,0) 28%, rgba(8,6,4,.44) 60%, rgba(8,6,4,.9) 100%);
}
/* anillo-acento que aparece al hover */
#otros-viajes .more-tours__list a::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 20px; pointer-events: none;
  box-shadow: inset 0 0 0 0 transparent; transition: box-shadow .4s ease;
}
#otros-viajes .more-tours__list a:hover { transform: translateY(-7px); box-shadow: 0 38px 72px -26px rgba(40,18,6,.62); }
#otros-viajes .more-tours__list a:hover img { transform: scale(1.09); }
#otros-viajes .more-tours__list a:hover::before { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--orange) 75%, transparent); }
#otros-viajes .more-tours__name { font-size: 1.16rem; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
#otros-viajes .more-tours__caption { padding: 16px 18px; }
/* el nombre gana una flecha al pasar el ratón */
#otros-viajes .more-tours__list a:hover .more-tours__name { transform: translateX(3px); }
#otros-viajes .more-tours__name::after { content: " →"; opacity: 0; transition: opacity .35s ease; color: var(--orange-2, #FFB36B); }
#otros-viajes .more-tours__list a:hover .more-tours__name::after { opacity: 1; }

/* ============================================================
   PASE DE TRANSICIONES · scroll cálido y coherente
   La zona clara comparte una familia cálida (sin grises fríos ni
   lux frío), para que las costuras entre bloques desaparezcan.
   Los bloques OSCUROS (hero, reseñas, footer) quedan como firma.
   ============================================================ */
/* Bandas alternas: de gris frío -> arena cálida (casan con el crema) */
.section--gray { background: linear-gradient(180deg, #FAF4EA 0%, #F4EBDC 100%); }
/* Garantías (lux claro) deja de ser frío y se integra en la familia cálida */
html[data-theme] .section--lux:has(.guarantees) {
  background: linear-gradient(180deg, #FBF5EC 0%, #F5EDDF 100%);
}
/* Pulido tipográfico: titulares y subtítulos equilibran sus líneas */
.section__head h2, .section__lead { text-wrap: balance; }

/* ============================================================
   TRANSICIONES SUAVES v2 · cada bloque claro abre y cierra en el
   color del body (#FCFBF7) → las costuras entre bloques se funden.
   ============================================================ */
.s-guia {
  background:
    radial-gradient(70% 60% at 4% 108%, rgba(224,138,46,.12), transparent 58%),
    radial-gradient(64% 56% at 96% -6%, rgba(124,92,255,.05), transparent 60%),
    linear-gradient(180deg, #FCFBF7 0%, #FAEAD6 50%, #FCFBF7 100%);
}
#faq {
  background:
    radial-gradient(56% 50% at 100% 4%, rgba(224,138,46,.10), transparent 60%),
    radial-gradient(50% 46% at 0% 96%, rgba(124,92,255,.07), transparent 60%),
    linear-gradient(180deg, #FCFBF7 0%, #FBF1E4 50%, #FCFBF7 100%);
}
.s-contacto {
  background:
    radial-gradient(48% 44% at 100% 4%, rgba(124,92,255,.06), transparent 60%),
    radial-gradient(52% 50% at 0% 96%, rgba(224,138,46,.09), transparent 60%),
    linear-gradient(180deg, #FCFBF7 0%, #FBF1E2 50%, #FCFBF7 100%);
}
html[data-theme] .section--lux:has(.guarantees) {
  background: linear-gradient(180deg, #FCFBF7 0%, #F4EBDC 50%, #FCFBF7 100%);
}
.section--gray { background: linear-gradient(180deg, #FCFBF7 0%, #F4EBDC 55%, #FCFBF7 100%); }
#tours.section--lux {
  background:
    radial-gradient(80% 70% at 92% 4%, rgba(242,140,60,.14), transparent 60%),
    radial-gradient(75% 80% at 4% 100%, rgba(26,18,42,.13), transparent 60%),
    linear-gradient(180deg, var(--surface-2) 0%, #FCFBF7 100%);
}

/* ============================================================
   ITINERARIO · click en card expande su contenido completo
   ============================================================ */
.rmap-stage .route-day { cursor: pointer; }
@media (min-width: 1060px) {
  .rmap-stage .route-day.is-open {
    z-index: 8; transform: scale(1.04);
    box-shadow: 0 44px 88px -22px rgba(0,0,0,.78), 0 0 0 2px var(--c);
  }
  /* Al abrir: se despliega la descripción completa */
  .rmap-stage .route-day.is-open p { max-height: 220px; opacity: 1; margin: 0 15px 14px; }
  /* pista de "expandible": +/− en la esquina */
  .rmap-stage .route-day::after {
    content: "+"; position: absolute; bottom: 8px; right: 10px; z-index: 3;
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(255,255,255,.20); color: #fff; font-size: 17px; line-height: 21px; text-align: center;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    transition: transform .3s ease, background .3s ease;
  }
  .rmap-stage .route-day.is-open::after { content: "\2212"; background: var(--c); }
}

/* ============================================================
   FORMULARIO · vida en la columna izquierda (aside)
   ============================================================ */
.contact__badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 22px;
  padding: 7px 14px; border-radius: 100px; font-size: .82rem; font-weight: 600; color: #1c7a45;
  background: color-mix(in srgb, var(--green) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--green) 30%, var(--gray-mid));
}
.contact__badge .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--green);
  animation: pulseDot 2.2s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 55%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.s-contacto .contact__ico { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.s-contacto .contact__line:hover .contact__ico { transform: scale(1.08) rotate(-5deg); }
@media (prefers-reduced-motion: reduce) { .contact__badge .dot { animation: none; } }

/* ============================================================
   MAPA EN VÍDEO + ajustes varios (lote)
   ============================================================ */
/* El mapa pasa a vídeo; ocultamos la línea de ruta antigua (no casa con la ilustración nueva) */
/* Línea de ruta punteada sobre el mapa-vídeo (marca el orden 1→2→3→4) */
.rmap__overlay { display: block; }
.rmap__draw { stroke-width: 3.5; }
.rmap__trail { stroke: rgba(80,45,15,.32); }
video.rmap__base { display: block; width: 100%; height: auto; }

/* Pista secundaria bajo el lead (diferenciada de la descripción principal) */
.section__hint {
  display: inline-flex; align-items: center; gap: 7px; margin: 12px 0 0;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--purple);
}
.section__hint::before { content: "✦"; font-size: .8em; }
#tours .section__lead { font-size: 1.12rem; color: var(--text); }

/* EXPERIENCIAS · el vídeo como aspecto secundario (más velo) + cards con algo de transparencia */
.exp-stage__scrim {
  background: linear-gradient(180deg, rgba(255,255,255,.70) 0%, rgba(255,255,255,.44) 30%, rgba(255,255,255,.44) 70%, rgba(255,255,255,.72) 100%);
}
.s-exp .exp-card {
  background: linear-gradient(160deg, color-mix(in srgb, var(--surface-2) 80%, transparent), color-mix(in srgb, var(--surface-2) 64%, transparent));
  -webkit-backdrop-filter: blur(10px) saturate(130%); backdrop-filter: blur(10px) saturate(130%);
}

/* Botón "Ver reseñas en TripAdvisor" en verde TripAdvisor.
   Oscurecido de #00AA6C a #007A4C para que el texto blanco pase AA (≈4.8:1). */
a.btn[href*="tripadvisor"] {
  background: #007A4C !important; background-image: none !important; color: #fff !important;
  border: 0 !important; box-shadow: 0 14px 30px -12px rgba(0,122,76,.5) !important;
}
a.btn[href*="tripadvisor"]:hover { background: #02945d !important; transform: translateY(-2px); }

/* ============================================================
   CONTACTO → FOOTER · fade oscuro progresivo (el cielo nocturno
   sube e invade sutilmente el bloque) + cambio de tema claro
   ============================================================ */
/* Fuera la línea naranja dura del footer */
/* (línea de marca original del footer restaurada) */
/* El cielo del footer asoma por el fondo del contacto (vanishing) */
.s-contacto::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 230px; z-index: 4; pointer-events: none;
  background: linear-gradient(180deg,
    transparent 0%, transparent 36%,
    color-mix(in srgb, #0a0e1c 30%, transparent) 64%,
    color-mix(in srgb, #0a0e1c 72%, transparent) 84%,
    #0a0e1c 100%);
}
/* El contenido del contacto va por encima del fade (legibilidad) */
.s-contacto .container { position: relative; z-index: 5; }

/* Cambio de tema claro entre "garantías" y "Cuéntame tu viaje ideal" */
.s-contacto { padding-top: clamp(64px, 9vw, 124px); }
.s-contacto .section__eyebrow { display: block; margin-bottom: 10px; color: var(--orange); }

/* ============================================================
   BOTONES NARANJA · texto BLANCO legible
   El gradiente terminaba en oro pálido (blanco fallaba AA), así que
   lo intensifico un punto (terracota→naranja) y pongo texto blanco.
   ============================================================ */
/* Botones = acento de la paleta activa (cambian con Oasis/Atardecer), texto blanco */
.btn--accent {
  background: var(--orange-cta);
  color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.22);
}
.btn--accent:hover { color: #fff; }
.tour-band__cta {
  background: var(--orange-cta);
  color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.22);
}
.s-contacto .form button[type="submit"] {
  background: var(--orange-cta) !important;
  color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,.22);
}

/* ============================================================
   CONTACTO → FOOTER v2 · cielo nocturno REAL (sin barro gris)
   El fondo del contacto se vuelve transparente abajo y el footer
   sube por detrás con su cielo enmascarado → asoma cielo limpio.
   ============================================================ */
.s-contacto::after { display: none !important; }
/* Footer y contacto INDEPENDIENTES (sin solape ni máscara) — borde limpio */
.s-contacto {
  position: relative; z-index: auto;
  background:
    radial-gradient(46% 42% at 100% 2%, rgba(124,92,255,.06), transparent 60%),
    radial-gradient(50% 46% at 2% 98%, rgba(224,138,46,.08), transparent 60%),
    linear-gradient(180deg, #FCFBF7 0%, #FBF1E2 50%, #FCFBF7 100%);
}
.footer { margin-top: 0; padding-top: 0; -webkit-mask-image: none; mask-image: none; }

/* Vídeo del mapa: recortar los 100px negros de cada lado (contenido 1080x720 = 3:2) */
.rmap { aspect-ratio: 3 / 2; }
video.rmap__base { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   AYOUB v2 · su retrato como protagonista + TARJETA GLASS encima
   (formato elegido: glass card sobre su foto)
   ============================================================ */
/* Foto: panel grande y limpio (sin polaroid ni inclinación) */
.s-guia .guide__media {
  transform: none; border-radius: 22px; overflow: hidden;
  box-shadow: 0 32px 70px -32px rgba(90,46,18,.5);
}
.s-guia .guide__media::before { content: none; }
.s-guia .guide__media:hover { transform: none; }
.s-guia .guide__media img {
  width: 100%; height: 100%; aspect-ratio: 657 / 791; object-fit: cover; object-position: 42% 26%;
  border: 0; border-radius: 22px; box-shadow: none; transform: none;
}
/* Cuerpo = tarjeta de cristal premium */
.s-guia .guide__body {
  background: linear-gradient(155deg, rgba(255,255,255,.86), rgba(255,250,243,.72));
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255,255,255,.82); border-radius: 22px;
  box-shadow: 0 32px 74px -32px rgba(90,46,18,.42), inset 0 1px 0 rgba(255,255,255,.92);
  padding: clamp(24px, 3vw, 46px);
}
/* Desktop: foto + tarjeta glass solapándose encima */
@media (min-width: 900px) {
  .s-guia .guide {
    position: relative; display: flex; align-items: center; gap: 0;
    background: transparent; border: 0; box-shadow: none; padding: 0;
    max-width: 1140px; margin: 0 auto;
  }
  .s-guia .guide__media { flex: 0 0 46%; }
  .s-guia .guide__body { position: relative; z-index: 2; margin-left: -11%; width: 65%; }
}

/* ============================================================
   TELÓN DE DESIERTO · escena continua (cielo→dunas→campamento)
   detrás de FAQ → garantías → contacto. Sutil, legibilidad intacta.
   ============================================================ */
.desert-band { position: relative; isolation: isolate; }
.desert-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(252,251,247,.86) 0%, rgba(251,241,226,.82) 50%, rgba(247,232,213,.84) 100%),
    url(../img/desert-band.jpg?v=21);
  background-size: cover, cover;
  background-position: center, center top;
  background-repeat: no-repeat, no-repeat;
}
/* Las 3 secciones se vuelven transparentes para dejar ver el telón */
.desert-band > .section { background: transparent !important; }

/* En la banda de desierto, las secciones no pintan su fondo propio (solo el telón) */
.desert-band .s-como::before, .desert-band .s-como::after { display: none !important; }

/* Dentro del telón de desierto no queremos divisores: el fondo ya es continuo */
.desert-band .dune-divider { display: none !important; }


/* ============================================================
   AJUSTES MÓVIL · hero más limpio (v52)
   ============================================================ */
@media (max-width: 600px) {
  /* Badge de confianza en UNA sola línea: el texto natural (361px) no cabía
     en los 327px útiles del hero y partía en 3 líneas. Bajamos cuerpo/espaciado. */
  .hero__badge { font-size: .62rem; gap: 6px; padding: 6px 11px; letter-spacing: 0; margin-bottom: 16px; }
  /* Menos texto en el hero: ocultamos la línea-kicker, que repite lo que ya dicen
     el badge ("guía bereber local") y la sección de Ayoub. El H1 queda directo. */
  .hero h1 .hero__kicker { display: none; }
  .hero__sub { font-size: .98rem; }
  /* Quitamos la onda de dunas bajo el hero en móvil (el hero ya funde con el fondo) */
  html[data-theme] .hero + .dune-divider { display: none; }
}

/* ============================================================
   AJUSTES MÓVIL · bio de Ayoub, bento y FAQ (v53)
   ============================================================ */

/* Bio de Ayoub: en móvil la rejilla de 2 columnas aplastaba la foto y la tarjeta.
   Ahora la FOTO manda arriba (su cara vende) y la tarjeta cálida va debajo. */
@media (max-width: 899px) {
  .s-guia .guide { display: block; }
  .s-guia .guide__media { aspect-ratio: 1 / 1; margin-bottom: 16px; }
  .s-guia .guide__media img { aspect-ratio: auto; width: 100%; height: 100%; object-position: 50% 14%; }
  .s-guia .guide__body { padding: clamp(22px, 5.5vw, 34px); }
}

/* FAQ: en móvil el aside deja de ser columna lateral y se vuelve intro de sección,
   así que lo centramos para igualarlo al resto de cabeceras (garantías, experiencias…). */
@media (max-width: 860px) {
  .faq-aside { text-align: center; }
  .faq-aside p { max-width: 42ch; margin-left: auto; margin-right: auto; }
}

/* Tarjeta blanca "Un guía de aquí": en 1 columna el texto quedaba pegado abajo;
   lo centramos en altura. */
@media (max-width: 560px) {
  .bento__value { justify-content: center; }
  /* "Por qué viajar conmigo": centrado en móvil (a petición). */
  .bento__feature { text-align: center; align-items: center; }
}

/* CTA largos (p.ej. "Ver las 17 reseñas en TripAdvisor →") se cortaban con
   white-space:nowrap; en móvil dejamos que envuelvan dentro del ancho. */
@media (max-width: 600px) {
  .btn--lg { white-space: normal; }
}

@media (max-width: 760px) {
  /* "Pasa el cursor por cada una para descubrirla" no tiene sentido en táctil
     (no hay cursor y las bandas ya van expandidas). Lo ocultamos en móvil. */
  .section__hint { display: none; }
  /* Hero: las 3 métricas (tours / viajeros / confirmación) en UNA fila. */
  .hero__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hero__meta strong { font-size: 1.3rem; }
  .hero__meta span { font-size: .6rem; letter-spacing: .05em; }
}

/* ============================================================
   ACCESIBILIDAD · contraste AA (texto pequeño sobre fondo claro)
   Los acentos de marca en naranja/teal claros no llegaban a 4.5:1 en
   eyebrows y etiquetas pequeñas. Se usan variantes oscuras de la MISMA
   paleta; lo decorativo (puntos, pines, bordes, gradientes) queda igual.
   ============================================================ */
.section__eyebrow { color: var(--purple-dark); }
.s-guia .section__eyebrow,
.faq-aside .section__eyebrow,
.s-contacto .section__eyebrow { color: var(--maroon); }
html[data-theme] .bento__feature .section__eyebrow { color: var(--purple-dark); }
/* Eyebrow de secciones "lux" (garantías/tours): era texto con gradiente que en
   tema claro caía a teal brillante (4.1:1). Teal oscuro sólido, sin gradiente. */
html[data-theme] .section--lux .section__eyebrow {
  color: var(--purple-dark); -webkit-text-fill-color: var(--purple-dark); background: none;
}
.rev-accent { color: #A8431A; }
/* Entrada suave uniforme: si se pide reducir movimiento, el contenido aparece
   ya visible (sin desplazamiento), garantizando que ningún bloque quede oculto. */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
[id^="opiniones"] .testimonial__stars,
[id^="reviews"] .testimonial__stars,
[id^="recensioni"] .testimonial__stars { color: var(--maroon); }
/* Etiquetas de día (itinerario) sobre tarjeta clara en móvil: oscurecemos el
   texto manteniendo la pista de color; el pin del mapa y el borde siguen vivos. */
@media (max-width: 880px) {
  .rmap-stage .route-day__num { color: color-mix(in srgb, var(--c) 38%, #221710); }
}

/* ============================================================
   AJUSTES MÓVIL · ronda 6 (header, CTAs, contacto, reseñas)
   ============================================================ */
@media (max-width: 760px) {
  /* "Header bicolor": era la barra de progreso de scroll (línea naranja fija
     de 3px arriba) solapando el header. La ocultamos en móvil. */
  .scroll-progress { display: none !important; }
  /* Logo un punto más pequeño: respira junto a la hamburguesa, todo en una línea. */
  .brand__logo { height: 30px; }
  .header.is-scrolled .brand__logo { height: 28px; }
  /* Reseñas: fuera los 2 mini-bloques (Google "Próximamente" / Tripadvisor),
     redundantes con el botón "Ver las 17 reseñas". */
  .proof--reviews { display: none; }
}
@media (max-width: 560px) {
  /* Botón "Ver tours" del bloque "por qué": centrar (tenía align-self:flex-start). */
  .bento__cta { align-self: center; }
}

/* ============================================================
   MÓVIL · experiencia más ligera (itinerario teaser + FAQ reducido)
   Solo móvil: el desktop mantiene la versión rica (mapa flotante, 8 FAQ).
   ============================================================ */
@media (max-width: 880px) {
  /* Itinerario "teaser": en móvil mostramos solo día + título. Las fotos y el
     detalle día-a-día viven en la ficha del tour (evita duplicar y aligera).
     El mapa animado y el CTA "ver itinerario completo" se mantienen. */
  .rmap-stage .route-day__img { display: none; }
  .rmap-stage .route-day p { display: none; }
  .rmap-stage .route-day { padding: 4px 0 10px; }
}
@media (max-width: 760px) {
  /* FAQ de 8 → 5 en móvil: conservamos las de conversión (pago, salida, idiomas,
     personalizar, precio) y ocultamos las 3 logísticas (irán a una /faq propia). */
  #faq .faq .acc:nth-child(n+6) { display: none; }
  /* La página /faq sí muestra las 8 (es su razón de ser). */
  .page-faq #faq .faq .acc { display: block !important; }
}

/* ============================================================
   MÓVIL · hero ligero para arreglar el LCP
   El hero es un slideshow de 5 imágenes de fondo; en móvil cargaban las 5 al
   inicio (LCP ~10s). En móvil mostramos SOLO el slide 1 (hero-dunes.avif, ya
   precargado con fetchpriority) y ocultamos las otras 4 con display:none →
   el navegador NO descarga sus imágenes. El slideshow se mantiene en desktop.
   ============================================================ */
@media (max-width: 760px) {
  .hero__slide { animation: none; }
  .hero__slide:not(.hero__slide--1) { display: none; }
  .hero__slide--1 { opacity: 1; }
}

/* ============================================================
   HERO de páginas internas (about/contact/faq): imagen + velo,
   da vida al título que antes iba sobre el fondo crema plano.
   ============================================================ */
.page-hero { position: relative; isolation: isolate; text-align: center; overflow: hidden;
  padding: clamp(124px, 23vh, 224px) 0 clamp(72px, 12vh, 128px); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: url(../img/hero-dunes.jpg?v=21);
  background-image: image-set(url(../img/hero-dunes.avif?v=21) type("image/avif"), url(../img/hero-dunes.jpg?v=21) type("image/jpeg"));
  background-size: cover; background-position: center 38%;
  filter: brightness(1.05) saturate(1.12) contrast(1.04); }   /* foto más viva y clara (antes la oscurecía) */
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  /* Velo direccional (radial tras el texto centrado) → la foto respira; texto legible por radial + sombras. */
  background:
    radial-gradient(120% 78% at 50% 50%, rgba(10,7,3,.56) 0%, rgba(10,7,3,.34) 42%, rgba(10,7,3,.12) 72%, transparent 100%),
    linear-gradient(180deg, rgba(10,7,3,.20) 0%, transparent 30%, transparent 60%, rgba(10,7,3,.32) 100%); }
.page-hero__head { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.page-hero .section__eyebrow { color: #F4D9A6; text-shadow: 0 1px 12px rgba(0,0,0,.55); }
.page-hero h1 { color: #fff; text-shadow: 0 2px 28px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.5); }
.page-hero .section__lead { color: #fff; text-shadow: 0 1px 16px rgba(0,0,0,.55); }
/* Distintas fotos por página (más variedad) */
.page-hero--about::before { background-image: url(../img/ait-ben-haddou.jpg?v=21); background-image: image-set(url(../img/ait-ben-haddou.avif?v=21) type("image/avif"), url(../img/ait-ben-haddou.jpg?v=21) type("image/jpeg")); }
.page-hero--contact::before { background-image: url(../img/camp-luxury.jpg?v=21); background-image: image-set(url(../img/camp-luxury.avif?v=21) type("image/avif"), url(../img/camp-luxury.jpg?v=21) type("image/jpeg")); }

/* ============================================================
   FIXES 3 · LEGIBILIDAD de las bandas de tour (texto claro sobre imágenes
   brillantes/doradas; el gold del meta/índice se perdía sobre el atardecer).
   ============================================================ */
.tour-band__index { color: rgba(255,255,255,.95); text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 1px 9px rgba(0,0,0,.45); }
.tour-band__meta  { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 1px 9px rgba(0,0,0,.45); }
.tour-band__tagline { color: rgba(255,255,255,.97); text-shadow: 0 1px 3px rgba(0,0,0,.78); }
.tour-band__title { text-shadow: 0 1px 3px rgba(0,0,0,.7), 0 2px 20px rgba(0,0,0,.5); }
.tour-band__price span { color: rgba(255,255,255,.85); text-shadow: 0 1px 3px rgba(0,0,0,.7); }
/* Foto con más vida (saturación/contraste), sin quemar: resalta las fotos manteniendo el texto legible. */
.tour-band__media { filter: saturate(1.12) contrast(1.04) brightness(1.03); }
@media (max-width: 760px) {
  /* Velo bastante más ligero: se ve mucho más la foto; el texto se sostiene con las sombras de arriba. */
  .tour-band__scrim { background: linear-gradient(to top, rgba(14,7,3,.58) 0%, rgba(14,7,3,.37) 50%, rgba(14,7,3,.22) 100%); }
}
