/* UvaBoom — landing pública.
   Editorial y sobria: fondo papel, tinta casi negra, un solo morado uva
   sólido y un acento coral usado muy poco. Sin degradados ni brillos.
   Titulares en Instrument Serif; el resto en Inter. */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/inter-variable.woff2') format('woff2');
}

:root {
    --paper: #f7f4ee;
    --paper-2: #efeae0;
    --card: #fffdf9;
    --ink: #1b1726;
    --ink-2: #4a4458;
    --muted: #7a7386;
    --line: #e2dccf;
    --line-2: #d4ccbc;
    --brand: #4b1fa8;
    --brand-ink: #3a1786;
    --brand-soft: #ece5fb;
    --coral: #ff6a3d;
    --ok: #15803d;
    --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0;
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .85em; background: var(--paper-2); padding: 1px 6px; border-radius: 5px; }
::selection { background: #ffd9cc; }

.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(780px, 100% - 40px); }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; color: var(--ink); }
h1 em, h2 em { font-style: italic; color: var(--brand); }

/* ================= BOTONES ================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1.5px solid transparent; border-radius: 10px;
    padding: 11px 20px; font: inherit; font-weight: 600; font-size: .95rem;
    cursor: pointer; white-space: nowrap;
    transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: .86rem; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 2px 0 var(--brand-ink); }
.btn-brand:hover { background: var(--brand-ink); }
.btn-brand:disabled { opacity: .6; cursor: not-allowed; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; }

/* ================= NAV ================= */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(247, 244, 238, .9); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--brand); color: #fff; font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1; padding-bottom: 3px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .92rem; }
.nav-links a:not(.btn) { color: var(--ink-2); }
.nav-links a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.nav-toggle { display: none; background: transparent; border: 1.5px solid var(--line-2); color: var(--ink); width: 42px; height: 42px; border-radius: 10px; font-size: 1.3rem; cursor: pointer; }

/* ================= HERO ================= */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; padding: 64px 0 96px; }
.eyebrow { margin: 0; font-size: .9rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: var(--coral); }
.hero h1 { font-size: clamp(2.8rem, 6vw, 4.9rem); line-height: 1.02; margin: 18px 0 22px; text-wrap: balance; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 520px; margin: 0 0 32px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 8px 22px; flex-wrap: wrap; list-style: none; padding: 0; margin: 28px 0 0; font-size: .86rem; color: var(--muted); }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust li + li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); margin-right: 14px; }

