/* ==========================================================================
   Coralux — Tours a Islas
   Ocean Luxe palette: deep navy + warm gold + off-white.
   Editorial, premium, boutique. Clean lines, generous whitespace.
   ========================================================================== */

:root {
  /* Coralux Palette — from Logo + AI Analysis (WCAG AA/AAA compliant) */
  --color-background: #FAFAF7;
  --color-foreground: #0A1C32;
  --color-card: #FFFFFF;

  /* Primary (Navy) — Headers, Navbar, Footer */
  --color-primary: #0A1C32;
  --color-primary-foreground: #FFFFFF;

  /* Secondary — Secciones alternas, arena suave (Respuesta 1: más cálido) */
  --color-secondary: #F0EDE6;
  --color-secondary-foreground: #0A1C32;

  /* Muted — Fondos neutros, texto secundario */
  --color-muted: #E8E4DB;
  --color-muted-foreground: #516075; /* 5.7:1 AA en --color-background (Respuesta 1) */

  /* Accent (Dorado) — Detalles boutique, badges */
  --color-accent: #CA933A;
  --color-accent-foreground: #0A1C32; /* NAVY sobre dorado = 6.3:1 AA. NUNCA blanco (solo 2.7:1) */
  --color-accent-text: #825A1A; /* Dorado oscuro para texto/links (5.1:1 AA) */

  /* Border — Separadores sutiles cálidos */
  --color-border: #DDD8CE;

  /* Accent Secondary (Teal) — Highlights marinos, categorias tours */
  --color-accent-secondary: #127E97;

  /* CTA (Coral) — Botones "Reservar", conversion */
  --color-cta: #E74734;
  --color-cta-foreground: #FFFFFF;

  /* Hover states */
  --color-primary-hover: #142945;
  --color-accent-hover: #B5812E;
  --color-accent-secondary-hover: #0E657A;
  --color-cta-hover: #CF3826;

  /* Icon colors — change these to re-theme all icons at once */
  --icon-primary: var(--color-accent);
  --icon-on-dark: rgba(250, 250, 247, 0.85);
  --icon-on-primary: var(--color-primary-foreground);
  --icon-social: var(--color-primary);
  --icon-lightbox: #fff;

  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;

  --container-width: 1280px;
}

/* Base icon utility */
.icon-svg {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Skip-to-content link (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
  border-radius: 0 0 6px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.skip-link:focus,
.skip-link:hover {
  top: 0;
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-background);
  color: var(--color-foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-primary);
}

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  padding: 0.9rem 2rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.btn:hover { background-color: var(--color-primary); color: var(--color-primary-foreground); }

.btn-solid {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
}
.btn-solid:hover { background-color: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-foreground); }

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-accent-foreground);
  border-color: var(--color-accent);
}
.btn-accent:hover { background-color: var(--color-primary); border-color: var(--color-primary); color: var(--color-primary-foreground); }

.btn-pay {
  background: transparent;
  border-color: var(--color-accent-secondary);
  color: var(--color-accent-secondary);
}
.btn-pay:hover { background-color: var(--color-accent-secondary); border-color: var(--color-accent-secondary); color: #fff; }

section { padding: 6rem 0; }

.section-muted { background-color: rgba(234, 227, 214, 0.3); }

.section-heading { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 0.75rem; }
.section-heading p { color: var(--color-muted-foreground); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0));
  transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.navbar a,
.navbar .nav-toggle {
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.9),
    0 0 5px rgba(255, 255, 255, 0.6);
}
.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 0.9rem 0;
  box-shadow: 0 1px 0 var(--color-border);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.25em;
  color: var(--color-primary);
  display: flex;
  align-items: center;
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.footer-logo-img {
  height: 100px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  font-weight: 600;
}
.nav-links a:hover { color: var(--color-accent); }
.nav-links a.is-active {
  color: var(--color-accent-text);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle svg { width: 24px; height: 24px; }

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  z-index: 101;
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 24px;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 12px 24px -12px rgba(10, 28, 50, 0.15);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
.mobile-menu a.is-active {
  color: var(--color-accent-text);
  border-bottom-color: var(--color-accent);
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .navbar {
    background: var(--color-card);
    padding: 0.9rem 0;
    box-shadow: 0 1px 0 var(--color-border);
  }
  .navbar a,
  .navbar .nav-toggle {
    text-shadow: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,28,50,0.35) 0%, rgba(10,28,50,0.65) 100%);
  z-index: -1;
}
.hero-content { padding: 4rem 0 8rem; max-width: 760px; }
.hero-content .eyebrow { color: var(--color-secondary); }
.hero-content h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 1.25rem; }
.hero-content h1 em { font-style: italic; font-weight: 300; }
.hero-content p { font-size: 1.1rem; color: rgba(255,255,255,0.85); max-width: 46ch; margin-bottom: 2rem; }

