/* =========================================================================
   MR BU YACHTS & TRAVEL
   Luxury Experience — Updated Design
   ========================================================================= */

:root {
  /* Brand Palette */
  --navy: #001034;
  --blue: #47a0d2;
  --teal-dark: #047670;
  --teal-light: #7bc0b6;
  --taupe: #dcd9d7;
  --off-white: #f8f8f8;
  --white: #ffffff;

  /* Typography */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-pad: 8rem 0;
  
  /* Utils */
  --transition: all 0.4s ease;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  font-family: var(--font-body);
  background-color: var(--off-white);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========== TYPOGRAPHY & GLOBALS ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 400;
}

h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--teal-dark);
}

.destinations h2 em,
.exp-block.reversed h2 em,
.reviews h2 em {
  color: var(--teal-light);
}

p {
  margin-bottom: 1.5rem;
  font-weight: 300;
  font-size: 1.1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--section-pad);
}

/* ========== UTILS ========== */
.label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--teal-light);
  margin-bottom: 1rem;
}

.divider {
  width: 60px;
  height: 2px;
  background-color: var(--navy);
  margin: 2rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.section-header .divider {
  margin: 2rem auto;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--teal-dark);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--navy);
}

.btn-outline {
  border-color: var(--white);
  color: var(--white);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--navy);
}

.btn-dark {
  background-color: var(--navy);
  color: var(--white);
}

.btn-dark:hover {
  background-color: var(--teal-dark);
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
}
.btn-whatsapp:hover {
  background-color: #128C7E;
}

