
:root {
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  --b1: #2F5FEC; --b2: #38C6F0; --grad: linear-gradient(135deg, var(--b1), var(--b2));
  --ink: #1E2530; --muted: #5B6475; --bg: #FFFFFF; --soft: #F4F7FC; --line: #E3E8F2; --card: #FFFFFF;
  --ok: #16B38A; --ok-soft: #E3F7F1; --warn: #F5A524; --err: #E5484D; --err-soft: #FDECEC;
  --glass: rgba(255,255,255,.72); --glass-line: rgba(255,255,255,.6);
  --shadow: 0 1px 2px rgba(30,37,48,.06), 0 12px 32px -12px rgba(47,95,236,.22);
  --shadow-lg: 0 30px 60px -20px rgba(47,95,236,.35);
  --r: 18px; --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ink-sig: #1E2530;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E8EDF7; --muted: #9AA6BD; --bg: #0B1020; --soft: #111831; --line: #243049; --card: #131C35;
    --ok-soft: #0F3029; --err-soft: #3A1518; --glass: rgba(19,28,53,.72); --glass-line: rgba(255,255,255,.08);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6); --ink-sig: #E8EDF7;
  }
}
:root[data-theme="dark"] {
  --ink: #E8EDF7; --muted: #9AA6BD; --bg: #0B1020; --soft: #111831; --line: #243049; --card: #131C35;
  --ok-soft: #0F3029; --err-soft: #3A1518; --glass: rgba(19,28,53,.72); --glass-line: rgba(255,255,255,.08);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6); --ink-sig: #E8EDF7;
}
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 80px); scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
a { color: var(--b1); }
button { font-family: inherit; }
img, svg, canvas { max-width: 100%; }
:focus-visible { outline: 3px solid var(--b2); outline-offset: 2px; border-radius: 8px; }
.view[hidden] { display: none !important; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--glass); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; cursor: pointer; font-size: 1.02rem; }
.brand .mark { width: 36px; height: 36px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; box-shadow: var(--shadow); }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: .74rem; letter-spacing: 0; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { white-space: nowrap; }
@media (max-width: 1180px) { .nav-links a[href="#s-sim"] { display: none; } }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 14px 24px; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(47,95,236,.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(47,95,236,.8); }
.btn-primary:active { transform: translateY(0); }
.btn-soft { background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.btn-soft:hover { border-color: var(--b1); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }
.btn-sm { padding: 9px 16px; font-size: .9rem; border-radius: 12px; }
.linklike { background: none; border: 0; color: var(--b1); font-weight: 600; cursor: pointer; padding: 0; font-size: .95rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.blobs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: float 18s ease-in-out infinite; }
.blob.a { width: 520px; height: 520px; background: #2F5FEC; top: -180px; right: -120px; }
.blob.b { width: 420px; height: 420px; background: #38C6F0; bottom: -200px; left: -120px; animation-delay: -6s; }
.blob.c { width: 260px; height: 260px; background: #8FA8FF; top: 40%; left: 45%; animation-delay: -12s; opacity: .3; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1) } 33% { transform: translate(30px,-40px) scale(1.08) } 66% { transform: translate(-20px,25px) scale(.95) } }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); opacity: .55; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: .86rem; font-weight: 600; color: var(--muted); box-shadow: var(--shadow); }
.pill .live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(22,179,138,.6); animation: ping 2s infinite; margin-left: 6px; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(22,179,138,.5) } 70% { box-shadow: 0 0 0 10px rgba(22,179,138,0) } 100% { box-shadow: 0 0 0 0 rgba(22,179,138,0) } }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.3rem); font-weight: 800; margin: 22px 0 18px; }
.hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 50ch; margin: 0 0 30px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { display: flex; gap: 36px; margin-top: 40px; flex-wrap: wrap; }
.stat b { display: block; font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: .9rem; }

