/* ==========================================================================
   Be Kind — Hoja de estilos principal
   Paleta pastel con verde menta protagonista · Soft UI · Animaciones suaves
   --------------------------------------------------------------------------
   Índice:
     1. Tokens de diseño (custom properties)
     2. Reset y base
     3. Utilidades: contenedor, botones, eyebrow, iconos, blobs
     4. Header y navegación (escritorio + móvil)
     5. Hero (corazón 3D, chips flotantes)
     6. Sección: Las palabras importan
     7. Sección: Cómo funciona (+ demo de pausa zen)
     8. Sección: Privacidad primero (sello giratorio + stats)
     9. Sección: Funciones (tarjetas pastel)
    10. Sección: Para padres, no contra los hijos
    11. Sección: Precios
    12. Sección: FAQ (acordeón)
    13. CTA final
    14. Footer
    15. Animaciones, reveals y accesibilidad
   ========================================================================== */

/* 1. Tokens de diseño
   ========================================================================== */
:root {
  /* Marca — verdes menta */
  --mint-50:  #F2FBF6;
  --mint-100: #EAF8F0;
  --mint-200: #D7F3E3;
  --mint-300: #B5EACD;
  --mint-400: #8FDDB3;   /* círculo del logo */
  --mint-500: #6BCF9E;
  --green-600: #2FA874;
  --green-700: #1F7E57;
  --pine-900: #173E30;

  /* Pasteles acompañantes */
  --lav-100: #EFEBFC; --lav-300: #CFC5F7; --lav-500: #8F7EE8; --lav-700: #5B4BC4;
  --sky-100: #E6F4FD; --sky-300: #B8E0F7; --sky-500: #5FAEDE; --sky-700: #2C709F;
  --sun-100: #FFF6DF; --sun-300: #FBE6A8; --sun-500: #E8B84B; --sun-700: #856819;
  --coral-100: #FDEAE6; --coral-300: #F8C7BD; --coral-500: #EE9183; --coral-700: #B0503F;

  /* Neutros */
  --bg: #FBFDFC;
  --surface: #FFFFFF;
  --ink: #1E342C;
  --ink-soft: #4E625A;
  --ink-faint: #64776D;
  --line: #E3EFE8;

  /* Sombras difusas */
  --shadow-sm: 0 6px 18px -8px rgba(23, 62, 48, 0.14);
  --shadow-md: 0 18px 40px -18px rgba(23, 62, 48, 0.20);
  --shadow-lg: 0 30px 70px -28px rgba(23, 62, 48, 0.28);

  /* Radios y layout */
  --r-sm: 14px; --r-md: 22px; --r-lg: 30px; --r-xl: 42px;
  --container: 1140px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* 2. Reset y base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 420; /* eje variable de Inter: un pelín más sólido que 400 */
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; }
p { margin: 0; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--green-700); }
button { font-family: inherit; }

::selection { background: var(--mint-300); color: var(--pine-900); }

:focus-visible {
  outline: 3px solid var(--sky-500);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Fondo zen 3D: canvas fijo detrás de todo el contenido, decorativo.
   z-index negativo -> se pinta sobre el fondo del body pero debajo del
   contenido; pointer-events none -> nunca bloquea clics ni el texto. */
#bk-bg-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
  opacity: 0.9;
}

/* Anclas: dejar aire bajo el header fijo */
section[id] { scroll-margin-top: 92px; }

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 100;
  background: var(--pine-900); color: #fff; font-weight: 700;
  padding: 12px 22px; border-radius: 999px;
}
.skip-link:focus { left: 12px; }

/* 3. Utilidades
   ========================================================================== */
.container { width: min(100% - 44px, var(--container)); margin-inline: auto; }

.section { padding: 112px 0; position: relative; }

