/*
  RÍOS MEXICANOS — mejora visual para la portada
  Carga este archivo DESPUÉS de estilos.css y header&footer.css.
*/

:root {
  --rm-ink: #102a35;
  --rm-river: #087e8b;
  --rm-deep-river: #05565e;
  --rm-aqua: #c9f3f0;
  --rm-sand: #f7f4ed;
  --rm-orange: #f58b20;
  --rm-shadow: 0 16px 38px rgba(8, 49, 58, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--rm-ink);
  background: var(--rm-sand);
  line-height: 1.5;
}

/* Inicio: mantiene la fotografía como protagonista y mejora la lectura. */
.hero-intro {
  min-height: min(760px, 96svh);
  isolation: isolate;
  padding: 7.5rem 1.25rem 3rem;
}

/* Movimiento lento tipo cinemático: la imagen cobra vida sin distraer. */
.hero-img {
  transform: scale(1.06);
  transform-origin: 52% 50%;
  animation: hero-drift 18s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes hero-drift {
  from { transform: scale(1.06) translate3d(-0.7%, 0, 0); }
  to { transform: scale(1.15) translate3d(0.7%, -0.9%, 0); }
}

/* Una luz tenue en movimiento da profundidad sin afectar la lectura. */
.hero-intro::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 25% 30%, rgba(201, 243, 240, 0.18), transparent 34%);
  animation: hero-light 12s ease-in-out infinite alternate;
}

@keyframes hero-light {
  from { transform: translate3d(-3%, -2%, 0); opacity: 0.65; }
  to { transform: translate3d(5%, 3%, 0); opacity: 1; }
}

.hero-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(3, 32, 40, 0.78) 0%, rgba(3, 32, 40, 0.38) 52%, rgba(3, 32, 40, 0.08) 100%);
}

.intro-content {
  width: min(100%, 900px);
  align-items: flex-start;
  gap: 1.75rem;
  text-align: left;
}

.hero-textbox {
  padding: 1.5rem 1.65rem;
  border-left: 5px solid var(--rm-orange);
  background: rgba(3, 28, 35, 0.42);
  backdrop-filter: blur(5px);
}

.hero-title,
.bene-textbox h2,
.contenedor-texto h2 {
  color: #fff;
  letter-spacing: 0.035em;
  text-shadow: none;
}

.hero-title {
  margin: 0;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
}

.hero-subtitle {
  position: static;
  display: block;
  width: auto;
  margin-top: 0.35rem;
  color: var(--rm-aqua);
  font-family: var(--ff-primario);
  font-size: clamp(1.05rem, 2.5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: none;
}

.btn-reservar {
  align-items: center;
  margin-top: 0;
}

.btn-whatsapp,
.btn-reservar-index a {
  border: 2px solid transparent;
  border-radius: 0.55rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.btn-whatsapp {
  padding: 0.85rem 1.25rem;
}

.btn-whatsapp:hover,
.btn-reservar-index a:hover,
.btn-whatsapp:focus-visible,
.btn-reservar-index a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.btn-whatsapp:focus-visible,
.btn-reservar-index a:focus-visible,
.slide-card:focus-visible,
.packages-card:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 44px rgba(8, 49, 58, 0.22);
}

.card:hover img {
  transform: scale(1.04);
}

.card-content p {
  margin: 0;
  color: #4d5d63;
  font-size: 1.05rem;
  font-weight: 700;
}

.btn-reservar-index {
  margin-top: auto;
}

.btn-reservar-index a {
  width: 100%;
  background: var(--rm-river);
  font-size: 1rem;
}

.btn-reservar-index a:hover {
  background: var(--rm-deep-river);
}

/* Ríos y paquetes: tratamiento editorial y más fácil de explorar. */




.slide-textbox span {
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.75rem);
  line-height: 1;
}

