/* ============================================================
   Bahía Viva Tours — catálogo multi-tour vibrante
   Paleta: turquesa #00B7A8 · coral #FF6B4A · sunset #FFB037 · crema #FFF8EE
   Tipos: Fredoka (display) + Outfit (texto)
   ============================================================ */

:root {
  --crema: #FFF8EE;
  --surface: #E7F7F3;
  --surface-warm: #FFF1DF;
  --ink: #0E3A46;
  --muted: #3E6672;
  --turq: #00B7A8;
  --turq-soft: #BFEFE8;
  --turq-ink: #00756B;        /* AA 5.3 sobre crema */
  --coral: #FF6B4A;
  --coral-ink: #B8401B;       /* AA 5.2 sobre crema */
  --coral-btn: #C8401A;       /* AA 5.0 con blanco */
  --sunset: #FFB037;
  --line: #E3D9C6;
  --radius-md: 14px;
  --radius-lg: 26px;
  --radius-blob: 58% 42% 46% 54% / 52% 47% 53% 48%;
  --shadow: 0 18px 44px rgba(14, 58, 70, 0.14);
  --shadow-soft: 0 8px 22px rgba(14, 58, 70, 0.10);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Fredoka", "Outfit", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--sunset); color: var(--ink); }

h1, h2, h3, .brand-name, .price-num { font-family: var(--font-display); }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
h3 { font-weight: 600; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -80px; left: 16px; z-index: 200;
  background: var(--ink); color: var(--crema);
  padding: 12px 20px; border-radius: 0 0 12px 12px;
  font-weight: 600; text-decoration: none; transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 3px solid var(--coral-btn); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.container-narrow { width: min(820px, 100% - 2.5rem); }
.section { padding-block: clamp(4rem, 9vw, 7rem); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.7rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-coral { background: var(--coral-btn); color: #fff; box-shadow: 0 10px 24px rgba(200, 64, 26, .28); }
.btn-coral:hover { background: #B23615; }
.btn-turq { background: var(--turq); color: #06333D; box-shadow: 0 8px 20px rgba(0, 183, 168, .3); }
.btn-turq:hover { background: #00A296; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--crema); }
.btn-sm { padding: .55rem 1.15rem; font-size: .92rem; }
.btn-lg { padding: 1rem 2.1rem; font-size: 1.08rem; }
.btn-block { width: 100%; white-space: normal; text-align: center; line-height: 1.3; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 248, 238, 0);
  transition: background-color .35s, box-shadow .35s;
}
.site-header.is-scrolled { background: rgba(255, 248, 238, .92); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(14, 58, 70, .08); }
.header-inner {
  width: min(1240px, 100% - 2rem); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: .8rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; }
.brand-name { font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; }
.brand-name em { font-style: normal; color: var(--coral-ink); }
.main-nav { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); }
.main-nav a {
  text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--ink);
  padding: .35rem 0; border-bottom: 3px solid transparent; transition: border-color .25s, color .25s;
}
.main-nav a:hover { color: var(--turq-ink); border-bottom-color: var(--turq); }
.header-actions { display: flex; align-items: center; gap: .8rem; }

.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .5rem;
}
.menu-toggle-box { display: flex; flex-direction: column; gap: 5px; width: 26px; }
.menu-toggle-box span { height: 3px; border-radius: 3px; background: var(--ink); transition: transform .3s var(--ease-out), opacity .3s; }
.menu-toggle[aria-expanded="true"] .menu-toggle-box span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-box span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-box span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; padding: 6.5rem 2rem 2.5rem;
  background: var(--crema);
  display: flex; flex-direction: column; justify-content: space-between;
}
/* Imprescindible: el `display` de arriba es una regla de autor y le gana a la
   del navegador para [hidden], que es de la misma especificidad. Sin esto el
   overlay ignora su atributo `hidden` y tapa la página entera en escritorio. */
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.4rem; }
.mobile-menu nav a {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 600;
  text-decoration: none; color: var(--ink);
}
.mobile-menu nav a.btn { font-size: 1.15rem; align-self: flex-start; color: #fff; }
.mobile-menu-note { color: var(--muted); font-size: .95rem; }
.mobile-menu-note a { color: var(--turq-ink); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: clip; isolation: isolate;
  padding: clamp(7rem, 14vh, 9.5rem) 0 clamp(6rem, 11vw, 8.5rem);
  background: linear-gradient(180deg, #FFF3DE 0%, var(--crema) 55%);
}
/* El degradado "respira": segunda capa que entra y sale en opacidad (sólo opacity) */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(170deg, #FFE9C6 0%, #FFF6E6 42%, #EAF9F5 100%);
  opacity: 0; animation: hero-breathe 15s ease-in-out infinite alternate;
}
@keyframes hero-breathe { to { opacity: .85; } }
.hero-inner {
  width: min(1160px, 100% - 2.5rem); margin-inline: auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; position: relative; z-index: 2;
}
.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .45rem 1rem; font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); box-shadow: var(--shadow-soft);
}
.kicker-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 74, .5); } 55% { box-shadow: 0 0 0 9px rgba(255, 107, 74, 0); } }

