/* =====================================================================
   Agenda y Atrae — Landing VSL (captación property management)
   Tokens + componentes. Sistema de diseño de la marca.
   Implementación HTML/CSS/JS plano (sin React) — carga instantánea.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --serif: 'Playfair Display', 'Instrument Serif', Georgia, serif;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ok: #4ade80; --ok-soft: #86efac; --live: #ff4d4d;
}

/* ---------- THEMES ---------- */
:root, [data-theme="dark"] {
  --bg: #0b0a10; --bg-2: #12111a; --bg-elev: #1a1826;
  --fg: #efeaf4; --fg-dim: #a9a2b8; --fg-mute: #6b6478;
  --line: rgba(255,255,255,0.08); --line-strong: rgba(255,255,255,0.16);
  --accent: #b49cff; --accent-2: #8b6dff; --accent-ink: #0b0a10;
  --g-vsl: radial-gradient(circle at 50% 42%, rgba(180,156,255,0.16) 0%, transparent 62%), linear-gradient(135deg, #1a1826 0%, #0b0a10 100%);
}
[data-theme="accent"] {
  --bg: #140a2e; --bg-2: #1b0f3d; --bg-elev: #241552;
  --fg: #f2ecff; --fg-dim: #b5a6e0; --fg-mute: #7a6ba3;
  --line: rgba(255,255,255,0.10); --line-strong: rgba(255,255,255,0.20);
  --accent: #ffd84d; --accent-2: #ffca1c; --accent-ink: #140a2e;
  --g-vsl: radial-gradient(circle at 50% 42%, rgba(255,216,77,0.13) 0%, transparent 62%), linear-gradient(135deg, #241552 0%, #140a2e 100%);
}
[data-theme="light"] {
  --bg: #f4efe7; --bg-2: #ebe5da; --bg-elev: #ffffff;
  --fg: #141118; --fg-dim: #55505c; --fg-mute: #8a8594;
  --line: rgba(0,0,0,0.09); --line-strong: rgba(0,0,0,0.18);
  --accent: #5b3df5; --accent-2: #3d25d1; --accent-ink: #ffffff;
  --g-vsl: radial-gradient(circle at 50% 42%, rgba(91,61,245,0.10) 0%, transparent 62%), linear-gradient(135deg, #ffffff 0%, #ebe5da 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }
[hidden] { display: none !important; }

/* ---------- topbar (sin menú: solo marca) ---------- */
.topbar { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: color-mix(in oklab, var(--bg) 74%, transparent); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.brand .brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); flex: none; }
.brand em { font-style: italic; font-weight: 400; color: var(--fg-dim); }
.topbar-tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-mute); }
@media (max-width: 600px) { .topbar-tag { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; font-family: var(--sans); font-size: 15px; font-weight: 500; border-radius: 999px; cursor: pointer; border: 1px solid transparent; transition: all 180ms ease; white-space: nowrap; text-align: center; }
.btn-lg { padding: 19px 38px; font-size: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -8px var(--accent); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-elev); border-color: var(--fg-mute); }
.btn-block { display: flex; width: 100%; }
.btn-arrow::after { content: '→'; font-size: 15px; transition: transform 180ms ease; }
.btn:hover .btn-arrow::after { transform: translateX(3px); }
.btn:disabled { opacity: 0.4; pointer-events: none; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 56px; position: relative; overflow: hidden; }
.hero-orbits { position: absolute; inset: 0; pointer-events: none; display: grid; place-items: center; z-index: 0; opacity: 0.7; }
.hero-orbits .ring { position: absolute; border: 1px solid var(--line); border-radius: 50%; animation: spin 60s linear infinite; }
.hero-orbits .ring:nth-child(1) { width: 620px; height: 620px; }
.hero-orbits .ring:nth-child(2) { width: 940px; height: 940px; animation-duration: 90s; animation-direction: reverse; }
.hero-orbits .ring:nth-child(3) { width: 1280px; height: 1280px; animation-duration: 120s; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 880px; margin: 0 auto; }
.eyebrow-live { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-dim); padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 26px; }
.eyebrow-live .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(74,222,128,0.5);} 70%{box-shadow:0 0 0 8px rgba(74,222,128,0);} 100%{box-shadow:0 0 0 0 rgba(74,222,128,0);} }
.hero-h1 { font-family: var(--serif); font-size: clamp(38px, 6vw, 78px); line-height: 1.0; letter-spacing: -0.03em; font-weight: 500; margin: 0 auto 24px; max-width: 17ch; }
.hero-h1 em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero-h1 .strike { position: relative; color: var(--fg-dim); font-weight: 400; }
.hero-h1 .strike::after { content: ''; position: absolute; left: -2%; right: -2%; top: 52%; height: 3px; background: var(--accent); transform: rotate(-3deg); }
.hero-sub { font-size: 18.5px; color: var(--fg-dim); max-width: 60ch; margin: 0 auto 38px; line-height: 1.55; }
.hero-sub strong { color: var(--fg); font-weight: 600; }
.cred-line { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-mute); margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.cred-line .dot { color: var(--accent); }

