/**
 * ======================================================
 * ARCHIVO: styles.css
 * UBICACIÓN: frontend-public/css/
 * VERSIÓN: 4.1 — MEJORAS VISUALES
 * ÚLTIMA ACTUALIZACIÓN: 2026-05-31 07:45
 *
 * 🎯 PROPÓSITO:
 * Estilos globales: variables, reset, header, footer, botones base.
 *
 * ======================================================
 * 📋 REGLAS PARA PRODUCCIÓN:
 * ------------------------------------------------------
 * - Console.log marcados con // @strip se eliminan
 * - Esta cabecera se elimina en build para cliente
 *
 * ======================================================
 * 📋 HISTORIAL DE CAMBIOS:
 * ------------------------------------------------------
 * [4.1] - 2026-05-31 07:45
 *    ✅ MEJORAS: Transiciones suaves
 *    ✅ MEJORAS: Sombras más elegantes
 *    ✅ CORREGIDO: Formato de cabecera
 *
 * [4.0] - 2026-05-31 06:30
 *    ✅ REFACTORIZADO: Solo estilos globales
 * ======================================================
 */

:root {
  --baby-pink: #f8bbd0;
  --baby-blue: #90caf9;
  --baby-white: #ffffff;
  --baby-beige: #fff8e1;
  --text: #2d3142;
  --text-soft: #5c6378;
  --shadow: 0 8px 28px rgba(45, 49, 66, 0.08);
  --shadow-hover: 0 14px 36px rgba(45, 49, 66, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --wa: #25d366;
  --wa-dark: #128c7e;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  --theme-soft: #90caf9;
  --theme-strong: #42a5f5;
  --accent-price: #1565c0;
  --heading-accent: #1565c0;
  --nav-active-bg: rgba(144, 202, 249, 0.38);
  --card-edge: rgba(144, 202, 249, 0.45);
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

html[data-theme="nina"] {
  --theme-soft: #f8bbd0;
  --theme-strong: #ec407a;
  --accent-price: #ad1457;
  --heading-accent: #c2185b;
  --nav-active-bg: rgba(248, 187, 208, 0.52);
  --card-edge: rgba(236, 64, 122, 0.38);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--theme-soft) 18%, var(--baby-beige)) 0%,
    #fff 42%,
    color-mix(in srgb, var(--theme-soft) 12%, var(--baby-beige)) 100%
  );
  line-height: 1.55;
  transition: var(--transition);
  overflow-x: hidden;
  overflow-y: auto;
}

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

/* Fondo decorativo */
.bg-clouds {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.95;
  transition: var(--transition);
  background-image:
    radial-gradient(circle at 14% 20%, color-mix(in srgb, var(--theme-soft) 45%, transparent) 0%, transparent 46%),
    radial-gradient(circle at 86% 14%, color-mix(in srgb, var(--theme-strong) 32%, transparent) 0%, transparent 42%),
    radial-gradient(circle at 72% 88%, rgba(255, 248, 225, 0.92) 0%, transparent 48%);
}

/* ======================================================
 * BOTONES BASE
 * ====================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--theme-soft), var(--theme-strong));
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--theme-strong), var(--theme-soft));
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  border: 2px solid var(--theme-soft);
}

.btn-ghost:hover {
  background: var(--theme-soft);
  color: #fff;
  border-color: var(--theme-strong);
}

.btn-wa {
  background: linear-gradient(135deg, var(--wa), var(--wa-dark));
  color: #fff;
  margin: 0 18px 18px;
  width: calc(100% - 36px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.28);
}

.btn-wa:hover {
  background: linear-gradient(135deg, var(--wa-dark), var(--wa));
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
}

/* ======================================================
 * HEADER CENTRADO - INICIO | QUIÉNES SOMOS | LOGO | REDES | CONTACTO
 * ====================================================== */

.header-baby {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--theme-soft) 55%, white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Contenedor principal flex para centrar */
.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Botones de navegación del header */
.header-btn {
  background: none;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.header-btn:hover {
  background: var(--nav-active-bg);
  color: var(--theme-strong);
}

/* Logo centrado */
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
  flex-shrink: 0;
}

.logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.logo-mark:hover {
  transform: scale(0.98);
  opacity: 0.9;
}

/* Botón móvil hamburguesa */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-toggle:hover {
  background: var(--nav-active-bg);
}

/* ======================================================
 * MENÚ HAMBURGUESA (MÓVIL) - SEPARADO
 * ====================================================== */

/* Contenedor del menú hamburguesa - oculto por defecto */
.hamburger-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  flex-direction: column;
  padding: 16px;
  gap: 12px;
  box-shadow: var(--shadow);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 49;
}

.hamburger-menu.is-open {
  display: flex;
}

/* Botones del menú hamburguesa */
.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--card-edge);
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.hamburger-btn:hover {
  transform: translateX(4px);
  border-color: var(--theme-strong);
  background: white;
}

.hamburger-btn-label {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.85);
  padding: 8px 16px;
  border-radius: 30px;
}

/* Fondo con imagen para cada botón */
.hamburger-btn--catalogo {
  background-image: url("../images/illustrations/nino-2.png");
  background-size: cover;
  background-position: center;
}

.hamburger-btn--baby {
  background-image: url("../images/illustrations/ambos-2.png");
  background-size: cover;
  background-position: center;
}

.hamburger-btn--promo {
  background-image: url("../images/illustrations/ambos-4.png");
  background-size: cover;
  background-position: center;
}

/* ======================================================
 * RESPONSIVE - MÓVIL
 * ====================================================== */

@media (max-width: 879px) {
  .header-container {
    justify-content: space-between;
    gap: 8px;
    padding: 10px 16px;
  }
  
  .nav-toggle {
    display: block;
    order: 1;
  }
  
  .logo-mark {
    order: 2;
  }
  
  /* Ocultar botones del header en móvil */
  .header-container .header-btn {
    display: none;
  }
}

/* ======================================================
 * RESPONSIVE - DESKTOP
 * ====================================================== */

@media (min-width: 880px) {
  .nav-toggle {
    display: none;
  }
  
  .header-container {
    gap: 32px;
  }
}
/* ======================================================
 * FOOTER
 * ====================================================== */

.footer-baby {
  position: relative;
  overflow: hidden;
  margin-top: 40px;
  padding: 0 0 32px;
  color: #eef1ff;
  background: linear-gradient(185deg, #343f56 0%, #252d42 38%, #1a1f2e 100%);
}

.footer-mascots {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px 16px 4px;
}

.footer-mascot {
  margin: 0;
  max-width: 120px;
}

.footer-mascot img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}

.footer-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 18px 0;
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .footer-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-column h3 {
  font-size: 1.08rem;
  margin-bottom: 12px;
  color: #fff;
}

.footer-column h3::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--theme-soft), var(--theme-strong));
  border-radius: 999px;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 8px;
}

.footer-menu a,
.footer-panel-link {
  color: rgba(248, 250, 255, 0.95);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
}

.footer-menu a:hover,
.footer-panel-link:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
  margin-top: 28px;
  padding: 20px 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
}

/* ======================================================
 * WHATSAPP FLOTANTE
 * ====================================================== */

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wa), var(--wa-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
  animation: pulse-wa 2.2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-ico {
  width: 30px;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23fff' d='M16 3C9.383 3 4 8.383 4 15c0 2.385.673 4.613 1.836 6.513L4 29l7.703-1.775A11.94 11.94 0 0016 27c6.617 0 12-5.383 12-12S22.617 3 16 3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.whatsapp-tooltip {
  position: absolute;
  right: 68px;
  background: rgba(30, 35, 48, 0.92);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* ======================================================
 * UTILITY
 * ====================================================== */

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 4vw, 2rem);
}

.section-head span {
  color: var(--heading-accent);
  position: relative;
  display: inline-block;
}

.section-head span::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--theme-soft), var(--theme-strong));
  border-radius: 999px;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--baby-beige);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb {
  background: var(--theme-soft);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--theme-strong);
}