/* ---------- Reservation / search bar ---------- */
.search-bar {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  max-width: 1100px;
  margin: -5rem auto 5rem;
  position: relative;
  z-index: 20;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  align-items: end;
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-muted-foreground);
}
.field select, .field input {
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  padding: 0.5rem 0;
  color: var(--color-primary);
}
.field select:focus, .field input:focus { border-color: var(--color-accent-secondary); }
.field-hint { font-size: 0.8rem; color: var(--color-muted-foreground); line-height: 1.4; }
.field-hint-warning { color: var(--color-text, #1f2937); }
.field-hint-warning strong { color: #b45309; }

@media (max-width: 860px) {
  .search-bar { grid-template-columns: 1fr 1fr; margin-top: -3rem; }
}
@media (max-width: 560px) {
  .search-bar { grid-template-columns: 1fr; }
}

/* ---------- Value props ---------- */
.value-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}
.value-prop { text-align: center; padding: 0 1rem; }
.value-prop .icon {
  width: 48px; height: 48px;
  margin: 0 auto 1.25rem;
  color: var(--icon-primary);
}
.value-prop h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.value-prop p { color: var(--color-muted-foreground); font-size: 0.95rem; }

@media (max-width: 768px) {
  .value-props { grid-template-columns: 1fr; }
}

/* ---------- Tour cards grid ---------- */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.tour-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease;
}
.tour-card:hover {
  border-color: var(--color-accent-secondary);
}
.tour-card .tour-image { aspect-ratio: 4/3; overflow: hidden; }
.tour-card .tour-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.tour-card:hover .tour-image img { transform: scale(1.06); }
.tour-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.tour-rating { font-size: 0.8rem; color: var(--color-accent); margin-bottom: 0.5rem; letter-spacing: 0.05em; }
.tour-card h2.tour-title { font-size: 1.25rem; margin-bottom: 0.5rem; }
.tour-card .tour-desc { color: var(--color-muted-foreground); font-size: 0.9rem; margin-bottom: 1.25rem; flex: 1; }
.tour-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
}
.tour-price { font-family: var(--font-serif); font-size: 1.2rem; color: var(--color-primary); }
.tour-price span { display: block; font-family: var(--font-sans); font-size: 0.7rem; color: var(--color-muted-foreground); text-transform: uppercase; letter-spacing: 0.1em; }
.tour-price-minor { font-family: var(--font-sans); font-size: 0.75rem; color: var(--color-muted-foreground); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.25rem; }

@media (max-width: 980px) { .tours-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tours-grid { grid-template-columns: 1fr; } }

/* ---------- Gallery (asymmetric grid, Figma style) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 1.25rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item .tag {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.55) 100%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover .tag { opacity: 1; }
.gallery-item .tag small { text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.7rem; opacity: 0.85; color: var(--color-accent-secondary); }
.gallery-item .tag strong { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 500; }

.gallery-item.span-2-2 { grid-column: span 2; grid-row: span 2; }
.gallery-item.span-2-1 { grid-column: span 2; }
.gallery-item.span-1-2 { grid-row: span 2; }

@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .gallery-item.span-2-2, .gallery-item.span-2-1 { grid-column: span 2; }
  .gallery-item.span-1-2 { grid-row: span 1; }
}

/* ---------- About / experience split ---------- */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3.5rem;
  align-items: center;
}
.split .split-image { aspect-ratio: 4/3; overflow: hidden; }
.split .split-image img { width: 100%; height: 100%; object-fit: cover; }
.split-text p { color: var(--color-muted-foreground); margin: 1.25rem 0 1.75rem; line-height: 1.75; }

/* Nosotros: logo más grande, sin recorte */
.split.about-split {
  grid-template-columns: 2fr 5fr;
  gap: 3rem;
}
.split.about-split .split-image {
  aspect-ratio: auto;
  overflow: visible;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-image { order: -1; }
  .split.about-split { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Booking / reservation form ---------- */
.booking-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3.5rem);
}
.booking-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.booking-form .full { grid-column: 1 / -1; }
.booking-form label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--color-muted-foreground); display: block; margin-bottom: 0.5rem;
}
.booking-form input, .booking-form select, .booking-form textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  background: var(--color-background);
  padding: 0.75rem 1rem;
  color: var(--color-foreground);
}
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus { border-color: var(--color-accent-secondary); }
.consent { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.85rem; color: var(--color-muted-foreground); }
.consent input { width: auto; margin-top: 0.25rem; }
.consent a { color: var(--color-accent); text-decoration: underline; }
.turnstile-notice { font-size: 0.75rem; color: var(--color-muted-foreground); margin-top: 0.5rem; line-height: 1.4; }
.turnstile-notice a { color: var(--color-accent); text-decoration: underline; }
.form-note {
  font-size: 0.8rem;
  color: var(--color-muted-foreground);
  border-left: 2px solid var(--color-accent);
  padding-left: 0.9rem;
  margin-top: 1.5rem;
}
.booking-summary {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  padding: 1.25rem 1.5rem;
}
.booking-summary-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted-foreground);
  margin-bottom: 0.9rem;
}
.booking-summary-placeholder { font-size: 0.9rem; color: var(--color-muted-foreground); }
.bs-tour-name { font-size: 1.15rem; font-weight: 600; color: var(--color-foreground); margin-bottom: 0.25rem; }
.bs-tour-resumen { font-size: 0.85rem; color: var(--color-muted-foreground); line-height: 1.5; margin-bottom: 0.9rem; }
.bs-detail { font-size: 0.82rem; color: var(--color-muted-foreground); line-height: 1.7; }
.bs-detail strong { color: var(--color-foreground); font-weight: 600; }
.bs-table { margin-top: 1rem; border-top: 1px dashed var(--color-border); padding-top: 0.75rem; }
.bs-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.85rem; padding: 0.3rem 0; color: var(--color-muted-foreground); }
.bs-row-muted { color: var(--color-muted-foreground); opacity: 0.85; }
.bs-total { border-top: 1px solid var(--color-border); margin-top: 0.4rem; padding-top: 0.7rem; font-size: 1rem; color: var(--color-foreground); font-weight: 700; }
.bs-total span:last-child { color: var(--color-accent); }
.bs-note { margin-top: 0.9rem; font-size: 0.75rem; color: var(--color-muted-foreground); line-height: 1.5; }