.btn-instagram {
  background-color: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-instagram svg {
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.btn-instagram:hover {
  background-color: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}

.btn-instagram:hover svg {
  transform: scale(1.1) rotate(-4deg);
}

.btn-whatsapp-outline {
  background-color: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-whatsapp-outline svg {
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.btn-whatsapp-outline:hover {
  background-color: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}

.btn-whatsapp-outline:hover svg {
  transform: scale(1.1);
}


/* ========== NAVBAR ========== */
/* El navbar siempre está on-screen (no se desliza fuera). Solo cambia su fondo
   y padding cuando el usuario hace scroll (.nav-visible). El logo y los nav-links
   se desvanecen mediante opacity, manteniendo el switch EN/ES siempre visible
   y perfectamente alineado al ser un flex-item natural del navbar. */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 0;
  z-index: 1000;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.nav-logo {
  margin-right: auto; /* empuja a logo a la izq, deja todo lo demás a la der */
}

.navbar.nav-visible {
  background-color: rgba(0, 16, 52, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  padding: 0.85rem 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* Logo y nav-links se desvanecen hasta que el navbar entra a .nav-visible.
   Solo aplica en desktop — en mobile el menú colapsable usa transform: translateX
   y siempre debe responder al hamburger. */
@media (min-width: 1025px) {
  .nav-logo,
  .navbar > .nav-links {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .navbar.nav-visible .nav-logo,
  .navbar.nav-visible > .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--white);
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.nav-logo span {
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  align-items: center;
}

.nav-links > a,
.nav-dropdown-trigger {
  position: relative;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.78);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  padding: 0.35rem 0;
  transition: color 0.3s ease;
}

.nav-links > a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: var(--teal-light);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links > a:not(.nav-cta):hover::after,
.nav-links > a:not(.nav-cta).active::after {
  transform: scaleX(1);
}

.nav-links > a:hover,
.nav-dropdown-trigger:hover,
.nav-links > a.active {
  color: var(--white);
}

/* Nav dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger svg {
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--navy);
  border: 1px solid rgba(255,255,255,0.1);
  min-width: 200px;
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 0;
  width: 100%;
  height: 1rem;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  margin-top: 0.5rem;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.nav-dropdown-menu a:hover {
  color: var(--white);
  background-color: rgba(255,255,255,0.05);
}


.nav-cta {
  background-color: var(--teal-dark);
  color: var(--white) !important;
  padding: 0.6rem 1.25rem !important;
  border-radius: 999px;
  letter-spacing: 0.14em !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Switch de idioma EN | ES */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}

/* El switch EN/ES dentro del navbar es un flex-item normal — align-items:center
   del navbar lo alinea automáticamente con los nav-links. */
.lang-switch--floating {
  margin-left: 1rem;
}

.lang-switch--floating .lang-btn {
  padding: 0;
  font-size: 0.74rem;
  line-height: 1.5;
}
.lang-switch--floating .lang-divider {
  line-height: 1.5;
  margin: 0 0.4rem;
}

/* La versión dentro del menú mobile sólo aparece en breakpoints chicos */
.lang-switch--menu {
  display: none;
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  letter-spacing: inherit;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  text-transform: uppercase;
  transition: color 0.3s ease;
  line-height: 1;
}

.lang-btn[aria-pressed="true"] {
  color: var(--white);
}

.lang-btn:hover,
.lang-btn:focus-visible {
  color: var(--white);
  outline: none;
}

.lang-divider {
  color: rgba(255, 255, 255, 0.25);
  font-weight: 300;
  user-select: none;
}
.nav-cta:hover {
  background-color: var(--teal-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(89, 162, 167, 0.35);
}
.nav-cta::after { display: none !important; }

.nav-hamburger {
  display: none;
  position: relative;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10001;
}
.nav-hamburger span {
  display: block;
  position: absolute;
  left: 4px;
  width: 24px;
  height: 1.5px;
  background-color: var(--white);
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-hamburger span:nth-child(1) { top: 9px; }
.nav-hamburger span:nth-child(2) { top: 15px; }
.nav-hamburger span:nth-child(3) { top: 21px; }

.nav-hamburger.active span:nth-child(1) {
  top: 15px;
  transform: rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  top: 15px;
  transform: rotate(-45deg);
}


/* ========== HERO ========== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero-video-wrap {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
}

.hero-video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0, 16, 52, 0.4), rgba(0, 16, 52, 0.8));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 0 2rem;
}

.hero h1 {
  font-size: clamp(4rem, 8vw, 6rem);
  margin: 1rem 0;
  letter-spacing: 0.05em;
}

.hero-tagline {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-style: italic;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  opacity: 0.8;
}

.hero-cta-group {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-line {
  width: 1px; height: 50px;
  background-color: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}
.scroll-line::before {
  content: '';
  position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background-color: var(--white);
  animation: scrollDown 2s infinite;
}
@keyframes scrollDown {
  100% { top: 100%; }
}


/* ========== SCROLL SNAP SECTIONS ========== */
.section, .site-footer {
  scroll-snap-align: start;
}

/* ========== ABOUT ========== */
.about {
  background-color: var(--off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: auto;
}

.highlight {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--teal-dark);
  margin: 2rem 0;
  border-left: 2px solid var(--teal-dark);
  padding-left: 1.5rem;
}


/* ========== FLEET ========== */
.fleet {
  background-color: var(--taupe);
  position: relative;
}

/* Marquee infinito de la flota */
.fleet-marquee {
  position: relative;
  width: 100%;
  margin: 4rem 0 3rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.fleet-marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: fleet-scroll 60s linear infinite;
  will-change: transform;
}

.fleet-marquee:hover .fleet-marquee-track {
  animation-play-state: paused;
}

.fleet-marquee-item {
  flex-shrink: 0;
  width: 360px;
  height: 280px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 16, 52, 0.18);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.fleet-marquee-item:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 22px 50px rgba(0, 16, 52, 0.28);
}

.fleet-marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.fleet-marquee-item:hover img {
  transform: scale(1.06);
}

@keyframes fleet-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 0.75rem)); }
}

.fleet-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1rem;
  text-align: center;
}

.fleet-cta-note {
  font-style: italic;
  color: rgba(0, 16, 52, 0.7);
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 1024px) {
  .fleet-marquee-item {
    width: 280px;
    height: 220px;
  }
}

@media (max-width: 768px) {
  .fleet-marquee {
    margin: 3rem 0 2rem;
  }
  .fleet-marquee-track {
    gap: 1rem;
    animation-duration: 45s;
  }
  .fleet-marquee-item {
    width: 220px;
    height: 180px;
  }
  @keyframes fleet-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-50% - 0.5rem)); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .fleet-marquee-track {
    animation: none;
  }
  .fleet-marquee {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}


