/* Sitio público de Delego360 (temporal, para la revisión de Wompi). Mismos colores del producto (packages/ui/src/tokens.css). */
:root {
  --ink: #1c2430; --soft: #56606e; --line: #dfe4ea; --bg: #ffffff; --surface: #f4f7f8;
  --brand: #0f5c6e; --brand-strong: #0a4453; --brand-soft: #e8f3f5; --on-brand: #ffffff;
  --accent: #d9822b; --accent-soft: #fdf1e4; --accent-ink: #7a4510; --focus: #2f6fed;
  --display: 'Fraunces', Georgia, serif; --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px; --shadow: 0 1px 2px rgba(15,46,54,.06), 0 12px 32px -12px rgba(15,46,54,.18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8edf2; --soft: #a3adb9; --line: #2a3440; --bg: #0e1419; --surface: #151d24;
    --brand: #5fb8cc; --brand-strong: #8fd0de; --brand-soft: #14313a; --on-brand: #0b1a1f;
    --accent: #f0a45a; --accent-soft: #3a2a17; --accent-ink: #f6c592; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 16px; top: 16px; background: var(--bg); padding: 8px 12px; z-index: 10; }

header.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.35rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.logo .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); position: relative; flex: none; }
.logo .dot::after { content: ''; position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); right: -2px; bottom: -1px; }
nav.menu { display: flex; gap: 20px; align-items: center; }
nav.menu a { color: var(--soft); text-decoration: none; font-weight: 500; font-size: .95rem; }
nav.menu a:hover { color: var(--ink); }
nav.menu a.btn, nav.menu a.btn:hover { color: var(--on-brand); }
@media (max-width: 760px) { nav.menu a:not(.btn) { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-weight: 600; text-decoration: none; border: 0; }
.btn:hover { background: var(--brand-strong); }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--line); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: .92rem; }

.hero { padding: clamp(48px, 9vw, 110px) 0 clamp(40px, 7vw, 80px); background: radial-gradient(900px 400px at 85% -10%, var(--accent-soft), transparent 60%), radial-gradient(800px 420px at -10% 10%, var(--brand-soft), transparent 60%); }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--accent-ink); margin-bottom: 14px; }
.hero p.lead { font-size: clamp(1.08rem, 2.2vw, 1.3rem); color: var(--soft); max-width: 640px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; color: var(--soft); font-size: .92rem; }
.trust span::before { content: '✓ '; color: var(--brand); font-weight: 700; }

section { padding: clamp(48px, 8vw, 90px) 0; }
section.alt { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--soft); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
section.alt .card { background: var(--bg); }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 1.3rem; margin-bottom: 14px; }
.card p { color: var(--soft); margin: 0; font-size: .97rem; }
.steps { counter-reset: paso; }
.steps .card::before { counter-increment: paso; content: counter(paso); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #2b1600; font-weight: 700; margin-bottom: 12px; }
.plans .card ul { margin: 12px 0 0; padding-left: 20px; color: var(--soft); font-size: .97rem; }
.note { margin-top: 22px; padding: 16px 20px; border-radius: var(--radius); background: var(--brand-soft); color: var(--ink); font-size: .97rem; }
.contact { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.contact dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; }
.contact dt { color: var(--soft); } .contact dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

footer.bottom { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--soft); font-size: .92rem; }
footer.bottom .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer.bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.bottom a { color: var(--soft); }

