/* =============================================
   LOVIZ DC — Estilos principales
   Paleta kawaii: rosas, lavanda, crema, blanco
   ============================================= */

/* ---------- Variables ---------- */
:root {
  --rosa:        #f9b8cc;
  --rosa-claro:  #fde8f0;
  --rosa-oscuro: #e8849e;
  --lavanda:     #e2d4f0;
  --lavanda-claro: #f3edf9;
  --crema:       #fff8f0;
  --blanco:      #ffffff;
  --texto:       #5a3e50;
  --texto-suave: #7a5068;
  --morado:        #8b4fa8;
  --morado-oscuro: #7a3f96;
  --morado-claro:  #c084d0;
  --sombra:      0 8px 32px rgba(249, 184, 204, 0.35);
  --sombra-hover:0 12px 40px rgba(249, 184, 204, 0.55);
  --radio:       24px;
  --radio-grande:40px;
  --radio-pill:  999px;
}

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

/* ---------- Focus visible global ---------- */
:focus-visible {
  outline: 3px solid var(--morado);
  outline-offset: 3px;
  border-radius: 4px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--crema);
  color: var(--texto);
  line-height: 1.6;
}

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

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

/* ---------- Contenedor ---------- */
.contenedor {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radio-pill);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
}

.btn--whatsapp {
  background: linear-gradient(135deg, #25d366, #1ebe5d);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn--whatsapp:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
}

.btn--grande {
  padding: 18px 40px;
  font-size: 1.15rem;
}

/* ---------- Secciones genéricas ---------- */
.seccion {
  padding: 80px 0;
}

.seccion--suave {
  background-color: var(--rosa-claro);
}

.seccion__titulo {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--texto);
  text-align: center;
  margin-bottom: 8px;
}

.seccion__subtitulo {
  text-align: center;
  color: var(--texto-suave);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  width: 100%;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Nav oculto al hacer scroll hacia abajo */
.header--oculto {
  transform: translateY(-100%);
}

/* --- Top banner: ticker infinito (colapsa al hacer scroll) --- */
.header__banner {
  background-color: var(--morado);
  padding: 9px 0;
  max-height: 80px;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.35s ease, opacity 0.25s ease;
}

.header__banner--oculto {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

/* Track que se desliza de derecha a izquierda en loop */
.header__banner-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: banner-ticker 22s linear infinite;
  will-change: transform;
}

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

.header__banner-item {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
  /* Exactamente 50vw: los 2 siempre llenan el 100% de pantalla */
  width: 50vw;
  text-align: center;
  padding: 0 16px;
  box-sizing: border-box;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.4),
    0 2px 12px rgba(0, 0, 0, 0.25),
    0 0 20px rgba(255, 200, 240, 0.3);
  letter-spacing: 0.04em;
}


@keyframes banner-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

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

/* --- Navegación --- */
.header__nav {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(200, 150, 220, 0.15);
  position: relative;
}

.header__nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.header__logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header__logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  border-radius: 12px;
}

/* Menú de links */
.header__menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.header__link {
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--morado);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.header__link:hover {
  color: var(--morado-claro);
}

/* --- Hamburguesa (oculta en desktop) --- */
.header__hamburguesa {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 10px;
  transition: background 0.2s;
}

.header__hamburguesa:hover {
  background: var(--rosa-claro);
}

.header__ham-linea {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--morado);
  border-radius: 4px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

/* Animación hamburguesa → X cuando menú está abierto */
.header__hamburguesa[aria-expanded="true"] .header__ham-linea:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__hamburguesa[aria-expanded="true"] .header__ham-linea:nth-child(2) {
  opacity: 0;
}
.header__hamburguesa[aria-expanded="true"] .header__ham-linea:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Espaciador que compensa el header fijo (altura manejada por JS) */
#headerEspaciador {
  /* Sin transición: animar height causa reflow innecesario */
}

/* --- Scroll margin: valor generoso para cubrir banner + nav --- */
.hero,
.seccion,
.cta-final {
  scroll-margin-top: 120px;
}

/* =============================================
   HERO — split layout: texto + collage
   ============================================= */
.hero {
  background: linear-gradient(160deg, var(--lavanda-claro) 0%, var(--rosa-claro) 100%);
  padding: 72px 20px 96px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ---------- Columna texto ---------- */
.hero__texto {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  text-align: left;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blanco);
  color: var(--texto);
  padding: 8px 18px;
  border-radius: var(--radio-pill);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(139, 79, 168, 0.12);
}

.hero__badge-estrella {
  color: var(--morado);
  font-size: 1rem;
  line-height: 1;
}

