/* =====================================================================
   MindMetrics · Sitio de descarga
   Identidad: verde azulado (#15919B) + azul marino (#0A5483), estética
   tranquila, caritas de ánimo y las mascotas Nimbus y Plip.
   ===================================================================== */

:root {
  --teal: #15919B;
  --teal-osc: #0E6F78;
  --teal-claro: #2BC4C9;
  --marino: #0A3F6B;
  --azul: #0A5483;
  --menta: #D1FAE5;
  --menta-2: #E8FBF3;
  --cielo: #F0F8FF;
  --cielo-2: #E3F1FA;
  --lila: #ECEBFB;
  --lila-osc: #4B47A8;
  --texto: #1E3348;
  --suave: #52667A;
  --borde: #DCE7EF;
  --blanco: #FFFFFF;
  --calido: #F59E5B;

  --radio: 28px;
  --sombra: 0 24px 60px -20px rgba(10, 63, 107, 0.25);
  --sombra-chica: 0 10px 30px -12px rgba(10, 63, 107, 0.22);
  --titulos: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --cuerpo: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --curva: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--cuerpo);
  font-size: 17px;
  line-height: 1.6;
  color: var(--texto);
  background: var(--blanco);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titulos); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.contenedor { width: min(1180px, 100% - 40px); margin-inline: auto; }
.contenedor--angosto { width: min(820px, 100% - 40px); }

