/* Paleta: tinta verde-azulada profunda + acento ámbar cálido. Claro por defecto, oscuro según el sistema. */
/* Paleta "azul confianza": azul marino + azul cielo. Estilo cálido y familiar. Claro por defecto. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f2f6ff;
  --ink: #0f172a;
  --muted: #334155;
  --line: #dbe3f0;
  --brand: #1e3a8a;
  --brand-2: #2348a8;
  --brand-ink: #ffffff;
  --brand-tint: #e6edff;
  --accent: #7dd3fc;
  --accent-ink: #0c2a5c;
  --accent-soft: #e0f2fe;
  --warn: #0369a1;
  --danger: #dc2626;
  --danger-soft: #fde8e8;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --chat-bg: #eef3fb;
  --bubble-in: #ffffff;
  --bubble-out: #dbe7ff;
  --shadow: 0 1px 2px rgb(15 23 42 / .05), 0 10px 30px rgb(30 58 138 / .08);
  --shadow-lg: 0 2px 6px rgb(15 23 42 / .06), 0 30px 70px rgb(30 58 138 / .18);
  --radius: 24px;
  --display: "Nunito", "Nunito Sans", system-ui, sans-serif;
  --body: "Nunito Sans", "Nunito", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #111b2e;
    --surface-alt: #0e172a;
    --ink: #e8eefb;
    --muted: #a9b6cc;
    --line: #22304a;
    --brand: #7ea2ff;
    --brand-2: #9db8ff;
    --brand-ink: #0b1220;
    --brand-tint: #1a2a4a;
    --accent: #7dd3fc;
    --accent-ink: #082f49;
    --accent-soft: #0c2a3f;
    --warn: #7dd3fc;
    --danger: #ff8080;
    --danger-soft: #3a1717;
    --ok: #6ee7a0;
    --ok-soft: #133022;
    --chat-bg: #0d1626;
    --bubble-in: #172338;
    --bubble-out: #1c2f57;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px rgb(0 0 0 / .35);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / .3), 0 30px 70px rgb(0 0 0 / .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  /* Letra base grande: el público principal son adultos mayores. */
  font: 400 18px/1.65 var(--body); -webkit-font-smoothing: antialiased;
}
.skip { position: absolute; left: -999px; top: 0; z-index: 50; padding: 0.8rem 1.2rem; background: var(--brand); color: var(--brand-ink); border-radius: 0 0 12px 0; }
.skip:focus { left: 0; }
svg { display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1, h2 { font-family: var(--display); font-weight: 900; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h1 em { font-style: normal; color: var(--brand); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 55%, transparent) 62%); padding: 0 0.1em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 0.9rem; }
h3 { font-family: var(--display); font-size: 1.15rem; font-weight: 800; letter-spacing: -0.005em; }
p { margin: 0 0 1rem; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }

/* Íconos: trazo heredado del color del texto */
.ico, .icon-tile svg, .step-icon svg, .brand-mark svg, .chat-avatar svg {
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ico { width: 1.15em; height: 1.15em; flex: none; }

.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-2); margin-bottom: 0.8rem;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 56ch; }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }
.fineprint { font-size: 0.85rem; color: var(--muted); }
.section-head { margin-bottom: 2.5rem; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin-inline: auto; }