.slide-textbox p {
  margin-top: 0.2rem;
  color: var(--rm-aqua);
  font-family: var(--ff-primario);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.seccion-paquetes {
  padding: clamp(3.5rem, 7vw, 6rem) 0 2.5rem;
  background: #fff;
}

.contenedor-texto {
  padding: 0 1.25rem;
}

.contenedor-texto p {
  color: #45565d;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.contenedor-texto span {
  color: var(--rm-river);
  font-size: clamp(1.45rem, 3vw, 2rem);
  text-shadow: none;
}
.packages-card:hover {
  transform: translateY(-6px);
}

.slider-arrow {
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 1.8rem;
}

@media (max-width: 768px) {
  .hero-intro {
    min-height: 690px;
    padding-top: 6rem;
    align-items: end;
  }

  .hero-intro::after {
    background: linear-gradient(0deg, rgba(3, 32, 40, 0.84), rgba(3, 32, 40, 0.12) 80%);
  }

  .hero-img {
    transform-origin: 62% 50%;
    animation-duration: 22s;
  }

  .intro-content {
    align-items: stretch;
  }

  .hero-textbox {
    padding: 1rem 1.15rem;
  }

  .btn-reservar {
    align-items: stretch;
  }

  .btn-whatsapp {
    justify-content: center;
  }

  .card {
    max-width: 440px;
    margin: 0 auto;
  }

  .card img {
    height: 210px;
  }

  .slide-card {
    width: 82vw;
    height: 290px;
  }

  .packages-card {
    flex-basis: 78vw;
    height: 330px;
  }

  .slider-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .hero-img {
    transform: scale(1.04);
  }
}

/* ===== Hero carrusel: cargar después de los estilos anteriores ===== */
.hero-carousel.hero-intro {
  display: grid;
  min-height: min(780px, 100svh);
  padding: 0;
  background: #073842;
}

.hero-carousel.hero-intro::before {
  content: none;
}

.hero-carousel.hero-intro::after {
  content: "";
  z-index: 1;
  background: linear-gradient(100deg, rgba(3, 30, 37, .82) 2%, rgba(3, 30, 37, .48) 50%, rgba(3, 30, 37, .18) 100%);
}

.hero-slides,
.hero-slide,
.hero-carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slides { z-index: 0; }

.hero-slide {
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero-slide.is-active { opacity: 1; }

.hero-carousel-image {
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 7s ease-out;
}

.hero-slide.is-active .hero-carousel-image { transform: scale(1.16); }

.hero-carousel-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  width: min(100%, 1240px);
  min-height: inherit;
  margin: 0 auto;
  padding: 8rem 2rem 2rem;
}

.hero-carousel .intro-content {
  width: min(100%, 760px);
  align-items: flex-start;
}

.hero-carousel .hero-textbox { max-width: 680px; }

.hero-eyebrow {
  margin: 0 0 .45rem;
  color: var(--rm-aqua, #c9f3f0);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .2em;
}

.hero-carousel .hero-title { min-height: 1em; }

.hero-carousel .hero-subtitle {
  min-height: 1.5em;
  line-height: 1.35;
}

.hero-carousel-controls {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .5rem;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  background: rgba(3, 30, 37, .36);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.hero-dots { display: flex; gap: .42rem; }

.hero-dot {
  width: .62rem;
  height: .62rem;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  transition: transform .2s ease, background-color .2s ease;
}

.hero-dot.is-active {
  background: var(--rm-orange, #f59a23);
  transform: scale(1.35);
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  background: var(--rm-orange, #f59a23);
  color: #073842;
}

@media (max-width: 768px) {
  .hero-carousel.hero-intro { min-height: 700px; }

  .hero-carousel.hero-intro::after {
    background: linear-gradient(0deg, rgba(3, 30, 37, .88), rgba(3, 30, 37, .12) 80%);
  }

  .hero-carousel-content {
    align-items: end;
    padding: 6rem 1.25rem 1.4rem;
  }

  .hero-carousel .hero-textbox { padding: 1rem 1.15rem; }
  .hero-carousel-controls { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-carousel-image { transition: none; }
  .hero-slide.is-active .hero-carousel-image { transform: scale(1.08); }
}