.saltar { position: absolute; left: -999px; top: 8px; background: var(--marino); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.saltar:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--teal-claro); outline-offset: 3px; border-radius: 8px; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 18px; border: 0; cursor: pointer;
  font-family: var(--titulos); font-weight: 700; font-size: 16px; text-decoration: none;
  color: #fff; background: var(--teal);
  box-shadow: 0 6px 0 var(--teal-osc), 0 14px 30px -10px rgba(21, 145, 155, .55);
  transition: transform .15s var(--curva), box-shadow .15s var(--curva), background .2s;
}
.boton svg { width: 20px; height: 20px; }
.boton:hover { background: #17A1AC; transform: translateY(-2px); box-shadow: 0 8px 0 var(--teal-osc), 0 18px 34px -10px rgba(21, 145, 155, .6); }
.boton:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--teal-osc), 0 6px 14px -8px rgba(21, 145, 155, .6); }
.boton--grande { padding: 18px 30px; font-size: 17px; border-radius: 20px; }
.boton--chico { padding: 10px 18px; font-size: 15px; border-radius: 14px; box-shadow: 0 4px 0 var(--teal-osc); }
.boton--chico:hover { box-shadow: 0 6px 0 var(--teal-osc); }
.boton--secundario { color: var(--azul); background: #fff; box-shadow: 0 6px 0 var(--borde), 0 14px 30px -14px rgba(10, 63, 107, .3); }
.boton--secundario:hover { background: #fff; box-shadow: 0 8px 0 var(--borde), 0 18px 30px -12px rgba(10, 63, 107, .3); }
.boton--secundario:active { box-shadow: 0 2px 0 var(--borde); }
.boton--blanco { color: var(--azul); background: #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, .18), 0 18px 40px -12px rgba(0, 0, 0, .35); }
.boton--blanco:hover { background: #fff; box-shadow: 0 8px 0 rgba(0, 0, 0, .18), 0 22px 40px -12px rgba(0, 0, 0, .35); }

.etiqueta {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--menta); color: #0B6B52;
  font-family: var(--titulos); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
}
.etiqueta--clara { background: rgba(255, 255, 255, .18); color: #fff; }
.resaltado {
  background: linear-gradient(100deg, var(--teal) 0%, var(--azul) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Navegación ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.nav__fila { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__logo img { height: 46px; width: auto; }
.nav__enlaces { display: flex; align-items: center; gap: 28px; }
.nav__enlaces a:not(.boton) { text-decoration: none; font-weight: 700; color: var(--marino); position: relative; }
.nav__enlaces a:not(.boton)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 3px; background: var(--teal); transform: scaleX(0); transition: transform .25s var(--curva); }
.nav__enlaces a:not(.boton):hover::after { transform: scaleX(1); }
.nav.con-fondo { background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); box-shadow: 0 6px 24px -14px rgba(10, 63, 107, .35); }
.nav__menu { display: none; width: 48px; height: 48px; border: 0; border-radius: 14px; background: #fff; box-shadow: var(--sombra-chica); cursor: pointer; padding: 13px 12px; flex-direction: column; justify-content: space-between; }
.nav__menu span { display: block; height: 3px; border-radius: 3px; background: var(--marino); transition: transform .25s, opacity .25s; }
.nav__menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 150px 0 140px;
  background:
    radial-gradient(1200px 600px at 85% 10%, #D9F3F4 0%, transparent 60%),
    radial-gradient(900px 500px at 0% 90%, #E3EEFB 0%, transparent 60%),
    linear-gradient(180deg, #F2FAFF 0%, #EAF7F7 100%);
}
.hero__cielo { position: absolute; inset: 0; pointer-events: none; }
.nube-fondo { position: absolute; color: #fff; filter: drop-shadow(0 12px 24px rgba(10, 63, 107, .08)); will-change: transform; }
.n1 { width: 260px; height: 130px; top: 110px; left: -40px; opacity: .95; }
.n2 { width: 180px; height: 90px; top: 70px; left: 44%; opacity: .8; }
.n3 { width: 320px; height: 160px; bottom: 120px; left: 30%; opacity: .7; }
.n4 { width: 220px; height: 110px; top: 220px; right: -60px; opacity: .9; }
.burbuja { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, rgba(43, 196, 201, .25)); animation: subir 14s linear infinite; }
.b1 { width: 22px; height: 22px; left: 12%; bottom: -30px; }
.b2 { width: 14px; height: 14px; left: 55%; bottom: -30px; animation-delay: 4s; animation-duration: 18s; }
.b3 { width: 30px; height: 30px; left: 80%; bottom: -30px; animation-delay: 8s; animation-duration: 16s; }
@keyframes subir { to { transform: translateY(-110vh) translateX(40px); opacity: 0; } }

.hero__fila { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); font-weight: 800; color: var(--marino); margin: 18px 0 22px; }
.hero__sub { font-size: 19px; color: var(--suave); max-width: 540px; }
.hero__acciones { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.hero__garantias { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero__garantias li { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--marino); font-size: 15px; }
.hero__garantias svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--menta); stroke: #0B6B52; stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.hero__escena { position: relative; height: 620px; }
.aro { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.aro--1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(43, 196, 201, .22), rgba(43, 196, 201, 0) 70%); }
.aro--2 { width: 430px; height: 430px; border: 2px dashed rgba(21, 145, 155, .25); animation: girar 60s linear infinite; }
@keyframes girar { to { transform: translate(-50%, -50%) rotate(360deg); } }

.celular--hero { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; }
.mascota--hero-nimbus { position: absolute; width: 170px; height: 170px; left: -10px; top: 40px; z-index: 3; }
.mascota--hero-plip { position: absolute; width: 150px; height: 150px; right: -6px; bottom: 30px; z-index: 3; }
.orbe { position: absolute; width: 54px; height: 54px; filter: drop-shadow(0 10px 16px rgba(10, 63, 107, .18)); z-index: 1; }
.orbe--1 { right: 40px; top: 60px; }
.orbe--2 { left: 30px; bottom: 120px; width: 44px; height: 44px; }
.orbe--3 { right: 24px; top: 46%; width: 40px; height: 40px; }

.globo {
  position: absolute; z-index: 4; background: #fff; color: var(--marino);
  font-family: var(--titulos); font-weight: 700; font-size: 15px; line-height: 1.3;
  padding: 12px 16px; border-radius: 18px; box-shadow: var(--sombra-chica); max-width: 220px;
}
.globo::after { content: ''; position: absolute; width: 16px; height: 16px; background: #fff; transform: rotate(45deg); border-radius: 3px; }
.globo--hero { left: 60px; top: -14px; animation: aparecer-globo .6s var(--curva) 1s both; }
.globo--hero::after { left: 26px; bottom: -6px; }
@keyframes aparecer-globo { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }

.ola { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 120px; }

/* ---------- Celular (mockup) ---------- */
.celular {
  width: 290px; height: 590px; border-radius: 46px; padding: 12px;
  background: linear-gradient(145deg, #1B2C3E, #0B1724);
  box-shadow: 0 50px 80px -30px rgba(10, 40, 70, .55), inset 0 0 0 2px #31475E;
}
.celular__pantalla {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  background: #F6F7F4; padding: 14px 14px 0; display: flex; flex-direction: column; gap: 12px;
  font-size: 12px;
}
.celular__pantalla::before { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 86px; height: 22px; border-radius: 12px; background: #0B1724; }
.app-barra { display: flex; justify-content: space-between; font-weight: 800; font-size: 11px; color: var(--texto); padding: 2px 8px 6px; }
.app-barra__iconos { display: flex; gap: 3px; align-items: flex-end; }
.app-barra__iconos i { width: 4px; background: var(--texto); border-radius: 1px; }
.app-barra__iconos i:nth-child(1) { height: 5px; } .app-barra__iconos i:nth-child(2) { height: 7px; } .app-barra__iconos i:nth-child(3) { height: 9px; }
.app-saludo { display: flex; align-items: center; gap: 10px; }
.app-saludo small { display: block; color: var(--suave); font-size: 10px; font-weight: 700; }
.app-saludo strong { font-family: var(--titulos); font-size: 18px; color: var(--texto); }
.app-menu { width: 34px; height: 34px; border-radius: 11px; background: #fff; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 0 9px; box-shadow: 0 3px 8px rgba(0, 0, 0, .06); }
.app-menu i { height: 2px; border-radius: 2px; background: var(--texto); }
.app-menu i:nth-child(2) { width: 70%; }
.app-checkin { background: var(--teal); color: #fff; border-radius: 20px; padding: 14px; box-shadow: 0 10px 20px -8px rgba(21, 145, 155, .6); }
.app-checkin strong { display: block; font-family: var(--titulos); font-size: 14px; }
.app-checkin small { color: #CFF1F2; font-size: 10px; }
.app-caras { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 10px; }
.app-caras span { height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; transition: background .3s, transform .3s var(--curva); }
.app-caras svg { width: 30px; height: 30px; }
.app-caras span.activa { background: #fff; transform: translateY(-4px) scale(1.06); box-shadow: 0 8px 14px -6px rgba(0, 0, 0, .35); }
.app-racha { background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 2px 10px rgba(31, 42, 46, .05); }
.app-racha__titulo { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.app-racha__dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 9px; }
.app-racha__dias i { aspect-ratio: 1; border-radius: 50%; background: var(--c); }
.app-racha__dias i.hoy { border: 2px dashed var(--teal); background: transparent; animation: latido 2s ease-in-out infinite; }
@keyframes latido { 0%, 100% { box-shadow: 0 0 0 0 rgba(21, 145, 155, .4); } 50% { box-shadow: 0 0 0 5px rgba(21, 145, 155, 0); } }
.app-tarjeta-lila { display: flex; gap: 10px; align-items: center; background: var(--lila); border-radius: 16px; padding: 12px; }
.app-tarjeta-lila small { display: block; font-size: 9px; font-weight: 800; color: var(--lila-osc); letter-spacing: .08em; }
.app-tarjeta-lila strong { display: block; font-size: 12px; }
.app-tarjeta-lila em { font-style: normal; font-size: 10px; color: var(--suave); }
.app-respira { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #B9B4F5 60%, #7A72E0); animation: respirar 8s ease-in-out infinite; }
@keyframes respirar { 0%, 100% { transform: scale(.72); } 45%, 55% { transform: scale(1); } }

/* ---------- Mascotas (capas SVG) ---------- */
/* :where() deja la especificidad en 0 para que cada ubicación defina su posición */
:where(.mascota) { position: relative; }
.mascota img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; user-select: none; }
.mascota .capa-ojos-cerrados { opacity: 0; }
.mascota.parpadea .capa-ojos-abiertos { animation: ojos-abiertos 5s infinite; }
.mascota.parpadea .capa-ojos-cerrados { animation: ojos-cerrados 5s infinite; }
@keyframes ojos-abiertos { 0%, 92%, 100% { opacity: 1; } 94%, 97% { opacity: 0; } }
@keyframes ojos-cerrados { 0%, 92%, 100% { opacity: 0; } 94%, 97% { opacity: 1; } }

.flotar { animation: flotar 5s ease-in-out infinite; }
.flotar--lento { animation-duration: 7s; animation-delay: -2s; }
@keyframes flotar { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* ---------- Cinta ---------- */
.cinta { background: var(--teal); color: #fff; overflow: hidden; padding: 18px 0; transform: rotate(-1.5deg); margin: -10px -20px 0; box-shadow: 0 14px 30px -16px rgba(21, 145, 155, .7); position: relative; z-index: 2; }
.cinta__pista { display: flex; align-items: center; gap: 26px; width: max-content; animation: cinta 36s linear infinite; }
.cinta__pista span { font-family: var(--titulos); font-weight: 800; font-size: 22px; white-space: nowrap; }
.cinta__pista svg { width: 34px; height: 34px; flex-shrink: 0; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.seccion { padding: 130px 0; position: relative; }
.seccion--cielo { background: linear-gradient(180deg, #F2FAFF, #EAF6F8); }
.seccion__cabeza { text-align: center; max-width: 760px; margin: 0 auto 80px; }
.seccion__cabeza h2 { font-size: clamp(32px, 4vw, 50px); font-weight: 800; color: var(--marino); margin: 16px 0 16px; }
.seccion__cabeza p { font-size: 19px; color: var(--suave); }

/* Funciones: filas alternadas */
.funcion { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 140px; }
.funcion:last-child { margin-bottom: 0; }
.funcion--invertida .funcion__visual { order: 2; }
.funcion__num { font-family: var(--titulos); font-weight: 800; font-size: 15px; color: var(--teal); letter-spacing: .1em; }
.funcion__texto h3 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; color: var(--marino); margin: 10px 0 18px; }
.funcion__texto > p { font-size: 18px; color: var(--suave); }
.lista-check { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.lista-check li { position: relative; padding-left: 38px; font-weight: 700; color: var(--texto); }
.lista-check li::before { content: ''; position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 9px; background: var(--menta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230B6B52' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }

.lienzo { position: relative; border-radius: 40px; min-height: 460px; display: grid; place-items: center; padding: 40px; overflow: visible; }
.lienzo::before { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 0; }
.lienzo > * { position: relative; z-index: 1; }
.lienzo--menta::before { background: radial-gradient(circle at 20% 20%, #F3FFF9, var(--menta-2) 50%, #D6F5E8); }
.lienzo--cielo::before { background: radial-gradient(circle at 80% 20%, #FAFDFF, var(--cielo-2) 55%, #D3E8F6); }
.lienzo--lila::before { background: radial-gradient(circle at 20% 80%, #FBFAFF, var(--lila) 55%, #DCD9F7); }
.lienzo--marino::before { background: radial-gradient(circle at 30% 20%, #135B8C, var(--marino) 70%); }

.tarjeta-flotante { background: #fff; border-radius: 24px; padding: 22px; box-shadow: var(--sombra); }
.tarjeta-flotante small { display: block; font-weight: 800; color: var(--suave); font-size: 13px; margin: 14px 0 8px; }

/* 1. Ánimo */
.tarjeta--animo { width: min(380px, 100%); }
.tarjeta--animo strong { font-family: var(--titulos); font-size: 18px; color: var(--marino); }
.escala { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 14px; }
.escala svg { width: 100%; aspect-ratio: 1; transition: transform .3s var(--curva); }
.escala svg.sel { transform: scale(1.22); filter: drop-shadow(0 8px 10px rgba(55, 199, 112, .45)); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 7px 12px; border-radius: 999px; background: #F1F5F8; font-weight: 700; font-size: 14px; color: var(--suave); }
.chips span.on { background: var(--teal); color: #fff; }
.visible .chips span { animation: chip .5s var(--curva) both; animation-delay: calc(.3s + var(--i) * .08s); }
@keyframes chip { from { opacity: 0; transform: translateY(10px) scale(.8); } to { opacity: 1; transform: none; } }
.mascota--mini { position: absolute !important; width: 120px; height: 120px; right: -20px; bottom: -30px; }

/* 2. Calendario */
.tarjeta--calendario { width: min(380px, 100%); }
.cal__cabeza { display: flex; justify-content: space-between; align-items: center; font-family: var(--titulos); color: var(--marino); }
.cal__cabeza strong { font-size: 18px; }
.cal__cabeza span { color: var(--suave); letter-spacing: .3em; }
.cal__dias, .cal__grilla { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.cal__dias { margin: 14px 0 8px; text-align: center; }
.cal__dias b { font-size: 12px; color: var(--suave); }
.cal__grilla span { aspect-ratio: 1; border-radius: 50%; background: #EEF3F6; transform: scale(.4); opacity: .4; transition: transform .45s var(--curva), opacity .45s, background .45s; }
.cal__grilla span.vacio { visibility: hidden; }
.cal__grilla span.pintado { transform: scale(1); opacity: 1; }
.cal__grilla span.hoy { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--teal); }
.cal__leyenda { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.cal__leyenda { flex-wrap: wrap; gap: 6px 12px; }
.cal__leyenda span { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--suave); }
.cal__leyenda i { width: 10px; height: 10px; border-radius: 50%; }
.tarjeta--dia { position: absolute !important; right: -14px; bottom: -28px; display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 18px; }
.tarjeta--dia svg { width: 40px; height: 40px; flex-shrink: 0; }
.tarjeta--dia strong { display: block; font-size: 15px; color: var(--marino); }
.tarjeta--dia small { margin: 2px 0 0; font-size: 12px; }

/* 3. Motor */
.mascota--motor { position: absolute !important; width: 190px; height: 190px; left: 10px; top: 10px; }
.globo--motor { left: 190px; top: 20px; max-width: 230px; }
.globo--motor::after { left: -6px; top: 22px; }
.tarjeta--medidor { margin-top: 140px; text-align: center; width: min(320px, 100%); }
.tarjeta--medidor small { margin-top: 0; }
.medidor { width: 220px; margin: 4px auto 0; }
.medidor__arco { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s var(--curva) .3s; }
.medidor__aguja { transform-origin: 100px 100px; transform: rotate(-90deg); transition: transform 1.6s cubic-bezier(.3, 1.4, .4, 1) .3s; }
.visible .medidor__arco { stroke-dashoffset: 0; }
.visible .medidor__aguja { transform: rotate(-72deg); }
.medidor__etiqueta { display: block; font-family: var(--titulos); font-size: 22px; color: var(--marino); margin-top: 6px; }
.tarjeta--medidor em { font-style: normal; font-size: 13px; color: var(--teal); font-weight: 800; }

/* 4. Juegos */
.juegos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; width: min(440px, 100%); }
.juego { background: #fff; border-radius: 24px; padding: 18px; box-shadow: var(--sombra-chica); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; transition: transform .3s var(--curva); }
.juego:hover { transform: translateY(-6px) rotate(-1deg); }
.juego strong { font-family: var(--titulos); font-size: 15px; color: var(--marino); }
.respira { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.respira__circulo { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #E6FFFB, #6BD7D0 55%, var(--teal)); animation: respirar 8s ease-in-out infinite; box-shadow: 0 0 0 10px rgba(43, 196, 201, .12); }
.respira__texto { position: relative; font-family: var(--titulos); font-weight: 700; color: #fff; font-size: 15px; text-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.memoria { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 120px; height: 120px; }
.carta { border-radius: 12px; background: #FFF3E6; display: grid; place-items: center; animation: voltear 4s ease-in-out infinite; }
.carta svg { width: 34px; height: 34px; }
.carta.volteada { background: linear-gradient(135deg, var(--teal), var(--azul)); animation-delay: 2s; }
@keyframes voltear { 0%, 40%, 100% { transform: rotateY(0); } 50%, 90% { transform: rotateY(180deg); } }
.planta { width: 120px; height: 120px; }
.planta .tallo { stroke-dasharray: 100; stroke-dashoffset: 100; }
.planta .hoja, .planta .flor { transform-box: fill-box; transform-origin: center bottom; transform: scale(0); }
.visible .planta .tallo { animation: dibujar 1.2s var(--curva) .3s forwards; }
.visible .planta .h1 { animation: brotar .6s var(--curva) 1.1s forwards; transform-origin: right bottom; }
.visible .planta .h2 { animation: brotar .6s var(--curva) 1.4s forwards; transform-origin: left bottom; }
.visible .planta .flor { animation: brotar .7s cubic-bezier(.3, 1.6, .4, 1) 1.8s forwards; transform-origin: center; }
@keyframes dibujar { to { stroke-dashoffset: 0; } }
@keyframes brotar { to { transform: scale(1); } }
.tension { display: flex; align-items: flex-end; gap: 7px; height: 120px; padding-bottom: 6px; }
.tension span { width: 16px; border-radius: 8px; background: linear-gradient(180deg, var(--teal-claro), var(--azul)); animation: tension 2.6s ease-in-out infinite; }
.tension span:nth-child(1) { animation-delay: 0s; } .tension span:nth-child(2) { animation-delay: .15s; } .tension span:nth-child(3) { animation-delay: .3s; } .tension span:nth-child(4) { animation-delay: .45s; } .tension span:nth-child(5) { animation-delay: .6s; }
@keyframes tension { 0%, 100% { height: 30%; } 50% { height: 95%; } }

/* 5. Hábitos */
.tarjeta--habitos { width: min(360px, 100%); }
.tarjeta--habitos > strong { font-family: var(--titulos); font-size: 18px; color: var(--marino); }
.habitos { list-style: none; padding: 0; margin: 14px 0 16px; display: grid; gap: 10px; }
.habitos li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #F6F9FB; font-weight: 700; transition: background .3s; }
.caja { width: 26px; height: 26px; border-radius: 9px; border: 2.5px solid #C3D2DD; flex-shrink: 0; position: relative; transition: background .3s, border-color .3s; }
.caja::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .4, 1); }
.habitos li.hecho { background: var(--menta-2); }
.habitos li.hecho .caja { background: #2BB9A0; border-color: #2BB9A0; }
.habitos li.hecho .caja::after { transform: scale(1); }
.progreso { height: 12px; border-radius: 99px; background: #EAF0F4; overflow: hidden; }
.progreso span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #2BB9A0, var(--teal)); transition: width .6s var(--curva); }
.notificacion { position: absolute !important; top: 24px; left: 50%; width: min(330px, 90%); display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 20px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); box-shadow: var(--sombra); transform: translate(-50%, -30px); opacity: 0; transition: transform .7s var(--curva) 1.8s, opacity .7s 1.8s; }
.visible .notificacion { transform: translate(-50%, 0); opacity: 1; }
.notificacion img { width: 40px; height: 40px; border-radius: 11px; }
.notificacion strong { display: block; font-size: 12px; color: var(--suave); }
.notificacion span { font-size: 14px; font-weight: 700; }
.funcion__visual:has(.tarjeta--habitos) .lienzo { padding-top: 120px; }

/* 6. Privacidad */
.escudo { width: 180px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); animation: flotar 6s ease-in-out infinite; }
.codigo2fa { margin-top: 28px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 22px; padding: 16px 20px; text-align: center; backdrop-filter: blur(6px); }
.codigo2fa small { color: #BFE9EC; font-weight: 800; font-size: 13px; }
.codigo2fa__cajas { display: flex; gap: 8px; margin-top: 10px; }
.codigo2fa__cajas span { width: 42px; height: 52px; border-radius: 12px; background: #fff; color: var(--marino); display: grid; place-items: center; font-family: var(--titulos); font-weight: 800; font-size: 24px; transform: translateY(14px); opacity: 0; }
.visible .codigo2fa__cajas span { animation: digito .4s var(--curva) forwards; }
.visible .codigo2fa__cajas span:nth-child(1) { animation-delay: .4s; } .visible .codigo2fa__cajas span:nth-child(2) { animation-delay: .55s; } .visible .codigo2fa__cajas span:nth-child(3) { animation-delay: .7s; } .visible .codigo2fa__cajas span:nth-child(4) { animation-delay: .85s; } .visible .codigo2fa__cajas span:nth-child(5) { animation-delay: 1s; } .visible .codigo2fa__cajas span:nth-child(6) { animation-delay: 1.15s; }
@keyframes digito { to { transform: none; opacity: 1; } }

/* ---------- Cómo funciona ---------- */
.pasos { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.pasos__linea { position: absolute; left: 12%; right: 12%; top: 26px; width: 76%; height: 20px; overflow: visible; }
.pasos__linea path { fill: none; stroke: var(--teal); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; vector-effect: non-scaling-stroke; }
.paso { position: relative; text-align: center; background: #fff; border-radius: 28px; padding: 66px 22px 28px; margin-top: 26px; box-shadow: var(--sombra-chica); transition: transform .3s var(--curva); }
.paso:hover { transform: translateY(-6px); }
.paso__num { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); width: 52px; height: 52px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-family: var(--titulos); font-weight: 800; font-size: 22px; box-shadow: 0 0 0 8px #EEF8FA, 0 5px 0 var(--teal-osc); }
.paso__icono { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 26px; background: var(--cielo); display: grid; place-items: center; }
.paso__icono > svg { width: 54px; height: 54px; }
.paso__icono--mascota { background: var(--lila); }
.mascota--paso { width: 84px; height: 84px; }
.paso h3 { font-size: 21px; color: var(--marino); margin-bottom: 8px; }
.paso p { color: var(--suave); font-size: 16px; }

/* ---------- Cifras ---------- */
.cifras { background: linear-gradient(120deg, var(--teal) 0%, var(--azul) 100%); color: #fff; padding: 80px 0; position: relative; overflow: hidden; }
.cifras::before, .cifras::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.cifras::before { width: 420px; height: 420px; left: -120px; top: -200px; }
.cifras::after { width: 300px; height: 300px; right: -80px; bottom: -160px; }
.cifras__fila { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.cifra { text-align: center; }
.cifra strong { display: block; font-family: var(--titulos); font-size: clamp(44px, 5vw, 64px); font-weight: 800; line-height: 1; }
.cifra span { display: block; margin-top: 10px; color: #D5EFF3; font-weight: 700; font-size: 16px; }
.cifra strong span { display: inline; margin: 0; color: #fff; font-size: inherit; }

/* ---------- Mascotas ---------- */
.mascotas { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; max-width: 900px; margin: 0 auto; }
.mascota-tarjeta { position: relative; border: 0; cursor: pointer; text-align: center; border-radius: 36px; padding: 90px 30px 36px; font: inherit; color: inherit; box-shadow: var(--sombra); transition: transform .3s var(--curva); }
.mascota-tarjeta:hover { transform: translateY(-8px) rotate(-1deg); }
.mascota-tarjeta--nimbus { background: linear-gradient(180deg, #F4F9FF, #E1EEFB); }
.mascota-tarjeta--plip { background: linear-gradient(180deg, #F0FCFB, #D6F2F0); }
.mascota-tarjeta--plip:hover { transform: translateY(-8px) rotate(1deg); }
.mascota--grande { width: 230px; height: 230px; margin: 0 auto; }
.mascota-tarjeta h3 { font-size: 32px; color: var(--marino); margin: 8px 0 10px; }
.mascota-tarjeta p { color: var(--suave); }
.globo--tarjeta { top: 22px; left: 50%; transform: translateX(-50%); white-space: nowrap; max-width: none; transition: transform .3s var(--curva); }
.globo--tarjeta::after { left: calc(50% - 8px); bottom: -6px; }
.globo--tarjeta.cambio { animation: rebote .45s var(--curva); }
@keyframes rebote { 0% { transform: translateX(-50%) scale(.8); } 60% { transform: translateX(-50%) scale(1.08); } 100% { transform: translateX(-50%) scale(1); } }
.mascota-tarjeta.salta .mascota--grande { animation: saltar .6s var(--curva); }
@keyframes saltar { 0%, 100% { translate: 0 0; } 40% { translate: 0 -30px; } 70% { translate: 0 4px; } }

/* ---------- Descarga ---------- */
.seccion--descarga { padding-top: 100px; }
.descarga { position: relative; display: grid; grid-template-columns: 1.4fr .8fr; gap: 40px; align-items: center; padding: 64px; border-radius: 44px; color: #fff; overflow: hidden; background: linear-gradient(125deg, #17A1AC 0%, var(--teal) 35%, var(--azul) 100%); box-shadow: 0 40px 80px -30px rgba(10, 84, 131, .6); }
.descarga__brillo { position: absolute; width: 600px; height: 600px; border-radius: 50%; right: -200px; top: -260px; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%); pointer-events: none; }
.descarga__texto { position: relative; }
.descarga h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; margin: 18px 0 16px; }
.descarga__texto > p { color: #DDF3F5; font-size: 18px; max-width: 520px; margin-bottom: 30px; }
.descarga__meta { margin-top: 18px !important; font-weight: 700; color: #BFE6EA !important; font-size: 15px !important; }
.descarga__qr { position: relative; text-align: center; }
.qr { width: 220px; height: 220px; margin: 0 auto; background: #fff; border-radius: 28px; padding: 18px; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .35); display: grid; place-items: center; }
.qr img, .qr svg { width: 100%; height: 100%; }
.descarga__qr span { display: block; margin-top: 14px; font-weight: 700; color: #DDF3F5; }
.mascota--asomada { position: absolute !important; width: 130px; height: 130px; right: 34px; bottom: -22px; transform: rotate(-10deg); }
.instalar { list-style: none; padding: 0; margin: 70px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.instalar li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: 24px; padding: 24px; box-shadow: var(--sombra-chica); }
.instalar li > span { flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; background: var(--menta); color: #0B6B52; display: grid; place-items: center; font-family: var(--titulos); font-weight: 800; font-size: 20px; }
.instalar strong { display: block; font-family: var(--titulos); color: var(--marino); font-size: 18px; margin-bottom: 4px; }
.instalar p { color: var(--suave); font-size: 15px; }
.instalar em { font-style: normal; font-weight: 800; color: var(--texto); }

/* ---------- Preguntas ---------- */
.faq { display: grid; gap: 14px; }
.faq details { background: #fff; border-radius: 22px; box-shadow: var(--sombra-chica); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 26px; font-family: var(--titulos); font-weight: 700; font-size: 18px; color: var(--marino); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 24px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 10px; background: var(--cielo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%2315919B' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .3s var(--curva); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 26px 24px; color: var(--suave); }
.ayuda { display: flex; gap: 18px; align-items: flex-start; margin-top: 40px; padding: 24px 26px; border-radius: 24px; background: #FFF4EA; border: 2px solid #FFE0C2; }
.ayuda svg { width: 40px; height: 40px; flex-shrink: 0; fill: var(--calido); }
.ayuda strong { font-family: var(--titulos); color: #8A4512; font-size: 18px; }
.ayuda p { color: #6E4A2E; margin-top: 4px; }

/* ---------- Pie ---------- */
.pie { background: var(--marino); color: #CFE2EF; padding: 64px 0 36px; }
.pie__fila { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 30px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.pie__marca { display: flex; align-items: center; gap: 16px; }
.pie__marca img { border-radius: 16px; }
.pie__marca strong { display: block; font-family: var(--titulos); color: #fff; font-size: 22px; }
.pie__enlaces { display: flex; flex-wrap: wrap; gap: 26px; }
.pie__enlaces a { text-decoration: none; font-weight: 700; }
.pie__enlaces a:hover { color: #fff; }
.pie__legal { padding-top: 26px; display: grid; gap: 6px; font-size: 14px; color: #9DB8CC; }

/* ---------- Animaciones al hacer scroll ---------- */
[data-anim] { opacity: 0; transition: opacity .8s var(--curva), transform .8s var(--curva); }
[data-anim="up"] { transform: translateY(40px); }
[data-anim="left"] { transform: translateX(-60px); }
[data-anim="right"] { transform: translateX(60px); }
[data-anim="zoom"] { transform: scale(.88); }
.celular--hero[data-anim="zoom"] { transform: translate(-50%, -50%) scale(.88); }
[data-anim].visible { opacity: 1; transform: none; }
.celular--hero[data-anim].visible { transform: translate(-50%, -50%); }
[data-delay="1"] { transition-delay: .1s; } [data-delay="2"] { transition-delay: .2s; } [data-delay="3"] { transition-delay: .3s; } [data-delay="4"] { transition-delay: .4s; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero__fila { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__acciones, .hero__garantias { justify-content: center; }
  .hero__escena { height: 600px; max-width: 520px; width: 100%; margin: 0 auto; }
  .funcion, .funcion--invertida { grid-template-columns: 1fr; gap: 50px; margin-bottom: 110px; }
  .funcion--invertida .funcion__visual { order: 0; }
  .pasos { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .pasos__linea { display: none; }
  .cifras__fila { grid-template-columns: 1fr 1fr; row-gap: 46px; }
  .descarga { grid-template-columns: 1fr; text-align: center; padding: 50px 32px 70px; }
  .descarga__texto > p { margin-inline: auto; }
  .instalar { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  body { font-size: 16px; }
  .nav__menu { display: flex; }
  .nav__enlaces { position: fixed; top: 84px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 6px; padding: 16px; border-radius: 24px; background: #fff; box-shadow: var(--sombra); transform: translateY(-14px); opacity: 0; pointer-events: none; transition: transform .25s var(--curva), opacity .25s; }
  .nav__enlaces.abierto { transform: none; opacity: 1; pointer-events: auto; }
  .nav__enlaces a:not(.boton) { padding: 12px 14px; border-radius: 12px; }
  .nav__enlaces a:not(.boton):hover { background: var(--cielo); }
  .nav__enlaces a:not(.boton)::after { display: none; }
  .nav__logo img { height: 38px; }
  .hero { padding: 120px 0 110px; }
  .hero__sub { font-size: 17px; }
  .hero__acciones .boton { width: 100%; }
  .hero__escena { height: 560px; }
  .celular { transform-origin: center; }
  .celular--hero[data-anim].visible { transform: translate(-50%, -50%) scale(.86); }
  .mascota--hero-nimbus { width: 120px; height: 120px; left: -6px; top: 10px; }
  .mascota--hero-plip { width: 110px; height: 110px; right: -6px; bottom: 10px; }
  .globo--hero { left: 96px; top: 0; font-size: 13px; }
  .aro--1 { width: 380px; height: 380px; } .aro--2 { width: 330px; height: 330px; }
  .orbe--1 { right: 8px; top: 80px; }
  .seccion { padding: 90px 0; }
  .seccion__cabeza { margin-bottom: 54px; }
  .seccion__cabeza p { font-size: 17px; }
  .lienzo { min-height: 380px; padding: 28px 18px; border-radius: 32px; }
  .mascota--mini { width: 90px; height: 90px; right: -8px; bottom: -24px; }
  .mascota--motor { width: 130px; height: 130px; left: 0; top: 0; }
  .globo--motor { left: auto; right: 12px; top: 12px; max-width: 170px; font-size: 13px; }
  .tarjeta--medidor { margin-top: 120px; }
  .tarjeta--dia { right: 6px; bottom: -20px; }
  .juegos { gap: 12px; }
  .juego { padding: 14px 10px; }
  .respira, .memoria, .planta, .tension { width: 96px; height: 96px; }
  .pasos { grid-template-columns: 1fr; }
  .cifras__fila { gap: 34px 16px; }
  .cifra span { font-size: 14px; }
  .mascotas { grid-template-columns: 1fr; }
  .mascota--grande { width: 190px; height: 190px; }
  .descarga { padding: 40px 22px 80px; border-radius: 32px; }
  .descarga .boton { width: 100%; }
  .qr { width: 190px; height: 190px; }
  .mascota--asomada { width: 110px; height: 110px; right: 12px; bottom: -40px; }
  .codigo2fa__cajas span { width: 34px; height: 44px; font-size: 20px; }
  .cinta__pista span { font-size: 18px; }
}

/* Respeta a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-anim] { opacity: 1; transform: none; }
  .celular--hero[data-anim] { transform: translate(-50%, -50%); }
}

/* ---------- Capturas reales de la app ---------- */
.celular__pantalla--captura { padding: 0; background: #DDE3E1; }
.celular__pantalla--captura img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.celular__pantalla--captura::before { z-index: 1; }

.boton-app { display: block; margin-top: 16px; padding: 11px; border-radius: 12px; background: var(--teal); color: #fff; text-align: center; font-family: var(--titulos); font-weight: 700; font-size: 14px; }
.progreso__texto { display: block; margin-top: 8px; font-style: normal; font-size: 13px; font-weight: 800; color: var(--teal-osc); text-align: center; }

/* Juegos: el jardín real + dos juegos animados alrededor */
.escena-jardin { position: relative; width: min(460px, 100%); height: 540px; }
.celular--mini { position: absolute; left: 50%; top: 50%; width: 250px; height: 520px; border-radius: 40px; padding: 10px; transform: translate(-62%, -50%) rotate(-3deg); }
.celular--mini .celular__pantalla { border-radius: 31px; }
.escena-jardin .juego { position: absolute; width: 170px; z-index: 2; }
.juego--flota-1 { right: 0; top: 30px; animation: flotar 6s ease-in-out infinite; }
.juego--flota-2 { right: 10px; bottom: 30px; animation: flotar 7s ease-in-out -2s infinite; }

@media (max-width: 780px) {
  .escena-jardin { height: 460px; }
  .celular--mini { width: 210px; height: 440px; transform: translate(-66%, -50%) rotate(-3deg); }
  .escena-jardin .juego { width: 136px; }
  .escena-jardin .respira, .escena-jardin .tension { width: 84px; height: 84px; }
  .juego--flota-1 { right: -6px; }
  .juego--flota-2 { right: -6px; }
}
