/* La landing de familitos.com (v2, presentación de producto, 27-10-2026). Colores de la marca (marca/README.md).
   La CSP no deja estilos en línea ni fuentes externas: todo va por clases y Nunito es la local. */
@font-face {
  font-family: Nunito;
  src: url("/landing/nunito-bold.ttf") format("truetype");
  font-weight: 700 800;
  font-display: swap;
}

:root {
  --bg: #fbf7ee;
  --surface: #fff;
  --text: #2b2622;
  --muted: #6b625a;
  --accent: #ff6b4a;
  --sun: #ffb347;
  --line: #ebe3d6;
  --now: #fff7ea;
  --lila: #8b5cf6;
  --lila-claro: #e6dcff;
  --azul: #3b82f6;
  --heading: Nunito, ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1b1715; --surface: #26211e; --text: #f4eee6; --muted: #b5aa9f; --line: #3a332e; --now: #332a1f; --lila: #b19bff; --lila-claro: #4a3f6b; --azul: #7fb0ff; }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font: 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--heading); font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.defs { position: absolute; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* Cabecera */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--heading); font-size: 24px; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--sun)); box-shadow: 0 4px 12px rgba(255, 107, 74, .35); }
.brand-mark svg { width: 27px; height: 27px; }
.wordmark { display: inline-flex; align-items: baseline; letter-spacing: -.01em; }
.wordmark svg { height: 1em; width: auto; margin: 0 .015em; fill: var(--accent); overflow: visible; }
.top-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.top-link { font-weight: 700; color: var(--muted); text-decoration: none; font-size: 15px; }
.top-link:hover { color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 16px; text-decoration: none; font-family: var(--heading); font-weight: 800; font-size: 17px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--sun)); box-shadow: 0 8px 20px rgba(255, 107, 74, .3); }
.btn:hover { filter: brightness(1.05); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn-ghost { background: transparent; box-shadow: none; color: var(--text); border: 2px solid var(--line); }
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); filter: none; }
.eyebrow { font-family: var(--heading); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

/* Portada */
.hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; padding: 36px 0 24px; }
.hero > *, .scene > *, .night > *, .movil > * { min-width: 0; }
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); }
.hero .lead { font-size: 20px; margin-top: 20px; max-width: 480px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-img { width: 100%; border-radius: 32px; box-shadow: 0 28px 50px rgba(43, 38, 34, .22); }
.claims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 8px 0 72px; }
.claim { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.claim svg { width: 26px; height: 26px; flex: none; color: var(--accent); }
.claim b { display: block; font-family: var(--heading); font-size: 16px; }
.claim span { font-size: 14px; color: var(--muted); }

/* Bandas */
.band { padding: 72px 0; }
.band.white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band.dark { background: #1b1715; color: #f4eee6; }
.band.dark .muted { color: #b5aa9f; }
.band h2 { font-size: clamp(30px, 3.6vw, 44px); }
.center { text-align: center; }
.sub { font-size: 19px; color: var(--muted); margin-top: 12px; max-width: 620px; }
.center .sub { margin-left: auto; margin-right: auto; }

/* Tres gestos: la caja dibujada (el símbolo #caja) en cada estado */
.gestos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.gesto { border-radius: 26px; background: var(--bg); padding: 28px 28px 30px; }
.gesto .art { height: 270px; display: grid; place-items: center; position: relative; }
.gesto h3 { font-size: 26px; margin-top: 8px; }
.gesto p { color: var(--muted); margin-top: 8px; font-size: 16px; }
.k { font-family: var(--heading); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.caja-ilu { width: 100%; max-width: 270px; height: auto; overflow: visible; }
.caja-ilu.grande { max-width: 420px; }

/* Escenas */
.scene { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; }
.scene.flip .text { order: 2; }
.scene h2 { font-size: clamp(28px, 3.2vw, 40px); }
.scene .sub { font-size: 18px; margin-top: 14px; }
.scene ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--muted); font-size: 16px; }
.scene li { display: flex; gap: 10px; align-items: flex-start; }
.scene li svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 3px; }
.visual { border-radius: 30px; background: var(--surface); border: 1px solid var(--line); min-height: 340px; display: grid; place-items: center; padding: 32px; position: relative; overflow: hidden; }
.visual.photo { padding: 0; min-height: 0; }
.visual.photo img { width: 100%; height: 440px; object-fit: cover; border-radius: 30px; }
.visual.collage { display: grid; grid-template-columns: 1.05fr 1fr; gap: 14px; background: transparent; border: 0; }
.visual.collage img { height: 460px; border-radius: 26px; }
.msg-visual { padding: 40px 32px 32px; min-height: 0; background: var(--bg); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: 0 10px 24px rgba(43, 38, 34, .08); }
.bname { font-family: var(--heading); font-size: 13px; margin-bottom: 8px; }
.bname.tinta { color: var(--text); }
.bstate { font-size: 13px; color: var(--muted); margin-top: 8px; }
.bstate.pegado { margin-top: 2px; }
.msg-card { position: absolute; right: 28px; top: 28px; width: 220px; color: var(--lila); }
.msg-card .bname { color: var(--lila); }
.wave { display: flex; align-items: center; gap: 3px; height: 26px; }
.wave i { display: block; width: 4px; border-radius: 2px; background: currentColor; }
.player { width: 100%; max-width: 420px; color: var(--azul); }
.player .title { font-family: var(--heading); font-size: 18px; color: var(--text); }
.player .wave { height: 44px; gap: 3px; margin: 12px 0 8px; }
.player .wave i { width: 5px; }
.player .row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.player .head { display: flex; gap: 14px; align-items: center; }
.play { width: 44px; height: 44px; border-radius: 50%; background: var(--azul); display: grid; place-items: center; color: #fff; flex: none; }
.play svg { width: 18px; height: 18px; }
.night { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.night .art { display: grid; place-items: center; }
.night .art img { width: 100%; max-width: 520px; border-radius: 30px; box-shadow: 0 24px 48px rgba(0, 0, 0, .45); }
.night h2 { color: #f4eee6; }

/* Para la familia: el móvil con el chat de la nube */
.movil { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: center; }
.phone { width: 320px; margin: 0 auto; border-radius: 42px; background: #2b2622; padding: 12px; box-shadow: 0 30px 50px rgba(43, 38, 34, .25); }
.screen { background: var(--bg); border-radius: 32px; padding: 18px 16px 16px; display: grid; gap: 12px; min-height: 560px; }
.phead { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--lila-claro); border: 3px solid #a78bfa; }
.phead b { font-family: var(--heading); font-size: 15px; display: block; }
.phead span { font-size: 12px; color: var(--muted); }
.tabs { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; font-size: 13px; font-weight: 700; }
.tabs span { flex: 1; text-align: center; padding: 6px 0; border-radius: 9px; color: var(--muted); }
.tabs span.on { background: var(--accent); color: #fff; }
.day { text-align: center; font-size: 11px; color: var(--muted); font-weight: 700; margin-top: 4px; }
.bub { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; width: 86%; }
.bub.me { margin-left: auto; border-bottom-right-radius: 6px; color: var(--lila); }
.bub.her { border-bottom-left-radius: 6px; color: var(--accent); }
.bub .bname { margin-bottom: 6px; font-size: 12px; }
.bub .wave { height: 20px; }
.bub .wave i { width: 3px; }
.bub .bstate { font-size: 11px; margin-top: 6px; }
.rec { margin-top: auto; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; }
.rec .dot { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--sun)); display: grid; place-items: center; color: #fff; }
.rec .dot svg { width: 20px; height: 20px; }
.rec b { font-family: var(--heading); font-size: 14px; display: block; }
.rec span { font-size: 12px; color: var(--muted); }
.perks { display: grid; gap: 14px; margin-top: 22px; }
.perk { display: flex; gap: 14px; align-items: flex-start; }
.perk svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 3px; }
.perk b { font-family: var(--heading); display: block; font-size: 17px; }
.perk span { color: var(--muted); font-size: 15px; }

/* Crece con ella */
.ages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.age { background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.age.now { border-color: var(--sun); background: var(--now); }
.age .k { display: block; margin-bottom: 8px; }
.age h3 { font-size: 20px; }
.age p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.age .tag { display: inline-block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--sun); border-radius: 999px; padding: 3px 9px; margin-bottom: 10px; font-family: var(--heading); }

/* Cierre */
.close { text-align: center; padding: 80px 0 60px; }
.close blockquote { margin: 0 auto; max-width: 760px; font-family: var(--heading); font-size: clamp(26px, 3.2vw, 38px); line-height: 1.2; letter-spacing: -.02em; }
.close .ctas { justify-content: center; }
footer { border-top: 1px solid var(--line); padding: 22px 0 calc(32px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }

@media (max-width: 860px) {
  .top-link { display: none; }
  .hero, .scene, .night, .movil, .claims, .gestos, .ages { grid-template-columns: 1fr; }
  .hero { padding-top: 12px; }
  .hero .img { order: -1; }
  .scene.flip .text { order: 0; }
  .scene { gap: 28px; padding: 40px 0; }
  .band { padding: 56px 0; }
  .visual.collage { grid-template-columns: 1fr 1fr; }
  .visual.collage img { height: 300px; }
  .msg-card { position: static; width: 100%; margin-top: 16px; }
  .phone { width: 100%; max-width: 320px; }
}

/* Las ondas de las grabaciones dibujadas: las alturas de cada barra */
.wave.w1 i:nth-child(1) { height: 6px; }
.wave.w1 i:nth-child(2) { height: 12px; }
.wave.w1 i:nth-child(3) { height: 18px; }
.wave.w1 i:nth-child(4) { height: 10px; }
.wave.w1 i:nth-child(5) { height: 22px; }
.wave.w1 i:nth-child(6) { height: 14px; }
.wave.w1 i:nth-child(7) { height: 8px; }
.wave.w1 i:nth-child(8) { height: 16px; }
.wave.w1 i:nth-child(9) { height: 11px; }
.wave.w1 i:nth-child(10) { height: 6px; }
.wave.w1 i:nth-child(11) { height: 13px; }
.wave.w1 i:nth-child(12) { height: 9px; }
.wave.w1 i:nth-child(13) { height: 17px; }
.wave.w1 i:nth-child(14) { height: 7px; }
.wave.w2 i:nth-child(1) { height: 8px; }
.wave.w2 i:nth-child(2) { height: 16px; }
.wave.w2 i:nth-child(3) { height: 28px; }
.wave.w2 i:nth-child(4) { height: 20px; }
.wave.w2 i:nth-child(5) { height: 36px; }
.wave.w2 i:nth-child(6) { height: 24px; }
.wave.w2 i:nth-child(7) { height: 12px; }
.wave.w2 i:nth-child(8) { height: 30px; }
.wave.w2 i:nth-child(9) { height: 18px; }
.wave.w2 i:nth-child(10) { height: 10px; }
.wave.w2 i:nth-child(11) { height: 26px; }
.wave.w2 i:nth-child(12) { height: 40px; }
.wave.w2 i:nth-child(13) { height: 22px; }
.wave.w2 i:nth-child(14) { height: 14px; }
.wave.w2 i:nth-child(15) { height: 32px; }
.wave.w2 i:nth-child(16) { height: 20px; }
.wave.w2 i:nth-child(17) { height: 9px; }
.wave.w2 i:nth-child(18) { height: 24px; }
.wave.w2 i:nth-child(19) { height: 34px; }
.wave.w2 i:nth-child(20) { height: 16px; }
.wave.w2 i:nth-child(21) { height: 28px; }
.wave.w2 i:nth-child(22) { height: 12px; }
.wave.w2 i:nth-child(23) { height: 20px; }
.wave.w2 i:nth-child(24) { height: 38px; }
.wave.w2 i:nth-child(25) { height: 18px; }
.wave.w2 i:nth-child(26) { height: 10px; }
.wave.w2 i:nth-child(27) { height: 26px; }
.wave.w2 i:nth-child(28) { height: 14px; }
.wave.w2 i:nth-child(29) { height: 30px; }
.wave.w2 i:nth-child(30) { height: 8px; }
.wave.w3 i:nth-child(1) { height: 6px; }
.wave.w3 i:nth-child(2) { height: 12px; }
.wave.w3 i:nth-child(3) { height: 16px; }
.wave.w3 i:nth-child(4) { height: 9px; }
.wave.w3 i:nth-child(5) { height: 14px; }
.wave.w3 i:nth-child(6) { height: 7px; }
.wave.w3 i:nth-child(7) { height: 11px; }
.wave.w3 i:nth-child(8) { height: 15px; }
.wave.w3 i:nth-child(9) { height: 8px; }
.wave.w4 i:nth-child(1) { height: 5px; }
.wave.w4 i:nth-child(2) { height: 9px; }
.wave.w4 i:nth-child(3) { height: 13px; }
.wave.w4 i:nth-child(4) { height: 7px; }
.wave.w4 i:nth-child(5) { height: 10px; }
.wave.w4 i:nth-child(6) { height: 4px; }
.wave.w5 i:nth-child(1) { height: 8px; }
.wave.w5 i:nth-child(2) { height: 14px; }
.wave.w5 i:nth-child(3) { height: 10px; }
.wave.w5 i:nth-child(4) { height: 16px; }
.wave.w5 i:nth-child(5) { height: 12px; }
.wave.w5 i:nth-child(6) { height: 6px; }
.wave.w5 i:nth-child(7) { height: 15px; }
.wave.w5 i:nth-child(8) { height: 9px; }
.wave.w5 i:nth-child(9) { height: 13px; }
.wave.w5 i:nth-child(10) { height: 7px; }
.wave.w5 i:nth-child(11) { height: 11px; }
