/* Timbre Web — páginas interiores (Ley 21.719, privacidad, 404).
   Mismo sistema que css/styles.css: paleta Burdeo y Arena, Poppins + Inter, tamaños y radios compartidos. */

:root {
  --crema: #FAF4EE;
  --crema-2: #F3E8DC;
  --crema-3: #EADCCB;
  --arena: #E9B48A;
  --burdeo: #5E1F35;
  --noche: #3A1220;
  --petroleo: #2F5D62;
  --petroleo-2: #244A4E;
  --tinta: #555B66;
  --rosado: #CBB8AE;
  --vino: #7A3A4E;
  --verde: #2E7D5B;
  --amarillo: #C98A12;
  --rojo: #B23A2B;

  --bg: var(--crema);
  --surface: var(--crema-2);
  --ink: var(--burdeo);
  --text: var(--tinta);
  --accent: var(--petroleo);

  --f-display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-body: clamp(16px, .95rem + .2vw, 18px);
  --t-lead: clamp(19px, 1.05rem + .55vw, 24px);
  --t-head: clamp(34px, 1.2rem + 3.6vw, 64px);
  --t-display: clamp(36px, 1rem + 5vw, 88px);

  --pad: clamp(16px, 3.3vw, 48px);
  --sec: clamp(88px, 10vw, 152px);
  --radio: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--t-body)/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; color: var(--ink); text-wrap: balance; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--burdeo); color: var(--crema); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--burdeo); color: var(--crema); padding: 12px 18px; border-radius: 100px; font-weight: 500; text-decoration: none; }
.skip:focus { left: 8px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.sec { padding: var(--sec) 0; }
.h1 { font-size: var(--t-display); line-height: 1.02; letter-spacing: -.035em; margin-left: -.03em; }
.h2 { font-size: var(--t-head); line-height: 1.05; letter-spacing: -.03em; max-width: 16ch; }
.h3 { font-size: var(--t-lead); line-height: 1.2; letter-spacing: -.015em; }
.texto { max-width: 60ch; text-wrap: pretty; }
.lead { font-size: var(--t-lead); line-height: 1.45; max-width: 34ch; text-wrap: pretty; }

/* Botones (iguales al sitio) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 100px; border: 0; font: 600 15px/1 var(--f-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform 140ms var(--ease), background-color 180ms ease; }
.btn:active { transform: scale(.97); }
.btn-arena { background: var(--arena); color: var(--burdeo); }
.btn-petroleo { background: var(--petroleo); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .btn-arena:hover { background: var(--crema); }
  .btn-petroleo:hover { background: var(--petroleo-2); }
}
.link-claro { color: var(--crema); font-weight: 500; text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .25em; text-decoration-color: rgba(250, 244, 238, .5); padding: 14px 4px; }
.link-claro:hover { text-decoration-color: currentColor; }

/* Barra superior: marca, volver y una acción (sin borde, sin desenfoque) */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 600 24px/1 var(--f-display); color: var(--burdeo); letter-spacing: -.02em; }
.marca b { font-weight: 400; color: var(--petroleo); }
.marca img { width: 36px; height: 36px; }
.marca span { white-space: nowrap; }
@media (max-width: 400px) { .marca { font-size: 21px; gap: 10px; } .marca img { width: 32px; height: 32px; } .top .btn { padding: 0 16px; } }
.top-acciones { display: flex; align-items: center; gap: 24px; }
.volver { font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .3em; padding: 10px 0; transition: text-decoration-color 180ms ease; }
.volver:hover { text-decoration-color: currentColor; }
.top .btn { min-height: 46px; padding: 0 20px; }

/* ===== Ley 21.719 ===== */
.ley-hero { background: var(--noche); color: var(--crema); padding: clamp(64px, 9vw, 128px) 0 clamp(64px, 8vw, 112px); }
.ley-hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px clamp(40px, 6vw, 96px); align-items: end; }
.ley-hero .h1 { color: var(--crema); grid-column: 1 / -1; max-width: 15em; font-size: clamp(36px, 1rem + 4.6vw, 84px); }
.ley-hero .lead { color: var(--crema); opacity: .92; }
.ley-hero .acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 36px; }
.fecha-ley { background: var(--burdeo); border-radius: var(--radio); padding: clamp(28px, 3vw, 40px); display: grid; gap: 14px; }
.fecha-ley .fecha { font: 600 clamp(40px, 1rem + 3.4vw, 64px)/1 var(--f-display); letter-spacing: -.035em; color: var(--arena); }
.fecha-ley p { font-size: 16px; line-height: 1.55; color: var(--crema); }
.fecha-ley strong { color: var(--arena); font-weight: 600; }