/* ---------- Estado del pago (Bold) ---------- */
.payment-status {
  text-align: center;
  padding: 3.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.payment-spinner {
  width: 46px;
  height: 46px;
  margin-bottom: 1.25rem;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: payment-spin 0.9s linear infinite;
}
@keyframes payment-spin { to { transform: rotate(360deg); } }
.payment-status-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--color-foreground);
  margin-bottom: 0.5rem;
}
.payment-status-text {
  color: var(--color-muted-foreground);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 46ch;
  margin: 0 auto;
}
.payment-result { text-align: center; padding: 3rem 1rem; }
.payment-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.payment-icon-success { background: #16a34a; }
.payment-icon-rejected { background: #dc2626; }
.payment-details {
  max-width: 420px;
  margin: 1.75rem auto 2rem;
  text-align: left;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  padding: 1.25rem 1.5rem;
}
.payment-details .pd-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  padding: 0.4rem 0;
  color: var(--color-muted-foreground);
}
.payment-details .pd-row strong { color: var(--color-foreground); font-weight: 600; }
.payment-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.75rem; }
@media (max-width: 640px) { .payment-actions .btn { width: 100%; } }

@media (max-width: 640px) { .booking-form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer {
  background: var(--color-primary);
  color: rgba(253,251,247,0.65);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-grid .logo { color: var(--color-primary-foreground); display: inline-block; margin-bottom: 1.25rem; padding: 12px 16px; background: rgba(255,255,255,0.95); border-radius: 8px; }
.footer-grid .logo-img { filter: none; }
.footer-about { max-width: 32ch; font-size: 0.9rem; line-height: 1.7; }
.footer-heading {
  color: rgba(253,251,247,0.9);
  text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.15em;
  margin-bottom: 1.25rem; font-weight: 600;
}
footer ul li { margin-bottom: 0.75rem; font-size: 0.9rem; }
footer ul li a:hover { color: var(--color-accent-secondary); }
.socials { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.socials a {
  width: 40px; height: 40px;
  border: 1px solid rgba(253,251,247,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--icon-on-primary);
  font-size: 0.7rem; letter-spacing: 0.05em;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.socials a:hover { background: var(--color-accent-secondary); color: #fff; border-color: var(--color-accent-secondary); }
.socials a svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(253,251,247,0.15);
  padding-top: 1.75rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
}
.footer-bottom .legal-links { display: flex; gap: 1.5rem; }
.footer-bottom a:hover { color: var(--color-primary-foreground); }

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 90;
  width: 60px; height: 60px;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.35);
  transition: transform 0.25s ease;
}
.whatsapp-fab:hover { transform: scale(1.07); }
.whatsapp-fab svg { width: 30px; height: 30px; }

/* ---------- Sub-page header (Tours / Reservar) ---------- */
.page-header {
  padding: 10rem 0 4rem;
  text-align: center;
  background-color: var(--color-secondary);
}
.page-header .eyebrow { justify-content: center; display: flex; color: var(--color-accent-text); }
.page-header h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); margin-bottom: 0.75rem; }
.page-header p { color: var(--color-muted-foreground); max-width: 56ch; margin: 0 auto; }