/* ========== EXPERIENCES ========== */
.experiences {
  background-color: var(--off-white);
  padding: 0;
}

/* Intro: itinerarios + map */
.exp-intro {
  background-color: var(--navy);
  color: var(--white);
  padding: 8rem 0;
  scroll-snap-align: start;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.exp-intro .label {
  color: var(--teal-light);
}

.exp-intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.exp-intro-text h2 {
  color: var(--white);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.exp-intro-text h2 em {
  color: var(--teal-light);
}

.exp-intro-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.exp-intro-lead strong {
  color: var(--white);
  font-weight: 500;
}

.exp-intro-modes {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 2rem;
}

.exp-mode {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.exp-mode-num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--teal-light);
  min-width: 32px;
  line-height: 1.2;
}

.exp-mode h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.exp-mode p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

.exp-map-illustration {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
}

.exp-map-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1024px) {
  .exp-intro-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .exp-map-illustration {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .exp-intro {
    padding: 5rem 0;
  }
}

.exp-block {
  display: flex;
  min-height: 100vh;
  scroll-snap-align: start;
}
.exp-block.reversed {
  flex-direction: row-reverse;
  background-color: var(--navy);
  color: var(--white);
}
.exp-block.reversed .label { color: var(--teal-light); }
.exp-block.reversed .btn-dark { background-color: var(--white); color: var(--navy); }

.exp-image, .exp-text {
  flex: 1;
}

.exp-image img {
  width: 100%; height: 100%; object-fit: cover;
}

.exp-text {
  padding: 8rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ========== DESTINATIONS ========== */
.destinations {
  background-color: var(--navy);
  color: var(--white);
}

.destinations .divider { background-color: var(--teal-light); }
.destinations .section-header p { opacity: 0.8; }

.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}

.dest-item {
  position: relative;
  height: 400px;
  overflow: hidden;
  cursor: pointer;
}

.dest-item img {
  width: 100%; height: 100%; object-fit: cover; transition: var(--transition);
}

.dest-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 16, 52, 0.8), transparent);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem;
  opacity: 0; transition: var(--transition);
}

.dest-item:hover img { transform: scale(1.05); }
.dest-item:hover .dest-overlay { opacity: 1; }

.dest-overlay h4 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--white); }
.dest-overlay p { margin: 0; font-size: 0.9rem; opacity: 0.8; }


/* ========== WELLNESS ========== */
.wellness {
  background-color: var(--taupe);
}

.wellness-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.wellness-image img {
  width: 100%;
  height: auto;
}

.wellness-cards {
  display: flex; flex-direction: column; gap: 2rem;
}

.wellness-card {
  background: var(--white);
  padding: 2rem;
}

.wellness-card-icon {
  margin-bottom: 1rem;
  color: var(--teal-dark);
}

.wellness-card h4 {
  font-family: var(--font-body);
  font-size: 1.2rem; margin-bottom: 0.5rem; font-weight: 500;
}


/* ========== COMPLEMENTA ========== */
.complementa {
  background-color: var(--off-white);
}

.complementa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.complementa-card {
  background-color: var(--white);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}

.complementa-card:hover {
  border-color: var(--teal-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 16, 52, 0.08);
}

.complementa-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: rgba(4, 118, 112, 0.08);
  margin: 0 auto 1.5rem;
  color: var(--teal-dark);
}

.complementa-card h4 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.complementa-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
  opacity: 0.7;
  line-height: 1.6;
}


/* ========== STAYS ========== */
.stays {
  background-color: var(--navy);
  color: var(--white);
}

.stays .label {
  color: var(--teal-light);
}

.stays .section-header p {
  opacity: 0.8;
}

.stays .divider {
  background-color: var(--teal-light);
}

.stays-scroll {
  display: flex; gap: 2rem; overflow-x: auto; padding: 2rem 5%; margin-top: 2rem; scroll-snap-type: x mandatory;
}
.stays-scroll::-webkit-scrollbar { display: none; }