.section-head { max-width: 680px; margin: 0 auto 58px; text-align: center; position: relative; z-index: 1; }
.section-head h2 {
  font-size: clamp(1.9rem, 2.6vw + 0.6rem, 2.9rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-top: 18px;
}
.section-head .lead { margin-top: 16px; font-size: 1.1rem; }

/* Eyebrow: pildorita de sección */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px;
  background: var(--mint-100); color: var(--green-700);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.eyebrow-coral { background: var(--coral-100); color: var(--coral-700); }
.eyebrow-lav   { background: var(--lav-100);   color: var(--lav-700); }
.eyebrow-sky   { background: var(--sky-100);   color: var(--sky-700); }
.eyebrow-sun   { background: var(--sun-100);   color: var(--sun-700); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; text-decoration: none; cursor: pointer;
  border: 0; border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
              background-color 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn-lg { padding: 18px 34px; font-size: 1.0625rem; }
.btn-sm { padding: 10px 22px; font-size: 0.9rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--mint-300), var(--mint-500));
  color: var(--pine-900);
  box-shadow: 0 14px 30px -12px rgba(47, 168, 116, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px -14px rgba(47, 168, 116, 0.65);
}

.btn-dark { background: var(--pine-900); color: #fff; box-shadow: var(--shadow-sm); }
.btn-dark:hover { background: #20543F; transform: translateY(-2px); }

.btn-ghost {
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--line); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--mint-400); transform: translateY(-2px); }

/* Iconos en línea (SVG stroke) */
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.icon-fill { fill: currentColor; stroke: none; }

.icon-bubble {
  width: 48px; height: 48px; border-radius: 16px; flex: none;
  display: grid; place-items: center;
}

/* Blobs decorativos: formas orgánicas desenfocadas que derivan lento */
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.5;
  pointer-events: none; z-index: 0;
  animation: drift 26s ease-in-out infinite alternate;
}
.blob-mint  { background: var(--mint-300); }
.blob-lav   { background: var(--lav-300); }
.blob-sky   { background: var(--sky-300); }
.blob-sun   { background: var(--sun-300); }
.blob-coral { background: var(--coral-300); }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(46px, -34px, 0) scale(1.14); }
}

/* Separador glowy: marca el salto entre secciones con una línea pastel
   degradada (más brillante al centro) y un halo difuso que respira. */
.glow-divider {
  /* Altura 0: el separador no ocupa flujo, se centra EXACTO sobre la costura
     entre dos secciones (sus pseudo-elementos se montan sobre top:0). */
  position: relative; z-index: 1;
  width: min(100% - 44px, 1040px);
  height: 0; margin: 0 auto;
}
.glow-divider::before {            /* la línea nítida, degradada y centrada */
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 4px; transform: translateY(-50%); border-radius: 999px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(143, 221, 179, 0) 8%,
    var(--mint-400) 30%,
    var(--lav-300) 50%,
    var(--mint-400) 70%,
    rgba(143, 221, 179, 0) 92%,
    transparent 100%);
}
.glow-divider::after {             /* halo difuso, más intenso en el centro */
  content: ""; position: absolute; left: 50%; top: 50%;
  width: min(78%, 720px); height: 48px;
  transform: translate(-50%, -50%);
  border-radius: 50%; filter: blur(26px); opacity: 0.8;
  background: radial-gradient(ellipse at center,
    rgba(107, 207, 158, 0.6) 0%,
    rgba(207, 197, 247, 0.42) 42%,
    rgba(184, 224, 247, 0.2) 64%,
    transparent 80%);
  animation: glowPulse 5.5s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.6;  transform: translate(-50%, -50%) scaleX(0.9); }
  50%      { opacity: 0.95; transform: translate(-50%, -50%) scaleX(1); }
}