/* ---------- "Ver más tours" link on home ---------- */
.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ---------- Filter bar (Tours page) ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.filter-bar button {
  border: 1px solid var(--color-border);
  background: var(--color-card);
  color: var(--color-secondary-foreground);
  padding: 0.6rem 1.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.filter-bar button:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-primary-foreground);
}
.filter-bar button.is-active {
  background-color: var(--color-accent-secondary);
  border-color: var(--color-accent-secondary);
  color: #fff;
}
.tours-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 480px;
  margin: -1.5rem auto 2.5rem;
  padding: 0.4rem 1rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-muted-foreground);
}
.tours-search:focus-within {
  border-color: var(--color-accent-secondary);
}
.tours-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--color-foreground);
  padding: 0.55rem 0;
  font-size: 0.95rem;
  outline: none;
}
.tours-empty {
  text-align: center;
  color: var(--color-muted-foreground);
  padding: 2.5rem 1rem;
}

/* ---------- Banner de tour individual ---------- */
.tour-banner {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.tour-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.tour-banner-slides {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.tour-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.tour-banner-slide.is-active { opacity: 1; }
.tour-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tour-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(250,250,247,0.82) 0%,
    rgba(250,250,247,0.12) 24%,
    rgba(10,28,50,0.18) 45%,
    rgba(10,28,50,0.82) 100%);
  z-index: -1;
}
.tour-banner-content {
  padding: 3rem 0 3.5rem;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.tour-banner .breadcrumb { color: rgba(255,255,255,0.75); }
.tour-banner .breadcrumb a { color: #fff; }
.tour-banner-content h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.25rem); margin: 0.5rem 0; }
.tour-banner-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-top: 1rem; font-size: 0.9rem; color: rgba(255,255,255,0.9); }
.tour-banner-meta span { display: flex; align-items: center; gap: 0.4rem; }
.tour-banner-meta svg { width: 18px; height: 18px; color: var(--icon-on-dark); }
.tour-banner-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.25rem; }
.tour-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(4px);
}

/* ---------- Layout de detalle: contenido + tarjeta de reserva ---------- */
.tour-detail {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.tour-content h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.tour-content h2:first-child { margin-top: 0; }
.tour-content p { color: var(--color-muted-foreground); margin-bottom: 1rem; line-height: 1.75; }

.includes-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-top: 1rem; }
.includes-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.95rem; color: var(--color-secondary-foreground); }
.includes-list li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.15rem; color: var(--icon-primary); }

.itinerary { margin-top: 1rem; border-left: 2px solid var(--color-border); padding-left: 1.5rem; }
.itinerary li { position: relative; padding-bottom: 1.5rem; color: var(--color-secondary-foreground); font-size: 0.95rem; }
.itinerary li:last-child { padding-bottom: 0; }
.itinerary li::before {
  content: "";
  position: absolute;
  left: -1.62rem; top: 0.3rem;
  width: 10px; height: 10px;
  background: var(--color-accent);
  border-radius: 50%;
}
.itinerary li strong { display: block; color: var(--color-primary); font-family: var(--font-serif); font-weight: 500; margin-bottom: 0.2rem; }

.tour-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.tour-gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.video-wrapper { position: relative; width: 100%; padding-top: 56.25%; margin-top: 1rem; background: var(--color-secondary); }
.video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Tarjeta de reserva (sticky) ---------- */
.booking-summary {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  padding: 2rem;
  position: sticky;
  top: 6.5rem;
}
.booking-summary .price { font-family: var(--font-serif); font-size: 1.75rem; color: var(--color-primary); }
.booking-summary .price span { display: block; font-family: var(--font-sans); font-size: 0.75rem; color: var(--color-muted-foreground); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.25rem; }
.booking-summary .price-minor { font-size: 1.1rem; margin-top: 0.35rem; }
.booking-summary .rating { font-size: 0.85rem; color: var(--color-accent); margin-top: 0.5rem; }
.booking-summary hr { border: none; border-top: 1px solid var(--color-border); margin: 1.5rem 0; }
.booking-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem 1rem; font-size: 0.9rem; margin-bottom: 1.75rem; }
.booking-summary dt { color: var(--color-muted-foreground); }
.booking-summary dd { color: var(--color-secondary-foreground); text-align: right; }
.booking-summary .btn { width: 100%; }
.booking-summary .whatsapp-link {
  display: block; text-align: center; margin-top: 1rem;
  font-size: 0.85rem; color: var(--color-muted-foreground); text-decoration: underline;
}