.stay-card {
  flex: 0 0 350px; scroll-snap-align: start; position: relative; height: 500px; overflow: hidden;
}

.stay-card img {
  width: 100%; height: 100%; object-fit: cover;
}

.stay-card-overlay {
  position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(0, 16, 52, 0.9); padding: 2rem; transform: translateY(0); transition: var(--transition);
}

.stay-card-overlay .label {
  color: var(--teal-light);
}

.stay-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--white); }
.stay-card p { margin: 0; font-size: 0.9rem; color: rgba(255,255,255,0.7); }


/* ========== CONTACT / FOOTER ========== */
/* ========== SITE FOOTER (minimal) ========== */
.site-footer {
  background-color: var(--navy);
  color: var(--white);
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.site-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
}

.footer-logo { font-family: var(--font-heading); font-size: 1.5rem; }
.footer-logo span { font-weight: 600; }

.footer-copy { margin: 0; font-size: 0.8rem; color: rgba(255,255,255,0.5); }

.footer-location {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

.footer-legal-links { margin: 0; font-size: 0.78rem; }
.footer-legal-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding-bottom: 1px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.footer-legal-links a:hover { color: var(--white); border-color: var(--white); }

/* ========== CONTACT MODAL ========== */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}
.contact-modal[aria-hidden="false"] { display: flex; }

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 16, 52, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: modal-fade 0.3s ease both;
  cursor: pointer;
}

.contact-modal-panel {
  position: relative;
  z-index: 1;
  background-color: var(--navy);
  color: var(--white);
  padding: 3.5rem 3rem 3rem;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255,255,255,0.08);
  animation: modal-pop 0.35s cubic-bezier(0.2, 0.8, 0.25, 1) both;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.contact-modal-close {
  position: absolute;
  top: 0.85rem; right: 0.85rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease, background-color 0.3s ease;
}
.contact-modal-close:hover {
  color: var(--white);
  background-color: rgba(255,255,255,0.08);
}

.contact-modal-panel .label {
  display: block;
  margin-bottom: 1rem;
  color: var(--teal-light);
}
.contact-modal-panel h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}
.contact-modal-panel h2 em { color: var(--teal-light); font-style: italic; }
.contact-modal-panel p {
  color: rgba(255,255,255,0.75);
  max-width: 440px;
  margin: 0 auto 2rem;
  font-size: 0.97rem;
  line-height: 1.6;
}
.contact-modal-ctas {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.contact-modal-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

body.modal-open { overflow: hidden; }

@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-pop {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
  .contact-modal-panel {
    padding: 3rem 1.5rem 2rem;
    border-radius: 12px;
  }
  .contact-modal-ctas { flex-direction: column; align-items: stretch; }
  .contact-modal-ctas .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-modal-backdrop, .contact-modal-panel { animation: none; }
}


/* ========== REVIEWS ========== */
.reviews {
  background-color: var(--off-white);
  position: relative;
}

.reviews-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(0, 16, 52, 0.1);
}

.reviews-rating {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reviews-stars {
  display: flex;
  gap: 2px;
}

.reviews-rating-text {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-body);
}

.reviews-rating-text strong {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
}

.reviews-rating-text span {
  font-size: 0.9rem;
  color: rgba(0, 16, 52, 0.6);
}

.reviews-title {
  text-align: right;
}

.reviews-title h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.reviews-title h2 em {
  color: var(--teal-dark);
}

/* Skeleton loader */
.reviews-skeleton[hidden],
.reviews-columns[hidden] {
  display: none !important;
}