/* 4. Header y navegación
   ========================================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding: 16px 0;
  transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.header.scrolled {
  padding: 10px 0;
  background: rgba(251, 253, 252, 0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner { display: flex; align-items: center; gap: 24px; }

.brand {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--ink);
}
.brand-mark { width: 40px; height: 40px; flex: none; transition: transform 0.35s ease; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-name { font-weight: 800; font-size: 1.18rem; letter-spacing: -0.02em; }

.nav { display: flex; gap: 26px; margin-inline: auto; }
.nav a {
  position: relative; text-decoration: none;
  font-size: 0.95rem; font-weight: 600; color: var(--ink-soft);
  padding: 6px 2px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2.5px; border-radius: 3px; background: var(--green-600);
  transition: right 0.3s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { right: 0; }

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

.lang-switch {
  display: inline-flex; padding: 3px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px;
}
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 12px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; color: var(--ink-faint);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.lang-switch button[aria-pressed="true"] { background: var(--mint-200); color: var(--green-700); }

/* Hamburguesa (solo móvil) */
.burger {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 46px; height: 46px; padding: 12px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px;
  cursor: pointer;
}
.burger span {
  display: block; height: 2.5px; border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
html.nav-open .burger span:first-child { transform: translateY(4.25px) rotate(45deg); }
html.nav-open .burger span:last-child  { transform: translateY(-4.25px) rotate(-45deg); }

/* Menú móvil a pantalla completa */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #FFFFFF, var(--mint-100));
  opacity: 0; visibility: hidden; transform: translateY(-14px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}
html.nav-open { overflow: hidden; }
html.nav-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a.menu-link {
  text-decoration: none; color: var(--ink);
  font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em;
  padding: 8px 16px;
}
.mobile-menu a.menu-link:hover { color: var(--green-700); }
.mobile-menu .lang-switch { margin-top: 18px; }
.mobile-menu .btn { margin-top: 14px; }

/* 5. Hero
   ========================================================================== */
.hero {
  position: relative; overflow: clip;
  padding: 168px 0 112px; /* inferior = al de .section -> separador centrado en la costura */
  text-align: center;
}
.hero .container { position: relative; z-index: 2; }

.hero .blob-lav  { width: 420px; height: 420px; top: -90px;  left: -140px; }
.hero .blob-sky  { width: 380px; height: 380px; top: 60px;   right: -120px; animation-delay: -8s; }
.hero .blob-sun  { width: 300px; height: 300px; bottom: -60px; left: 8%;    animation-delay: -14s; opacity: 0.4; }

/* Corazón: círculo del logo hecho escena 3D */
.hero-heart { position: relative; width: min(58vw, 285px); aspect-ratio: 1; margin: 0 auto 6px; }
.hero-heart::before {
  content: ""; position: absolute; inset: 5%; border-radius: 50%;
  /* Núcleo blanco amplio y centrado: el corazón blanco se funde con él;
     el menta solo aparece en el anillo exterior. Stops suaves = degradado. */
  background: radial-gradient(circle at 42% 36%,
    #FFFFFF 0%, #FBFEFC 24%, var(--mint-100) 46%, var(--mint-300) 74%, var(--mint-400) 100%);
  box-shadow: 0 42px 80px -34px rgba(47, 168, 116, 0.42),
              inset 0 -14px 40px rgba(23, 62, 48, 0.06);
}
/* Corazón blanco 2D, centrado en el círculo, con sombra leve y leve flotación */
.hero-heart-icon {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #fff;
  animation: bob 6s ease-in-out infinite;
}
.hero-heart-icon svg {
  width: 46%;
  filter: drop-shadow(0 8px 14px rgba(23, 62, 48, 0.16));
}

/* Chips que flotan alrededor del corazón */
.float-chip {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 17px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-size: 0.85rem; font-weight: 650; color: var(--ink);
  white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float-chip .icon { color: var(--green-600); }
.chip-msg { left: -46%; top: 16%; animation-delay: 0.9s; }
.chip-zen { right: -38%; bottom: 20%; animation-duration: 7s; }
.chip-zen .icon { color: var(--lav-500); }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.hero h1 {
  font-size: clamp(2.55rem, 4.4vw + 1rem, 4.5rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  max-width: 18ch; margin: 20px auto 0;
}
.hl {
  background: linear-gradient(transparent 64%, var(--mint-300) 64%);
  border-radius: 8px; padding: 0 0.06em;
}

.hero-sub { max-width: 580px; margin: 24px auto 0; font-size: 1.16rem; }

.hero-ctas {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  margin-top: 36px;
}
/* margen igual arriba (botones) y abajo (chips) -> nota centrada entre ambos */
.hero-note { margin-top: 33px; font-size: 0.86rem; color: var(--ink-faint); }

.trust-chips {
  list-style: none; padding: 0; margin: 33px auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.trust-chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 0.875rem; font-weight: 600; color: var(--ink-soft);
}
.trust-chips li:nth-child(1) .icon { color: var(--green-600); }
.trust-chips li:nth-child(2) .icon { color: var(--coral-500); }
.trust-chips li:nth-child(3) .icon { color: var(--sky-500); }
.trust-chips li:nth-child(4) .icon { color: var(--sun-500); }

/* 6. Las palabras importan
   ========================================================================== */
.problem-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 64px; align-items: center;
  position: relative; z-index: 1;
}
.problem-copy .section-head {
  text-align: left; margin: 0;
}
.problem-copy p + p { margin-top: 18px; }
.problem-copy .lead { font-size: 1.08rem; }

.promise-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  padding: 46px 42px;
  background: linear-gradient(160deg, var(--mint-100), var(--sky-100));
  box-shadow: var(--shadow-md);
}
.promise-card h3 {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.25rem; font-weight: 800;
}
.promise-card h3 .icon { color: var(--coral-500); width: 1.4em; height: 1.4em; }
.promise-card p {
  margin-top: 18px; font-size: 1.18rem; line-height: 1.6;
  font-weight: 600; color: var(--pine-900);
}
.promise-card .watermark {
  position: absolute; right: -36px; bottom: -42px;
  width: 190px; height: 190px; opacity: 0.14;
  color: var(--green-600);
}

/* 7. Cómo funciona
   ========================================================================== */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  position: relative; z-index: 1;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.step:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }

.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.step-num {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.step h3 { font-size: 1.12rem; font-weight: 750; }
.step p { margin-top: 10px; font-size: 0.95rem; }

.step:nth-child(1) .icon-bubble { background: var(--mint-100);  color: var(--green-600); }
.step:nth-child(2) .icon-bubble { background: var(--lav-100);   color: var(--lav-500); }
.step:nth-child(3) .icon-bubble { background: var(--coral-100); color: var(--coral-500); }
.step:nth-child(4) .icon-bubble { background: var(--sky-100);   color: var(--sky-500); }

/* Demo: así se ve una pausa zen */
.demo-window {
  max-width: 560px; margin: 70px auto 0;
  border-radius: 28px; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  position: relative; z-index: 1;
}
.demo-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
}
.demo-dot { width: 11px; height: 11px; border-radius: 50%; }
.demo-dot:nth-child(1) { background: var(--coral-300); }
.demo-dot:nth-child(2) { background: var(--sun-300); }
.demo-dot:nth-child(3) { background: var(--mint-300); }
.demo-app {
  margin-left: 8px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.82rem; font-weight: 700; color: var(--ink-soft);
}
.demo-app svg { width: 16px; height: 16px; }

.demo-body {
  padding: 52px 28px 46px;
  background: linear-gradient(160deg, var(--mint-100), var(--sky-100));
  text-align: center;
}

.breath-wrap { position: relative; width: 152px; height: 152px; margin: 0 auto 24px; }
.breath {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, rgba(255,255,255,0.9), rgba(255,255,255,0) 56%),
              linear-gradient(150deg, var(--mint-300), var(--sky-300));
  box-shadow: 0 20px 42px -16px rgba(95, 174, 222, 0.55);
  animation: breathe 8s ease-in-out infinite;
}
.breath-ring {
  position: absolute; border-radius: 50%;
  border: 2px solid rgba(107, 207, 158, 0.45);
  animation: breathe 8s ease-in-out infinite;
}
.breath-ring.r1 { inset: -13%; animation-delay: 0.35s; }
.breath-ring.r2 { inset: -26%; opacity: 0.5; animation-delay: 0.7s; }
.breath-label {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 750; font-size: 0.98rem; color: var(--pine-900);
}
@keyframes breathe {
  0%, 100% { transform: scale(0.86); }
  50%      { transform: scale(1.06); }
}