@media (max-width: 960px) {
  .tour-detail { grid-template-columns: 1fr; }
  .booking-summary { position: static; }
  .includes-list { grid-template-columns: 1fr; }
  .tour-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Página de galería (carga progresiva) ---------- */
.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.gallery-tile {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.gallery-tile:hover img { transform: scale(1.06); }
.gallery-tile .tag {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 1.1rem;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.55) 100%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s ease;
  font-family: var(--font-serif);
  font-size: 1rem;
}
.gallery-tile:hover .tag { opacity: 1; }
.gallery-tile.is-hidden { display: none; }

.load-more-wrap { text-align: center; margin-top: 3rem; }
.load-more-wrap p {
  color: var(--color-muted-foreground);
  font-size: 0.85rem;
  margin-top: 1rem;
}

@media (max-width: 860px) { .gallery-page-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Redes sociales (página Nosotros) ---------- */
.socials-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.socials-row a {
  width: 52px; height: 52px;
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--icon-social);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.socials-row a:hover { background: var(--color-accent-secondary); border-color: var(--color-accent-secondary); color: #fff; }
.socials-row svg { width: 22px; height: 22px; }

/* ---------- Efecto de aparición al cargar / hacer scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reseñas: tarjetas ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.review-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.review-stars {
  color: var(--color-accent);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.review-text {
  color: var(--color-secondary-foreground);
  font-size: 0.95rem;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.25rem;
}
.review-meta {
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.review-meta strong {
  font-family: var(--font-serif);
  color: var(--color-primary);
  font-size: 0.95rem;
}
.review-meta span {
  font-size: 0.8rem;
  color: var(--color-muted-foreground);
}

/* ---------- Selector de estrellas (formulario reseña) ---------- */
.star-rating {
  display: flex;
  gap: 0.5rem;
}
.star-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-border);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  padding: 0;
  line-height: 1;
}
.star-btn:hover,
.star-btn.is-active {
  color: var(--color-accent);
  transform: scale(1.1);
}

/* ---------- Inline style replacements ---------- */
.btn-whatsapp { display: inline-block; background: #25D366; border-color: #25D366; color: #fff; width: auto; }
.btn-whatsapp:hover { background: #1da851; border-color: #1da851; color: #fff; }
.mt-left { margin-left: 0.75rem; }

/* ---------- Utility classes ---------- */
.text-center { text-align: center; }
.w-full { width: 100%; }
.text-danger { color: #dc2626; }
.btn-center { display: inline-block; text-align: center; }

/* ---------- About page logo ---------- */
.about-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  border-radius: 12px;
  padding: clamp(2rem, 4vw, 3rem);
}
.about-logo-wrap img {
  width: clamp(160px, 35vw, 320px);
  height: auto;
  object-fit: contain;
}
@media (max-width: 768px) {
  .mt-left { margin-left: 0 !important; margin-top: 0.75rem; }
}

/* ---------- Rating flash fix ---------- */
.tour-rating[data-tour] { opacity: 0; transition: opacity 0.3s ease; }
.tour-rating.is-rated { opacity: 1; }
.booking-summary .rating[data-tour] { opacity: 0; transition: opacity 0.3s ease; }
.booking-summary .rating.is-rated { opacity: 1; }

/* ---------- Reviews loading spinner ---------- */
.reviews-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-muted-foreground);
  padding: 3rem 0;
}
.reviews-loading::before {
  content: '';
  display: block;
  width: 32px; height: 32px;
  margin: 0 auto 1rem;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Back to top button ---------- */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  z-index: 90;
  width: 48px; height: 48px;
  background: var(--color-primary);
  color: var(--color-primary-foreground);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: scale(1.07); }
@media (max-width: 768px) {
  .back-to-top { width: 42px; height: 42px; bottom: 5.5rem; left: 1.25rem; }
}

/* ---------- Página de contacto ---------- */
.contact-intro {
  max-width: 640px;
  margin: 0 auto 3.5rem;
  text-align: center;
  color: var(--color-muted-foreground);
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  max-width: 980px;
  margin: 0 auto;
}
.contact-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  padding: 2.5rem 1.75rem;
  text-align: center;
  transition: border-color 0.25s ease;
}
.contact-card:hover { border-color: var(--color-accent-secondary); }
.contact-card .icon {
  width: 40px; height: 40px;
  margin: 0 auto 1.25rem;
  color: var(--icon-primary);
}
.contact-card h2.contact-card-title {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}
.contact-card p { color: var(--color-muted-foreground); font-size: 0.9rem; margin-bottom: 1.5rem; }
.contact-card .btn { width: 100%; }

@media (max-width: 860px) {
  .contact-cards { grid-template-columns: 1fr; }
}

/* ---------- Simple content page (privacy policy) ---------- */
.legal-page { padding: 10rem 0 6rem; max-width: 780px; margin: 0 auto; }
.legal-page h1 { font-size: 2.25rem; margin-bottom: 1.5rem; }
.legal-page h2 { font-size: 1.35rem; margin: 2.25rem 0 0.75rem; }
.legal-page p, .legal-page li { color: var(--color-secondary-foreground); margin-bottom: 1rem; line-height: 1.75; }
.legal-page li { margin-left: 1.25rem; list-style: disc; }
.legal-page a { color: var(--color-accent); text-decoration: underline; }

/* ==========================================================================
   TOP PROMOTION BAR
   ========================================================================== */
