/* ═══════════════════════════════════════════════════════════════
   BEHABY — portada con carrusel y logotipo mayor
   Se carga después de las demás hojas.
   ═══════════════════════════════════════════════════════════════ */

/* ── Logotipo más grande ──────────────────────────────────────── */

:root { --nav-h: 84px; }

.cabecera .logo-marca img { height: 52px !important; }
.pie .logo-marca img { height: 56px !important; }

@media (max-width: 900px) {
  :root { --nav-h: 74px; }
  .cabecera .logo-marca img { height: 44px !important; }
}
@media (max-width: 420px) {
  .cabecera .logo-marca img { height: 38px !important; }
}

/* ── Portada ──────────────────────────────────────────────────── */

.portada { padding: 52px 0 0; }

.portada-rejilla {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 940px) {
  .portada-rejilla {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  /* En móvil manda la foto, como en cualquier app de viajes:
     la imagen entra antes que el texto. */
  .portada-rejilla .portada-texto { order: 2; }
  .portada-rejilla .carrusel { order: 1; }
  .portada { padding: 26px 0 0; }
}

.portada h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  max-width: 14ch;
  margin-top: 16px;
  line-height: 1.03;
}

/* El párrafo largo se queda para pantallas grandes. En móvil basta
   con una línea: la foto ya explica de qué va esto. */
.portada-sub {
  font-size: clamp(15.5px, 1.8vw, 18px);
  max-width: 42ch;
  margin-top: 18px;
}
.portada-sub .extenso { display: inline; }

@media (max-width: 940px) {
  .portada-sub .extenso { display: none; }
  .portada-sub { max-width: none; }
}

.portada-acciones { margin-top: 26px; }

/* ── Carrusel ─────────────────────────────────────────────────── */

.carrusel {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--navy);
  aspect-ratio: 16 / 11;
  box-shadow: 0 18px 48px rgba(6, 43, 89, .16);
}

@media (max-width: 940px) { .carrusel { aspect-ratio: 4 / 3; border-radius: 16px; } }
@media (max-width: 560px) { .carrusel { aspect-ratio: 5 / 4; } }

.carrusel-pista { position: relative; width: 100%; height: 100%; }

.carrusel-lamina {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility .7s;
  text-decoration: none;
  display: block;
}
.carrusel-lamina.activa { opacity: 1; visibility: visible; }

.carrusel-lamina picture,
.carrusel-lamina img,
.carrusel-lamina svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Zoom lentísimo mientras la lámina está visible. Da sensación de
   movimiento sin que el usuario lo note conscientemente. */
.carrusel-lamina.activa img { animation: respirar 9s ease-out both; }
@keyframes respirar {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}

.carrusel-velo {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 43, 89, .88) 0%, rgba(6, 43, 89, .35) 42%, rgba(6, 43, 89, .06) 70%);
}

.carrusel-texto {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 30px 62px;
  color: #fff;
  z-index: 1;
}
@media (max-width: 560px) { .carrusel-texto { padding: 22px 20px 56px; } }

.carrusel-texto h2 {
  font-size: clamp(22px, 3.2vw, 32px);
  margin: 8px 0 6px;
  color: #fff;
}
.carrusel-texto p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, .84);
  max-width: 36ch;
}
.carrusel-texto .aviso-demo { background: rgba(255, 255, 255, .2); color: #fff; }

.carrusel-enlace {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 14.5px;
  color: #fff;
  border-bottom: 2px solid var(--coral);
  padding-bottom: 2px;
}
.carrusel-lamina:hover .carrusel-enlace { border-bottom-width: 3px; }

/* ── Controles ────────────────────────────────────────────────── */

.carrusel-flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .92);
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: .18s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 3px;
}
.carrusel-flecha:hover { background: #fff; transform: translateY(-50%) scale(1.07); }
.carrusel-flecha.atras { left: 14px; }
.carrusel-flecha.adelante { right: 14px; }

/* En móvil se desliza con el dedo: las flechas estorban más que ayudan. */
@media (max-width: 560px) { .carrusel-flecha { display: none; } }

.carrusel-puntos {
  position: absolute;
  bottom: 22px;
  left: 30px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
@media (max-width: 560px) { .carrusel-puntos { left: 20px; bottom: 18px; } }

.carrusel-punto {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  border: 0;
  background: rgba(255, 255, 255, .42);
  cursor: pointer;
  padding: 0;
  transition: .25s;
}
.carrusel-punto.activo { background: var(--coral); width: 26px; }

@media (prefers-reduced-motion: reduce) {
  .carrusel-lamina.activa img { animation: none; }
  .carrusel-lamina { transition: none; }
}