/* Botones */
.btn {
  font-family: var(--display) !important; letter-spacing: 0.01em;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.8rem 1.3rem; border-radius: 999px; border: 2px solid var(--brand);
  background: var(--brand); color: var(--brand-ink); font: 600 0.98rem/1 var(--body);
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgb(30 58 138 / .28); }
.btn:hover .ico { transform: translateX(2px); }
.btn .ico { transition: transform .15s ease; }
.btn-lg { padding: 1.05rem 1.7rem; font-size: 1.08rem; min-height: 58px; text-align: center; line-height: 1.25; }
.btn-ghost { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-ghost:hover { background: color-mix(in srgb, var(--accent) 85%, #fff); box-shadow: 0 8px 20px rgb(125 211 252 / .45); }
.btn-small { padding: 0.55rem 1rem; font-size: 0.9rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Barra superior */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 2rem; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font: 900 1.3rem var(--display); color: var(--ink); text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px;
  background: var(--brand); color: var(--accent); box-shadow: 0 4px 12px rgb(30 58 138 / .25);
}
.brand-mark svg { width: 24px; height: 24px; stroke-width: 2; }
.brand-light { font-weight: 700; color: var(--brand); opacity: .75; }
.brand-small { font-size: 1.1rem; }
.brand-small .brand-mark { width: 28px; height: 28px; border-radius: 8px; }
.brand-small .brand-mark svg { width: 16px; height: 16px; }
.topnav { display: flex; gap: 1.6rem; margin-left: auto; }
.topnav a { color: var(--muted); text-decoration: none; font-size: 0.94rem; font-weight: 500; }
.topnav a:hover { color: var(--ink); }

/* Portada */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(50rem 28rem at 90% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%),
    radial-gradient(36rem 22rem at 0% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    var(--surface-alt);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 14%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.4rem;
  padding: 0.4rem 0.85rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: 0.85rem; font-weight: 500; color: var(--muted); box-shadow: var(--shadow);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.hero h1 { margin-bottom: 1.3rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 2rem; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.trust li { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.92rem; font-weight: 500; color: var(--muted); }
.trust .ico { color: var(--brand-2); }

.hero-visual { position: relative; justify-self: center; width: min(420px, 100%); }
.float-badge {
  position: absolute; left: -1.25rem; bottom: 2.5rem; margin: 0;
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.6rem 0.9rem; border-radius: 12px;
  background: var(--surface); color: var(--ink); font-size: 0.88rem; font-weight: 600;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.float-badge .ico { color: var(--ok); }

/* Chat */
.phone {
  margin: 0; border-radius: 32px; overflow: hidden; background: var(--chat-bg);
  border: 8px solid var(--surface); box-shadow: var(--shadow-lg); transform: rotate(1.2deg);
}
.phone-flat { transform: none; border-width: 1px; border-color: var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.chat-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.95rem 1rem; background: var(--brand); color: var(--brand-ink); }
.chat-head small { display: block; font-size: 0.78rem; opacity: 0.85; }
.chat-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--brand); }
.chat-avatar svg { width: 20px; height: 20px; }
.chat-body { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.2rem 1rem 1.4rem; min-height: 15rem; }
.msg { margin: 0; padding: 0.75rem 0.95rem; border-radius: 16px; font-size: 0.93rem; line-height: 1.5; max-width: 90%; box-shadow: 0 1px 1px rgb(0 0 0 / .06); }
.msg-in { background: var(--bubble-in); align-self: flex-start; border-top-left-radius: 4px; }
.msg-out { background: var(--bubble-out); align-self: flex-end; border-top-right-radius: 4px; }
.fwd { display: block; font-size: 0.74rem; font-style: italic; color: var(--muted); margin-bottom: 0.25rem; }
.verdict { display: inline-block; margin-bottom: 0.45rem; padding: 0.18rem 0.55rem; border-radius: 999px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.01em; }
.verdict-high { background: var(--danger-soft); color: var(--danger); }
.verdict-low { background: var(--ok-soft); color: var(--ok); }

/* Secciones */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--surface-alt); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.split > *, .hero-grid > *, .promise > * { min-width: 0; }

.icon-tile {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: var(--brand-tint); color: var(--brand-2); margin-bottom: 1.1rem;
}
.icon-tile svg { width: 24px; height: 24px; }

.risks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.risks li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); transition: transform .2s ease;
}
.risks li:hover { transform: translateY(-3px); }
.risks .icon-tile { background: var(--danger-soft); color: var(--danger); }
.risks h3 { margin-bottom: 0.45rem; }
.risks p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 28px; left: 16%; right: 16%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.steps li { position: relative; text-align: center; padding: 0 0.75rem; }
.step-icon {
  display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 1.1rem; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); box-shadow: 0 0 0 8px var(--surface-alt);
}
.step-icon svg { width: 26px; height: 26px; }
.step-label { margin: 0 0 0.3rem; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--warn); }
.steps h3 { margin-bottom: 0.55rem; font-size: 1.15rem; }
.steps li > p:last-child { margin: 0; color: var(--muted); }

.checks, .perks, .never { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0.7rem; }
.checks li, .perks li, .never li { display: flex; gap: 0.65rem; align-items: flex-start; }
.checks .ico, .perks .ico { margin-top: 0.2em; padding: 3px; width: 1.35em; height: 1.35em; border-radius: 50%; background: var(--brand); color: var(--brand-ink); stroke-width: 2.6; }
.note { padding: 1rem 1.2rem; border-radius: 12px; background: var(--accent-soft); border-left: 4px solid var(--accent); font-size: 0.93rem; color: var(--ink); margin: 0; }

/* Demo con pestañas */
.tabs { display: flex; gap: 0.4rem; padding: 0.35rem; margin-bottom: 1rem; border-radius: 999px; background: var(--surface-alt); border: 1px solid var(--line); overflow-x: auto; }
.tabs button {
  flex: 1; white-space: nowrap; padding: 0.6rem 0.9rem; border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); font: 600 0.88rem var(--body); cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.demo-caption { text-align: center; margin: 0.8rem 0 0; }