.top-promo {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: linear-gradient(135deg, var(--color-accent) 0%, #D4A245 100%);
  color: var(--color-accent-foreground);
  padding: 0.5rem 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 12px rgba(202, 147, 58, 0.3);
}
.top-promo.is-hidden {
  transform: translateY(-100%);
}
.top-promo-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.top-promo-icon {
  font-size: 1.25rem;
  line-height: 1;
}
.top-promo-text {
  font-size: 0.85rem;
  font-weight: 500;
}
.top-promo-text strong {
  font-weight: 700;
}
.top-promo-price {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
}
.top-promo-price small {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.8;
}
.top-promo-btn {
  padding: 0.35rem 1.25rem;
  font-size: 0.7rem;
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-primary-foreground);
}
.top-promo-btn:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}
.top-promo-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-accent-foreground);
  opacity: 0.7;
  padding: 0 0.25rem;
  transition: opacity 0.2s ease;
}
.top-promo-close:hover {
  opacity: 1;
}

/* Push navbar down when promo is visible */
.navbar {
  top: 44px;
}
.top-promo.is-hidden ~ .navbar {
  top: 0;
}

@media (max-width: 768px) {
  .top-promo-content {
    gap: 0.5rem;
    padding: 0 12px;
  }
  .top-promo-text {
    font-size: 0.75rem;
  }
  .top-promo-price {
    font-size: 0.85rem;
  }
  .top-promo-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.65rem;
  }
  .navbar {
    top: 38px;
  }
  .top-promo.is-hidden ~ .navbar {
    top: 0;
  }
}

/* ==========================================================================
   TOUR POPUP MODAL
   ========================================================================== */
.tour-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 28, 50, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 1rem;
}
.tour-popup-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.tour-popup {
  background: var(--color-card);
  max-width: 720px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 64px rgba(10, 28, 50, 0.3);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.tour-popup-overlay.is-open .tour-popup {
  transform: translateY(0) scale(1);
}
.tour-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  background: var(--color-card);
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: background 0.2s ease;
}
.tour-popup-close:hover {
  background: var(--color-secondary);
}
.tour-popup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.tour-popup-image {
  position: relative;
  overflow: hidden;
  min-height: 300px;
}
.tour-popup-image-slides {
  position: absolute;
  inset: 0;
}
.tour-popup-image-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
}
.tour-popup-image-slide.is-active {
  opacity: 1;
  visibility: visible;
}
.tour-popup-image-slide img,
.tour-popup-image-slide iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}
.tour-popup-image-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(10, 28, 50, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.tour-popup-image-arrow:hover {
  background: var(--color-primary);
}
.tour-popup-image-arrow--prev {
  left: 0.75rem;
}
.tour-popup-image-arrow--next {
  right: 0.75rem;
}
.tour-popup-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--color-accent);
  color: var(--color-accent-foreground);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.75rem;
}
.tour-popup-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tour-popup-body .eyebrow {
  margin-bottom: 0.5rem;
}
.tour-popup-body h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.tour-popup-body > p {
  color: var(--color-muted-foreground);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.tour-popup-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.tour-popup-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-muted-foreground);
}
.tour-popup-meta svg {
  width: 16px;
  height: 16px;
  color: var(--icon-primary);
  flex-shrink: 0;
}
.tour-popup-footer {
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
}
.tour-popup-price {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.tour-popup-price span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--color-muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.tour-popup-actions {
  display: flex;
  gap: 0.75rem;
}
.tour-popup-actions .btn {
  flex: 1;
  font-size: 0.75rem;
  padding: 0.75rem 1rem;
}

@media (max-width: 640px) {
  .tour-popup-overlay {
    display: none;
  }
}

/* ==========================================================================
   MOBILE OPTIMIZATIONS (≤ 768px)
   ========================================================================== */

/* ---------- Base mobile resets ---------- */
@media (max-width: 768px) {
  html { -webkit-text-size-adjust: 100%; }

  body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  .container {
    padding: 0 16px;
  }

  section {
    padding: 3rem 0;
  }

  .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
  }
}

/* ---------- Navbar mobile ---------- */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 0;
  }
  .navbar.is-scrolled {
    padding: 0.75rem 0;
  }

  .logo {
    font-size: 1.25rem;
    letter-spacing: 0.2em;
  }

  .logo-img {
    height: 50px;
  }

  .mobile-menu {
    padding: 1rem 16px;
    gap: 0;
  }
  .mobile-menu a {
    padding: 0.875rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
  }
  .mobile-menu .btn {
    margin-top: 0.5rem;
    min-height: 44px;
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Hero mobile ---------- */
@media (max-width: 768px) {
  .hero {
    min-height: 85vh;
  }
  .hero-content {
    padding: 3rem 0 6rem;
    text-align: center;
    max-width: 100%;
  }
  .hero-content h1 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    line-height: 1.15;
  }
  .hero-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------- Search bar mobile ---------- */
@media (max-width: 768px) {
  .search-bar {
    margin-top: -2.5rem;
    margin-bottom: 3rem;
    padding: 1.25rem;
    gap: 1rem;
  }
  .field label {
    font-size: 0.65rem;
  }
  .field select,
  .field input {
    padding: 0.75rem 0;
    font-size: 1rem;
    min-height: 44px;
  }
  .search-bar .btn {
    width: 100%;
    min-height: 44px;
    margin-top: 0.25rem;
  }
}

/* ---------- Section headings mobile ---------- */
@media (max-width: 768px) {
  .section-heading {
    margin-bottom: 2.5rem;
  }
  .section-heading h2 {
    font-size: clamp(1.15rem, 5vw, 1.65rem);
  }
  .eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
  }
}

