:root {
  --ink: #15211d;
  --muted: #52615b;
  --paper: #f7f4ec;
  --surface: #fffdf7;
  --line: #d8ded8;
  --green: #176b4d;
  --lime: #c7f36b;
  --lime-dark: #9acb36;
  --coral: #ef765f;
  --shadow: 0 24px 70px rgba(21, 33, 29, .13);
  --radius: 22px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { width: min(1180px, calc(100% - 32px)); margin: 18px auto 0; min-height: 64px; padding: 10px 12px 10px 18px; display: flex; align-items: center; justify-content: space-between; background: rgba(255, 253, 247, .92); border: 1px solid rgba(21, 33, 29, .12); border-radius: 18px; backdrop-filter: blur(14px); position: relative; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; letter-spacing: -.03em; }
.brand svg { width: 30px; height: 30px; fill: none; stroke: var(--green); stroke-width: 1.5; }
.header-cta { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 12px; background: var(--ink); color: white; text-decoration: none; font-weight: 750; transition: background 180ms ease; }
.header-cta:hover { background: var(--green); }
.section-shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.hero { min-height: 690px; padding: 86px 0 75px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 72px; }
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 24px; font-size: clamp(2.75rem, 5vw, 4.7rem); line-height: 1; letter-spacing: -.065em; }
h1 span { color: var(--green); }
.hero-text { max-width: 650px; margin-bottom: 10px; color: var(--muted); font-size: clamp(1.08rem, 1.7vw, 1.3rem); }
.hero-promise { margin-bottom: 28px; display: flex; flex-wrap: wrap; gap: 7px 16px; color: var(--ink); }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.button { min-height: 50px; border: 0; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; cursor: pointer; font-weight: 800; text-decoration: none; transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease; }
.button-primary { background: var(--lime); color: var(--ink); box-shadow: 0 8px 24px rgba(154, 203, 54, .2); }
.button-primary:hover { background: var(--lime-dark); }
.button-secondary { background: var(--ink); color: white; }
.button-secondary:hover { background: var(--green); }
.button-full { width: 100%; }
.text-link { font-weight: 750; text-underline-offset: 5px; }
.privacy-note { margin: 26px 0 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .86rem; }
.privacy-note svg { width: 20px; height: 20px; fill: none; stroke: var(--green); stroke-width: 1.8; flex: 0 0 auto; }