/* ---------- VSL frame (con muro inline + reproductor simulado) ---------- */
.vsl-shell { max-width: 860px; margin: 8px auto 0; }
.vsl-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--g-vsl); border: 1px solid var(--line-strong); box-shadow: 0 50px 120px -40px rgba(0,0,0,0.6); transition: box-shadow 300ms ease; }
.vsl-frame.is-form { aspect-ratio: auto; min-height: 0; }
.vsl-frame::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }

/* locked cover */
.vsl-cover { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.vsl-cover:hover .vsl-play { transform: translateY(-2px) scale(1.04); box-shadow: 0 24px 70px -10px color-mix(in oklab, var(--accent) 70%, transparent); }
.vsl-play { width: 96px; height: 96px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 20px 60px -10px color-mix(in oklab, var(--accent) 55%, transparent); transition: all 300ms ease; }
.vsl-play svg { margin-left: 6px; }
.vsl-cover-hint { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--fg); background: color-mix(in oklab, var(--bg) 55%, transparent); border: 1px solid var(--line-strong); padding: 9px 18px; border-radius: 999px; white-space: nowrap; }
.vsl-caption { position: absolute; left: 24px; top: 22px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fg-dim); display: flex; align-items: center; gap: 9px; z-index: 3; }
.vsl-caption::before { content: '●'; color: var(--live); font-size: 9px; }
.vsl-duration { position: absolute; right: 24px; top: 20px; font-family: var(--mono); font-size: 10.5px; color: var(--fg-dim); padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 4px; background: color-mix(in oklab, var(--bg) 60%, transparent); z-index: 3; }

/* ---------- form-wall inline ---------- */
.vsl-form { position: relative; z-index: 4; padding: 36px clamp(20px, 5vw, 52px) 34px; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(6px); }
.vsl-form-head { text-align: center; margin-bottom: 24px; }
.vsl-form-ey { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 12px; }
.vsl-form-h { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3.6vw, 34px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 8px; }
.vsl-form-h em { font-style: italic; color: var(--accent); font-weight: 400; }
.vsl-form-sub { color: var(--fg-dim); font-size: 14.5px; margin: 0; }
.form { display: grid; gap: 14px; max-width: 460px; margin: 0 auto; }
.field { display: flex; flex-direction: column; gap: 7px; text-align: left; }
.field > .lbl { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-mute); }
.field input { background: var(--bg); border: 1px solid var(--line); color: var(--fg); padding: 13px 15px; border-radius: 10px; font-family: var(--sans); font-size: 15.5px; outline: none; transition: border-color 160ms ease; width: 100%; }
.field input::placeholder { color: var(--fg-mute); }
.field input:focus { border-color: var(--accent); }
.field.err input { border-color: var(--live); }
.field-error { font-family: var(--mono); font-size: 10.5px; color: var(--live); letter-spacing: 0.04em; }
.seg-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg-pill { background: var(--bg); border: 1px solid var(--line); color: var(--fg-dim); padding: 13px 14px; border-radius: 10px; cursor: pointer; font-family: var(--sans); font-size: 14.5px; font-weight: 500; transition: all 150ms ease; text-align: center; }
.seg-pill:hover { border-color: var(--fg-mute); color: var(--fg); }
.seg-pill.on { background: color-mix(in oklab, var(--accent) 16%, transparent); border-color: var(--accent); color: var(--accent); }
.consent { display: flex; gap: 11px; align-items: flex-start; text-align: left; cursor: pointer; font-size: 12.5px; color: var(--fg-dim); line-height: 1.45; }
.consent input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex: none; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--bg); cursor: pointer; position: relative; margin-top: 1px; transition: all 150ms ease; }
.consent input:checked { background: var(--accent); border-color: var(--accent); }
.consent input:checked::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent-ink); font-size: 13px; font-weight: 700; }
.consent.err input { border-color: var(--live); }
.form-submit { margin-top: 6px; }
.form-foot { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-mute); text-align: center; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* ---------- simulated player ---------- */
.vsl-player { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; }
.vsl-player-note { text-align: center; padding: 0 24px; }
.vsl-player-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 13px; margin-bottom: 18px; }
.vsl-player-badge::before { content: '●'; color: var(--live); animation: pulse-red 1.6s infinite; font-size: 8px; }
@keyframes pulse-red { 0%,100%{opacity:1;} 50%{opacity:0.4;} }
.vsl-player-title { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 3vw, 30px); color: var(--fg); margin: 0 0 8px; }
.vsl-player-cap { font-family: var(--mono); font-size: 11px; color: var(--fg-mute); text-transform: uppercase; letter-spacing: 0.1em; }
.vsl-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 22px; display: flex; align-items: center; gap: 14px; background: linear-gradient(0deg, color-mix(in oklab, var(--bg) 80%, transparent), transparent); z-index: 5; }
.vsl-bar .time { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); flex: none; }
.vsl-track { flex: 1; height: 4px; border-radius: 4px; background: var(--line-strong); overflow: hidden; }
.vsl-track .fill { height: 100%; background: var(--accent); width: 0%; transition: width 250ms linear; }
.vsl-skip { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-mute); cursor: pointer; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: var(--bg-2); flex: none; transition: all 150ms ease; }
.vsl-skip:hover { color: var(--fg); border-color: var(--fg-mute); }