.reviews-skeleton {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  max-height: 640px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.reviews-skel-col {
  flex: 1 1 0;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.reviews-skel-col-2 { display: none; }
.reviews-skel-col-3 { display: none; }

@media (min-width: 768px) {
  .reviews-skel-col-2 { display: flex; }
}
@media (min-width: 1024px) {
  .reviews-skel-col-3 { display: flex; }
}

.skel-card {
  height: 220px;
  border-radius: 24px;
  background: linear-gradient(90deg, rgba(0, 16, 52, 0.04) 0%, rgba(0, 16, 52, 0.08) 50%, rgba(0, 16, 52, 0.04) 100%);
  background-size: 200% 100%;
  animation: skelShimmer 1.6s ease-in-out infinite;
  border: 1px solid rgba(0, 16, 52, 0.06);
}

@keyframes skelShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* 3-column infinite scroll testimonials */
.reviews-columns {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  max-height: 640px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.reviews-col {
  flex: 1 1 0;
  max-width: 340px;
  overflow: hidden;
}

.reviews-col-2 {
  display: none;
}

.reviews-col-3 {
  display: none;
}

@media (min-width: 768px) {
  .reviews-col-2 { display: block; }
}

@media (min-width: 1024px) {
  .reviews-col-3 { display: block; }
}

.reviews-track {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: marqueeVertical var(--duration, 32s) linear infinite;
  will-change: transform;
}

.reviews-columns:hover .reviews-track {
  animation-play-state: paused;
}

/* Modo estático: cuando usamos el fallback (pocas reseñas) no animamos
   ni duplicamos — se muestran tal cual, sin marquee ni repeticiones. */
.reviews-columns.is-static .reviews-track {
  animation: none;
}

.reviews-columns.is-static {
  align-items: start;
}

@keyframes marqueeVertical {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.review-card {
  background: var(--white);
  padding: 2rem;
  border: 1px solid rgba(0, 16, 52, 0.08);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 16, 52, 0.05);
  flex-shrink: 0;
}

.review-stars {
  display: flex;
  gap: 1px;
}

.review-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--navy);
  font-style: italic;
  font-weight: 300;
  margin: 0;
  flex-grow: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 16, 52, 0.08);
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  flex-shrink: 0;
  overflow: hidden;
}

.review-avatar-img {
  object-fit: cover;
  display: block;
}

.review-author h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(4, 118, 112, 0.1);
  color: var(--teal-dark);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.review-author span {
  font-size: 0.8rem;
  color: rgba(0, 16, 52, 0.55);
}

.reviews-footer {
  text-align: center;
  margin-top: 3rem;
}

.reviews-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal-dark);
  font-weight: 500;
  border-bottom: 1px solid var(--teal-dark);
  padding-bottom: 4px;
  transition: var(--transition);
}

.reviews-link:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
  gap: 0.85rem;
}

@media (max-width: 900px) {
  .reviews-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: left;
    align-items: start;
  }
  .reviews-title {
    text-align: left;
  }
}

/* ========== CÓMO RESERVAR (4 pasos) ========== */
.how-to-book {
  background-color: var(--off-white);
  position: relative;
}

.how-to-book .section-header h2 em {
  color: var(--teal-dark);
}

.booking-steps {
  list-style: none;
  margin: 4rem auto 0;
  padding: 0;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

/* Línea sutil que conecta los 4 pasos en desktop */
.booking-steps::before {
  content: "";
  position: absolute;
  top: 4.5rem;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--teal-light) 0 6px,
    transparent 6px 12px
  );
  opacity: 0.6;
  z-index: 0;
}

.booking-step {
  position: relative;
  z-index: 1;
  background-color: var(--white);
  border: 1px solid rgba(0, 16, 52, 0.06);
  border-radius: 12px;
  padding: 2.25rem 1.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.booking-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 16, 52, 0.08);
  border-color: rgba(4, 118, 112, 0.2);
}

.booking-step-num {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--teal-dark);
}

.booking-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--navy);
  color: var(--teal-light);
  margin: 0.4rem 0 1rem;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.booking-step:hover .booking-step-icon {
  background-color: var(--teal-dark);
  color: var(--white);
}

.booking-step h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--navy);
  margin: 0;
  line-height: 1.2;
}

.booking-step p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(0, 16, 52, 0.7);
  margin: 0.25rem 0 0;
}

.how-to-book-cta {
  text-align: center;
  margin-top: 3.5rem;
}

@media (max-width: 1024px) {
  .booking-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .booking-steps::before {
    display: none;
  }
}

