/* Layout: audio pill → real-looking acta sheet is the hero; petrol ink, saffron only for actions, green only for "mayoría alcanzada" */
@import url("/fonts/fonts.css");

:root {
  --bg: #F3F5F8;
  --surface: #FFFFFF;
  --ink: #17324D;
  --muted: #4E6175;
  --line: #D5DDE6;
  --accent: #F2A93B;
  --on-accent: #17324D;
  --ok: #1D7A4E;
  --warn: #B4581A;
  --tint: #E4ECF4;
  --band: #17324D;
  --on-band: #EEF3F8;
  --sheet: #FFFEFB;
  --sheet-ink: #1E2A36;
  --sheet-line: #E3DED3;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-doc: "Source Serif 4", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1824; --surface: #152435; --ink: #E5ECF3; --muted: #9DB0C3; --line: #29394B;
    --accent: #F5B451; --on-accent: #0E1824; --ok: #4CC28A; --warn: #F0955A; --tint: #1C3046;
    --band: #091119; --on-band: #E5ECF3; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
.wrap { max-width: 1140px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); font-weight: 750; }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none;
  font: 700 1.02rem var(--font-body); padding: 14px 22px; border-radius: 999px; background: var(--accent); color: var(--on-accent); transition: transform .15s ease; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em; text-decoration: none; }
.logo .mark { width: 30px; height: 30px; flex: none; }
.logo .m-sheet { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; }
.logo .m-check { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 600; }
.top nav a:not(.btn):hover { color: var(--ink); }
.top .btn { padding: 10px 18px; font-size: .95rem; }