.hero__titulo {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  color: var(--texto);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero__titulo-color {
  color: var(--morado);
}

.hero__subtitulo {
  font-size: 1.05rem;
  color: var(--texto-suave);
  max-width: 440px;
  line-height: 1.65;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn--primario {
  background: var(--morado);
  color: #fff;
  padding: 16px 30px;
  box-shadow: 0 10px 26px rgba(139, 79, 168, 0.35);
}

.btn--primario:hover {
  background: var(--morado-oscuro);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 34px rgba(139, 79, 168, 0.5);
}

.hero__link-secundario {
  color: var(--texto);
  font-weight: 700;
  font-size: 1rem;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hero__link-secundario:hover {
  color: var(--morado);
  border-bottom-color: var(--morado);
}

/* ---------- Columna collage ---------- */
.hero__collage {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  min-height: 480px;
}

.collage-item {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(139, 79, 168, 0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.collage-item:hover {
  transform: translateY(-6px) rotate(0deg) !important;
  box-shadow: 0 24px 52px rgba(139, 79, 168, 0.28);
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collage-item--principal {
  background: var(--lavanda);
  transform: rotate(-2deg);
}

.collage-item--secundaria {
  background: var(--blanco);
  padding: 10px;
  transform: rotate(3deg);
  margin-top: 18px;
}

.collage-item--secundaria img {
  border-radius: 20px;
}

.collage-item--terciaria {
  transform: rotate(-1deg);
  margin-left: 18px;
  background: var(--rosa-claro);
}

.collage-item--acento {
  background: var(--rosa);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  gap: 14px;
  transform: rotate(2deg);
  box-shadow: 0 18px 40px rgba(249, 184, 204, 0.55);
}

.collage-acento__icono {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--morado);
  font-size: 1.35rem;
}

.collage-acento__texto {
  color: var(--texto);
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
}

.collage-acento__texto strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 4px;
}

/* Burbuja testimonial flotante sobre la card terciaria */
.collage-burbuja {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: var(--blanco);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 8px 20px rgba(139, 79, 168, 0.22);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.collage-burbuja__texto {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--texto);
}

.collage-burbuja__autor {
  font-size: 0.7rem;
  color: var(--texto-suave);
  font-weight: 600;
}

/* ---------- Responsive hero ---------- */
@media (max-width: 900px) {
  .hero {
    padding: 56px 20px 72px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero__texto {
    align-items: center;
    text-align: center;
  }

  .hero__subtitulo {
    margin: 0 auto;
  }

  .hero__ctas {
    justify-content: center;
  }

  .hero__collage {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    min-height: 420px;
  }
}

@media (max-width: 500px) {
  .hero__collage {
    min-height: 360px;
    gap: 12px;
  }

  .collage-item--secundaria { padding: 6px; margin-top: 10px; }
  .collage-item--terciaria { margin-left: 10px; }
  .collage-acento__texto strong { font-size: 1rem; }
  .collage-acento__texto { font-size: 0.85rem; }
  .collage-acento__icono { width: 38px; height: 38px; font-size: 1.1rem; }
  .collage-item--acento { padding: 18px; }
  .collage-burbuja { padding: 8px 10px; }
  .collage-burbuja__texto { font-size: 0.75rem; }
  .collage-burbuja__autor { font-size: 0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  .collage-item { transition: none; }
}

/* =============================================
   PRODUCTOS — tabs + detalle
   ============================================= */

/* Tabs pills */
.productos__tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

@media (max-width: 640px) {
  .productos__tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .productos__tabs::-webkit-scrollbar { display: none; }
}

.productos__tab {
  padding: 10px 20px;
  border-radius: var(--radio-pill);
  border: 2px solid var(--lavanda);
  background: transparent;
  color: var(--texto);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.productos__tab:hover {
  border-color: var(--morado-claro);
  background: var(--lavanda-claro);
}

.productos__tab[aria-selected="true"] {
  background: var(--morado);
  color: #fff;
  border-color: var(--morado);
}

/* Panel de producto */
.producto {
  display: none;
}

.producto--activo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  background: var(--blanco);
  border-radius: var(--radio-grande);
  box-shadow: var(--sombra);
  overflow: hidden;
}

@media (max-width: 768px) {
  .producto--activo {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Galería del producto */
.producto__galeria {
  position: relative;
}

.producto__galeria .card__carrusel {
  border-radius: var(--radio-grande) 0 0 0;
  aspect-ratio: 3 / 4;
}

@media (max-width: 768px) {
  .producto__galeria .card__carrusel {
    border-radius: var(--radio-grande) var(--radio-grande) 0 0;
    aspect-ratio: 3 / 4;
  }
}

/* Thumbnails */
.producto__thumbnails {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: var(--blanco);
}

@media (min-width: 769px) {
  .producto__thumbnails {
    border-radius: 0 0 0 var(--radio-grande);
  }
}

.producto__thumb {
  flex: 1;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.6;
  padding: 0;
  background: none;
}

.producto__thumb:hover {
  opacity: 0.85;
}

.producto__thumb--activo {
  border-color: var(--morado);
  opacity: 1;
}

.producto__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Info del producto */
.producto__info {
  padding: 36px 36px 36px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 768px) {
  .producto__info {
    padding: 24px;
  }
}

.producto__titulo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--texto);
}

.producto__desc {
  color: var(--texto-suave);
  font-size: 0.95rem;
  line-height: 1.6;
}

.producto__tallas-titulo {
  font-size: 1rem;
  font-weight: 800;
  color: var(--texto);
  margin-top: 4px;
}

/* Grilla de tallas */
.producto__tallas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.talla {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 16px;
  background: var(--rosa-claro);
  border-radius: var(--radio);
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.talla:hover {
  border-color: var(--morado-claro);
  background: var(--lavanda-claro);
}

.talla--seleccionada {
  border-color: var(--morado);
  background: var(--lavanda-claro);
  transform: scale(1.03);
}

.talla__medida {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--texto);
}

.talla__precio {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--morado);
}

.talla__badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  background: var(--morado);
  padding: 2px 10px;
  border-radius: var(--radio-pill);
}

.talla--destacada {
  background: var(--lavanda-claro);
  box-shadow: 0 0 0 2px var(--morado-claro);
}

/* Precio único (pantuflas) */
.producto__precio-unico {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px;
  background: var(--rosa-claro);
  border-radius: var(--radio);
  text-align: center;
}

.producto__precio-valor {
  font-size: 2rem;
  font-weight: 900;
  color: var(--morado);
}

.producto__precio-detalle {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--texto-suave);
}

/* Bloque de envío */
.producto__envio {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--crema);
  border-radius: var(--radio);
  margin-top: 4px;
}

.envio__opcion {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--texto);
}

.envio__icono {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.envio__opcion--urgente {
  color: var(--morado);
  font-weight: 600;
}

.envio__gratis {
  font-size: 0.8rem;
  color: var(--morado);
  font-weight: 700;
  text-align: center;
  margin-top: 4px;
}

/* ---------- Carrusel de producto ---------- */
.card__carrusel {
  position: relative;
  overflow: hidden;
  background: var(--rosa-claro);
}

.card__carrusel-track {
  display: flex;
  height: 100%;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.card__carrusel-track img {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

/* =============================================
   CÓMO FUNCIONA
   ============================================= */
.pasos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.paso {
  background: var(--blanco);
  border-radius: var(--radio-grande);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.paso__numero {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--rosa);
  color: var(--texto);
  font-size: 1.8rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(249, 184, 204, 0.5);
}

.paso__titulo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--texto);
}

.paso__img {
  width: 100%;
  max-width: 180px;
  height: 160px;
  object-fit: contain;
}

.paso__desc {
  color: var(--texto-suave);
  font-size: 0.95rem;
}

/* =============================================
   ESTILOS / GALERÍA — fila con foto cuadrada
   ============================================= */
.estilos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Card: foto cuadrada + etiqueta al fondo */
.estilo-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.estilo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(249, 184, 204, 0.5);
}

.estilo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Etiqueta inferior */
.estilo-card__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--rosa);
  color: var(--texto);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 9px 6px;
}