.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); transform: rotate(1.5deg); overflow: hidden; }
.window-bar { height: 50px; padding: 0 18px; display: flex; align-items: center; gap: 7px; background: var(--ink); color: white; }
.window-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
.window-bar span:nth-child(2) { background: #f1c85b; }
.window-bar span:nth-child(3) { background: var(--lime); }
.window-bar small { margin-left: auto; color: #cbd4ce; }
.hero-sequence { margin: 0; padding: 26px; display: grid; gap: 12px; list-style: none; }
.hero-sequence li { padding: 18px; border: 1px solid var(--line); border-radius: 15px; }
.hero-sequence blockquote { margin: 8px 0 0; padding: 0; border: 0; color: var(--ink); font-size: 1.32rem; }
.sequence-label { color: var(--green); font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.hero-sequence .sequence-lost { padding: 3px 12px; display: flex; align-items: center; gap: 12px; border: 0; color: var(--muted); }
.sequence-arrow { color: var(--coral); font-size: 1.5rem; font-weight: 850; }
.hero-sequence .sequence-solved { display: grid; gap: 8px; border-color: #bcd39e; background: #eff8df; font-size: 1.08rem; }
.field-label { color: var(--green); font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }

.proof-strip { padding: 68px max(20px, calc((100% - 1120px) / 2)); background: var(--ink); color: white; }
.proof-strip > p { color: #bfcac4; }
.proof-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
blockquote { margin: 0; padding: 22px; border: 1px solid #405049; border-radius: 16px; font-size: 1.08rem; font-weight: 680; }
blockquote cite { margin-top: 18px; display: block; color: var(--lime); font-size: .78rem; font-style: normal; font-weight: 700; }

.demo-section { padding: 110px 0; }
.section-heading { max-width: 680px; margin-bottom: 42px; }
h2 { margin-bottom: 18px; font-size: clamp(2.2rem, 4vw, 3.7rem); line-height: 1.02; letter-spacing: -.055em; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.08rem; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.panel { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 35px rgba(21, 33, 29, .06); }
.panel-heading { min-height: 52px; margin-bottom: 20px; display: flex; align-items: center; gap: 13px; }
.panel-heading h3 { margin-bottom: 2px; }
.panel-heading p { margin: 0; color: var(--muted); font-size: .85rem; }
.step-number { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: white; font-size: .8rem; font-weight: 850; }
textarea, input, select { width: 100%; border: 1px solid #bcc7c0; border-radius: 12px; background: white; color: var(--ink); }
textarea { min-height: 266px; padding: 16px; resize: vertical; line-height: 1.55; }
input, select { min-height: 48px; padding: 0 13px; }
.input-meta { min-height: 42px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .78rem; }
.input-meta button { min-height: 38px; border: 0; background: transparent; color: var(--green); cursor: pointer; font-weight: 750; }
.empty-state { min-height: 365px; display: grid; place-items: center; align-content: center; gap: 16px; text-align: center; color: var(--muted); }
.empty-state svg { width: 50px; height: 50px; padding: 12px; border-radius: 15px; background: #edf0eb; fill: none; stroke: var(--green); stroke-width: 1.6; }
.result-content { min-height: 365px; }
.result-block { padding: 16px 0; border-bottom: 1px solid var(--line); }
.result-block p { margin: 7px 0 0; }
.result-block.accent { margin: 8px 0 18px; padding: 16px; border: 0; border-radius: 13px; background: #eff8df; }
.result-fields { display: grid; grid-template-columns: 1.25fr .75fr; gap: 12px; margin-bottom: 18px; }
.result-fields label, .tester-form > label { display: grid; gap: 7px; color: var(--muted); font-size: .82rem; font-weight: 750; }
.today-panel { grid-column: 1 / -1; }
.today-heading { display: flex; align-items: center; justify-content: space-between; }
.today-heading h3 { margin: 4px 0 16px; }
.count-badge { min-width: 34px; height: 34px; padding: 0 10px; display: grid; place-items: center; border-radius: 99px; background: var(--coral); color: white; font-weight: 850; }
.followup-list { margin: 0; padding: 0; list-style: none; }
.followup-list li { min-height: 72px; display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 14px; border-top: 1px solid var(--line); }
.followup-list .time { color: var(--green); font-weight: 850; }
.followup-list strong, .followup-list small { display: block; }
.followup-list small { margin-top: 3px; color: var(--muted); }
.added-label { width: fit-content; margin-top: 6px; padding: 2px 7px; border-radius: 99px; background: #dff1c4; color: #315f19; font-size: .68rem; font-weight: 850; letter-spacing: .03em; text-transform: uppercase; }
.followup-list button { min-width: 70px; min-height: 44px; border: 1px solid var(--line); border-radius: 11px; background: white; cursor: pointer; font-weight: 750; }
.followup-list button:hover { border-color: var(--green); color: var(--green); }
.followup-list li.done { opacity: .48; }
.followup-list li.done strong, .followup-list li.done small { text-decoration: line-through; }
.today-note { margin: 14px 0 0; color: var(--muted); font-size: .82rem; }
.followup-list li.just-added { animation: followupArrived 1.35s ease-out; }
.today-panel.receiving { animation: panelReceive 1.35s ease-out; }
.count-badge.bump { animation: countBump .65s ease-out; }
@keyframes followupArrived {
  0%, 35% { background: rgba(199, 243, 107, .42); transform: translateY(-5px); }
  100% { background: transparent; transform: translateY(0); }
}
@keyframes panelReceive {
  0%, 35% { box-shadow: 0 0 0 4px rgba(154, 203, 54, .38), 0 10px 35px rgba(21, 33, 29, .06); }
  100% { box-shadow: 0 10px 35px rgba(21, 33, 29, .06); }
}
@keyframes countBump {
  0% { transform: scale(1); }
  45% { transform: scale(1.22); }
  100% { transform: scale(1); }
}

.how { padding: 0 0 110px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how > div { padding: 26px; border-top: 3px solid var(--green); background: rgba(255,255,255,.38); }
.how span { color: var(--green); font-weight: 850; }
.how h3 { margin: 22px 0 5px; font-size: 1.35rem; }
.how p { margin: 0; color: var(--muted); }

.tester-section { padding: 90px max(20px, calc((100% - 1120px) / 2)); display: grid; grid-template-columns: 1fr 460px; gap: 80px; align-items: center; background: #dff1e6; }
.tester-copy { max-width: 600px; }
.tester-copy p { color: var(--muted); }
.tester-copy ul { padding-left: 20px; }
.tester-form { padding: 26px; display: grid; gap: 16px; background: var(--surface); border: 1px solid #b8c9bd; border-radius: var(--radius); box-shadow: var(--shadow); }
.checkbox-label { grid-template-columns: 20px 1fr !important; align-items: start; font-weight: 550 !important; }
.checkbox-label input { width: 20px; min-height: 20px; margin: 2px 0 0; accent-color: var(--green); }
.honeypot { position: absolute; left: -9999px; }
.form-note, .form-success { margin: -4px 0 0; color: var(--muted); font-size: .78rem; text-align: center; }
.form-success { padding: 11px; border-radius: 10px; background: #e6f4de; color: #285e35; font-weight: 750; }
footer { padding: 26px max(20px, calc((100% - 1120px) / 2)); display: flex; justify-content: space-between; gap: 20px; background: var(--ink); color: #cad4ce; font-size: .85rem; }
footer a { color: var(--lime); }

/* Pieza vertical 9:16 */
.reel-body { min-height: 100vh; display: grid; place-items: center; background: #0d1512; overflow: auto; }
.reel-player { width: min(100vw, 540px, calc((100vh - 122px) * 9 / 16)); padding: 8px 0; display: grid; justify-items: center; gap: 8px; container-type: inline-size; }
.reel { width: 100%; aspect-ratio: 9 / 16; position: relative; overflow: hidden; background: var(--paper); color: var(--ink); }
.reel-brand { position: absolute; top: 5%; left: 7%; z-index: 3; display: flex; align-items: center; gap: 8px; font-weight: 850; }
.reel-brand i { width: 12px; height: 12px; border-radius: 50%; background: var(--lime-dark); box-shadow: 0 0 0 6px rgba(154,203,54,.18); }
.reel-scene { position: absolute; inset: 0; padding: 23% 7% 12%; display: grid; align-content: center; opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity 260ms ease, transform 260ms ease; }
.reel-scene.is-active { z-index: 1; opacity: 1; transform: translateY(0); pointer-events: auto; }
.reel h1 { margin: 0; font-size: clamp(2.25rem, 10cqw, 4.2rem); line-height: .98; }
.reel p { margin-top: 20px; color: var(--muted); font-size: clamp(.95rem, 4cqw, 1.35rem); }
.reel-chat, .reel-output, .reel-list { margin-top: 25px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow); }
.bubble { width: 88%; margin-bottom: 10px; padding: 12px 14px; border-radius: 13px 13px 13px 3px; background: #ecefe9; }
.bubble.me { margin-left: auto; border-radius: 13px 13px 3px 13px; background: #dcf4c6; }
.reel-output span { color: var(--green); font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.reel-output strong { display: block; margin-top: 8px; font-size: 1.2rem; }
.reel-list div { padding: 13px 0; display: grid; grid-template-columns: 58px 1fr; border-top: 1px solid var(--line); }
.reel-list div:first-child { border: 0; }
.reel-list time { color: var(--green); font-weight: 850; }
.reel-cta { color: white; background: var(--green); }
.reel-cta p { color: #dce8e1; }
.reel-cta a { width: fit-content; margin-top: 18px; padding: 14px 20px; border-radius: 12px; background: var(--lime); color: var(--ink); font-weight: 850; text-decoration: none; }
.reel-progress { position: absolute; left: 7%; right: 7%; bottom: 5%; z-index: 4; height: 4px; background: rgba(82,97,91,.25); }
.reel-progress span { display: block; width: 100%; height: 100%; background: var(--lime-dark); transform: scaleX(0); transform-origin: left; }
.reel-progress span.is-running { animation: reelProgress var(--scene-duration, 5s) linear forwards; }
.reel-controls { width: 100%; min-height: 56px; padding: 6px; display: grid; grid-template-columns: repeat(3, auto) 1fr; align-items: center; gap: 6px; border: 1px solid #314039; border-radius: 14px; background: #15211d; color: white; }
.reel-controls button, .reel-controls select { min-height: 44px; border: 1px solid #506159; border-radius: 9px; background: #22312b; color: white; cursor: pointer; font-weight: 750; }
.reel-controls button { padding: 0 11px; white-space: nowrap; }
.reel-controls button:hover, .reel-controls select:hover { border-color: var(--lime); }
.reel-controls label { display: flex; align-items: center; gap: 7px; font-size: .75rem; color: #cbd4ce; }
.reel-controls select { width: 68px; padding: 0 8px; }
.reel-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
@keyframes reelProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@container (max-width: 460px) {
  .reel-controls { grid-template-columns: repeat(2, 1fr); }
  .reel-controls button { width: 100%; }
  .reel-controls label { justify-content: center; }
}

@media (max-width: 900px) {
  .hero { min-height: auto; padding: 80px 0; grid-template-columns: 1fr; gap: 50px; }
  .hero-card { transform: none; }
  .proof-quotes, .how { grid-template-columns: 1fr; }
  .tester-section { grid-template-columns: 1fr; gap: 40px; }
  .tester-form { max-width: 560px; }
}
@media (max-width: 680px) {
  .site-header { width: calc(100% - 20px); margin-top: 10px; }
  .header-cta { padding: 0 13px; font-size: .84rem; }
  .section-shell { width: min(100% - 24px, 1120px); }
  .hero { padding-top: 58px; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.5rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .text-link { text-align: center; }
  .privacy-note { align-items: flex-start; }
  .proof-strip { padding-block: 55px; }
  .demo-section { padding: 80px 0; }
  .demo-grid { grid-template-columns: 1fr; }
  .today-panel { grid-column: auto; }
  .result-fields { grid-template-columns: 1fr; }
  .followup-list li { grid-template-columns: 50px 1fr; padding: 12px 0; }
  .followup-list button { grid-column: 2; width: fit-content; }
  .how { padding-bottom: 80px; }
  .tester-section { padding-block: 70px; }
  footer { flex-direction: column; }
  .reel-controls { grid-template-columns: repeat(2, 1fr); }
  .reel-controls button { width: 100%; }
  .reel-controls label { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