@media (max-width: 600px) {
  .booking-steps {
    grid-template-columns: 1fr;
    margin-top: 3rem;
    gap: 1rem;
  }
  .booking-step {
    padding: 2rem 1.25rem 1.75rem;
  }
  .booking-step h3 {
    font-size: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-track {
    animation: none;
  }
}


/* ========== REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }


/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .about-grid, .wellness-grid, .celebrations-grid { grid-template-columns: 1fr; }
  .exp-block, .exp-block.reversed { flex-direction: column; }
  .exp-image, .exp-text { flex: none; }
  .exp-image { height: 50vh; }
  .exp-text { padding: 4rem 2rem; }
  .complementa-grid { grid-template-columns: repeat(2, 1fr); }

  /* Mobile-style nav from tablet down — evita que los links se rompan en 2 líneas */
  .navbar { padding: 1rem 1.5rem; }
  .navbar.nav-visible { padding: 0.85rem 1.5rem; }
  /* Mobile menu colapsable.
     Usa right: -100% / right: 0 en vez de transform para evitar cualquier
     colisión con otras reglas de transform del navbar. */
  .navbar > .nav-links {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    left: auto !important;
    width: 100% !important;
    height: 100vh !important;
    background-color: rgba(0, 16, 52, 0.96) !important;
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2.5rem !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: right 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  .navbar > .nav-links.active { right: 0 !important; }
  .nav-links > a, .nav-dropdown-trigger { font-size: 1rem; letter-spacing: 0.18em; }
  .nav-cta { font-size: 0.85rem !important; padding: 0.85rem 2rem !important; }
  .nav-hamburger { display: block; }
  /* En mobile el lang-switch flotante se esconde y vive dentro del menú */
  .lang-switch--floating { display: none; }
  .lang-switch--menu { display: inline-flex; font-size: 0.95rem; letter-spacing: 0.18em; gap: 0.4rem; }
  .lang-switch--menu .lang-btn { padding: 0.6rem 0.8rem; }
}

@media (max-width: 768px) {
  html { scroll-snap-type: none; }
  /* En mobile el navbar siempre tiene fondo navy (no necesita .nav-visible) */
  .navbar { background-color: rgba(0, 16, 52, 0.85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .hero h1 { font-size: 3.5rem; }
  .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
  .complementa-grid { grid-template-columns: 1fr; }

  /* Mobile dropdown — show as flat list */
  .nav-dropdown-menu {
    position: static;
    transform: none;
    background: transparent;
    border: none;
    opacity: 1;
    visibility: visible;
    margin-top: 0;
    padding: 0;
  }
  .nav-dropdown-trigger svg {
    display: none;
  }
  .nav-dropdown-menu a {
    padding: 0.5rem 0;
    text-align: center;
  }

  .celebrations-images {
    grid-template-columns: 1fr;
  }
  .celeb-img-main, .celeb-img-secondary {
    height: 250px;
  }
}

/* ========== ITINERARIOS — Selector destinos ========== */
.itinerarios {
  background-color: var(--off-white);
}

.itinerarios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 4rem;
}

.itinerary-card {
  position: relative;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 16, 52, 0.06);
  transition: var(--transition);
  text-decoration: none;
  color: var(--navy);
}

.itinerary-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 16, 52, 0.16);
}

.itinerary-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--taupe);
}

.itinerary-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.itinerary-card:hover .itinerary-image img {
  transform: scale(1.05);
}

.itinerary-content {
  padding: 2.5rem 2rem 2rem;
}

.itinerary-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--teal-dark);
  margin-bottom: 0.75rem;
  font-weight: 500;
  font-style: italic;
}

.itinerary-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--navy);
}

.itinerary-content p {
  font-size: 1rem;
  color: rgba(0, 16, 52, 0.72);
  margin-bottom: 1.75rem;
  font-weight: 300;
  line-height: 1.6;
}

.itinerary-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  color: var(--teal-dark);
}

.itinerary-cta svg {
  transition: transform 0.3s ease;
}

.itinerary-card:hover .itinerary-cta svg {
  transform: translateX(6px);
}