/* Mobile: 2 por línea */
@media (max-width: 640px) {
  .estilos__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================================
   TESTIMONIOS
   ============================================= */
.testimonios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .testimonios__grid {
    grid-template-columns: repeat(3, 85vw);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
  }
  .testimonios__grid::-webkit-scrollbar { display: none; }
  .testimonio { scroll-snap-align: center; }
}

.testimonio {
  background: var(--blanco);
  border-radius: var(--radio-grande);
  padding: 24px;
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonio__cabecera {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonio__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lavanda);
  color: var(--morado);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonio__nombre {
  font-weight: 700;
  color: var(--texto);
  font-size: 0.95rem;
  display: block;
}

.testimonio__meta {
  font-size: 0.8rem;
  color: var(--texto-suave);
  display: block;
}

.testimonio__texto {
  color: var(--texto);
  font-size: 0.95rem;
  line-height: 1.7;
  flex: 1;
}

.testimonio__pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.testimonio__producto {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--morado);
  background: var(--rosa-claro);
  padding: 4px 12px;
  border-radius: var(--radio-pill);
}

.testimonio__estrellas {
  font-size: 0.85rem;
}

/* =============================================
   CTA FINAL
   ============================================= */
.cta-final {
  background: linear-gradient(135deg, var(--rosa) 0%, var(--lavanda) 100%);
  padding: 100px 20px;
  text-align: center;
}