.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 600; line-height: 1.04;
  letter-spacing: -0.02em; margin-top: 1.3rem;
}
.hero-title-pop {
  color: var(--coral-ink); position: relative; display: inline-block;
}
.hero-title-pop::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: .06em; height: .3em;
  background: var(--sunset); z-index: -1; border-radius: 999px; opacity: .55;
}
.hero-sub { margin-top: 1.4rem; font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--muted); max-width: 34rem; }
.hero-sub strong { color: var(--ink); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero-trust { display: flex; gap: clamp(1.2rem, 3vw, 2.6rem); margin-top: 2.6rem; flex-wrap: wrap; }
.hero-trust li { display: flex; align-items: center; gap: .7rem; }
.hero-trust strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--turq-ink); line-height: 1; min-width: 2ch; }
.hero-trust span { font-size: .8rem; line-height: 1.35; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }

/* Collage */
.hero-collage { position: relative; min-height: 460px; }
.collage-card {
  position: absolute; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 5px solid #fff; background: var(--surface);
}
.collage-card img { width: 100%; height: 100%; object-fit: cover; }
.collage-main { inset: 0 12% 8% 0; border-radius: var(--radius-blob); }
.collage-main img { height: 100%; }
.collage-top { top: -4%; right: -2%; width: 46%; aspect-ratio: 4 / 3; transform: rotate(4deg); }
.collage-bottom { bottom: -6%; right: 4%; width: 42%; aspect-ratio: 4 / 3; transform: rotate(-5deg); }
.collage-sun-wrap { position: absolute; top: -30px; left: -34px; width: 92px; display: block; will-change: transform; }
.collage-sun { width: 100%; height: auto; animation: spin-slow 26s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

.collage-chip {
  position: absolute; left: 12px; bottom: 12px;
  font-size: .85rem; font-weight: 600; padding: .4rem .85rem; border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.chip-sunset { background: var(--sunset); color: var(--ink); }
.chip-turq { background: var(--turq); color: #06333D; }
.chip-coral { background: var(--coral-btn); color: #fff; }

/* Blobs orgánicos */
.blob { position: absolute; border-radius: var(--radius-blob); filter: blur(2px); z-index: 0; pointer-events: none; }
.blob-a { width: 44vw; height: 44vw; max-width: 560px; max-height: 560px; right: -12vw; top: -14vw; background: rgba(0, 183, 168, .16); animation: blob-float 16s ease-in-out infinite; }
.blob-b { width: 30vw; height: 30vw; max-width: 380px; max-height: 380px; left: -10vw; bottom: 6vw; background: rgba(255, 176, 55, .22); animation: blob-float 19s ease-in-out -6s infinite reverse; }
.blob-c { width: 16vw; height: 16vw; max-width: 210px; max-height: 210px; left: 38vw; top: 8vh; background: rgba(255, 107, 74, .16); animation: blob-float 14s ease-in-out -3s infinite; }
@keyframes blob-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -26px, 0) rotate(8deg); }
}

/* Olas: 3 paths SVG recalculados por rAF (suma de senos) */
.hero-waves { position: absolute; inset: auto 0 -1px 0; height: clamp(74px, 8.5vw, 118px); z-index: 1; pointer-events: none; }
.waves { display: block; width: 100%; height: 100%; }

/* ---------- Secciones ---------- */
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.eyebrow {
  font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral-ink); margin-bottom: .7rem;
}
.eyebrow-light { color: var(--sunset); }
.section-sub { margin-top: .8rem; color: var(--muted); }