/* ended overlay */
.vsl-ended { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: color-mix(in oklab, var(--bg) 78%, transparent); backdrop-filter: blur(3px); text-align: center; padding: 24px; }
.vsl-ended .done-ey { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ok-soft); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 8px; }
.vsl-ended .done-ey::before { content: '✓'; }
.vsl-ended h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 3.4vw, 32px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 18px; max-width: 18ch; }
.vsl-ended h3 em { font-style: italic; color: var(--accent); font-weight: 400; }
.vsl-replay { margin-top: 14px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-mute); cursor: pointer; }
.vsl-replay:hover { color: var(--fg); }

/* nudge bajo el reproductor al terminar */
.vsl-ended-sub { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-dim); margin: 0; }

/* ---------- botón de WhatsApp (bloqueable) ---------- */
.wa-cta { text-align: center; margin: 30px auto 0; max-width: 860px; }
.wa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 20px 42px; font-family: var(--sans); font-size: 17px; font-weight: 600; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: all 200ms ease; max-width: 100%; }
.wa-btn .wa-ic { display: inline-flex; }
.wa-btn .wa-ic svg { width: 24px; height: 24px; display: block; }
.wa-btn.is-on { background: #25D366; color: #07210f; box-shadow: 0 12px 34px -12px rgba(37,211,102,0.7); }
.wa-btn.is-on:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -12px rgba(37,211,102,0.85); }
.wa-btn.is-locked { background: var(--bg-2); color: var(--fg-dim); border: 1px dashed var(--line-strong); cursor: not-allowed; }
.wa-btn.is-locked .wa-ic { color: var(--accent); opacity: 0.9; }
.wa-note { margin: 14px auto 0; font-size: 14.5px; color: var(--fg-dim); max-width: 44ch; }

/* segunda sección de vídeo */
.proof .vsl-shell { margin-top: 8px; }

/* bloque del calendario Cal.com */
.cal-block { margin-top: 88px; }
.cal-embed { max-width: 980px; margin: 8px auto 0; min-height: 620px; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 20px; overflow: hidden; box-shadow: 0 50px 120px -40px rgba(0,0,0,0.6); }
@media (max-width: 720px) { .cal-block { margin-top: 64px; } .cal-embed { min-height: 560px; border-radius: 16px; } }

/* ---------- sections ---------- */
section { padding: 96px 0; position: relative; }
.section-label { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fg-mute); margin-bottom: 22px; }
.section-label.center { justify-content: center; }
.section-label .num { color: var(--accent); font-weight: 500; }
.section-label .line { flex: 0 0 56px; height: 1px; background: var(--line-strong); }
.section-title { font-family: var(--serif); font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.025em; font-weight: 500; margin: 0 0 22px; max-width: 20ch; }
.section-title.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title em { font-style: italic; color: var(--accent); font-weight: 400; }
.section-intro { font-size: 18px; color: var(--fg-dim); max-width: 56ch; margin: 0 0 56px; }
.section-intro.center { margin-left: auto; margin-right: auto; text-align: center; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 44px 0 120px; font-size: 13px; color: var(--fg-mute); }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-legal { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- sticky CTA (móvil) ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line-strong); display: none; }
.sticky-cta .btn { width: 100%; }
@media (max-width: 820px) { .sticky-cta { display: block; } footer { padding-bottom: 120px; } }

/* ---------- gracias-no ---------- */
.thanks { min-height: 100vh; display: grid; place-items: center; padding: 48px 24px; position: relative; overflow: hidden; }
.thanks::before { content: ''; position: absolute; left: 50%; top: 40%; transform: translate(-50%,-50%); width: 800px; height: 800px; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--accent) 12%, transparent) 0%, transparent 60%); pointer-events: none; }
.thanks-card { position: relative; max-width: 600px; text-align: center; }
.thanks-ey { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 22px; }
.thanks h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 5vw, 56px); line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 20px; }
.thanks h1 em { font-style: italic; color: var(--accent); font-weight: 400; }
.thanks p { font-size: 18px; color: var(--fg-dim); line-height: 1.6; margin: 0 auto 18px; max-width: 50ch; }
.resource-card { margin: 32px auto 0; max-width: 460px; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 18px; padding: 28px; text-align: left; display: flex; gap: 20px; align-items: center; box-shadow: 0 40px 100px -40px rgba(0,0,0,0.5); }
.resource-ic { width: 56px; height: 56px; border-radius: 12px; background: color-mix(in oklab, var(--accent) 14%, transparent); border: 1px solid var(--accent); display: grid; place-items: center; color: var(--accent); flex: none; }
.resource-ic svg { width: 26px; height: 26px; }
.resource-body { flex: 1; }
.resource-kicker { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-mute); margin-bottom: 6px; }
.resource-title { font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.25; margin: 0 0 16px; }
.thanks-back { display: inline-block; margin-top: 28px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-mute); cursor: pointer; }
.thanks-back:hover { color: var(--fg); }
@media (max-width: 520px) { .resource-card { flex-direction: column; text-align: center; } }