.cta-final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-final__titulo {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--texto);
}

.cta-final__subtitulo {
  font-size: 1.1rem;
  color: var(--texto-suave);
  max-width: 520px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background-color: var(--texto);
  color: var(--rosa-claro);
  padding: 60px 0 24px;
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer__logo {
  width: 80px;
  border-radius: 16px;
  background: var(--blanco);
  padding: 6px;
  margin-bottom: 10px;
}

.footer__tagline {
  font-size: 0.95rem;
  color: var(--rosa-claro);
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.95rem;
}

.footer__info a {
  color: var(--rosa);
  font-weight: 700;
}

.footer__info a:hover {
  text-decoration: underline;
}

.footer__redes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__red {
  color: var(--rosa-claro);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer__red:hover {
  color: var(--rosa);
}

.footer__legal {
  text-align: center;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer__legal-link {
  color: var(--rosa-claro);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer__legal-link:hover {
  text-decoration: underline;
  color: #ffffff;
}

.footer__legal-sep {
  color: var(--rosa-claro);
  margin: 0 8px;
  opacity: 0.5;
}

.footer__libro {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer__libro-img {
  height: 40px;
  width: auto;
}

.footer__copy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--rosa-claro);
  padding-top: 12px;
}

/* =============================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================= */
.whatsapp-flotante {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #1ebe5d);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  z-index: 1000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: pulse-verde 2.5s infinite;
}

.whatsapp-flotante svg {
  width: 32px;
  height: 32px;
}

.whatsapp-flotante:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.65);
  animation: none;
}

@keyframes pulse-verde {
  0%   { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5); }
  50%  { box-shadow: 0 6px 36px rgba(37, 211, 102, 0.8), 0 0 0 10px rgba(37, 211, 102, 0.1); }
  100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5); }
}

/* =============================================
   PREGUNTAS FRECUENTES (FAQ)
   ============================================= */
.faq__lista {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  overflow: hidden;
}

.faq__pregunta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--texto);
  text-align: left;
  transition: background 0.2s ease;
}

.faq__pregunta:hover {
  background: var(--rosa-claro);
}

.faq__pregunta[aria-expanded="true"] {
  background: linear-gradient(90deg, var(--rosa-claro), var(--lavanda-claro));
  color: var(--rosa-oscuro);
}

.faq__icono {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--rosa);
  color: var(--texto);
  font-size: 1.3rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq__pregunta[aria-expanded="true"] .faq__icono {
  transform: rotate(45deg);
}

.faq__respuesta {
  /* El display:hidden se maneja con JS; la animación se hace con max-height */
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.25s ease;
  padding: 0 24px;
}

.faq__respuesta.abierta {
  max-height: 600px;
  padding: 4px 24px 22px;
}

.faq__respuesta p,
.faq__respuesta ol {
  color: var(--texto-suave);
  font-size: 0.97rem;
  line-height: 1.75;
}

.faq__respuesta ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.faq__respuesta ol li {
  margin-bottom: 6px;
}

.faq__cta {
  text-align: center;
  margin-top: 40px;
}

/* =============================================
   RESPONSIVE — mobile first
   ============================================= */

/* --- Header mobile --- */
@media (max-width: 768px) {
  .header__banner-item {
    width: 100vw;
    font-size: 11px;
    padding: 0 12px;
  }

  .header__banner-texto {
    font-size: 11px;
  }

  .header__hamburguesa {
    display: flex;
  }

  /* Menú cerrado: oculto visualmente pero manteniendo accesibilidad */
  .header__menu {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(200, 150, 220, 0.2);
    padding: 8px 0 16px;
    border-radius: 0 0 20px 20px;
    /* El menú desplegado ocupa todo el ancho del nav, no del inner */
    width: 100%;
  }

  .header__menu.abierto {
    display: flex;
  }

  .header__menu li {
    width: 100%;
    text-align: center;
  }

  .header__link {
    display: block;
    padding: 14px 24px;
    font-size: 16px;
    border-radius: 12px;
    margin: 0 16px;
  }

  .header__link:hover {
    background: var(--rosa-claro);
  }
}

/* Galería en 2 columnas en mobile */
@media (max-width: 600px) {
  .galeria__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 60px 20px 80px;
  }

  .seccion {
    padding: 60px 0;
  }

  .cta-final {
    padding: 70px 20px;
  }

  /* Botón flotante más grande en mobile para facilitar el toque */
  .whatsapp-flotante {
    width: 64px;
    height: 64px;
    bottom: 20px;
    right: 16px;
  }
}

@media (max-width: 400px) {
  .btn--grande {
    padding: 16px 28px;
    font-size: 1rem;
  }
}