.hero-visual { position: relative; padding: 0 0 28px 28px; }
.hero-shape { position: absolute; inset: 40px -14px 0 0; background: var(--brand); border-radius: 18px; }
.mock {
    position: relative; background: #fff; color: #1c1e21; border-radius: 16px; padding: 22px;
    border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(27, 23, 38, .45);
    font-family: 'Segoe UI', Tahoma, sans-serif; font-size: 14px;
}
.mock-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid #e4e6eb; margin-bottom: 16px; }
.mock-head b { font-size: 17px; }
.mock-head b span { color: #65676b; font-weight: 400; }
.mock-chip { font-size: 12px; font-weight: 600; color: #0866ff; background: #ebf5ff; padding: 5px 10px; border-radius: 6px; }
.mock-input { display: flex; gap: 10px; margin-bottom: 20px; }
.mock-field { flex: 1; background: #f0f2f5; border-radius: 20px; padding: 10px 14px; color: #65676b; display: flex; justify-content: space-between; align-items: center; }
.mock-comment { display: flex; gap: 10px; margin-bottom: 16px; }
.mock-comment.faded { opacity: .55; margin-bottom: 0; }
.av { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; }
.av.sm { width: 28px; height: 28px; font-size: 10px; }
.av1 { background: #6b5b95; } .av2 { background: #d9634a; } .av3 { background: #2f7d6d; } .av4 { background: #8a6d3b; }
.bubble { background: #f0f2f5; border-radius: 18px; padding: 8px 14px; display: inline-block; line-height: 1.4; }
.bubble b { display: block; font-size: 13px; }
.bubble.sm { font-size: 13px; padding: 6px 12px; }
.meta { font-size: 12px; color: #65676b; font-weight: 600; margin: 4px 0 0 10px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.meta .liked { color: #f33e58; }
.meta .reacts { margin-left: auto; font-weight: 500; }
.mock-reply { display: flex; gap: 8px; margin: 10px 0 0 14px; padding-left: 12px; border-left: 2px solid #e4e6eb; }

.sticker {
    position: absolute; left: -6px; bottom: -6px; max-width: 250px;
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 14px; border-radius: 10px; background: #fff3c4; color: #4a3b00;
    font-size: .84rem; line-height: 1.4; font-weight: 500;
    box-shadow: 0 10px 24px -14px rgba(27, 23, 38, .5);
    transform: rotate(-2.5deg);
}
.sticker i { color: var(--brand); font-size: 1.05rem; margin-top: 1px; }

/* ================= SECCIONES ================= */
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head h2, .split-head h2, .register-copy h2, .cta h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.06; margin: 0 0 14px; text-wrap: balance; }
.section-head p, .split-head p { color: var(--ink-2); font-size: 1.05rem; margin: 0; }

/* Pasos: lista numerada, no tarjetas */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1.5px solid var(--ink); }
.steps li { padding: 26px 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.step-num { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--coral); }
.steps h3 { margin: 14px 0 6px; font-size: 1.12rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.snippet { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--ink); font-size: .72rem; line-height: 1.7; overflow-x: auto; color: #e9e5f2; }

/* Beneficios: dos columnas editoriales */
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.split-head { position: sticky; top: 110px; }
.benefits { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.benefits > div { padding: 22px 0; border-top: 1px solid var(--line); }
.benefits dt { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.02rem; margin-bottom: 6px; }
.benefits dt i { color: var(--brand); font-size: 1.1rem; }
.benefits dd { margin: 0; color: var(--ink-2); font-size: .94rem; }

/* ================= DEMO: franja sólida ================= */
.band { background: var(--brand); color: #fff; padding: 96px 0; }
.section-head.on-band { margin-inline: auto; text-align: center; }
.on-band h2 { color: #fff; }
.on-band h2 em { color: #ffd2c2; }
.on-band p { color: #d9cdf6; }
.browser { max-width: 900px; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #fbfaf7; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.browser-bar { display: flex; align-items: center; gap: 14px; padding: 11px 16px; background: #ece8df; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #d6cfc1; }
.url { flex: 1; max-width: 420px; margin: 0 auto; text-align: center; background: #fff; border-radius: 6px; padding: 4px 12px; font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.url i { color: var(--ok); font-size: .7rem; }
.browser-body { padding: 28px clamp(14px, 4vw, 40px) 32px; min-height: 380px; }
.fake-article { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.fa-line { height: 9px; border-radius: 5px; background: #e7e2d8; }
.fa-line.w40 { width: 40%; height: 16px; background: #d8d1c3; } .fa-line.w80 { width: 80%; }

/* ================= REGISTRO ================= */
.register { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.register-copy p { color: var(--ink-2); margin: 0 0 22px; }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: center; font-size: .95rem; }
.checklist i { color: var(--ok); font-size: 1.1rem; }
.register-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 1px 0 var(--line), 0 20px 40px -30px rgba(27, 23, 38, .35); }

.stepper { position: relative; display: flex; justify-content: space-between; margin: 0 8px 26px; }
.step-line { position: absolute; top: 15px; left: 24px; right: 24px; height: 1px; background: var(--line-2); }
.step-item { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.step-circle { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .86rem; background: var(--card); border: 1.5px solid var(--line-2); color: var(--muted); transition: all .2s; }
.step-label { font-size: .76rem; font-weight: 600; color: var(--muted); }
.step-item.active .step-circle { background: var(--brand); border-color: var(--brand); color: #fff; }
.step-item.active .step-label { color: var(--ink); }
.step-item.done .step-circle { background: #e6f4ea; border-color: var(--ok); color: var(--ok); }
.step-item.done .step-label { color: var(--ok); }

.form-card { position: relative; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.form-step { display: none; }
.form-step.active { display: block; animation: stepIn .3s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.form-group { margin-bottom: 20px; }
.form-group > label, .config-row > label { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.form-input {
    width: 100%; padding: 13px 14px 13px 42px; border-radius: 10px; font: inherit; font-size: 1rem;
    color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.form-input::placeholder { color: #a9a2b4; }
.form-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form-input.plain { padding-left: 14px; }
textarea.form-input { resize: vertical; min-height: 64px; line-height: 1.45; }
.optional { margin-left: auto; font-size: .74rem; font-weight: 500; color: var(--muted); }
.form-hint { font-size: .78rem; color: var(--muted); margin: 7px 2px 0; }
.form-error { display: none; font-size: .84rem; color: #9f1d1d; background: #fdecea; border-radius: 8px; padding: 9px 12px; margin: 12px 0 0; }
.btn-back { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 8px; padding: 10px; background: none; border: none; color: var(--muted); font: inherit; font-size: .88rem; cursor: pointer; border-radius: 10px; }
.btn-back:hover { color: var(--ink); background: var(--paper); }

.config-row { margin-bottom: 18px; }
.height-slider-wrap { display: flex; align-items: center; gap: 14px; }
.height-slider { flex: 1; accent-color: var(--brand); }
.config-value { min-width: 62px; text-align: center; font-size: .84rem; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-ink); }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Vista previa (mismo look del widget real) */
.preview-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow: hidden; color: #1c1e21; font-family: 'Segoe UI', Tahoma, sans-serif; transition: height .3s var(--ease); -webkit-mask-image: linear-gradient(#000 85%, transparent); mask-image: linear-gradient(#000 85%, transparent); }
.pv-header { border-bottom: 1px solid #e4e6eb; padding-bottom: 8px; margin-bottom: 12px; }
.pv-header h4 { margin: 0; font-size: 14px; }
.pv-header h4 span { color: #65676b; font-weight: 400; }
.pv-comment { display: flex; gap: 8px; margin-bottom: 10px; }
.pv-avatar, .pv-input-avatar { width: 26px; height: 26px; border-radius: 50%; flex: none; background: #c9bfdc; }
.pv-body { min-width: 0; }
.pv-bubble { background: #f0f2f5; border-radius: 14px; padding: 5px 10px; display: inline-block; }
.pv-name { font-weight: 700; font-size: 11px; }
.pv-text { margin: 0; font-size: 12px; line-height: 1.35; }
.pv-meta { display: flex; gap: 10px; font-size: 10px; color: #65676b; font-weight: 600; margin: 2px 0 0 8px; }
.pv-load-more { width: 100%; margin: 4px 0 10px; padding: 6px; border: 1px solid #e4e6eb; background: #fff; border-radius: 8px; color: #0866ff; font: inherit; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pv-input-row { display: flex; gap: 8px; align-items: center; }
.pv-input-fake { flex: 1; background: #f0f2f5; border-radius: 14px; padding: 6px 10px; font-size: 11px; color: #65676b; }

/* Resultado */
.resultado { display: none; }
.resultado.visible { display: block; animation: stepIn .4s var(--ease); }
.result-card { text-align: center; }
.result-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; margin: 10px 0 18px; }
.result-card > p { color: var(--ink-2); font-size: .92rem; text-align: left; }
.result-icon { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; color: #fff; background: var(--ok); }
.validation-banner { display: flex; gap: 12px; text-align: left; padding: 14px 16px; border-radius: 10px; background: #fff3c4; color: #4a3b00; font-size: .88rem; margin-bottom: 18px; }
.validation-banner .icon { font-size: 1.15rem; }
.code-block { position: relative; text-align: left; margin: 10px 0 14px; }
.code-block pre { margin: 0; padding: 16px; padding-right: 96px; border-radius: 10px; background: var(--ink); font-size: .78rem; line-height: 1.7; white-space: pre-wrap; word-break: break-all; color: #e9e5f2; }
.btn-copy { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; border: 1px solid #3b3550; background: #2a2438; color: #fff; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; }
.btn-copy:hover { background: #3b3550; }
.btn-copy.copied { background: var(--ok); border-color: var(--ok); }
.code-block .tag, .snippet .tag { color: #ffb59c; }
.code-block .attr, .snippet .attr { color: #c8b6ff; }
.code-block .val, .snippet .val { color: #a7e3b5; }
.code-block .comment { color: #8d86a0; font-style: italic; }
.small-note { font-size: .82rem !important; color: var(--muted) !important; }

/* ================= FAQ ================= */
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--serif); font-size: 1.8rem; line-height: 1; color: var(--brand); transition: transform .2s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--brand); }
.faq details p { margin: 0; padding: 0 40px 22px 0; color: var(--ink-2); }

/* ================= CTA + FOOTER ================= */
.cta { margin: 24px 0 96px; padding: clamp(40px, 7vw, 72px); border-radius: 18px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0; max-width: 620px; }
.cta h2 em { color: #ffb59c; }

.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; color: var(--muted); font-size: .86rem; }
.footer nav { display: flex; gap: 20px; font-size: .88rem; color: var(--ink-2); }
.footer nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ================= ENTRADA SUAVE ================= */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; gap: 56px; padding: 40px 0 72px; }
    .hero-visual { max-width: 520px; width: 100%; }
    .split { grid-template-columns: 1fr; gap: 28px; }
    .split-head { position: static; }
    .register { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
    .nav-toggle { display: grid; place-items: center; }
    .nav-links {
        position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px 20px 18px; background: var(--paper); border-bottom: 1px solid var(--line);
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--line); }
    .nav-links .btn { margin-top: 14px; }
    .steps { grid-template-columns: 1fr; }
    .steps li, .steps li + li { padding: 22px 0; border-left: none; }
    .steps li + li { border-top: 1px solid var(--line); }
    .benefits { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .section, .band { padding: 72px 0; }
    .hero-ctas .btn { flex: 1 1 100%; }
    .hero-visual { padding: 0 0 36px 14px; }
    .hero-shape { inset: 30px -8px 14px 0; }
    .sticker { left: 0; max-width: 220px; }
    .register-box { padding: 20px; }
    .code-block pre { padding-right: 16px; padding-top: 48px; }
    .cta { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; }
}