/* Páginas legales */
.legal { padding: 48px 0 72px; }
.legal .wrap { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal li { margin-bottom: .4em; }
.legal .meta { color: var(--soft); font-size: .95rem; }

/* ---- Versión 2 (página comercial): portada, calculadora, profesiones y preguntas ---- */
.hl { color: var(--brand); }
.btn.big { min-height: 52px; padding: 0 26px; font-size: 1.02rem; }
.btn.block { width: 100%; }
.hero-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
ul.trust { list-style: none; padding: 0; }
ul.trust li::before { content: '✓ '; color: var(--brand); font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { font: inherit; font-size: .92rem; font-weight: 600; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.mock { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 60px -24px rgba(15,46,54,.35); overflow: hidden; transform: rotate(-1deg); }
@media (prefers-reduced-motion: no-preference) { .mock { animation: flotar 6s ease-in-out infinite; } }
@keyframes flotar { 50% { transform: rotate(-1deg) translateY(-8px); } }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-bar em { margin-left: 10px; font-style: normal; font-size: .8rem; color: var(--soft); }
.mock-body { padding: 20px; display: grid; gap: 16px; }
.score { display: flex; align-items: center; gap: 16px; }
.score p { margin: 0; color: var(--soft); font-size: .92rem; }
.ring { --v: 0; width: 84px; height: 84px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--brand) calc(var(--v) * 1%), var(--brand-soft) 0); }
.ring b { display: flex; align-items: baseline; justify-content: center; padding-top: 18px; width: 64px; height: 64px; border-radius: 50%; background: var(--bg); font-family: var(--display); font-size: 1.5rem; }
.ring small { font-size: .7rem; }
.alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.alerts li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; border-left: 4px solid; background: var(--surface); font-size: .92rem; }
.alerts li span { color: var(--soft); font-size: .85rem; }
.alerts .warn { border-color: var(--accent); } .alerts .ok { border-color: #2e8b57; } .alerts .info { border-color: var(--brand); }
.tulio { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--brand-soft); font-size: .92rem; }
.tulio p { margin: 0; }
.avatar { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-weight: 700; }
.mock figcaption { padding: 8px 16px 12px; font-size: .78rem; color: var(--soft); }

.calc { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .calc { grid-template-columns: 1.15fr .85fr; } }
.calc-in { display: grid; gap: 16px; }
.calc fieldset { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--bg); display: grid; gap: 14px; }
.calc legend { font-family: var(--display); font-weight: 600; font-size: 1.1rem; padding: 0 6px; display: flex; align-items: center; gap: 8px; }
.n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #2b1600; font-size: .8rem; font-weight: 700; font-family: var(--body); flex: none; }
.calc label { display: grid; gap: 6px; font-size: .95rem; font-weight: 500; }
.field { display: flex; align-items: center; gap: 12px; }
.field input[type="range"] { flex: 1; accent-color: var(--brand); min-height: 32px; }
.field input[type="number"] { width: 100%; max-width: 240px; min-height: 44px; padding: 0 12px; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; }
.field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.field output { min-width: 64px; text-align: right; font-weight: 700; color: var(--brand); }
.hint { color: var(--soft); font-size: .9rem; margin: 0; }
.calc-out { position: sticky; top: 84px; background: var(--brand); color: var(--on-brand); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.calc-out .big-num span { display: block; opacity: .85; }
.calc-out .big-num strong { display: block; font-family: var(--display); font-size: clamp(2.2rem, 6vw, 3.2rem); line-height: 1.1; overflow-wrap: anywhere; }
.calc-out .rows { margin: 0; display: grid; gap: 8px; }
.calc-out .rows div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid color-mix(in srgb, var(--on-brand) 22%, transparent); }
.calc-out dt { display: flex; gap: 8px; align-items: center; } .calc-out dd { margin: 0; font-weight: 700; text-align: right; }
.calc-out .risk, .calc-out .compare { margin: 0; font-size: .95rem; }
.calc-out .btn { background: var(--on-brand); color: var(--brand); }
.calc-out .btn:hover { background: var(--brand-soft); }
.calc-out .fine { margin: 0; font-size: .8rem; opacity: .85; }
@media (max-width: 959px) { .calc-out { position: static; } }

ol.steps { list-style: none; padding: 0; margin: 0; }
.profs .card { transition: border-color .2s, transform .2s; }
.profs .card.active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand), var(--shadow); }
@media (prefers-reduced-motion: no-preference) { .profs .card.active { transform: translateY(-3px); } }

.faq { max-width: 820px; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style-position: outside; }
.faq summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.faq details p { color: var(--soft); }

section.final { background: radial-gradient(700px 360px at 90% 10%, var(--accent-soft), transparent 60%), var(--surface); }