.cabecera { display: grid; grid-template-columns: 7fr 5fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }

.razones { display: grid; gap: 8px; }
.razon { display: grid; grid-template-columns: 5fr 7fr; gap: 12px 48px; padding: 28px 0; }
.razon p { max-width: 58ch; }

/* Autodiagnóstico */
.diag { background: var(--surface); }
.diag-box { display: grid; grid-template-columns: 1fr 380px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.preguntas { display: grid; gap: 8px; counter-reset: p; }
.preg { background: var(--bg); border: 0; border-radius: 22px; padding: 22px 24px; margin: 0; }
.preg legend { display: contents; }
.preg-t { display: block; font-weight: 600; color: var(--ink); font-size: 16px; line-height: 1.45; margin-bottom: 14px; }
.preg-t::before { counter-increment: p; content: counter(p) ". "; color: var(--petroleo); }
.opc { display: flex; flex-wrap: wrap; gap: 8px; }
.opc label { position: relative; }
.opc input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opc span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 100px; background: var(--surface); font-size: 15px; font-weight: 600; color: var(--ink); transition: background-color 180ms ease, color 180ms ease; }
.opc label:hover span { background: var(--crema-3); }
.opc input:focus-visible + span { outline: 2px solid var(--petroleo); outline-offset: 2px; }
.opc input:checked + span { background: var(--petroleo); color: #fff; }
.opc input[value="no"]:checked + span { background: var(--burdeo); }
.opc input[value="nose"]:checked + span { background: #7A5A22; }
.resultado { position: sticky; top: 96px; background: var(--burdeo); color: var(--crema); border-radius: var(--radio); padding: 28px; }
.res-etq { font-size: 15px; font-weight: 600; color: var(--arena); }
.semaforo { display: flex; gap: 10px; margin: 16px 0 18px; }
.semaforo i { width: 26px; height: 26px; border-radius: 50%; background: var(--vino); transition: background-color .3s, transform .3s var(--ease); }
.semaforo i.on { transform: scale(1.15); }
.semaforo i.on.r { background: #E0705F; }
.semaforo i.on.a { background: #E8B04A; }
.semaforo i.on.v { background: #6FC59A; }
.puntaje { font: 600 56px/1 var(--f-display); letter-spacing: -.03em; color: var(--crema); font-variant-numeric: tabular-nums; }
.puntaje small { font: 500 20px var(--f-body); color: var(--rosado); }
.barra { height: 8px; border-radius: 100px; background: var(--vino); margin: 16px 0 20px; overflow: hidden; }
.barra b { display: block; height: 100%; width: 0; background: var(--arena); border-radius: inherit; transition: width .4s var(--ease); }
.res-t { font: 600 20px/1.3 var(--f-display); color: var(--crema); margin-bottom: 8px; }
.res-p { font-size: 15px; line-height: 1.55; margin-bottom: 14px; color: var(--crema); }
.pend { font-size: 15px; margin: 0 0 20px; padding-left: 18px; color: var(--crema); }
.pend li { margin-bottom: 4px; }
.pend li::marker { color: var(--arena); }
.resultado .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding: 14px 20px; }
.fino { font-size: 14px; color: var(--rosado); margin-top: 14px; }

/* Planes */
.planes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radio); padding: clamp(26px, 2.6vw, 36px); }
.plan.destacado { background: var(--burdeo); color: var(--crema); }
.plan.destacado h3, .plan.destacado .plan-sub { color: var(--crema); }
.plan-etq { font-size: 15px; font-weight: 600; color: var(--petroleo); margin-bottom: 10px; }
.plan.destacado .plan-etq { color: var(--arena); }
.plan-sub { font-size: 16px; margin: 8px 0 22px; color: var(--text); }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; font-size: 15px; line-height: 1.5; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; flex: none; font-weight: 600; color: var(--petroleo); }
.plan.destacado li::before { color: var(--arena); }
.plan .plazo { margin-top: auto; font-size: 15px; font-weight: 600; color: var(--ink); }
.plan.destacado .plazo { color: var(--arena); }
.nota-planes { margin-top: 28px; max-width: 70ch; }
.nota-planes strong { color: var(--ink); }

/* Pasos */
.pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px clamp(24px, 3vw, 48px); list-style: none; padding: 0; margin: 0; }
.paso { display: grid; gap: 12px; align-content: start; }
.paso::before { content: ""; display: block; height: 6px; border-radius: 6px; background: var(--burdeo); margin-bottom: 12px; }
.paso p { font-size: 16px; }