.section-tours { background: linear-gradient(180deg, #00B7A8 0, #00A9A0 100%); position: relative; }
.section-tours .section-head h2, .section-tours .section-head .section-sub { color: #fff; }
.section-tours .eyebrow { color: #FFDFA1; }
.section-tours .section-sub { color: #D7F6F2; }

/* Filtros */
.filter-bar { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 2rem; }
.filter-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 500; font-size: .95rem;
  background: rgba(255, 255, 255, .16); color: #fff;
  border: 2px solid rgba(255, 255, 255, .55); border-radius: 999px;
  padding: .55rem 1.2rem; cursor: pointer;
  transition: background-color .25s, color .25s, transform .25s var(--ease-out);
}
.filter-btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .28); }
.filter-btn.is-active { background: var(--crema); color: var(--ink); border-color: var(--crema); }
.filter-btn:focus-visible { outline-color: #FFDFA1; }
.filter-count {
  font-size: .78rem; background: rgba(14, 58, 70, .14); border-radius: 999px;
  padding: .05rem .5rem; font-weight: 600;
}
.filter-btn:not(.is-active) .filter-count { background: rgba(255, 255, 255, .25); }
.f-dot { width: 10px; height: 10px; border-radius: 50%; }
.f-mar { background: #BFEFE8; }
.f-aventura { background: var(--sunset); }
.f-cultura { background: #FFB4A0; }

/* Grid de tours */
.tour-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.tour-card {
  background: var(--crema); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.tour-card:hover { transform: translateY(-6px); box-shadow: 0 26px 54px rgba(4, 40, 49, .3); }
.tour-card.is-hidden { display: none; }
.tour-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.tour-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.tour-card:hover .tour-media img { transform: scale(1.06); }
.tour-badge {
  position: absolute; top: 12px; left: 12px; font-size: .78rem; font-weight: 700;
  padding: .35rem .8rem; border-radius: 999px; letter-spacing: .02em;
}
.badge-coral { background: var(--coral-btn); color: #fff; }
.badge-sunset { background: var(--sunset); color: var(--ink); }
.badge-turq { background: var(--turq); color: #06333D; }
.tour-cat {
  position: absolute; bottom: 12px; right: 12px; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .3rem .75rem; border-radius: 999px; background: rgba(255, 248, 238, .92); color: var(--ink);
}
.cat-mar { border-bottom: 3px solid var(--turq); }
.cat-aventura { border-bottom: 3px solid var(--sunset); }
.cat-cultura { border-bottom: 3px solid var(--coral); }

.tour-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.tour-body h3 { font-size: 1.22rem; line-height: 1.25; }
.tour-meta { display: flex; flex-wrap: wrap; gap: .35rem .95rem; font-size: .85rem; color: var(--muted); }
.stars { color: #E8920C; letter-spacing: .05em; }
.rating-num { font-weight: 700; color: var(--ink); }
.rating-count { color: var(--muted); }
.tour-desc { font-size: .94rem; color: var(--muted); flex: 1; }
.tour-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: .8rem; }
.tour-price { display: grid; line-height: 1.15; }
.price-desde { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.price-num { font-size: 1.55rem; font-weight: 600; color: var(--coral-ink); }
.price-mxn { font-size: .72rem; color: var(--muted); }

/* ---------- Modal ---------- */
.tour-modal {
  border: 0; padding: 0; background: transparent; max-width: min(760px, calc(100vw - 2rem));
  width: 100%; margin: auto;
}
.tour-modal::backdrop { background: rgba(8, 34, 42, .62); backdrop-filter: blur(4px); }
.modal-shell {
  background: var(--crema); border-radius: var(--radius-lg); overflow: hidden;
  max-height: min(86vh, 900px); overflow-y: auto; position: relative;
}
.modal-close {
  position: sticky; top: 14px; margin-left: calc(100% - 58px); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: var(--crema); font-size: 1.05rem;
  display: grid; place-items: center; box-shadow: var(--shadow-soft);
  transition: transform .2s var(--ease-out), background-color .2s;
}
.modal-close:hover { transform: rotate(90deg); background: var(--coral-btn); }
.modal-media { position: relative; aspect-ratio: 21 / 9; margin-top: -58px; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-chip { left: auto; right: 16px; bottom: 16px; }
.modal-body { padding: 1.8rem clamp(1.3rem, 4vw, 2.4rem) 2.2rem; }
.modal-body h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: .2rem; }
.modal-body h4 { font-family: var(--font-display); font-size: 1.08rem; margin: 1.6rem 0 .8rem; color: var(--turq-ink); text-transform: uppercase; letter-spacing: .06em; }
.modal-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .8rem; font-size: .92rem; color: var(--muted); }

.itinerary { display: grid; gap: .65rem; }
.itinerary li {
  display: grid; grid-template-columns: 64px 1fr; gap: .9rem; align-items: start;
  padding: .65rem .8rem; border-radius: var(--radius-md); background: #fff;
  border: 1px solid var(--line); font-size: .95rem;
}
.it-time {
  font-family: var(--font-display); font-weight: 600; color: #06333D;
  background: var(--turq-soft); border-radius: 999px; text-align: center;
  padding: .2rem .4rem; font-size: .88rem;
}
.itinerary strong { color: var(--ink); }
.itinerary div { color: var(--muted); }

.modal-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.check-list li, .cross-list li { padding-left: 1.7rem; position: relative; margin-bottom: .45rem; font-size: .95rem; color: var(--muted); }
.check-list li::before { content: "✔"; position: absolute; left: 0; color: var(--turq-ink); font-weight: 700; }
.cross-list li::before { content: "✕"; position: absolute; left: 0; color: var(--coral-ink); font-weight: 700; }

.modal-note {
  margin-top: 1.6rem; padding: 1rem 1.2rem; border-radius: var(--radius-md);
  background: var(--surface-warm); border-left: 5px solid var(--sunset);
  font-size: .93rem; color: var(--muted);
}
.modal-note strong, .modal-note em { color: var(--ink); }
.modal-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  margin-top: 1.8rem; flex-wrap: wrap;
}

/* ---------- Por qué nosotros ---------- */
.section-why { background: var(--crema); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.why-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.7rem 1.5rem; box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.why-icon {
  display: grid; place-items: center; width: 74px; height: 74px;
  border-radius: var(--radius-blob); background: var(--surface); margin-bottom: 1.1rem;
}
.why-icon svg { width: 44px; height: 44px; }
.why-card:hover .why-icon { animation: icon-bob .7s var(--ease-out); }
@keyframes icon-bob { 30% { transform: translateY(-7px) rotate(-4deg); } 65% { transform: translateY(2px) rotate(2deg); } }
.draw { stroke-dasharray: 180; stroke-dashoffset: 180; }
.draw-2 { stroke-dasharray: 140; stroke-dashoffset: 140; }
.is-revealed .draw { animation: draw-in 1.1s var(--ease-out) forwards; }
.is-revealed .draw-2 { animation: draw-in 1.1s .25s var(--ease-out) forwards; }
@keyframes draw-in { to { stroke-dashoffset: 0; } }
.why-card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.why-card p { font-size: .93rem; color: var(--muted); }

/* ---------- Reseñas ---------- */
.section-reviews { background: var(--surface); border-radius: 70px 70px 0 0; }
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius-lg); cursor: grab; }
.carousel-viewport.is-dragging { cursor: grabbing; }
.carousel-track {
  display: flex; transition: transform .55s var(--ease-out);
  will-change: transform;
}
.review-slide {
  flex: 0 0 100%; min-width: 0; padding: clamp(1.6rem, 4vw, 3rem);
  background: #fff; display: flex; flex-direction: column; gap: 1.6rem; justify-content: space-between;
}
.review-slide blockquote p:last-child {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem); line-height: 1.5; font-weight: 500; max-width: 46rem;
}
.stars-line { color: #E8920C; font-size: 1.1rem; letter-spacing: .12em; margin-bottom: .8rem; }
.review-slide footer { display: flex; align-items: center; gap: .9rem; }
.review-slide footer img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--turq-soft); }
.review-slide footer strong { display: block; }
.review-slide footer span { font-size: .85rem; color: var(--muted); }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 1.1rem; margin-top: 1.4rem; }
.carousel-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink);
  background: transparent; color: var(--ink); font-size: 1.1rem; cursor: pointer;
  transition: background-color .25s, color .25s, transform .25s var(--ease-out);
}
.carousel-btn:hover { background: var(--ink); color: var(--crema); transform: translateY(-2px); }
.carousel-dots { display: flex; gap: .5rem; }
.carousel-dot {
  width: 12px; height: 12px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: rgba(14, 58, 70, .25); transition: width .3s var(--ease-out), background-color .3s;
}
.carousel-dot.is-active { width: 30px; background: var(--coral-btn); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .8rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.faq-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: none; border: 0; cursor: pointer; text-align: left;
  font: 600 1.02rem/1.4 var(--font-body); color: var(--ink);
  padding: 1.05rem 1.25rem;
}
.faq-trigger:hover { color: var(--turq-ink); }
.faq-icon { position: relative; flex: 0 0 22px; height: 22px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; inset: 50% auto auto 50%; translate: -50% -50%;
  background: var(--coral-btn); border-radius: 2px; transition: rotate .3s var(--ease-out);
}
.faq-icon::before { width: 16px; height: 3px; }
.faq-icon::after { width: 3px; height: 16px; }
.faq-trigger[aria-expanded="true"] .faq-icon::after { rotate: 90deg; }
.faq-panel { padding: 0 1.25rem 1.15rem; }
.faq-panel p { color: var(--muted); font-size: .96rem; }
.faq-panel strong { color: var(--ink); }

/* ---------- Reserva ---------- */
.section-book {
  position: relative; overflow: clip;
  background: linear-gradient(160deg, #0E3A46 0%, #0B4A50 55%, #00695F 100%);
  color: var(--crema);
}
.book-blob {
  position: absolute; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  right: -18vw; bottom: -28vw; border-radius: var(--radius-blob);
  background: rgba(0, 183, 168, .17); animation: blob-float 18s ease-in-out infinite;
}
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; position: relative; }
.book-copy h2 { color: #fff; }
.book-copy > p { margin-top: 1rem; color: #BFDDE2; max-width: 30rem; }
.book-perks { margin-top: 1.5rem; display: grid; gap: .55rem; color: #D9F3EF; font-weight: 500; }
.book-contact { margin-top: 2rem; color: #BFDDE2; font-size: .96rem; }
.book-contact a { color: var(--sunset); font-weight: 700; text-decoration: none; }
.book-contact a:hover { text-decoration: underline; }

.book-form {
  position: relative; background: var(--crema); color: var(--ink);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3.5vw, 2.3rem);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35); display: grid; gap: 1.05rem;
}
.form-title { font-size: 1.35rem; }
.field { display: grid; gap: .35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.field input, .field select {
  font: 500 1rem var(--font-body); color: var(--ink);
  background: #fff; border: 2px solid var(--line); border-radius: 12px;
  padding: .75rem .9rem; width: 100%; transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--turq); box-shadow: 0 0 0 4px rgba(0, 183, 168, .18); }
.field input.is-invalid { border-color: var(--coral-btn); }
.form-fine { font-size: .8rem; color: var(--muted); text-align: center; }

.form-success {
  position: absolute; inset: 0; border-radius: var(--radius-lg);
  background: var(--crema); display: grid; place-content: center; text-align: center;
  gap: .6rem; padding: 2rem;
}
.form-success[hidden] { display: none; }
.success-emoji { font-size: 2.6rem; }
.form-success h4 { font-family: var(--font-display); font-size: 1.5rem; }
.form-success p { color: var(--muted); font-size: .95rem; max-width: 30rem; }
.form-success .btn { justify-self: center; margin-top: .5rem; }

/* ---------- Footer ---------- */
.site-footer { background: #082A33; color: #A9C6CC; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: #fff; margin-bottom: .6rem; }
.footer-brand em { font-style: normal; color: var(--sunset); }
.site-footer h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: #6FA3AC; margin-bottom: .7rem; }
.site-footer a { color: #D9EDF0; text-decoration: none; }
.site-footer a:hover { color: var(--sunset); }
.site-footer p { font-size: .95rem; line-height: 1.8; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-legal p { font-size: .85rem; color: #6FA3AC; }

/* ---------- Reveal on scroll ----------
   Se esconde SÓLO si hay JS (clase .js puesta por el guardia inline del <head>).
   Sin JS, o si script.js falla, todo queda legible en su posición final. */
.reveal {
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
.js .reveal { opacity: 0; transform: translateY(26px) scale(.975); }
.js .reveal.is-revealed { opacity: 1; transform: none; }

/* ---------- Titular por palabras ---------- */
.word { display: inline-block; }
.word-i { display: inline-block; will-change: transform; }
.js .hero-title.is-split .word-i { transform: translateY(42%) rotate(3deg) scale(.94); opacity: 0; }
.js .hero-title.is-split.is-in .word-i {
  transform: none; opacity: 1;
  transition: transform .78s cubic-bezier(.18,1.36,.35,1), opacity .5s ease-out;
  transition-delay: var(--wd, 0ms);
}

/* ---------- Microinteracciones ---------- */
.btn { position: relative; overflow: hidden; z-index: 0; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: currentColor; opacity: .16;
  transform: translateX(-101%) skewX(-12deg); transition: transform .5s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateX(0) skewX(-12deg); }
.btn-coral::before, .btn-turq::before { background: #fff; opacity: .22; }

.tour-badge { transform-origin: left center; }
.js .tour-card .tour-badge { opacity: 0; transform: translateY(-8px) scale(.82); }
.js .tour-card.is-revealed .tour-badge {
  opacity: 1; transform: none;
  transition: opacity .4s ease-out, transform .55s cubic-bezier(.2,1.5,.4,1);
  transition-delay: calc(var(--rd, 0ms) + 340ms);
}
.tour-card:hover .tour-badge { transform: scale(1.06); }

.main-nav a, .footer-grid a, .mobile-menu-note a { transition: color .25s, transform .25s var(--ease-out); }
.main-nav a:hover { transform: translateY(-1px); }
.carousel-btn:hover { transform: translateY(-2px) scale(1.06); }
.filter-btn { position: relative; }
.filter-btn .filter-count { transition: transform .3s var(--ease-out); }
.filter-btn:hover .filter-count { transform: scale(1.12); }

/* Validación y envío del formulario */
.field input.is-invalid, .field select.is-invalid { animation: field-shake .42s ease-out; }
@keyframes field-shake {
  20% { transform: translateX(-6px); } 45% { transform: translateX(5px); }
  70% { transform: translateX(-3px); } 100% { transform: translateX(0); }
}
.field-error {
  font-size: .78rem; font-weight: 600; color: var(--coral-btn);
  display: block; overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height .3s var(--ease-out), opacity .3s, margin-top .3s;
}
.field-error.is-on { max-height: 3em; opacity: 1; margin-top: .1rem; }
.book-form.is-sending { pointer-events: none; }
.book-form.is-sending button[type="submit"] { opacity: .75; }
.form-success {
  overflow-y: auto; align-content: center;
  transition: transform .45s var(--ease-out), opacity .35s ease-out;
}
.js .form-success { transform: scale(.94); opacity: 0; }
.js .form-success.is-in { transform: none; opacity: 1; }

/* Contadores de precio: sin salto de ancho al contar */
.price-num { font-variant-numeric: tabular-nums; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .tour-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-collage { min-height: 0; height: clamp(340px, 60vw, 480px); margin-top: 1rem; }
  .collage-main { inset: 0 20% 4% 0; }
  .book-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .tour-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .modal-columns { grid-template-columns: 1fr; }
  .section-reviews { border-radius: 36px 36px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero { padding-top: 6.2rem; }
  .hero-trust { gap: 1rem 1.6rem; }
  .collage-sun { width: 64px; top: -18px; left: -12px; }
  .itinerary li { grid-template-columns: 56px 1fr; gap: .6rem; }
  .modal-foot { flex-direction: column; align-items: stretch; }
  .modal-foot .btn { width: 100%; }
}
@media (max-width: 420px) {
  .header-actions .btn { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
}

/* ---------- Motion reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .blob, .collage-sun, .book-blob, .kicker-dot { animation: none !important; }
  .hero::before { animation: none !important; opacity: .4; }
  .collage-sun-wrap, .collage-card { transform: none; }
  .collage-top { transform: rotate(4deg); }
  .collage-bottom { transform: rotate(-5deg); }
  .js .reveal, .reveal { opacity: 1 !important; transform: none !important; }
  .js .hero-title.is-split .word-i { transform: none !important; opacity: 1 !important; }
  .js .tour-card .tour-badge { opacity: 1 !important; transform: none !important; }
  .js .form-success { opacity: 1 !important; transform: none !important; }
  .draw, .draw-2 { stroke-dashoffset: 0; animation: none !important; }
  .carousel-track { transition: none; }
  .btn::before { display: none; }
  .field input.is-invalid, .field select.is-invalid { animation: none !important; }
}

/* ── Defensa de [hidden] ───────────────────────────────────────────────────
   Cualquier regla de autor que declare `display` le gana a la regla
   `[hidden] { display: none }` del navegador, porque tienen la misma
   especificidad y las de autor pesan más. Sin esta línea, un elemento con
   `hidden` se sigue mostrando. Va al final para ganar por orden además de
   por !important. */
[hidden] { display: none !important; }