@media (max-width: 768px) {
  .itinerarios-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-top: 2.5rem;
  }
  .itinerary-content {
    padding: 2rem 1.5rem 1.75rem;
  }
}

/* ========== DESTINO — Lista de paradas e itinerarios ========== */
.destino-route {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  border-top: 1px solid currentColor;
}

.destino-route li {
  position: relative;
  padding: 0.9rem 0 0.9rem 2.25rem;
  border-bottom: 1px solid currentColor;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: inherit;
  opacity: 0.92;
}

.destino-route li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.25rem;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%);
  opacity: 0.6;
}

.destino-route-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid currentColor;
}

.destino-route-grid li {
  border-bottom: 1px solid currentColor;
}

.destino-route-grid li:nth-child(odd) {
  padding-right: 1rem;
  border-right: 1px solid currentColor;
}

.destino-route-grid li:nth-child(even) {
  padding-left: 2.25rem;
}

.destino-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 1.75rem 0 2rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--teal-light);
  opacity: 0.85;
  font-weight: 400;
}

@media (max-width: 768px) {
  .destino-route-grid {
    grid-template-columns: 1fr;
  }
  .destino-route-grid li:nth-child(odd) {
    padding-right: 0;
    border-right: none;
  }
  .destino-route-grid li:nth-child(even) {
    padding-left: 2.25rem;
  }
}

/* ========== LOS CABOS — Header ========== */
/* ========== BACH & CELEBRACIONES ========== */
.bach {
  background-color: var(--white);
}

.bach-cta {
  text-align: center;
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .bach-cta {
    margin-top: 2rem;
  }
}


/* ========== EXPERIENCIAS ESPECIALES ========== */
.especiales {
  background-color: var(--off-white);
  padding-bottom: 0;
}

/* Expanding cards: 4 paneles que se expanden al hover/focus/click.
   El JS ajusta dinámicamente las tracks (active = 5fr, inactivos = 1fr). */
.expanding-cards {
  list-style: none;
  margin: 4rem auto 0;
  padding: 0;
  width: 100%;
  max-width: 1280px;
  display: grid;
  grid-template-columns: 5fr 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 0.85rem;
  height: 520px;
  transition: grid-template-columns 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              grid-template-rows 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.exp-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  background-color: var(--navy);
  min-width: 0;
  min-height: 0;
  outline: none;
  transition: box-shadow 0.4s ease;
}

.exp-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(11, 78, 84, 0.5);
}

.exp-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  filter: grayscale(0.85) brightness(0.95);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.exp-card[data-active="true"] img {
  transform: scale(1);
  filter: grayscale(0) brightness(1);
}

.exp-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 16, 52, 0.88) 0%, rgba(0, 16, 52, 0.45) 45%, transparent 100%);
  z-index: 1;
}

/* Título vertical (cuando la card está colapsada) */
.exp-card-vertical {
  position: absolute;
  bottom: 1.75rem;
  left: 1.5rem;
  z-index: 2;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  transform-origin: left bottom;
  transform: rotate(-90deg) translateY(-0.6rem);
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.exp-card[data-active="true"] .exp-card-vertical {
  opacity: 0;
}

/* Contenido revelado cuando la card está activa */
.exp-card-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.25rem 2rem;
  gap: 0.85rem;
  pointer-events: none;
}

.exp-card-content > * {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.exp-card[data-active="true"] .exp-card-content > * {
  opacity: 1;
  transform: translateY(0);
}

.exp-card[data-active="true"] .exp-card-icon { transition-delay: 0.1s; }
.exp-card[data-active="true"] .exp-card-num { transition-delay: 0.15s; }
.exp-card[data-active="true"] .exp-card-title { transition-delay: 0.2s; }
.exp-card[data-active="true"] .exp-card-desc { transition-delay: 0.28s; }
.exp-card[data-active="true"] .exp-card-note { transition-delay: 0.34s; }

.exp-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.25rem;
}

.exp-card-num {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.65);
}

.exp-card-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  margin: 0;
  max-width: 90%;
}

.exp-card-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 460px;
}

.exp-card-note {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  max-width: 460px;
}