/* Community card */
.glass { background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: 24px; box-shadow: var(--shadow-lg); }
.community { padding: 22px; }
.community-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-weight: 700; }
.community-head span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.dots { display: grid; grid-template-columns: repeat(12, 1fr); gap: 7px; }
.dot { aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed var(--line); transition: all .4s cubic-bezier(.2,.8,.2,1); }
.dot.on { border: 0; background: var(--grad); box-shadow: 0 4px 10px -3px rgba(47,95,236,.6); transform: scale(1); animation: pop .6s cubic-bezier(.2,1.4,.4,1) both; }
.dot.me { background: linear-gradient(135deg, #16B38A, #38C6F0); box-shadow: 0 0 0 4px rgba(22,179,138,.25); }
@keyframes pop { from { transform: scale(0) } to { transform: scale(1) } }
.feed { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; height: 48px; overflow: hidden; position: relative; }
.feed-item { display: flex; align-items: center; gap: 10px; font-size: .9rem; animation: slideUp .5s ease both; }
.feed-item .av { width: 30px; height: 30px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; font-weight: 800; font-size: .78rem; color: var(--b1); flex: none; }
.feed-item small { color: var(--muted); display: block; font-size: .78rem; }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }

/* Sections */
.section { padding: 96px 0; position: relative; }
.section.soft { background: var(--soft); }
.eyebrow { color: var(--b1); font-weight: 700; font-size: .95rem; margin-bottom: 10px; display: block; }
.h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); font-weight: 800; max-width: 20ch; }
.sub { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin: 14px 0 0; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Ages */
.ages { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.age { position: relative; overflow: hidden; border-radius: 28px; padding: 34px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.age .num { font-size: clamp(5rem, 11vw, 8rem); font-weight: 800; line-height: .9; letter-spacing: -.05em; }
.age h3 { font-size: 1.35rem; margin: 14px 0 6px; }
.age p { margin: 0; color: var(--muted); }
.age .icon { position: absolute; right: 26px; top: 26px; width: 56px; height: 56px; border-radius: 16px; background: var(--soft); display: grid; place-items: center; }
.age.dark { background: linear-gradient(135deg, #1B2A6B, #2F5FEC 55%, #38C6F0); color: #fff; border: 0; }
.age.dark p { color: rgba(255,255,255,.82); }
.age.dark .icon { background: rgba(255,255,255,.16); }
.timeline { margin-top: 26px; position: relative; height: 56px; }
.tl-track { position: absolute; left: 0; right: 0; top: 18px; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.tl-fill { height: 100%; width: 0; background: var(--grad); border-radius: 99px; transition: width 1.8s cubic-bezier(.2,.8,.2,1); }
.tl-mark { position: absolute; top: 8px; transform: translateX(-50%); text-align: center; font-size: .8rem; font-weight: 700; color: var(--muted); }
.tl-mark i { display: block; width: 26px; height: 26px; margin: 0 auto 6px; border-radius: 50%; background: var(--card); border: 3px solid var(--line); transition: border-color .4s, background .4s; }
.tl-mark.hit i { border-color: var(--b1); background: var(--b1); }
.tl-mark.hit { color: var(--ink); }
.tl-mark em { font-style: normal; }
@media (max-width: 560px) { .tl-mark em { display: none; } }

/* Simulator */
.sim { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.sim-card { padding: 28px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.class { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; margin: 20px 0 22px; }
.kid { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; transition: background .35s, transform .35s; background: var(--soft); }
.kid svg { width: 60%; height: 60%; }
.kid.free { background: var(--ok-soft); }
.kid.free svg path { fill: var(--ok); }
.kid.phone { background: #FFF1DE; }
.kid.phone svg path { fill: var(--warn); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: var(--line); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); border: 4px solid #fff; box-shadow: var(--shadow); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--b1); border: 4px solid #fff; cursor: pointer; }
.sim-legend { display: flex; gap: 18px; font-size: .88rem; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.sim-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.verdict { margin-top: 18px; padding: 16px 18px; border-radius: 16px; font-weight: 600; transition: background .3s, color .3s; }
.verdict.bad { background: #FFF1DE; color: #8A5300; }
.verdict.good { background: var(--ok-soft); color: #0B7A5C; }
:root[data-theme="dark"] .verdict.bad { color: #FFC56B; background: #3A2A10; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .verdict.bad { color: #FFC56B; background: #3A2A10; } :root:not([data-theme="light"]) .kid.phone { background: #3A2A10; } :root:not([data-theme="light"]) .verdict.good { color: #5EE3BD; } }
.big-pct { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.tile { padding: 28px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; position: relative; overflow: hidden; }
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tile .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; margin-bottom: 18px; }
.tile h3 { font-size: 1.2rem; margin-bottom: 8px; }
.tile p { margin: 0; color: var(--muted); font-size: .96rem; }
.tile.wide { grid-column: span 2; }
.tile .n { position: absolute; right: 22px; top: 18px; font-size: 3.4rem; font-weight: 800; color: var(--line); letter-spacing: -.04em; }

/* Stages */
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 5px; gap: 4px; margin-top: 34px; flex-wrap: wrap; position: relative; }
.seg button { border: 0; background: transparent; padding: 10px 18px; border-radius: 12px; font-weight: 700; color: var(--muted); cursor: pointer; font-size: .94rem; position: relative; z-index: 1; transition: color .25s; }
.seg button[aria-selected="true"] { color: #fff; }
.seg .thumb { position: absolute; top: 5px; bottom: 5px; border-radius: 12px; background: var(--grad); transition: left .35s cubic-bezier(.2,.8,.2,1), width .35s cubic-bezier(.2,.8,.2,1); box-shadow: 0 8px 18px -8px rgba(47,95,236,.8); }
.stage { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.stage .col { padding: 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); animation: slideUp .45s ease both; }
.stage .col h3 { font-size: 1.05rem; margin-bottom: 12px; color: var(--muted); font-weight: 700; }
.stage ul { margin: 0; padding: 0; list-style: none; }
.stage li { padding: 8px 0 8px 30px; position: relative; }
.stage li::before { content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 18px; border-radius: 6px; background: var(--grad); opacity: .9; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; }
.stage-note { color: var(--muted); font-size: .92rem; margin-top: 16px; }

/* Tip + steps + CTA */
.tipbox { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 28px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); margin-top: 44px; }
.tipbox .ic { width: 64px; height: 64px; border-radius: 18px; background: var(--soft); display: grid; place-items: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; counter-reset: s; }
.step { padding: 28px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); position: relative; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 16px; }
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }
.cta-band { border-radius: 32px; padding: 64px 48px; background: linear-gradient(135deg, #1B2A6B, #2F5FEC 55%, #38C6F0); color: #fff; position: relative; overflow: hidden; text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; max-width: 20ch; margin: 0 auto 14px; }
.cta-band p { opacity: .85; max-width: 52ch; margin: 0 auto 30px; font-size: 1.1rem; }
.cta-band .btn { background: #fff; color: #1B2A6B; }
.cta-band .ring { position: absolute; border: 2px solid rgba(255,255,255,.15); border-radius: 50%; }
footer { padding: 40px 0 120px; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Demo switcher */
.switcher { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; display: flex; gap: 4px; padding: 6px; border-radius: 18px; background: rgba(30,37,48,.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 20px 40px -12px rgba(0,0,0,.45); max-width: calc(100vw - 24px); overflow-x: auto; }
.switcher span { color: rgba(255,255,255,.55); font-size: .72rem; font-weight: 700; align-self: center; padding: 0 8px 0 10px; white-space: nowrap; }
.switcher button { border: 0; background: transparent; color: rgba(255,255,255,.75); padding: 9px 14px; border-radius: 13px; font-weight: 700; font-size: .86rem; cursor: pointer; white-space: nowrap; }
.switcher button[aria-pressed="true"] { background: var(--grad); color: #fff; }

/* Form */
.wizard { display: grid; grid-template-columns: 340px 1fr; min-height: calc(100vh - 68px); }
.side { background: linear-gradient(160deg, #1B2A6B, #2F5FEC 60%, #38C6F0); color: #fff; padding: 40px 32px; position: relative; overflow: hidden; }
.side h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.side p { opacity: .8; font-size: .95rem; margin: 0 0 30px; }
.side ol { list-style: none; padding: 0; margin: 0; position: relative; }
.side li { display: flex; gap: 14px; align-items: center; padding: 11px 0; opacity: .55; transition: opacity .3s; font-weight: 600; }
.side li .b { width: 32px; height: 32px; border-radius: 10px; border: 2px solid rgba(255,255,255,.5); display: grid; place-items: center; font-size: .85rem; font-weight: 800; flex: none; transition: all .3s; }
.side li.cur { opacity: 1; }
.side li.cur .b { background: #fff; color: var(--b1); border-color: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.18); }
.side li.done { opacity: .9; }
.side li.done .b { background: rgba(255,255,255,.2); border-color: transparent; }
.side .quote { position: absolute; left: 32px; right: 32px; bottom: 36px; font-size: .95rem; opacity: .9; border-top: 1px solid rgba(255,255,255,.2); padding-top: 18px; }
.main { padding: 48px 56px 140px; max-width: 760px; width: 100%; }
.mobile-prog { display: none; }
.pane { animation: paneIn .45s cubic-bezier(.2,.8,.2,1) both; }
.pane.back { animation-name: paneBack; }
@keyframes paneIn { from { opacity: 0; transform: translateX(28px) } to { opacity: 1; transform: none } }
@keyframes paneBack { from { opacity: 0; transform: translateX(-28px) } to { opacity: 1; transform: none } }
.pane h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 10px; }
.pane .lead { color: var(--muted); margin: 0 0 28px; font-size: 1.05rem; }
.demo-hint { display: flex; align-items: center; gap: 10px; background: var(--soft); border: 1px dashed var(--b2); border-radius: 14px; padding: 10px 14px; font-size: .9rem; margin-bottom: 22px; }

.field { position: relative; margin-bottom: 16px; }
.field input, .field select { width: 100%; height: 60px; padding: 24px 16px 8px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 500 1rem var(--font); transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235B6475' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field label { position: absolute; left: 17px; top: 19px; color: var(--muted); pointer-events: none; transition: all .18s ease; font-weight: 500; }
.field input:focus, .field select:focus { border-color: var(--b1); box-shadow: 0 0 0 4px rgba(47,95,236,.14); outline: none; }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field select:focus + label, .field select.filled + label { top: 8px; font-size: .74rem; font-weight: 700; color: var(--b1); }
.field.bad input, .field.bad select { border-color: var(--err); }
.field .msg { color: var(--err); font-size: .82rem; margin: 6px 2px 0; display: none; font-weight: 600; }
.field.bad .msg { display: block; }
.field .ok { position: absolute; right: 16px; top: 20px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; transform: scale(0); transition: transform .3s cubic-bezier(.2,1.6,.4,1); }
.field.valid .ok { transform: scale(1); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lbl { font-weight: 700; margin: 8px 0 10px; display: block; font-size: .95rem; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { flex: 1; min-width: 140px; padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; font-weight: 700; text-align: left; color: var(--ink); transition: all .2s; display: flex; align-items: center; gap: 12px; font-size: 1rem; }
.chip .rd { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; transition: all .2s; }
.chip[aria-checked="true"] { border-color: var(--b1); background: rgba(47,95,236,.06); box-shadow: 0 0 0 4px rgba(47,95,236,.1); }
.chip[aria-checked="true"] .rd { border: 6px solid var(--b1); }
.collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.collapse.open { grid-template-rows: 1fr; }
.collapse > div { overflow: hidden; }

.kid-card { border: 1.5px solid var(--line); border-radius: 20px; padding: 18px 18px 4px; margin-bottom: 14px; background: var(--card); animation: kidIn .45s cubic-bezier(.2,1.2,.4,1) both; }
.kid-card.out { animation: kidOut .3s ease both; }
@keyframes kidIn { from { opacity: 0; transform: translateY(12px) scale(.97) } to { opacity: 1; transform: none } }
@keyframes kidOut { to { opacity: 0; transform: scale(.95); height: 0; margin: 0; padding: 0 } }
.kid-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.kid-top .av { width: 40px; height: 40px; border-radius: 13px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; }
.kid-top b { flex: 1; }
.kid-top button { border: 0; background: var(--soft); color: var(--muted); width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 1.1rem; }
.stepper { display: flex; align-items: center; height: 60px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.stepper button { width: 52px; height: 100%; border: 0; background: var(--soft); color: var(--ink); font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.stepper div { flex: 1; text-align: center; line-height: 1.1; }
.stepper div b { font-size: 1.25rem; display: block; }
.stepper div small { color: var(--muted); font-size: .74rem; font-weight: 600; }
.add-kid { width: 100%; padding: 18px; border-radius: 18px; border: 2px dashed var(--line); background: transparent; color: var(--b1); font-weight: 700; cursor: pointer; font-size: 1rem; transition: all .2s; }
.add-kid:hover { border-color: var(--b1); background: rgba(47,95,236,.04); }

.pledge-card { border-radius: 22px; padding: 22px; background: var(--card); border: 1.5px solid var(--line); cursor: pointer; display: flex; gap: 16px; align-items: flex-start; transition: all .25s; margin: 8px 0 14px; }
.pledge-card.on { border-color: var(--b1); background: rgba(47,95,236,.05); box-shadow: 0 0 0 5px rgba(47,95,236,.1); }
.cbox { width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--line); flex: none; display: grid; place-items: center; transition: all .25s; margin-top: 2px; }
.pledge-card.on .cbox { background: var(--grad); border-color: transparent; }
.cbox svg { opacity: 0; transform: scale(.4); transition: all .25s cubic-bezier(.2,1.6,.4,1); }
.pledge-card.on .cbox svg { opacity: 1; transform: scale(1); }
.pledge-card.small { padding: 16px 18px; font-size: .9rem; color: var(--muted); }
.pledge-card.small .cbox { width: 24px; height: 24px; }
.info { display: flex; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--soft); font-size: .94rem; margin-bottom: 18px; }
.intro p { margin: 0 0 12px; color: var(--muted); }

.otp { display: flex; gap: 10px; margin: 8px 0 12px; }
.otp input { width: 100%; max-width: 64px; height: 72px; text-align: center; font: 800 1.8rem var(--font); border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); transition: all .2s; }
.otp input:focus { border-color: var(--b1); box-shadow: 0 0 0 4px rgba(47,95,236,.14); outline: none; }
.otp.shake { animation: shake .4s; }
.otp.good input { border-color: var(--ok); background: var(--ok-soft); }
@keyframes shake { 20%,60% { transform: translateX(-8px) } 40%,80% { transform: translateX(8px) } }
.err { color: var(--err); background: var(--err-soft); padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: .92rem; margin: 10px 0; }
.timer { color: var(--muted); font-size: .9rem; }

.sig-wrap { position: relative; border-radius: 22px; background: var(--card); border: 1.5px solid var(--line); overflow: hidden; }
.sig-wrap canvas { display: block; width: 100%; height: 230px; touch-action: none; cursor: crosshair; }
.sig-line { position: absolute; left: 28px; right: 28px; bottom: 54px; border-top: 1.5px dashed var(--line); pointer-events: none; }
.sig-x { position: absolute; left: 28px; bottom: 60px; color: var(--muted); font-weight: 800; pointer-events: none; }
.sig-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); pointer-events: none; transition: opacity .3s; font-weight: 600; }
.sig-bar { display: flex; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--soft); font-size: .9rem; color: var(--muted); }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 30px; }
.summary { border-radius: 18px; background: var(--soft); padding: 16px 18px; margin-bottom: 16px; font-size: .93rem; }
.summary b { color: var(--ink); }

/* Success */
.success { text-align: center; padding-top: 10px; }
.check-anim { width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 30px; background: var(--grad); display: grid; place-items: center; box-shadow: var(--shadow-lg); animation: popIn .7s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes popIn { from { transform: scale(0) rotate(-20deg) } to { transform: none } }
.check-anim path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .35s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0 } }
.rings { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 28px 0; }
.ringcard { padding: 20px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); min-width: 210px; box-shadow: var(--shadow); }
.ringcard svg circle { transition: stroke-dashoffset 1.4s cubic-bezier(.2,.8,.2,1); }
.ringcard b { display: block; margin-top: 8px; }
.ringcard small { color: var(--muted); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: .78rem; margin-top: 6px; }
.share { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 80; }
.toast { position: fixed; left: 50%; top: calc(84px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -20px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: .92rem; opacity: 0; transition: all .35s cubic-bezier(.2,.8,.2,1); z-index: 90; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* PDF */
.pdf-bg { background: var(--soft); padding: 40px 16px 140px; min-height: calc(100vh - 68px); }
.pdf-cap { text-align: center; color: var(--muted); margin-bottom: 20px; font-weight: 600; }
.paper { background: #fff; color: #1E2530; max-width: 660px; margin: 0 auto 24px; padding: 52px; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 24px 50px -20px rgba(30,37,48,.3); font-size: 13px; line-height: 1.55; animation: slideUp .6s ease both; }
.paper .top { display: flex; justify-content: space-between; font-weight: 800; font-size: 11.5px; }
.paper .top span:first-child { color: #2F5FEC; }
.paper .top span:last-child { color: #5B6475; }
.paper h3 { font-size: 22px; margin: 22px 0 4px; font-weight: 800; }
.paper .sub2 { color: #2F5FEC; font-style: italic; margin: 0 0 14px; }
.paper .pl { border: 1px solid #2F5FEC; background: #EEF3FF; padding: 12px 14px; font-weight: 700; margin: 14px 0; border-radius: 4px; }
.paper .sm { color: #5B6475; font-size: 11px; }
.paper .sig-img { height: 80px; display: block; margin-top: 16px; }
.paper .sl { border-top: 1px solid #1E2530; width: 260px; padding-top: 4px; font-weight: 800; }
.paper table { width: 100%; border-collapse: collapse; font-size: 12px; }
.paper td { padding: 4px 0; vertical-align: top; }
.paper td:first-child { color: #5B6475; font-weight: 700; width: 38%; padding-right: 10px; }
.mono { word-break: break-all; font-family: ui-monospace, Menlo, monospace; font-size: 11px; }

/* Admin */
.admin { padding: 36px 24px 140px; max-width: 1240px; margin: 0 auto; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.admin-head h1 { font-size: 2rem; font-weight: 800; }
.admin-head p { color: var(--muted); margin: 4px 0 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.kpi { padding: 20px 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.kpi span { color: var(--muted); font-size: .88rem; font-weight: 600; }
.kpi b { display: block; font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 6px; }
.kpi svg { display: block; width: 100%; height: 34px; }
.panel { border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 22px; margin-bottom: 22px; }
.panel h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.grp { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; border: 1px solid var(--line); transition: transform .2s; }
.grp:hover { transform: translateY(-2px); }
.grp.act { border-color: var(--ok); background: var(--ok-soft); }
.grp small { color: var(--muted); display: block; }
.tools { display: flex; gap: 10px; flex-wrap: wrap; }
.search { height: 42px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); padding: 0 14px; font: 500 .95rem var(--font); min-width: 220px; }
.search:focus { border-color: var(--b1); outline: none; }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 820px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 700; font-size: .8rem; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr { transition: background .2s; }
.tbl tbody tr:hover { background: var(--soft); }
.tbl tr.me td { background: rgba(22,179,138,.08); }
.who { display: flex; gap: 10px; align-items: center; }
.who .av { width: 34px; height: 34px; border-radius: 11px; background: var(--soft); color: var(--b1); display: grid; place-items: center; font-weight: 800; font-size: .8rem; flex: none; }
.st { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: .8rem; font-weight: 700; }
.st.ok { background: var(--ok-soft); color: var(--ok); }
.st.pen { background: #FFF1DE; color: #B06C00; }
.st i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.muted { color: var(--muted); }


/* ---------- Fotografías ---------- */
:root { --img-teen: url("/img/teen.webp"); --img-kids: url("/img/kids.webp"); --img-hoops: url("/img/hoops.webp"); }
.hero-ph { position: absolute; top: 18px; right: 24px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; border: 1.5px dashed var(--b1); background: var(--glass); color: var(--b1); font-size: .82rem; font-weight: 700; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero.has-photo .blobs { background: var(--hero-img) center/cover no-repeat; }
.hero.has-photo .blobs::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,22,48,.86) 0%, rgba(14,22,48,.55) 45%, rgba(14,22,48,.1) 100%); }
.hero.has-photo .blob, .hero.has-photo .grid-bg, .hero.has-photo .hero-ph { display: none; }
.hero.has-photo h1, .hero.has-photo .stat b { color: #fff; }
.hero.has-photo .lead, .hero.has-photo .stat span { color: rgba(255,255,255,.85); }

.mosaic { display: grid; grid-template-columns: 1fr 1.25fr; grid-template-rows: 1fr 1fr; gap: 18px; height: 620px; margin-top: 44px; }
.photo { position: relative; overflow: hidden; border-radius: 28px; box-shadow: var(--shadow); isolation: isolate; }
.photo.tall { grid-row: span 2; }
.photo .img { position: absolute; inset: -6% 0; background-size: cover; background-repeat: no-repeat; transition: scale 1.2s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.photo:hover .img { scale: 1.05; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,22,48,.65) 0%, rgba(14,22,48,0) 45%); z-index: 1; pointer-events: none; }
.photo .cap { position: absolute; left: 22px; bottom: 20px; right: 22px; z-index: 2; color: #fff; }
.photo .cap b { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.photo .cap span { opacity: .88; font-size: .95rem; }
.photo .tag { position: absolute; top: 18px; left: 18px; z-index: 2; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); color: #fff; font-size: .8rem; font-weight: 700; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mosaic.in .clip { } .clip { clip-path: inset(0 0 100% 0 round 28px); transition: clip-path 1.1s cubic-bezier(.7,0,.2,1); }
.clip.in { clip-path: inset(0 0 0 0 round 28px); }

.stage { grid-template-columns: .95fr 1fr 1fr; }
.stage-visual { border-radius: 22px; min-height: 280px; position: relative; overflow: hidden; background-size: cover; animation: slideUp .45s ease both; }
.stage-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,22,48,.7), rgba(14,22,48,0) 55%); }
.stage-visual .lab { position: absolute; left: 22px; bottom: 18px; z-index: 1; color: #fff; }
.stage-visual .lab b { display: block; font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.stage-visual.nophoto { background: var(--grad); }
.stage-visual.nophoto::after { background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.25), transparent 50%); }

.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--img-kids) center 35%/cover no-repeat; opacity: .32; mix-blend-mode: luminosity; }
.cta-band > * { position: relative; }
.credits { font-size: .82rem; }


/* ---------- Portada con fotografía ---------- */
:root { --hero-img: url("/img/hero.webp"); }
.hero.has-photo { min-height: clamp(700px, 96vh, 940px); padding: 64px 0 190px; display: flex; align-items: flex-start; }
.hero.has-photo .wrap { display: block; width: 100%; }
.hero.has-photo .blobs { background: var(--hero-img) center 16%/cover no-repeat; }
.hero.has-photo .blobs::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,26,78,.66) 0%, rgba(9,26,78,.38) 42%, rgba(9,26,78,.05) 70%), linear-gradient(90deg, rgba(9,26,78,.5), rgba(9,26,78,0) 65%); }
.hero.has-photo .blobs { animation: heroZoom 18s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.08) } to { transform: scale(1) } }
.hero-copy { max-width: 860px; }
.hero.has-photo h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); }
.hero.has-photo h1 { color: #fff; text-shadow: 0 2px 24px rgba(9,26,78,.35); }
.hero.has-photo .hl { background: linear-gradient(90deg, #FFFFFF, #A9E8FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero.has-photo .lead { color: rgba(255,255,255,.92); text-shadow: 0 1px 12px rgba(9,26,78,.4); }
.hero.has-photo .pill { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: none; }
.btn-glass { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.26); }
.overlap { position: relative; z-index: 5; margin-top: -130px; }
.overlap .community { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: center; padding: 28px 32px; background: var(--card); }
.overlap .stats { margin-top: 0; gap: 28px; }
.overlap .stat b { font-size: 2.2rem; }
.cm-side .feed { margin-top: 18px; }


:root { --img-flip: url("/img/flip.webp"); }
.age.photo-age { border: 0; color: #fff; min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; background: #16233F; isolation: isolate; }
.age.photo-age::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--img-flip) 50% 30%/cover no-repeat; transition: scale 1.2s cubic-bezier(.2,.8,.2,1); }
.age.photo-age:hover::before { scale: 1.04; }
.age.photo-age::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(9,26,78,.92) 0%, rgba(9,26,78,.55) 40%, rgba(9,26,78,.05) 70%), linear-gradient(180deg, rgba(9,26,78,.45), transparent 30%); }
.age.photo-age .num { position: absolute; left: 34px; top: 26px; text-shadow: 0 4px 30px rgba(9,26,78,.4); }
.age.photo-age p { color: rgba(255,255,255,.88); }
.age.photo-age .icon { background: rgba(255,255,255,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.age.dark { min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; }
.age.dark .num { position: absolute; left: 34px; top: 26px; }
.ai-note { position: absolute; right: 16px; bottom: 12px; font-size: .68rem; color: rgba(255,255,255,.6); }


:root { --img-group: url("/img/group.webp"); }
.age.group-age::before { background: var(--img-group) 50% 100%/135% auto no-repeat; }
:root { --img-tots: url("/img/tots.webp"); }
.stage-visual .ai-note { z-index: 1; top: 12px; bottom: auto; text-shadow: 0 1px 6px rgba(0,0,0,.5); }


/* ---------- Noticias ---------- */
.news-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.fchip { border: 1px solid var(--line); background: var(--card); color: var(--muted); padding: 8px 16px; border-radius: 99px; font-weight: 700; font-size: .88rem; cursor: pointer; transition: all .2s; }
.fchip[aria-pressed="true"] { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -10px rgba(47,95,236,.8); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.news { display: flex; flex-direction: column; padding: 24px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; animation: slideUp .45s ease both; text-decoration: none; color: inherit; }
.news:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news.feat { grid-column: span 2; background: linear-gradient(135deg, #1B2A6B, #2F5FEC 60%, #38C6F0); color: #fff; border: 0; }
.news.feat .meta, .news.feat p { color: rgba(255,255,255,.85); }
.news .meta { display: flex; gap: 10px; align-items: center; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 12px; flex-wrap: wrap; }
.news .cat { padding: 3px 10px; border-radius: 99px; background: rgba(47,95,236,.1); color: var(--b1); }
.news.feat .cat { background: rgba(255,255,255,.18); color: #fff; }
.news h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: 8px; }
.news.feat h3 { font-size: 1.5rem; }
.news p { margin: 0 0 16px; color: var(--muted); font-size: .95rem; flex: 1; }
.news .src { font-weight: 700; font-size: .86rem; color: var(--b1); display: flex; align-items: center; gap: 6px; }
.news.feat .src { color: #fff; }
.news .new-badge { background: var(--ok); color: #fff; padding: 2px 8px; border-radius: 99px; font-size: .7rem; }
.news-note { color: var(--muted); font-size: .86rem; margin-top: 18px; }

/* ---------- Recomendados ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.prod { display: flex; flex-direction: column; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; animation: slideUp .45s ease both; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.prod:hover { transform: translateY(-5px); }
.prod .vis { height: 120px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(47,95,236,.12), rgba(56,198,240,.16)); position: relative; }
.prod .vis .em { font-size: 3rem; filter: drop-shadow(0 8px 14px rgba(47,95,236,.3)); }
.prod .vis .price { position: absolute; right: 14px; top: 14px; background: var(--card); padding: 4px 10px; border-radius: 99px; font-weight: 800; font-size: .82rem; box-shadow: var(--shadow); }
.prod .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.prod h3 { font-size: 1.1rem; margin-bottom: 6px; }
.prod p { color: var(--muted); font-size: .93rem; margin: 0 0 12px; }
.prod .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.prod .tags span { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 8px; background: var(--soft); color: var(--muted); }
.prod .hn { font-size: .84rem; padding: 10px 12px; border-radius: 12px; background: #FFF6E5; color: #8A5300; margin-bottom: 14px; }
:root[data-theme="dark"] .prod .hn { background: #3A2A10; color: #FFC56B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .prod .hn { background: #3A2A10; color: #FFC56B; } }
.prod .more { margin-top: auto; font-weight: 700; font-size: .9rem; color: var(--b1); text-decoration: none; }
.disclose { display: flex; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--soft); font-size: .9rem; color: var(--muted); margin-top: 22px; }

/* ---------- Panel: pestañas, noticias y productos ---------- */
.atabs { display: flex; gap: 6px; margin-bottom: 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.atabs button { border: 0; background: none; padding: 12px 16px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; font-size: .95rem; }
.atabs button[aria-selected="true"] { color: var(--b1); border-color: var(--b1); }
.atabs .cnt { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 99px; background: var(--err); color: #fff; font-size: .72rem; line-height: 20px; }
.auto { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 18px; border-radius: 16px; background: linear-gradient(135deg, rgba(47,95,236,.08), rgba(56,198,240,.1)); margin-bottom: 18px; }
.auto .kw { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.auto .kw span { font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }
.sugg { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; border: 1px solid var(--line); margin-bottom: 10px; animation: slideUp .35s ease both; }
.sugg h4 { margin: 0 0 4px; font-size: 1rem; }
.sugg small { color: var(--muted); }
.sugg .acts { display: flex; gap: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field textarea { width: 100%; min-height: 96px; padding: 26px 16px 10px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 500 1rem var(--font); resize: vertical; }
.field textarea:focus { border-color: var(--b1); box-shadow: 0 0 0 4px rgba(47,95,236,.14); outline: none; }
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 8px; font-size: .74rem; font-weight: 700; color: var(--b1); }
.mini-list { display: grid; gap: 8px; }
.mini { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); }
.mini b { display: block; }
.mini small { color: var(--muted); }
.switch { width: 44px; height: 26px; border-radius: 99px; background: var(--line); border: 0; position: relative; cursor: pointer; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch[aria-checked="true"] { background: var(--ok); }
.switch[aria-checked="true"]::after { left: 21px; }

/* ---------- Ajustes de legibilidad ---------- */
.feed { height: auto; min-height: 56px; overflow: visible; }
.feed-item { align-items: flex-start; }
.feed-item > div { line-height: 1.4; }
.feed-item small { margin-top: 2px; }
.side { display: flex; flex-direction: column; }
.side .quote { position: static; margin-top: auto; padding-top: 18px; }
.ai-note { color: rgba(255,255,255,.82); font-size: .72rem; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.panel h2 .tools { flex: 1 1 auto; justify-content: flex-end; }
@media (max-width: 560px) {
  .panel h2 .tools { width: 100%; justify-content: stretch; }
  .panel h2 .search { min-width: 0; flex: 1 1 100%; }
  .panel h2 .seg { width: 100%; }
}

.hero.has-photo .hl { background: none; color: #fff; -webkit-text-fill-color: #fff; box-shadow: inset 0 -0.22em 0 rgba(56,198,240,.55); }
.photo::after { background: linear-gradient(0deg, rgba(14,22,48,.86) 0%, rgba(14,22,48,.45) 32%, rgba(14,22,48,0) 58%); }
.photo .tag { background: rgba(14,22,48,.5); border-color: rgba(255,255,255,.3); }
.photo .cap span { text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.tl-mark { white-space: nowrap; }
@media (max-width: 560px) {
  .photo .cap { text-align: left !important; left: 18px !important; right: 18px !important; max-width: none !important; }
  .photo .cap b { font-size: 1.15rem; }
  .photo .cap span { font-size: .88rem; }
  .seg.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; overflow: visible; }
  .seg .thumb { display: none; }
  .seg.seg button { white-space: normal; padding: 10px 8px; line-height: 1.25; }
  .seg button[aria-selected="true"] { background: var(--grad); color: #fff; }
}

@media (max-width: 960px) {
  .news-grid, .prod-grid { grid-template-columns: 1fr 1fr; } .news.feat { grid-column: span 2; }
  .form-grid { grid-template-columns: 1fr; } .age.group-age::before { background-size: cover; background-position: 50% 70%; } }

@media (max-width: 960px) {
  .age.photo-age, .age.dark { min-height: 380px; }
  .hero.has-photo { min-height: 680px; padding: 36px 0 150px; }
  .hero.has-photo .blobs { background-position: 52% 78%; }
  .hero.has-photo .blobs::after { background: linear-gradient(180deg, rgba(9,26,78,.78) 0%, rgba(9,26,78,.6) 55%, rgba(9,26,78,.25) 100%); }
  .overlap .stats { gap: 18px; } .overlap .stat b { font-size: 1.7rem; } .overlap .stat span { font-size: .8rem; }
  .overlap { margin-top: -100px; } .overlap .community { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
  .mosaic { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .mosaic .photo { height: 280px; } .mosaic .photo.tall { grid-row: auto; height: 380px; }
  .stage { grid-template-columns: 1fr; } .stage-visual { min-height: 220px; }
  .hero-ph { top: 10px; right: 12px; font-size: .74rem; }
  .hero .wrap, .sim, .ages { grid-template-columns: 1fr; gap: 36px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.wide { grid-column: span 2; }
  .steps, .stage { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .wizard { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 24px 20px 140px; margin: 0 auto; }
  .mobile-prog { display: block; margin-bottom: 24px; }
  .mobile-prog .t { display: flex; justify-content: space-between; font-size: .86rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
  .mobile-prog .bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
  .mobile-prog .bar span { display: block; height: 100%; background: var(--grad); transition: width .4s ease; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 48px 24px; }
}
@media (max-width: 560px) {
  .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; } .seg::-webkit-scrollbar { display: none; } .seg button { white-space: nowrap; }
  .news-grid, .prod-grid { grid-template-columns: 1fr; } .news.feat { grid-column: auto; }
  .sugg { grid-template-columns: 1fr; }
  .brand small { display: none; } .brand { font-size: .9rem; line-height: 1.2; max-width: 180px; } .brand .mark { width: 32px; height: 32px; flex: none; }
  .bento { grid-template-columns: 1fr; } .tile.wide { grid-column: auto; }
  .two { grid-template-columns: 1fr; gap: 0; }
  .otp { gap: 6px; } .otp input { height: 60px; font-size: 1.5rem; }
  .tipbox { grid-template-columns: 1fr; }
  .class { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Sitio en vivo ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.empty-feed { color: var(--muted); font-size: .92rem; }
.pdf-link { margin-top: 10px; }
.login { max-width: 420px; margin: 80px auto; padding: 32px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.login h1 { font-size: 1.6rem; margin-bottom: 6px; }
.loading { opacity: .55; pointer-events: none; }