.demo-msg { font-size: 1.32rem; font-weight: 800; color: var(--ink); }
.demo-sub { margin-top: 8px; font-size: 0.95rem; color: var(--ink-soft); }
.demo-sub strong {
  color: var(--green-700); font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.demo-caption {
  text-align: center; margin: 26px auto 0; max-width: 480px;
  font-size: 0.875rem; color: var(--ink-faint);
}

/* 8. Privacidad primero
   ========================================================================== */
.privacy { background: var(--mint-50); overflow: clip; }
.privacy .blob-mint { width: 460px; height: 460px; top: -120px; right: -160px; opacity: 0.55; }

.privacy-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 70px; align-items: center;
  position: relative; z-index: 1;
}
.privacy-copy .section-head { text-align: left; margin: 0 0 8px; }

.priv-list { display: grid; gap: 14px; margin-top: 34px; }
.priv-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.priv-item:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.priv-item .icon-bubble { background: var(--mint-100); color: var(--green-600); }
.priv-item h3 { font-size: 1.02rem; font-weight: 750; }
.priv-item p { font-size: 0.92rem; margin-top: 4px; }

.priv-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 48px 42px;
  box-shadow: var(--shadow-lg);
}
.priv-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  background: var(--mint-50);
  border-radius: var(--r-md);
  padding: 24px 18px; text-align: center;
}
.stat b {
  display: block; font-size: 2.1rem; font-weight: 800;
  letter-spacing: -0.02em; color: var(--green-700);
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 0.84rem; color: var(--ink-faint); }
.stat:nth-child(2) { background: var(--lav-100); }  .stat:nth-child(2) b { color: var(--lav-700); }
.stat:nth-child(3) { background: var(--sky-100); }  .stat:nth-child(3) b { color: var(--sky-700); }
.stat:nth-child(4) { background: var(--sun-100); }  .stat:nth-child(4) b { color: var(--sun-700); }