@media (prefers-reduced-motion: reduce) {
  .expanding-cards,
  .exp-card img,
  .exp-card-content > * {
    transition: none !important;
  }
}


/* ========== CONVENIOS EXCLUSIVOS (sub-bloque) ========== */
.convenios-block {
  padding: 8rem 0;
  background-color: var(--navy);
  color: var(--white);
  position: relative;
  scroll-snap-align: start;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.convenios-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 5rem;
}

.convenios-header .label {
  color: var(--teal-light);
}

.convenios-header h2 {
  color: var(--white);
}

.convenios-header h2 em {
  color: var(--teal-light);
}

.convenios-header p {
  color: rgba(255, 255, 255, 0.7);
}

.convenios-header .divider {
  background-color: var(--teal-light);
  opacity: 0.5;
}

/* Row con los 5 logos en horizontal, todos visibles a la vez */
.convenios-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.5rem;
  align-items: center;
  justify-items: center;
  max-width: 1200px;
  margin: 4rem auto 0;
}

.convenio-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 110px;
  padding: 0 0.5rem;
}

.convenio-tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Unifica los logos como siluetas blancas elegantes sobre el navy */
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.convenio-tile:hover img {
  opacity: 1;
  transform: scale(1.04);
}

/* Excepción: logos con un diseño rico que merece conservar sus colores */
.convenio-tile--color img {
  filter: none;
  opacity: 1;
  background-color: var(--white);
  border-radius: 6px;
  padding: 0.4rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

@media (max-width: 900px) {
  .expanding-cards {
    grid-template-columns: 1fr !important;
    grid-template-rows: 5fr 1fr 1fr;
    height: 640px;
  }
  .exp-card-vertical {
    transform: none;
    bottom: auto;
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
    font-size: 0.85rem;
  }
  .exp-card-title { font-size: 1.65rem; }
  .exp-card-content { padding: 1.75rem 1.5rem; }

  .convenios-block {
    margin-top: 4rem;
    padding: 4rem 0;
  }
  .convenios-header {
    margin-bottom: 3rem;
  }
  .convenios-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1.5rem;
  }
  .convenio-tile {
    height: 90px;
  }
}

@media (max-width: 600px) {
  .convenios-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }
}

/* ========== PÁGINA LEGAL (Términos y Condiciones) ========== */
.legal-body {
  background-color: var(--off-white);
}

.legal-navbar {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 16, 52, 0.08);
}

.legal-page {
  padding: 8rem 0 5rem;
}

.legal-page .container {
  max-width: 820px;
}

.legal-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.legal-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
  color: var(--navy);
  margin: 0.5rem 0 0.75rem;
  line-height: 1.1;
}

.legal-header h1 em {
  color: var(--teal-dark);
  font-style: italic;
  font-weight: 300;
}

.legal-meta {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(0, 16, 52, 0.55);
  letter-spacing: 0.04em;
  margin: 0;
}

.legal-notice {
  background-color: rgba(123, 192, 182, 0.18);
  border-left: 3px solid var(--teal-dark);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 0 0 3rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--navy);
}

.legal-notice strong {
  color: var(--teal-dark);
}

.legal-notice a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.legal-content {
  font-family: var(--font-body);
  color: rgba(0, 16, 52, 0.85);
}

.legal-content section {
  margin-bottom: 2.75rem;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 0.85rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.legal-content p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}

.legal-content ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-content li {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.legal-content li::marker {
  color: var(--teal-dark);
}

.legal-content strong {
  color: var(--navy);
  font-weight: 600;
}

.legal-content a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--navy);
}

.legal-contact-list {
  list-style: none;
  padding: 0;
}

.legal-contact-list li {
  margin-bottom: 0.4rem;
}

.legal-back {
  text-align: center;
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(0, 16, 52, 0.1);
}

.legal-footer {
  padding: 2.5rem 0 2rem;
}

.footer-legal-links {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 1px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.footer-legal-links a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

@media (max-width: 700px) {
  .legal-page {
    padding: 6rem 0 3rem;
  }
  .legal-content h2 {
    font-size: 1.45rem;
  }
}