/* ---------- Value props mobile ---------- */
@media (max-width: 768px) {
  .value-props {
    gap: 2rem;
    margin-top: 2rem;
  }
  .value-prop {
    padding: 0;
  }
  .value-prop .icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
  }
  .value-prop h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
  }
  .value-prop p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

/* ---------- Tour cards mobile ---------- */
@media (max-width: 768px) {
  .tour-card .tour-body {
    padding: 1.25rem;
  }
  .tour-card h2.tour-title {
    font-size: 1.15rem;
  }
  .tour-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-top: 1rem;
  }
  .tour-footer .btn {
    width: 100%;
    text-align: center;
    min-height: 44px;
  }
}

/* ---------- Gallery grid (home) mobile ---------- */
@media (max-width: 768px) {
  .gallery-grid {
    grid-auto-rows: 180px;
    gap: 0.75rem;
  }
  .gallery-item .tag {
    padding: 1rem;
    opacity: 1;
  }
  .gallery-item .tag strong {
    font-size: 1.1rem;
  }
}

/* ---------- Split section mobile ---------- */
@media (max-width: 768px) {
  .split {
    gap: 2rem;
  }
  .split-text p {
    font-size: 0.95rem;
    line-height: 1.65;
  }
  .split .btn {
    width: 100%;
    min-height: 44px;
  }
  .split-text .btn + .btn {
    margin-left: 0 !important;
    margin-top: 0.75rem;
  }
}

/* ---------- Page header mobile ---------- */
@media (max-width: 768px) {
  .page-header {
    padding: 8rem 0 3rem;
  }
  .page-header h1 {
    font-size: clamp(1.6rem, 7vw, 2.25rem);
  }
  .page-header p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .breadcrumb {
    font-size: 0.75rem;
  }
}

/* ---------- Filter bar mobile ---------- */
@media (max-width: 768px) {
  .filter-bar {
    gap: 0.5rem;
    margin-bottom: 2rem;
  }
}