/* Sello giratorio "Privacidad por diseño" */
.seal {
  position: absolute; top: -52px; right: -22px;
  width: 122px; height: 122px;
  background: var(--surface); border-radius: 50%;
  box-shadow: var(--shadow-md);
  display: grid; place-items: center;
}
.seal svg.seal-text { position: absolute; inset: 6px; animation: spin 24s linear infinite; }
.seal svg.seal-text text {
  /* Tamaño/espaciado ajustados para que el texto quepa en UNA vuelta sin
     solaparse con su propio inicio (evita el artefacto "L OP"). */
  font-size: 8.4px; font-weight: 800; letter-spacing: 1.3px;
  fill: var(--green-700); text-transform: uppercase;
}
.seal .icon { width: 34px; height: 34px; color: var(--green-600); }
@keyframes spin { to { transform: rotate(360deg); } }

/* 9. Funciones
   ========================================================================== */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  position: relative; z-index: 1;
}
.feature {
  border-radius: var(--r-lg);
  padding: 32px 28px;
  border: 1px solid rgba(23, 62, 48, 0.05);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.feature:hover { transform: translateY(-8px) rotate(-0.4deg); box-shadow: var(--shadow-md); }
.feature .icon-bubble { background: rgba(255, 255, 255, 0.85); box-shadow: var(--shadow-sm); }
.feature h3 { font-size: 1.14rem; font-weight: 750; margin-top: 18px; }
.feature p { margin-top: 8px; font-size: 0.95rem; }

.f-mint  { background: var(--mint-100); }  .f-mint  .icon-bubble { color: var(--green-600); }
.f-lav   { background: var(--lav-100); }   .f-lav   .icon-bubble { color: var(--lav-500); }
.f-sky   { background: var(--sky-100); }   .f-sky   .icon-bubble { color: var(--sky-500); }
.f-sun   { background: var(--sun-100); }   .f-sun   .icon-bubble { color: var(--sun-500); }
.f-coral { background: var(--coral-100); } .f-coral .icon-bubble { color: var(--coral-500); }
.f-mint2 { background: var(--mint-50); border: 1px solid var(--mint-200); }
.f-mint2 .icon-bubble { color: var(--green-700); }

/* 10. Para padres, no contra los hijos
   ========================================================================== */
.parents-panel {
  border-radius: var(--r-xl);
  padding: 88px 56px;
  background:
    radial-gradient(60% 90% at 8% 0%, var(--lav-100), transparent 60%),
    radial-gradient(55% 80% at 95% 10%, var(--sky-100), transparent 55%),
    var(--mint-100);
  overflow: hidden; position: relative;
}
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.principle {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--r-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.principle:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.principle .icon-bubble { background: var(--surface); box-shadow: var(--shadow-sm); }
.principle:nth-child(1) .icon-bubble { color: var(--sky-500); }
.principle:nth-child(2) .icon-bubble { color: var(--coral-500); }
.principle:nth-child(3) .icon-bubble { color: var(--green-600); }
.principle h3 { font-size: 1.1rem; font-weight: 750; margin-top: 16px; }
.principle p { margin-top: 8px; font-size: 0.94rem; }

/* 11. Precios
   ========================================================================== */
.pricing { overflow: clip; }
.pricing .blob-lav { width: 360px; height: 360px; left: -130px; bottom: -40px; opacity: 0.4; }
.pricing .blob-sun { width: 320px; height: 320px; right: -110px; top: 80px; opacity: 0.4; animation-delay: -10s; }

.plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  align-items: stretch;
  position: relative; z-index: 1;
}
.plan {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--r-xl);
  padding: 38px 34px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease,
              background-color 0.35s ease, border-color 0.35s ease;
}
/* Hover en Mensual / Perpetua: verde pastel (eco del Anual, más claro) y
   crece un poco — resalta sin alcanzar el protagonismo del plan destacado. */
.plan:not(.plan-featured):hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: var(--shadow-md);
  background-color: var(--mint-200);
  border-color: var(--mint-400);
}
.plan:not(.plan-featured):hover h3,
.plan:not(.plan-featured):hover .plan-price .amount { color: var(--pine-900); }
.plan:not(.plan-featured):hover li .icon { color: var(--green-700); }

.plan h3 { font-size: 1.18rem; font-weight: 800; }
.plan-tag { margin-top: 6px; font-size: 0.9rem; color: var(--ink-faint); }
.plan-price { margin-top: 24px; display: flex; align-items: baseline; gap: 8px; }
.plan-price .amount {
  font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink);
}
.plan-price .period { font-size: 0.95rem; color: var(--ink-faint); }