/* Preguntas */
.faq-list { display: grid; gap: 8px; max-width: 860px; }
.faq-list details { background: var(--surface); border-radius: 22px; padding: 0 26px; }
.faq-list details[open] { background: var(--crema-3); }
.faq-list summary { cursor: pointer; list-style: none; min-height: 72px; padding: 18px 0; font: 600 var(--t-body)/1.35 var(--f-display); color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font: 500 20px/1 var(--f-body); color: var(--burdeo); transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 24px; max-width: 62ch; }

/* Cierre: el único momento centrado */
.cierre { background: var(--petroleo); color: #fff; text-align: center; }
.cierre .h2 { color: #fff; margin: 0 auto 18px; max-width: 14ch; }
.cierre p { max-width: 46ch; margin: 0 auto 32px; }
.cierre .acciones { display: flex; justify-content: center; align-items: center; gap: 12px 24px; flex-wrap: wrap; }

/* Pie */
.pie-simple { padding: 36px 0; font-size: 15px; color: var(--text); }
.pie-simple .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.pie-simple a { text-decoration: underline; text-underline-offset: .2em; }

/* ===== Privacidad ===== */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--pad) clamp(72px, 9vw, 120px); }
.aviso { background: var(--surface); color: var(--burdeo); border-radius: 18px; padding: 14px 18px; font-weight: 600; font-size: 15px; }
.doc .h1 { font-size: clamp(36px, 1rem + 3.6vw, 64px); margin: 32px 0 10px; }
.doc h2 { font-size: clamp(21px, 1rem + .6vw, 26px); line-height: 1.3; letter-spacing: -.015em; margin: 48px 0 10px; }
.doc p, .doc ul { line-height: 1.7; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 10px 0; }
.doc strong { color: var(--burdeo); }
.doc .fecha { color: var(--petroleo); font-size: 15px; font-weight: 500; }

/* ===== 404 ===== */
.e404 { margin: 0; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 32px var(--pad); background: var(--noche); color: var(--crema); text-align: center; }
.e404 main { max-width: 560px; display: grid; justify-items: center; gap: 20px; }
.e404 .timbre { width: 112px; height: 112px; border-radius: 28%; background: var(--burdeo); display: grid; place-items: center; }
.e404 .timbre img { width: 72px; height: 72px; }
.e404 .codigo { font-size: 16px; font-weight: 600; color: var(--arena); }
.e404 h1 { color: var(--crema); font-size: clamp(36px, 7vw, 56px); line-height: 1.05; letter-spacing: -.03em; }
.e404 p { color: var(--rosado); }
.e404 .btn { margin-top: 8px; }
.e404 :focus-visible { outline-color: var(--arena); }

@media (max-width: 900px) {
  .ley-hero-grid, .cabecera, .diag-box, .razon { grid-template-columns: 1fr; }
  .planes { grid-template-columns: 1fr; }
  .pasos { grid-template-columns: 1fr 1fr; }
  .resultado { position: static; }
}
@media (max-width: 560px) {
  :root { --radio: 20px; }
  .pasos { grid-template-columns: 1fr; }
  .top-acciones .volver { display: none; }
  .top .btn span { display: none; }
  .ley-hero .acciones .btn { flex: 1 1 auto; }
  .preg { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