/* Hero */
.hero { padding-block: clamp(32px, 6vw, 76px); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.kicker { font-weight: 700; color: var(--muted); }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 33em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.micro { font-size: .95rem; color: var(--muted); }

/* Before / after */
.flow { display: grid; gap: 14px; min-width: 0; }
.audio { display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); width: fit-content; max-width: 100%; box-shadow: 0 10px 30px -22px rgba(0, 0, 0, .5); }
.play { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: none; }
.play svg { width: 16px; height: 16px; fill: var(--bg); }
.wave { width: 148px; height: 30px; fill: var(--muted); flex: none; max-width: 30vw; }
.audio-meta { display: grid; line-height: 1.2; min-width: 0; }
.audio-meta b { font-size: .95rem; }
.audio-meta span { font-size: .82rem; color: var(--muted); }
.arrow { display: flex; align-items: center; gap: 10px; padding-left: 28px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.arrow svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.sheet { background: var(--sheet); color: var(--sheet-ink); border-radius: 6px; padding: 26px 26px 22px; box-shadow: 0 28px 60px -32px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .06); font-family: var(--font-doc); position: relative; min-width: 0; }
.sheet .stamp { position: absolute; top: 14px; right: 14px; font-family: var(--font-body); font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #EAF0F6; color: #3B5470; }
.sheet h4 { margin: 0; padding-right: 72px; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: #5B6673; font-weight: 600; }
.sheet .com { margin: 4px 0 12px; font-size: .95rem; }
.sheet .att { font-size: .92rem; padding-bottom: 12px; border-bottom: 1px solid var(--sheet-line); }
.sheet .point { margin-top: 14px; font-size: .96rem; font-weight: 600; }
.votes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; font-family: var(--font-body); }
.votes div { background: #F2EFE8; border-radius: 6px; padding: 8px 10px; display: grid; line-height: 1.25; }
.votes span { font-size: .75rem; color: #5B6673; }
.votes b { font-size: 1rem; font-variant-numeric: tabular-nums; }
.votes small { font-size: .78rem; color: #5B6673; font-variant-numeric: tabular-nums; }
.majority { margin-top: 10px; font-family: var(--font-body); font-size: .86rem; display: flex; gap: 8px; align-items: flex-start; color: #1D6B45; font-weight: 600; }
.majority.no { color: #A44E16; }
.majority svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Sections */
section.block { padding-block: clamp(36px, 5vw, 60px); border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: 28px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.icon { width: 52px; height: 52px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; flex: none; }
.icon svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.benefits li { display: grid; gap: 10px; align-content: start; min-width: 0; }
.benefits p { color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; }
.steps p { color: var(--muted); }
.steps b { color: var(--ink); }

/* Full example */
.example { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.example .sheet { padding: 30px; }
.example-notes { display: grid; gap: 14px; }
.example-notes li { color: var(--muted); }
.example-notes ul { margin: 0; padding-left: 1.1em; display: grid; gap: 10px; }

/* Recording script */
.script { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 14px; max-width: 52rem; }
.script blockquote { margin: 0; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--tint); border-radius: 0 10px 10px 0; font-size: 1.05rem; }
.script .copy { justify-self: start; }
.script small { color: var(--muted); }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 52rem; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: grid; gap: 8px; align-content: start; }
.price-card.free { box-shadow: inset 0 0 0 2px var(--accent); }
.price-card .big { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price-card .big small { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-card p { color: var(--muted); }
.guarantee { margin-top: 20px; max-width: 52rem; padding: 20px 22px; border-radius: 16px; background: var(--band); color: var(--on-band); display: flex; gap: 16px; align-items: flex-start; }
.guarantee .icon { background: rgba(255, 255, 255, .12); }
.guarantee .icon svg { stroke: var(--on-band); }
.guarantee p { color: color-mix(in srgb, var(--on-band) 85%, transparent); }
.guarantee h3 { color: var(--on-band); margin-bottom: 4px; }
.pricing-cta { margin-top: 24px; }

/* Team */
.team { display: grid; gap: 14px; }
.team > * { max-width: 46rem; }
.team p { color: var(--muted); font-size: 1.1rem; }
.team b { color: var(--ink); }

/* FAQ */
.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 16px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 700; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 42rem; }

/* Contact */
.contact { background: var(--band); color: var(--on-band); }
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); padding-block: clamp(40px, 5vw, 64px); }
.contact-copy { display: grid; gap: 16px; align-content: start; }
.contact-copy p { color: color-mix(in srgb, var(--on-band) 78%, transparent); font-size: 1.1rem; }
.contact-copy a { color: var(--accent); font-weight: 700; }
form { display: grid; gap: 14px; min-width: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; min-width: 0; }
form input, form select { font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--on-band) 28%, transparent); background: color-mix(in srgb, var(--on-band) 7%, transparent); color: var(--on-band); width: 100%; }
form select option { color: #17324D; background: #FFFFFF; }
form input[aria-invalid="true"] { border-color: var(--warn); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha { min-height: 65px; }
.form-msg { padding: 14px 16px; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--on-band) 8%, transparent); }
.legal { font-size: .84rem; color: color-mix(in srgb, var(--on-band) 70%, transparent); }
.legal a { color: inherit; }
form .btn { justify-self: start; }

footer { padding-block: 28px 100px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer nav { display: flex; gap: 18px; }

.callbar { display: none; }

@media (max-width: 900px) {
  .hero .wrap, .example, .contact .wrap { grid-template-columns: 1fr; }
  .benefits, .steps, .pricing { grid-template-columns: 1fr; }
  .top nav a:not(.btn) { display: none; }
  .callbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--bg); border-top: 1px solid var(--line);
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .callbar .btn { width: 100%; }
  body.at-form .callbar { display: none; }
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .top .btn { display: none; }
  .sheet { padding: 20px 18px; }
  .votes { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .votes div { padding: 7px 8px; }
}

/* Legal pages */
.doc { padding-block: clamp(36px, 6vw, 72px); }
.doc .wrap { max-width: 760px; display: grid; gap: 16px; }
.doc h1 { font-size: clamp(2rem, 6vw, 3rem); }
.doc h2 { font-size: 1.5rem; margin-top: 18px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.doc strong { color: var(--ink); }