.plan ul { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.plan li .icon { color: var(--green-600); margin-top: 3px; }
.plan .btn { margin-top: auto; }

/* Plan destacado (Anual) */
.plan-featured {
  background: var(--pine-900);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: scale(1.045);
}
.plan-featured:hover { transform: scale(1.045) translateY(-7px); }
.plan-featured h3, .plan-featured .plan-price .amount { color: #fff; }
.plan-featured .plan-tag { color: #A9D6C0; }
.plan-featured .plan-price .period { color: #8FB8A5; }
.plan-featured li { color: #CFE8DB; }
.plan-featured li .icon { color: var(--mint-400); }

.plan-badge {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--sun-300); color: #3D2F0A;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em;
  padding: 8px 18px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.price-note { text-align: center; margin-top: 34px; font-size: 0.875rem; color: var(--ink-faint); }

/* 12. FAQ
   ========================================================================== */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; position: relative; z-index: 1; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.faq-item.open { box-shadow: var(--shadow-md); border-color: var(--mint-300); }

.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 21px 26px;
  background: none; border: 0; cursor: pointer;
  font-size: 1.02rem; font-weight: 700; color: var(--ink); text-align: left;
}
.faq-icon {
  flex: none; width: 34px; height: 34px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--mint-100); color: var(--green-700);
  transition: transform 0.35s ease, background-color 0.35s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--mint-300); }

/* Truco de animación de altura con grid-template-rows */
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p { padding: 0 26px 24px; font-size: 0.97rem; }

/* 13. CTA final
   ========================================================================== */
.cta-panel {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  padding: 96px 32px;
  text-align: center;
  background:
    radial-gradient(60% 90% at 10% 8%, var(--lav-100), transparent 58%),
    radial-gradient(55% 80% at 90% 12%, var(--sky-100), transparent 55%),
    radial-gradient(75% 110% at 50% 105%, var(--mint-200), transparent 72%),
    var(--mint-100);
  box-shadow: var(--shadow-md);
}
.cta-panel .cta-logo { width: 72px; height: 72px; margin: 0 auto 26px; }
.cta-panel h2 {
  font-size: clamp(2rem, 3vw + 0.6rem, 3.1rem);
  font-weight: 800; letter-spacing: -0.025em;
  max-width: 16ch; margin: 0 auto;
}
.cta-panel p { max-width: 520px; margin: 18px auto 0; font-size: 1.1rem; }
/* margen igual arriba (párrafo) y abajo (nota) -> botón centrado entre ambos */
.cta-panel .btn { margin-top: 25px; }
.cta-panel .cta-note { margin-top: 25px; font-size: 0.85rem; color: var(--ink-faint); }

.mini-heart { position: absolute; animation: bob 7s ease-in-out infinite; }
.mini-heart svg { width: 100%; height: 100%; }
.mh-1 { width: 36px; top: 18%; left: 9%;  color: var(--mint-400);  animation-delay: -1s; }
.mh-2 { width: 24px; top: 58%; left: 16%; color: var(--coral-300); animation-delay: -3s; }
.mh-3 { width: 30px; top: 24%; right: 11%; color: var(--lav-300);  animation-delay: -2s; }
.mh-4 { width: 20px; top: 64%; right: 17%; color: var(--sky-300);  animation-delay: -4.5s; }

/* 14. Footer
   ========================================================================== */
.footer {
  margin-top: 110px;
  background: var(--pine-900); color: #C9E2D5;
  border-radius: 48px 48px 0 0;
  padding-top: 76px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 44px; padding-bottom: 56px;
}
.footer .brand { color: #fff; }
.footer-tagline { margin-top: 16px; max-width: 30ch; font-size: 0.95rem; color: #A9CDBB; }
.footer h3 {
  color: #fff; font-size: 0.92rem; font-weight: 750;
  letter-spacing: 0.04em; margin-bottom: 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:not(.brand) { color: #C9E2D5; text-decoration: none; font-size: 0.95rem; transition: color 0.25s ease; }
.footer a:not(.brand):hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 24px 0 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 0.84rem; color: #9DBFAE;
}
.footer-love { display: inline-flex; align-items: center; gap: 7px; }
.footer-love .icon-fill { width: 0.95em; height: 0.95em; color: var(--mint-400); }

/* Switch de idioma como enlaces (páginas legales) — mismo look que botones */
.lang-switch a {
  display: inline-flex; align-items: center;
  text-decoration: none;
  padding: 6px 12px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; color: var(--ink-faint);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.lang-switch a[aria-current="true"] { background: var(--mint-200); color: var(--green-700); }

/* Páginas legales (Privacidad / Términos)
   ========================================================================== */
.legal { padding: 148px 0 40px; }
.legal-wrap { max-width: 760px; margin-inline: auto; }
.legal-back {
  display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none; color: var(--green-700);
  font-weight: 650; font-size: 0.92rem; margin-bottom: 26px;
}
.legal-back:hover { gap: 11px; }
.legal h1 {
  font-size: clamp(2rem, 3.4vw + 0.8rem, 3rem);
  font-weight: 800; letter-spacing: -0.025em; margin-top: 16px;
}
.legal-meta { margin-top: 12px; font-size: 0.9rem; color: var(--ink-faint); }
.legal-body { margin-top: 8px; }
.legal-body h2 {
  font-size: 1.3rem; font-weight: 750; letter-spacing: -0.01em;
  margin-top: 2.4rem;
}
.legal-body p { margin-top: 1rem; }
.legal-body ul { margin: 1rem 0 0; padding-left: 1.25rem; display: grid; gap: 0.55rem; }
.legal-body li { padding-left: 0.2rem; }
.legal-body strong { color: var(--ink); font-weight: 700; }
.legal-body code {
  font-family: var(--font-mono, 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace);
  font-size: 0.86em; background: var(--mint-100); color: var(--green-700);
  padding: 2px 7px; border-radius: 8px; word-break: break-word;
}
.legal-note {
  margin-top: 2.6rem; padding: 18px 22px;
  background: var(--mint-50); border: 1px solid var(--mint-200);
  border-radius: var(--r-md); font-size: 0.92rem; color: var(--ink-soft);
}

/* Showcase de pantallas reales de la app (recreadas en HTML/CSS)
   Paleta REAL de la app (PyQt6): crema + acento verde Be Kind.
   ========================================================================== */
.screens { --app-bg:#fbf8f4; --app-alt:#f1ece4; --app-surf:#ffffff; --app-border:#e4ddd2;
  --app-text:#3a3a35; --app-dim:#8a847b; --app-green:#7fc08a; --app-green-text:#234728;
  --app-danger:#e8a5a5; --app-danger-text:#7a3838;
  --lk-c1:#eef9f3; --lk-c2:#cfe9dc; --lk-text:#2e4a3b; --lk-timer:#2f8f5e; --lk-dim:#6f877b; }

.bks-stack { display: grid; gap: 30px; position: relative; z-index: 1; }
.bks-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.bks-item { display: flex; flex-direction: column; }
.bks-frame {
  border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(23,62,48,0.06);
}
.bks-cap { margin-top: 14px; text-align: center; font-size: 0.92rem; color: var(--ink-soft); font-weight: 600; }

/* Barra de ventana estilo Windows */
.bks-winbar { display: flex; align-items: center; justify-content: space-between;
  padding-left: 16px; background: var(--app-alt); border-bottom: 1px solid var(--app-border); min-height: 42px; }
.bks-wtitle { display: flex; align-items: center; gap: 9px; font-size: 0.82rem; font-weight: 700; color: var(--app-text); }
.bks-wtitle svg { width: 18px; height: 18px; flex: none; }
.bks-wc { display: flex; align-self: stretch; }
.bks-wc span { display: flex; align-items: center; justify-content: center; width: 46px; align-self: stretch; color: var(--app-dim); }
.bks-wc span svg { width: 11px; height: 11px; }
.bks-wc span.bks-close.is-hot { background: #e81123; color: #fff; }  /* X roja, demo de hover */

/* 1. Pausa zen / bloqueo */
.bks-lock { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 44px 30px;
  background: radial-gradient(circle at 50% 42%, var(--lk-c1) 0%, var(--lk-c2) 100%); }
.bks-lock .bk { font-size: 1.9rem; font-weight: 800; letter-spacing: 4px; color: var(--lk-text); text-shadow: 0 0 18px rgba(127,192,138,0.45); }
.bks-lock .msg { margin-top: 18px; font-size: 1.5rem; font-weight: 500; color: var(--lk-text); max-width: 18ch; }
.bks-lock .timer { margin-top: 14px; font-size: 4.6rem; font-weight: 300; line-height: 1; color: var(--lk-timer); font-variant-numeric: tabular-nums; }
.bks-lock .hint { margin-top: 22px; font-size: 0.82rem; color: var(--lk-dim); }

/* 2. Aviso */
.bks-popup { position: relative; min-height: 360px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #46423b, #322f2a); padding: 24px; }
.bks-popup::before { content: ""; position: absolute; inset: 0; background: rgba(40,38,33,0.35); }
.bks-card { position: relative; background: var(--app-surf); border: 1px solid var(--app-border); border-radius: 20px;
  padding: 32px 36px; width: min(94%, 420px); text-align: center; box-shadow: 0 24px 50px -20px rgba(0,0,0,0.4); }
.bks-card .q { font-size: 1.25rem; font-weight: 500; color: var(--app-text); }
.bks-card .word { margin: 12px 0 6px; font-size: 2.6rem; font-weight: 600; letter-spacing: 1px; color: #c98080; }
.bks-card .cd { font-size: 0.84rem; color: var(--app-dim); }
.bks-card .btns { display: flex; gap: 12px; margin-top: 22px; }
.bks-card .b { flex: 1; border: 0; border-radius: 14px; padding: 14px 16px; font-size: 0.96rem; font-weight: 700; font-family: inherit; }
.bks-card .b.yes { background: var(--app-danger); color: var(--app-danger-text); }
.bks-card .b.no { background: var(--app-green); color: var(--app-green-text); }

/* 3. Panel parental */
.bks-panel { background: var(--app-bg); }
.bks-tabs { display: flex; gap: 4px; padding: 12px 14px 0; background: var(--app-bg); border-bottom: 1px solid var(--app-border); overflow-x: auto; }
.bks-tab { padding: 9px 14px; border-radius: 10px 10px 0 0; font-size: 0.84rem; font-weight: 600; color: var(--app-dim); white-space: nowrap; }
.bks-tab.active { background: var(--app-surf); color: var(--app-green-text); border: 1px solid var(--app-border); border-bottom-color: var(--app-surf); margin-bottom: -1px; }
.bks-body { padding: 26px 28px; min-height: 250px; }
.bks-body .h { font-size: 1.02rem; font-weight: 700; color: var(--app-text); margin: 0 0 4px; }
.bks-body .sub { font-size: 0.85rem; color: var(--app-dim); margin: 0 0 18px; }
.bks-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.bks-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--app-alt); border: 1px solid var(--app-border); border-radius: 999px; padding: 8px 14px; font-size: 0.9rem; color: var(--app-text); }
.bks-chip i { color: var(--app-dim); font-weight: 700; font-style: normal; }
.bks-prow { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.bks-input { flex: 1; background: var(--app-surf); border: 1px solid var(--app-border); border-radius: 10px; padding: 11px 13px; font-size: 0.9rem; color: var(--app-dim); }
.bks-select { background: var(--app-surf); border: 1px solid var(--app-border); border-radius: 10px; padding: 11px 13px; font-size: 0.88rem; color: var(--app-text); }
.bks-add { background: var(--app-green); color: var(--app-green-text); border: 0; border-radius: 10px; padding: 11px 20px; font-weight: 700; font-size: 0.9rem; }
.bks-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-top: 1px solid var(--app-border); padding: 14px 28px; background: var(--app-bg); flex-wrap: wrap; }
.bks-foot .lockbadge { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; color: var(--app-dim); }
.bks-foot .lockbadge svg { width: 14px; height: 14px; }
.bks-save { background: var(--app-green); color: var(--app-green-text); border: 0; border-radius: 10px; padding: 10px 22px; font-weight: 700; font-size: 0.9rem; }

@media (max-width: 760px) {
  .bks-duo { grid-template-columns: 1fr; }
  .bks-lock .timer { font-size: 3.6rem; }
}

/* 15. Animaciones, reveals y accesibilidad
   ========================================================================== */
/* Solo se ocultan los elementos si GSAP está listo (clase .anim en <html>) */
html.anim [data-reveal],
html.anim [data-hero] { opacity: 0; }

/* Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .chip-msg { left: -22%; }
  .chip-zen { right: -18%; }
}

@media (max-width: 900px) {
  .section { padding: 88px 0; }
  .nav { display: none; }
  .burger { display: flex; }
  .header-actions .btn { display: none; }
  .header-actions .lang-switch { display: none; }

  .problem-grid, .privacy-grid { grid-template-columns: 1fr; gap: 44px; }
  .privacy-grid { align-items: start; }
  .seal { top: -44px; right: 10px; width: 106px; height: 106px; }
  .principles { grid-template-columns: 1fr; }
  .parents-panel { padding: 64px 30px; }
}

@media (max-width: 760px) {
  .plans { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .plan-featured { transform: none; order: -1; }
  .plan-featured:hover { transform: translateY(-7px); }
}

@media (max-width: 640px) {
  .hero { padding-top: 140px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .chip-msg { left: -10%; top: 4%; }
  .chip-zen { right: -8%; bottom: 8%; }
  .float-chip { font-size: 0.78rem; padding: 9px 13px; }
  .priv-panel { padding: 38px 26px; }
  .cta-panel { padding: 76px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > .footer-brand-col { grid-column: 1 / -1; }
}

/* Movimiento reducido: respeto total a la preferencia del sistema */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