/* ---------- Tour detail mobile ---------- */
@media (max-width: 768px) {
  .tour-banner {
    min-height: 50vh;
  }
  .tour-banner-content {
    padding: 2rem 0 2.5rem;
  }
  .tour-banner-content h1 {
    font-size: clamp(1.75rem, 8vw, 2.1rem);
    margin: 0.4rem 0;
  }
  .tour-banner-meta {
    gap: 0.75rem;
    font-size: 0.8rem;
    margin-top: 0.75rem;
  }
  .tour-banner-meta svg {
    width: 15px;
    height: 15px;
  }

  .tour-content h2 {
    font-size: 1.3rem;
    margin: 2rem 0 0.75rem;
  }
  .tour-content p {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .includes-list {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .includes-list li {
    font-size: 0.9rem;
  }

  .itinerary {
    padding-left: 1.25rem;
  }
  .itinerary li {
    font-size: 0.9rem;
    padding-bottom: 1.25rem;
  }
  .itinerary li strong {
    font-size: 0.95rem;
  }

  .tour-gallery {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .tour-gallery img {
    aspect-ratio: 16/10;
  }

  .booking-summary {
    padding: 1.5rem;
  }
  .booking-summary .price {
    font-size: 1.5rem;
  }
  .booking-summary dl {
    font-size: 0.85rem;
    gap: 0.5rem 0.75rem;
  }
  .booking-summary .btn {
    min-height: 44px;
  }
}

/* ---------- Search bar 2-col intermediate ---------- */
@media (max-width: 860px) and (min-width: 561px) {
  .search-bar {
    gap: 1.25rem;
  }
  .search-bar .btn {
    min-height: 44px;
  }
}

/* ---------- Gallery page mobile ---------- */
@media (max-width: 768px) {
  .gallery-page-grid {
    gap: 0.75rem;
  }
  .gallery-tile {
    aspect-ratio: 4/3;
  }
  .gallery-tile .tag {
    opacity: 1;
    padding: 0.75rem;
    font-size: 0.85rem;
  }
  .load-more-wrap {
    margin-top: 2rem;
  }
  .load-more-wrap .btn {
    min-height: 44px;
    width: 100%;
  }
}

/* ---------- Contact cards mobile ---------- */
@media (max-width: 768px) {
  .contact-intro {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
  }
  .contact-card {
    padding: 2rem 1.25rem;
  }
  .contact-card .icon {
    width: 36px;
    height: 36px;
  }
.contact-card h2.contact-card-title {
    font-size: 0.95rem;
  }
  .contact-card p {
    font-size: 0.85rem;
  }
  .contact-card .btn {
    min-height: 44px;
    width: 100%;
  }
}

/* ---------- Booking form mobile ---------- */
@media (max-width: 768px) {
  .booking-card {
    padding: 1.5rem;
  }
  .booking-form {
    gap: 1.25rem;
  }
  .booking-form input,
  .booking-form select,
  .booking-form textarea {
    padding: 0.75rem;
    font-size: 1rem;
    min-height: 44px;
  }
  .booking-form textarea {
    min-height: 100px;
  }
  .consent {
    font-size: 0.8rem;
    line-height: 1.5;
  }
  .consent input {
    min-width: 20px;
    min-height: 20px;
    flex-shrink: 0;
  }
}

/* ---------- Footer mobile ---------- */
@media (max-width: 768px) {
  footer {
    padding: 3.5rem 0 1.5rem;
  }
  .footer-grid {
    gap: 2rem;
    padding-bottom: 2rem;
  }
  .footer-about {
    max-width: 100%;
    font-size: 0.85rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  .footer-bottom .legal-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .socials {
    margin-top: 1rem;
  }
  .socials a {
    width: 38px;
    height: 38px;
  }
}

/* ---------- WhatsApp FAB mobile ---------- */
@media (max-width: 960px) {
  .page-tour .whatsapp-fab {
    display: none;
  }
}
@media (max-width: 768px) {
  .whatsapp-fab {
    width: 52px;
    height: 52px;
    bottom: 1.25rem;
    right: 1.25rem;
  }
  .whatsapp-fab svg {
    width: 26px;
    height: 26px;
  }
}

/* ---------- Socials row (nosotros) mobile ---------- */
@media (max-width: 768px) {
  .socials-row {
    gap: 0.75rem;
  }
  .socials-row a {
    width: 46px;
    height: 46px;
  }
}

/* ---------- Legal pages mobile ---------- */
@media (max-width: 768px) {
  .legal-page {
    padding: 7rem 0 4rem;
  }
  .legal-page h1 {
    font-size: 1.75rem;
  }
  .legal-page h2 {
    font-size: 1.15rem;
  }
  .legal-page p,
  .legal-page li {
    font-size: 0.9rem;
    line-height: 1.7;
  }
}

/* ---------- Reseñas mobile ---------- */
@media (max-width: 768px) {
  .review-card {
    padding: 1.5rem;
  }
  .review-stars {
    font-size: 1rem;
  }
  .review-text {
    font-size: 0.9rem;
  }
  .star-btn {
    font-size: 1.75rem;
  }
}

/* ---------- Body scroll lock when mobile menu is open ---------- */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* ---------- Filter bar mobile: proper touch targets ---------- */
@media (max-width: 768px) {
  .filter-bar button {
    padding: 0.75rem 1.25rem;
    font-size: 0.78rem;
    min-height: 44px;
  }
}

/* ---------- Tour detail mobile CTA bar ---------- */
.tour-mobile-cta {
  display: none;
}
@media (max-width: 960px) {
  .tour-detail {
    padding-bottom: 5rem;
  }
  .tour-mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 95;
    background: var(--color-card);
    border-top: 1px solid var(--color-border);
    padding: 0.75rem 16px;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  }
  .tour-mobile-cta .price {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--color-primary);
    white-space: nowrap;
  }
  .tour-mobile-cta .price span {
    display: none;
  }
  .tour-mobile-cta .btn {
    flex: 1;
    min-height: 44px;
  }
}
@media (max-width: 768px) {
  .tour-mobile-cta {
    padding: 0.625rem 12px;
  }
  .tour-mobile-cta .price {
    font-size: 1rem;
  }
}

/* ---------- Gallery Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox[hidden] {
  display: none;
}
.lightbox.is-open {
  opacity: 1;
}
.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
}
.lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  text-align: center;
  text-decoration: none;
  transition: color 0.2s ease;
}
a.lightbox-caption[href] {
  cursor: pointer;
}
a.lightbox-caption[href]:hover {
  color: #fff;
  text-decoration: underline;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--icon-lightbox);
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}
.lightbox-close:hover { opacity: 0.7; }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--icon-lightbox);
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.25); }

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
  }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   UX IMPROVEMENTS
   ========================================================================== */

/* ---------- WhatsApp pulse animation ---------- */
@keyframes whatsapp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-fab { animation: whatsapp-pulse 2s ease-in-out 3; }

/* ---------- Smooth hover transitions for interactive elements ---------- */
.btn {
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 28, 50, 0.15);
}
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ---------- Card hover lift ---------- */
.tour-card, .review-card, .contact-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tour-card:hover, .review-card:hover, .contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10, 28, 50, 0.12);
  border-color: var(--color-accent-secondary);
}

/* ---------- Staggered reveal animation ---------- */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Image lazy loading placeholder ---------- */
img[loading="lazy"] {
  background: var(--color-muted);
}

/* ---------- Focus ring improvement ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}