.audiences { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.audiences article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.audiences h3 { margin-bottom: 0.5rem; }
.audiences p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.audience-family { background: var(--accent-soft) !important; border-color: color-mix(in srgb, var(--accent) 55%, transparent) !important; }
.audience-family .icon-tile { background: var(--accent); color: var(--accent-ink); }

/* Para los hijos */
.kids { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.kids > * { min-width: 0; }
.kids-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.kids-list li { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.kids-list .icon-tile { margin: 0; flex: none; background: var(--accent-soft); color: var(--warn, var(--accent)); }
.kids-list h3 { margin-bottom: 0.3rem; }
.kids-list p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Compromisos */
.promise {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.never { margin: 0; }
.never li { padding: 0.9rem 1rem; border-radius: 12px; background: var(--surface-alt); font-weight: 500; }
.never .ico { margin-top: 0.1em; padding: 3px; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--danger-soft); color: var(--danger); stroke-width: 2.6; }

/* Lista de espera */
.section-cta {
  background: radial-gradient(40rem 20rem at 100% 0%, rgb(125 211 252 / .22), transparent 70%), linear-gradient(135deg, #1e3a8a 0%, #172d6b 100%);
  color: #fff;
}
@media (prefers-color-scheme: dark) {
  .section-cta { background: linear-gradient(135deg, #142a63 0%, #0d1c45 100%); }
}
.section-cta h2 { color: #fff; }
.section-cta .section-sub, .section-cta .fineprint:not(.form .fineprint) { color: rgb(255 255 255 / .8); }
.eyebrow-light { color: var(--accent); }
.perks .ico { background: var(--accent); color: var(--accent-ink); }

.form {
  background: var(--surface); color: var(--ink); border-radius: 22px; padding: clamp(1.4rem, 3vw, 2rem);
  display: grid; gap: 1rem; box-shadow: var(--shadow-lg);
}
.form-title { font-family: var(--display); font-weight: 900; font-size: 1.4rem; margin-bottom: 0.2rem; }
.form label { display: grid; gap: 0.4rem; font-weight: 500; font-size: 0.93rem; }
.form input[type="text"], .form input[type="tel"], .form select {
  width: 100%; padding: 0.8rem 0.9rem; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--ink); font: 400 1rem var(--body); transition: border-color .15s ease;
}
.form input:focus, .form select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px var(--brand-tint); }
.form [aria-invalid="true"] { border-color: var(--danger) !important; }
.consent { grid-template-columns: auto 1fr; align-items: start; font-weight: 400 !important; font-size: 0.86rem !important; color: var(--muted); }
.consent input { margin-top: 0.2rem; width: 18px; height: 18px; accent-color: var(--brand); }
.form .btn { width: 100%; margin-top: 0.3rem; }
.form-msg { margin: 0; min-height: 1.2em; font-size: 0.9rem; font-weight: 500; }
.form-msg.error { color: var(--danger); }
.form-msg.ok { color: var(--ok); }
.form .fineprint { margin: 0; text-align: center; }

/* Preguntas */
.faq { display: grid; gap: 0.7rem; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 1.2rem; transition: box-shadow .2s ease; }
details[open] { box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand-2); font-size: 1.1rem; font-weight: 500; transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 1.2rem; color: var(--muted); }

.footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); font-size: 0.88rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer nav a { color: var(--muted); }
.footer nav a:hover { color: var(--ink); }

/* Tablet */
@media (max-width: 960px) {
  .hero-grid, .split, .promise, .kids { grid-template-columns: 1fr; }
  .risks, .audiences { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .steps::before { display: none; }
  .topnav { display: none; }
  .topbar-inner { justify-content: space-between; }
  .hero-visual { margin-top: 0.5rem; }
  .float-badge { left: 0.5rem; }
}
/* Celular */
@media (max-width: 560px) {
  .risks, .audiences { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .trust { flex-direction: column; }
  .phone { transform: none; }
  .float-badge { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Página legal (politica-datos.html) */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.legal-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.legal-toc { position: sticky; top: 90px; }
.legal-toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.45rem; font-size: 0.92rem; }
.legal-toc a { color: var(--muted); text-decoration: none; }
.legal-toc a:hover { color: var(--brand); }
.legal-body { max-width: 72ch; }
.legal-body h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 0.6rem; }
.legal-meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 2rem; }
.legal-body section { padding-top: 2.2rem; }
.legal-body section h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-bottom: 0.8rem; }
.legal-body ul { padding-left: 1.2rem; display: grid; gap: 0.4rem; margin: 0 0 1rem; }
.legal-body p, .legal-body li { color: color-mix(in srgb, var(--ink) 88%, var(--muted)); }
.legal-summary { padding: 1.5rem 1.6rem; border-radius: var(--radius); background: var(--brand-tint); margin-bottom: 1.8rem; }
.legal-summary h2 { font-size: 1.2rem; margin-bottom: 0.7rem; }
.legal-summary ul { margin: 0; }
.legal-card { margin: 0; padding: 1.3rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.legal-card h3 { margin-bottom: 0.5rem; }
.legal-card p { margin: 0; font-size: 0.95rem; }
dl.legal-card { display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 1.5rem; }
dl.legal-card dt { font-weight: 600; font-size: 0.9rem; color: var(--muted); }
dl.legal-card dd { margin: 0; }
.legal-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
@media (max-width: 860px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .legal-cols { grid-template-columns: 1fr; }
  dl.legal-card { grid-template-columns: 1fr; gap: 0.2rem; }
  dl.legal-card dd { margin-bottom: 0.6rem; }
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Marca en una sola línea; más compacta en celular */
.brand > span:last-child { white-space: nowrap; }
@media (max-width: 420px) {
  .brand { font-size: 1.1rem; gap: 0.45rem; }
  .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
  .brand-mark svg { width: 20px; height: 20px; }
  .topbar .btn-small { padding: 0.5rem 0.8rem; }
}
