/* ==========================================
   SANITARYGIS · LANDING PAGE
   by SIGIMASTER
   ========================================== */

:root {
    --bg: #070b14;
    --bg-alt: #0a1020;
    --surface: #0e1628;
    --surface-2: #121c33;
    --line: rgba(255, 255, 255, 0.07);
    --line-strong: rgba(255, 255, 255, 0.14);

    --text: #eef2f8;
    --text-2: #a5b0c5;
    --text-3: #6f7b93;

    --blue: #2f8cff;
    --cyan: #00e0ff;
    --green: #18d98b;
    --amber: #ffb454;
    --yellow: #ffd84d;
    --violet: #a78bfa;
    --red: #ff6b6b;
    --grad: linear-gradient(120deg, #2f8cff 0%, #00e0ff 55%, #18d98b 100%);

    --font-h: 'Outfit', system-ui, sans-serif;
    --font-b: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-m: 'JetBrains Mono', ui-monospace, Consolas, monospace;

    --r: 14px;
    --r-sm: 9px;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 68px;
    color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
    background: var(--bg);
    color: var(--text);
    font: 16px/1.65 var(--font-b);
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
b, strong { font-weight: 650; color: var(--text); }
code {
    font-family: var(--font-m);
    font-size: .82em;
    color: var(--cyan);
    background: rgba(0, 224, 255, .08);
    border: 1px solid rgba(0, 224, 255, .15);
    padding: .08em .4em;
    border-radius: 5px;
    white-space: nowrap;
}
h1, h2, h3, h4 { font-family: var(--font-h); line-height: 1.15; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.container-narrow { max-width: 820px; }
.hero-grid > *, .module > *, .calc > *, .contact-grid > * { min-width: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem 1.3rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 600; font-size: .95rem;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s;
    text-align: center;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
    background: linear-gradient(120deg, #2f8cff, #00b8ff);
    color: #fff;
    box-shadow: 0 8px 24px -8px rgba(47, 140, 255, .6);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -8px rgba(47, 140, 255, .75); }
.btn-ghost { background: rgba(255, 255, 255, .03); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: rgba(47, 140, 255, .6); background: rgba(47, 140, 255, .08); }
.btn-sm { padding: .5rem .95rem; font-size: .88rem; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(7, 11, 20, .72);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-color: var(--line); background: rgba(7, 11, 20, .9); }
.header-row { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; }
.brand-mark { width: 36px; height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-h); font-size: 1.3rem; font-weight: 700; }
.brand-name b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.brand-by { font-size: .68rem; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; }

.main-nav { display: flex; gap: 1.6rem; }
.main-nav a { font-size: .92rem; color: var(--text-2); font-weight: 500; transition: color .2s; }
.main-nav a:hover { color: var(--text); }
.header-cta { display: flex; align-items: center; gap: .6rem; }

.nav-toggle { display: none; width: 42px; height: 42px; background: none; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav { display: flex; flex-direction: column; gap: .25rem; padding: .75rem 20px 1.25rem; border-top: 1px solid var(--line); background: var(--bg); }
.mobile-nav a { padding: .8rem .25rem; color: var(--text-2); border-bottom: 1px solid var(--line); }
.mobile-nav a.btn { margin-top: .75rem; color: #fff; border: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 4.5rem 0 3rem; overflow: hidden; }
.hero-glow {
    position: absolute; inset: -20% -10% auto; height: 700px; pointer-events: none;
    background:
        radial-gradient(40% 50% at 20% 30%, rgba(47, 140, 255, .18), transparent 70%),
        radial-gradient(35% 45% at 85% 20%, rgba(24, 217, 139, .10), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
.pill {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .38rem .85rem; border-radius: 999px;
    background: rgba(24, 217, 139, .08); border: 1px solid rgba(24, 217, 139, .25);
    color: #9ff0cc; font-size: .82rem; font-weight: 500;
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(24, 217, 139, .6); animation: ping 2s infinite; flex: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(24, 217, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(24, 217, 139, 0); } }

.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; margin: 1.1rem 0 1rem; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.1rem; color: var(--text-2); max-width: 36rem; }
.hero-checks { list-style: none; margin: 1.4rem 0 1.8rem; display: grid; gap: .55rem; }
.hero-checks li { position: relative; padding-left: 1.8rem; color: var(--text); font-size: .98rem; }
.hero-checks li::before {
    content: ""; position: absolute; left: 0; top: .28em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
    background: rgba(24, 217, 139, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318d98b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/62% no-repeat;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-note { margin-top: 1rem; font-size: .85rem; color: var(--text-3); }

.hero-visual { position: relative; }
.cad-window { background: #0a1120; border: 1px solid var(--line-strong); border-radius: var(--r); box-shadow: var(--shadow), 0 0 0 1px rgba(47, 140, 255, .08); overflow: hidden; }
.cad-bar { display: flex; align-items: center; gap: .8rem; padding: .6rem .9rem; background: #0d1629; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.cad-title { font-family: var(--font-m); font-size: .72rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cad-svg { width: 100%; height: auto; padding: .5rem; }
.draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.2s var(--ease) forwards .3s; }
.draw.d2 { animation-delay: 1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.float-card {
    position: absolute; display: flex; flex-direction: column;
    padding: .65rem .9rem; border-radius: 11px;
    background: rgba(14, 22, 40, .92); border: 1px solid var(--line-strong);
    box-shadow: var(--shadow); backdrop-filter: blur(8px);
    font-size: .78rem; color: var(--text-2);
}
.float-card b { font-family: var(--font-h); font-size: 1rem; }
.fc-1 { left: -22px; bottom: 38px; border-left: 3px solid var(--green); }
.fc-2 { right: -14px; top: -18px; border-left: 3px solid var(--blue); }

.stats {
    margin-top: 3.5rem; display: grid; grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line); border-radius: var(--r); background: rgba(14, 22, 40, .5);
}
.stats > div { padding: 1.25rem 1.4rem; display: flex; flex-direction: column-reverse; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats dt { font-size: .85rem; color: var(--text-2); }
.stats dd { font-family: var(--font-h); font-size: 2rem; font-weight: 800; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); font-weight: 750; margin: .6rem 0 .8rem; }
.section-head p { color: var(--text-2); font-size: 1.05rem; }
.eyebrow { font-size: .78rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }

/* ---------- Para quién ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.audience-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; transition: border-color .25s, transform .25s var(--ease); }
.audience-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.audience-card h3 { font-size: 1.1rem; margin: 1rem 0 .45rem; }
.audience-card p { color: var(--text-2); font-size: .93rem; }
.ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; }
.ic svg { width: 22px; height: 22px; }
.ic-blue { background: rgba(47, 140, 255, .12); color: var(--blue); }
.ic-green { background: rgba(24, 217, 139, .12); color: var(--green); }
.ic-amber { background: rgba(255, 180, 84, .12); color: var(--amber); }
.ic-violet { background: rgba(167, 139, 250, .12); color: var(--violet); }

.pain-box { margin-top: 2.5rem; padding: 2rem; border-radius: var(--r); border: 1px solid rgba(255, 107, 107, .18); background: linear-gradient(180deg, rgba(255, 107, 107, .05), transparent); }
.pain-box h3 { font-size: 1.2rem; margin-bottom: 1.2rem; }
.pain-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; }
.pain-list li { display: flex; gap: .8rem; color: var(--text-2); font-size: .95rem; }
.pain-list .x { flex: none; width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; color: var(--red); background: rgba(255, 107, 107, .12); margin-top: .15rem; }

/* ---------- Módulos ---------- */
.module-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.module-tabs button {
    padding: .6rem 1.05rem; border-radius: 999px; cursor: pointer;
    background: transparent; border: 1px solid var(--line-strong); color: var(--text-2);
    font-size: .92rem; font-weight: 550; transition: all .2s;
}
.module-tabs button:hover { color: var(--text); border-color: rgba(47, 140, 255, .5); }
.module-tabs button[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.module-tabs em { font-style: normal; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-left: .35rem; padding: .1rem .4rem; border-radius: 5px; background: rgba(24, 217, 139, .18); color: var(--green); vertical-align: middle; }
.module-tabs button[aria-selected="true"] em { background: rgba(255, 255, 255, .22); color: #fff; }

.module { display: grid; grid-template-columns: 1.55fr 1fr; gap: 1.5rem; animation: fadeUp .35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.module-text, .module-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 2rem; }
.module-text h3 { font-size: 1.5rem; margin-bottom: .7rem; }
.module-intro { color: var(--text-2); margin-bottom: 1.4rem; }
.how-list { list-style: none; counter-reset: how; display: grid; gap: 1rem; }
.how-list li { counter-increment: how; position: relative; padding-left: 2.6rem; color: var(--text-2); font-size: .96rem; }
.how-list li::before {
    content: counter(how); position: absolute; left: 0; top: .05rem;
    width: 1.75rem; height: 1.75rem; border-radius: 8px; display: grid; place-items: center;
    font-family: var(--font-h); font-weight: 700; font-size: .85rem;
    background: rgba(47, 140, 255, .13); color: var(--blue);
}
.module-side { background: linear-gradient(180deg, var(--surface-2), var(--surface)); display: flex; flex-direction: column; }
.module-side h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 1rem; }
.check-list { list-style: none; display: grid; gap: .7rem; margin-bottom: 1.5rem; }
.check-list li { position: relative; padding-left: 1.6rem; font-size: .93rem; color: var(--text-2); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.cmd-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.cmd-chips span { font-family: var(--font-m); font-size: .72rem; padding: .25rem .55rem; border-radius: 6px; background: rgba(0, 224, 255, .07); border: 1px solid rgba(0, 224, 255, .15); color: var(--cyan); }
.side-note { color: var(--text-2); font-size: .92rem; margin-bottom: 1.5rem; }

.partidas { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-top: 1.5rem; }
.partidas div { padding: 1rem; border-radius: var(--r-sm); background: rgba(255, 255, 255, .02); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .3rem; }
.partidas b { font-family: var(--font-h); color: var(--amber); }
.partidas span { font-size: .87rem; color: var(--text-2); }

.format-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.format-grid span { padding: .65rem; text-align: center; border-radius: var(--r-sm); border: 1px solid var(--line-strong); font-family: var(--font-m); font-size: .8rem; color: var(--text); background: rgba(255, 255, 255, .02); }

/* ---------- Mini demo ---------- */
.demo { max-width: 1040px; margin: 0 auto 3rem; }
.demo-frame { position: relative; border-radius: var(--r); padding: 1.5px; background: linear-gradient(120deg, rgba(47,140,255,.6), rgba(0,224,255,.3), rgba(24,217,139,.6)); box-shadow: 0 30px 80px -30px rgba(0, 224, 255, .35); }
.demo video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: calc(var(--r) - 1.5px); background: var(--bg); }
.demo-sound {
    position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: .45rem;
    padding: .5rem .9rem; border-radius: 999px; cursor: pointer; font-size: .85rem; font-weight: 600;
    background: rgba(7, 11, 20, .78); color: var(--text); border: 1px solid var(--line-strong);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.demo-sound:hover { border-color: rgba(0, 224, 255, .6); transform: translateY(-1px); }
.demo-sound svg { width: 18px; height: 18px; }
.demo-sound .wave { display: none; }
.demo-sound[aria-pressed="true"] .wave { display: inline; }
.demo-sound[aria-pressed="true"] .mute { display: none; }
.demo-sound[aria-pressed="false"] { animation: soundHint 2.4s ease-in-out infinite; }
@keyframes soundHint { 50% { box-shadow: 0 0 0 6px rgba(0, 224, 255, .12); } }
.demo figcaption { text-align: center; font-size: .85rem; color: var(--text-3); margin-top: .8rem; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: none; }
.timeline li { display: flex; gap: 1rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.step { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-h); font-weight: 800; background: var(--grad); color: #04101f; }
.timeline h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.timeline p { color: var(--text-2); font-size: .92rem; margin-bottom: .7rem; }

/* ---------- Comparación ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
.compare th, .compare td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); background: rgba(255, 255, 255, .02); }
.compare thead th:last-child { color: var(--green); }
.compare tbody th { font-weight: 600; color: var(--text); width: 28%; }
.compare td:nth-child(2) { color: var(--text-3); }
.compare td:nth-child(3) { color: var(--text); }
.compare tbody tr:last-child > * { border-bottom: none; }

/* ---------- Catálogo ---------- */
.cmd-toolbar { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.75rem; }
.search { position: relative; max-width: 520px; width: 100%; margin: 0 auto; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-3); }
.search input {
    width: 100%; padding: .85rem 1rem .85rem 2.7rem; border-radius: 11px;
    background: var(--surface); border: 1px solid var(--line-strong); outline: none; transition: border-color .2s;
}
.search input:focus { border-color: var(--blue); }
.cmd-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.cmd-filters button { padding: .4rem .85rem; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--text-2); font-size: .85rem; cursor: pointer; transition: all .2s; }
.cmd-filters button:hover { color: var(--text); border-color: var(--line-strong); }
.cmd-filters button[aria-pressed="true"] { background: rgba(47, 140, 255, .15); border-color: rgba(47, 140, 255, .5); color: var(--text); }
.cmd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .9rem; }
.cmd-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem; display: flex; flex-direction: column; gap: .45rem; transition: border-color .2s, transform .2s var(--ease); }
.cmd-card:hover { border-color: rgba(47, 140, 255, .35); transform: translateY(-2px); }
.cmd-top { display: flex; justify-content: space-between; align-items: center; }
.cmd-panel { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.cmd-new { font-size: .65rem; font-weight: 700; text-transform: uppercase; padding: .15rem .45rem; border-radius: 5px; background: rgba(24, 217, 139, .15); color: var(--green); }
.cmd-card h3 { font-size: 1.02rem; }
.cmd-card code { align-self: flex-start; }
.cmd-card p { font-size: .88rem; color: var(--text-2); }
.cmd-empty { text-align: center; color: var(--text-3); padding: 2rem; }

/* ---------- Calculadora ---------- */
.calc { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; }
.calc-inputs, .calc-out { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 2rem; }
.calc-inputs { display: grid; gap: 1.5rem; }
.range label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .95rem; color: var(--text-2); margin-bottom: .6rem; }
.range output { font-family: var(--font-h); font-weight: 700; font-size: 1.15rem; color: var(--text); }
input[type="range"] { width: 100%; height: 6px; -webkit-appearance: none; appearance: none; background: var(--surface-2); border-radius: 99px; outline: none; accent-color: var(--blue); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); cursor: pointer; }
.calc-assume { font-size: .8rem; color: var(--text-3); }
.calc-out { display: flex; flex-direction: column; gap: 1.25rem; background: linear-gradient(160deg, rgba(47, 140, 255, .12), var(--surface) 60%); border-color: rgba(47, 140, 255, .25); }
.calc-out > div { display: flex; flex-direction: column; }
.calc-out span { font-size: .85rem; color: var(--text-2); }
.calc-out b { font-family: var(--font-h); font-size: 2.4rem; font-weight: 800; line-height: 1.1; }
.calc-out b.green { color: var(--green); }
.calc-payback { font-size: .93rem; color: var(--text-2); padding-top: 1rem; border-top: 1px solid var(--line); }
.calc-out .btn { margin-top: auto; }

/* ---------- Compatibilidad ---------- */
.compat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.compat-grid > div { padding: 1.2rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: .25rem; }
.compat-grid b { font-family: var(--font-h); font-size: 1rem; }
.compat-grid span { font-size: .85rem; color: var(--text-2); }

/* ---------- Precios ---------- */
.founder { display: flex; gap: 1rem; align-items: flex-start; max-width: 860px; margin: -1rem auto 2.5rem; padding: 1.1rem 1.4rem; border-radius: 12px; background: rgba(255, 216, 77, .06); border: 1px solid rgba(255, 216, 77, .22); }
.founder-ic { color: var(--yellow); font-size: 1.3rem; line-height: 1.3; }
.founder p { font-size: .93rem; color: var(--text-2); }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 1.75rem 1.5rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.plan-featured { border-color: rgba(47, 140, 255, .6); background: linear-gradient(180deg, rgba(47, 140, 255, .12), var(--surface) 45%); box-shadow: 0 20px 60px -25px rgba(47, 140, 255, .55); }
.plan-badge { position: absolute; top: -12px; left: 1.5rem; padding: .25rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--blue); color: #fff; }
.plan-badge-amber { background: var(--amber); color: #2a1800; }
.plan h3 { font-size: 1.3rem; }
.plan-for { font-size: .88rem; color: var(--text-2); margin: .35rem 0 1.2rem; min-height: 2.8em; }
.price { font-family: var(--font-h); font-size: 2.9rem; font-weight: 800; line-height: 1; display: flex; align-items: baseline; gap: .3rem; }
.price .cur { font-size: 1rem; font-weight: 600; color: var(--text-2); }
.price .per { font-size: .95rem; font-weight: 500; color: var(--text-2); }
.price-note { font-size: .82rem; color: var(--green); margin: .5rem 0 1.3rem; min-height: 1.3em; }
.plan ul { list-style: none; display: grid; gap: .65rem; margin-bottom: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.plan li { position: relative; padding-left: 1.5rem; font-size: .9rem; color: var(--text-2); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.plan .btn { margin-top: auto; }

.payments-soon { max-width: 860px; margin: 2rem auto 0; padding: 1rem 1.4rem; border-radius: 12px; border: 1px dashed var(--line-strong); text-align: center; }
.payments-soon p { font-size: .92rem; color: var(--text-2); }

.buy-steps { max-width: 980px; margin: 3rem auto 0; }
.buy-steps h3 { text-align: center; font-size: 1.35rem; margin-bottom: 1.4rem; }
.buy-steps ol { list-style: none; counter-reset: buy; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.buy-steps li { counter-increment: buy; padding: 1.3rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; color: var(--text-2); }
.buy-steps li::before { content: "Paso " counter(buy); display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); margin-bottom: .45rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .6rem; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .2s; }
.faq details[open] { border-color: rgba(47, 140, 255, .35); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 3rem 1.1rem 1.3rem; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--text-3); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--cyan); }
.faq details p { padding: 0 1.3rem 1.2rem; color: var(--text-2); font-size: .95rem; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin: .6rem 0 1rem; }
.contact-copy > p { color: var(--text-2); font-size: 1.05rem; }
.contact-links { display: grid; gap: .8rem; margin-top: 2rem; }
.contact-link { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s; }
.contact-link:hover { border-color: var(--line-strong); }
.contact-link > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.contact-link small { color: var(--text-2); font-size: .88rem; word-break: break-all; }
.cl-ic { flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(47, 140, 255, .12); color: var(--blue); }
.cl-ic svg { width: 21px; height: 21px; }
.cl-wa { background: rgba(37, 211, 102, .12); color: #25d366; }

.lead-form { position: relative; padding: 2rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); display: grid; gap: 1rem; }
.lead-form h3 { font-size: 1.35rem; }
.lead-plan { font-size: .9rem; padding: .6rem .8rem; border-radius: 8px; background: rgba(47, 140, 255, .1); color: var(--text); }
.lead-form label { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; font-weight: 550; color: var(--text-2); }
.lead-form .opt { font-weight: 400; color: var(--text-3); }
.lead-form input, .lead-form select, .lead-form textarea {
    width: 100%; min-height: 44px; padding: .65rem .85rem; border-radius: 9px;
    background: var(--bg); border: 1px solid var(--line-strong); color: var(--text); font-size: .95rem; outline: none;
    transition: border-color .2s;
}
.lead-form textarea { resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { border-color: var(--blue); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-error { font-size: .88rem; color: var(--red); }
.lead-captcha { min-height: 65px; }
.form-legal { font-size: .78rem; color: var(--text-3); text-align: center; }
.form-legal a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.lead-ok { position: absolute; inset: 0; border-radius: var(--r); background: var(--surface); padding: 2rem; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: .8rem; }
.lead-ok p { color: var(--text-2); max-width: 26rem; }
.ok-ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; font-weight: 800; color: var(--green); background: rgba(24, 217, 139, .12); border: 1px solid rgba(24, 217, 139, .35); }
.lead-ok .btn { max-width: 320px; margin-top: .5rem; }

/* ---------- Footer ---------- */
.site-footer { padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.footer-row p { font-size: .88rem; color: var(--text-3); }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-row nav a { font-size: .9rem; color: var(--text-2); }
.footer-row nav a:hover { color: var(--text); }
.footer-row .copy { width: 100%; }

.wa-float {
    position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60;
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
    background: #25d366; color: #fff; box-shadow: 0 10px 30px -6px rgba(37, 211, 102, .6);
    transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .plans { grid-template-columns: repeat(2, 1fr); }
    .audience-grid { grid-template-columns: repeat(2, 1fr); }
    .compat-grid { grid-template-columns: repeat(2, 1fr); }
    .buy-steps ol { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
    .main-nav { display: none; }
    .nav-toggle { display: flex; }
    .hero { padding-top: 3rem; }
    .hero-grid, .module, .calc, .contact-grid { grid-template-columns: 1fr; }
    .hero-grid { gap: 3rem; }
    .fc-1 { left: 8px; bottom: -20px; }
    .fc-2 { right: 8px; top: -22px; }
    .timeline { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stats > div:nth-child(3) { border-left: none; }
    .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
    body { font-size: 15px; }
    .section { padding: 4rem 0; }
    .container { padding-inline: 16px; }
    .header-cta .btn { display: none; }
    .audience-grid, .compat-grid, .plans, .timeline, .buy-steps ol, .pain-list, .partidas, .field-row { grid-template-columns: 1fr; }
    .module-text, .module-side, .calc-inputs, .calc-out, .lead-form, .pain-box { padding: 1.4rem; }
    .hero-actions .btn { width: 100%; }
    .float-card { display: none; }
    .module-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: .4rem; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
    .module-tabs button { flex: none; }
    .plan-for, .price-note { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .draw { stroke-dashoffset: 0; }
}

/* ==========================================
   EFECTOS Y ANIMACIONES (fx.js)
   ========================================== */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* Barra de progreso de lectura */
.scroll-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70;
    background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0));
    box-shadow: 0 0 12px rgba(0, 224, 255, .6); pointer-events: none;
}

/* Navegación: sección activa */
.main-nav a { position: relative; }
.main-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
    background: var(--grad); transform: scaleX(0); transition: transform .35s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--text); }

/* Hero: capas de fondo */
.hero { isolation: isolate; }
.hero-video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3;
    opacity: 0; transition: opacity 1.2s var(--ease);
    -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
}
.hero-video.ready { opacity: .32; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; opacity: .9; }
.hero-canvas {
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.45) 40%, #000 62%);
            mask-image: linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.45) 40%, #000 62%);
}
@media (max-width: 920px) {
    .hero-canvas { -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.4) 50%, #000 75%); mask-image: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.4) 50%, #000 75%); }
}
.hero-video.ready ~ .hero-canvas { opacity: .55; }
.hero-glow { z-index: -1; }
.hero-glow::before, .hero-glow::after {
    content: ""; position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%;
    filter: blur(80px); opacity: .5; animation: drift 22s ease-in-out infinite alternate;
}
.hero-glow::before { background: rgba(47, 140, 255, .35); left: -10vmax; top: -8vmax; }
.hero-glow::after { background: rgba(24, 217, 139, .22); right: -12vmax; top: 4vmax; animation-duration: 28s; animation-direction: alternate-reverse; }
@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8vmax, 5vmax) scale(1.15); }
    100% { transform: translate(-4vmax, 10vmax) scale(.95); }
}
.hero-spot {
    position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .5s;
    background: radial-gradient(520px circle at var(--hx, 50%) var(--hy, 30%), rgba(0, 224, 255, .09), transparent 60%);
}
.hero:hover .hero-spot { opacity: 1; }
.hero::after {
    /* rejilla técnica tipo plano */
    content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}

/* Título: palabras que suben */
.split .w { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(2deg); filter: blur(6px);
    animation: wordIn .8s var(--ease) forwards; animation-delay: calc(var(--i) * 55ms + .1s); }
@keyframes wordIn { to { opacity: 1; transform: none; filter: none; } }
.grad-anim { background-size: 200% auto; animation: gradShift 6s linear infinite; }
.split .grad-anim { animation: wordIn .8s var(--ease) forwards, gradShift 6s linear infinite; animation-delay: calc(var(--i) * 55ms + .1s), 0s; }
@keyframes gradShift { to { background-position: 200% center; } }

.hero-copy > .pill, .hero-copy > .lead, .hero-checks li, .hero-actions, .hero-note {
    animation: fadeUp .8s var(--ease) both;
}
.hero-copy > .pill { animation-delay: 0s; }
.hero-copy > .lead { animation-delay: .55s; }
.hero-checks li:nth-child(1) { animation-delay: .7s; }
.hero-checks li:nth-child(2) { animation-delay: .8s; }
.hero-checks li:nth-child(3) { animation-delay: .9s; }
.hero-checks li:nth-child(4) { animation-delay: 1s; }
.hero-actions { animation-delay: 1.1s; }
.hero-note { animation-delay: 1.25s; }

/* Ventana CAD: entrada, inclinación 3D y flujo */
.hero-visual { perspective: 1200px; animation: visualIn 1.1s var(--ease) both .25s; }
@keyframes visualIn { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }
.cad-window {
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .25s ease-out, box-shadow .3s;
    transform-style: preserve-3d; position: relative;
}
.cad-window:hover { box-shadow: var(--shadow), 0 0 0 1px rgba(0, 224, 255, .25), 0 30px 80px -30px rgba(0, 224, 255, .35); }
.cad-window::after {
    /* línea de escaneo */
    content: ""; position: absolute; top: 34px; bottom: 0; width: 80px; left: -80px; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(0, 224, 255, .10), transparent);
    animation: scan 5s linear infinite 2.6s;
}
@keyframes scan { to { left: 100%; } }
.cad-svg .pop { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .5s var(--ease) forwards; }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.cad-svg .fade { opacity: 0; animation: fadeIn .6s ease forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.cad-svg .flow { opacity: 0; animation: fadeIn .4s ease forwards 2.4s; }
.cad-svg .cross { animation: crossPulse 2.4s ease-in-out infinite 2.8s; transform-box: fill-box; transform-origin: center; }
@keyframes crossPulse { 50% { transform: scale(1.35); fill-opacity: .45; } }

.float-card { animation: bob 6s ease-in-out infinite; }
.fc-2 { animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Stats */
.stats { position: relative; overflow: hidden; }
.stats dd { background: linear-gradient(180deg, #fff, #9fb4d8); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Marquesina de compatibilidad */
.marquee { margin-top: 2.2rem; overflow: hidden; position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-label { text-align: center; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-top: 2.5rem; }
.marquee-track { display: flex; width: max-content; gap: 1rem; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
    display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap;
    padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-strong);
    background: rgba(14, 22, 40, .6); color: var(--text-2); font-weight: 550; font-size: .9rem;
}
.marquee-track span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Botones: brillo */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
    transform: translateX(-120%);
}
.btn-primary:hover::after { transition: transform .8s var(--ease); transform: translateX(120%); }
.hero-actions .btn-primary::after { animation: shine 4.5s ease-in-out infinite 2.5s; }
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 90%, 100% { transform: translateX(120%); } }
.btn-primary svg { transition: transform .25s var(--ease); }
.btn-primary:hover svg { transform: translateX(4px); }

/* Tarjetas: borde luminoso que sigue al cursor */
.spot { position: relative; }
.spot::after {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 224, 255, .7), rgba(47, 140, 255, .25) 35%, transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .3s;
}
.spot:hover::after { opacity: 1; }
.spot-fill { background-image: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 140, 255, .07), transparent 50%); }

.audience-card .ic { transition: transform .4s var(--ease); }
.audience-card:hover .ic { transform: rotate(-8deg) scale(1.12); }

/* Plan destacado: borde giratorio */
.plan-featured::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
    background: conic-gradient(from var(--ang), transparent 0 55%, #00e0ff 70%, #2f8cff 80%, #18d98b 90%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: spin 5s linear infinite;
}
@keyframes spin { to { --ang: 360deg; } }
.plan { transition: transform .35s var(--ease), box-shadow .35s; }
.plan:hover { transform: translateY(-6px); }
.plan-badge { animation: badgePulse 2.8s ease-in-out infinite; }
@keyframes badgePulse { 50% { box-shadow: 0 0 0 6px rgba(47, 140, 255, 0), 0 0 18px rgba(47, 140, 255, .6); } }

/* Timeline: número con pulso y línea conectora */
.timeline li { position: relative; transition: transform .3s var(--ease), border-color .3s; }
.timeline li:hover { transform: translateY(-4px); }
.timeline li.reveal.in .step { animation: stepPop .6s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms + 150ms); }
@keyframes stepPop { 0% { transform: scale(.3) rotate(-90deg); } 70% { transform: scale(1.15); } 100% { transform: none; } }
.step { box-shadow: 0 0 0 0 rgba(0, 224, 255, .5); }
.timeline li:hover .step { animation: ring 1.2s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(0, 224, 255, .5); } 100% { box-shadow: 0 0 0 14px rgba(0, 224, 255, 0); } }

/* Módulos: transición y lista escalonada */
.module { animation: moduleIn .55s var(--ease); }
@keyframes moduleIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.module .how-list li, .module .check-list li { animation: fadeUp .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
.module-tabs button { position: relative; overflow: hidden; }
.module-tabs button[aria-selected="true"] { background: var(--grad); border-color: transparent; color: #04101f; box-shadow: 0 8px 24px -10px rgba(0, 224, 255, .7); }
.module-tabs button[aria-selected="true"] em { background: rgba(4, 16, 31, .2); color: #04101f; }

/* Catálogo: entrada escalonada */
.cmd-card { animation: cardIn .45s var(--ease) both; animation-delay: calc(min(var(--i, 0), 14) * 30ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* Comparación */
.compare tbody tr { transition: background .2s; }
.compare tbody tr:hover { background: rgba(47, 140, 255, .06); }

/* FAQ: apertura suave */
.faq details[open] p { animation: fadeUp .35s var(--ease); }
.faq details { transition: border-color .2s, background .2s; }
.faq details:hover { background: var(--surface-2); }

/* Calculadora */
.calc-out b { transition: color .3s; }
.calc-out b.bump { animation: bump .35s var(--ease); }
@keyframes bump { 50% { transform: scale(1.06); } }

/* WhatsApp flotante */
.wa-float::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366;
    animation: waRing 2.6s ease-out infinite; pointer-events: none;
}
@keyframes waRing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

/* Aparición al hacer scroll (sustituye a la versión simple) */
.reveal { opacity: 0; transform: translateY(26px); filter: blur(6px);
    transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease);
    transition-delay: calc(var(--d, 0) * 1ms); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.section-head .eyebrow { display: inline-block; }
.section-head.in .eyebrow { animation: eyebrowIn .7s var(--ease) both; }
@keyframes eyebrowIn { from { letter-spacing: .5em; opacity: 0; } to { letter-spacing: .12em; opacity: 1; } }

@media (max-width: 640px) {
    .cad-window { transform: none; }
    .hero-glow::before, .hero-glow::after { filter: blur(60px); }
}
@media (prefers-reduced-motion: reduce) {
    .split .w, .cad-svg .pop, .cad-svg .fade, .cad-svg .flow { opacity: 1; transform: none; filter: none; }
    .reveal { opacity: 1; transform: none; filter: none; }
    .scroll-progress { display: none; }
}

/* ==========================================
   PÁGINAS LEGALES (terminos, privacidad, reclamaciones)
   ========================================== */
.legal-header .header-row { justify-content: space-between; }
.legal-back { font-size: .92rem; color: var(--text-2); display: inline-flex; align-items: center; gap: .4rem; }
.legal-back:hover { color: var(--text); }
.legal { padding: 3.5rem 0 5rem; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; margin: .6rem 0 .6rem; }
.legal .updated { color: var(--text-3); font-size: .9rem; margin-bottom: 2.2rem; }
.legal h2 { font-size: 1.25rem; margin: 2.2rem 0 .7rem; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: .8rem; }
.legal ul, .legal ol { padding-left: 1.3rem; display: grid; gap: .45rem; margin: .6rem 0; }
.legal a:not(.btn) { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.legal .provider { margin: 1.4rem 0; padding: 1.1rem 1.3rem; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.2rem; font-size: .93rem; }
.legal .provider dt { color: var(--text-3); }
.legal .provider dd { color: var(--text); }
.todo { background: rgba(255, 180, 84, .16); color: var(--amber) !important; border: 1px dashed rgba(255, 180, 84, .5); border-radius: 5px; padding: 0 .35rem; font-style: italic; }
.legal-note { margin-top: 1.4rem; padding: 1rem 1.2rem; border-radius: 12px; border: 1px solid rgba(47, 140, 255, .3); background: rgba(47, 140, 255, .07); font-size: .92rem; color: var(--text-2); }
.site-footer .legal-links { display: flex; flex-wrap: wrap; gap: 1.2rem; width: 100%; font-size: .85rem; }
.site-footer .legal-links a { color: var(--text-3); }
.site-footer .legal-links a:hover { color: var(--text); }
.lr-badge { display: inline-flex; align-items: center; gap: .6rem; }
.lr-badge svg { width: 22px; height: 22px; }

/* Formulario del Libro de Reclamaciones */
.lr-form { margin-top: 1.5rem; display: grid; gap: 1.4rem; }
.lr-form fieldset { border: 1px solid var(--line-strong); border-radius: var(--r); padding: 1.3rem 1.4rem 1.5rem; background: var(--surface); display: grid; gap: 1rem; min-width: 0; }
.lr-form legend { padding: 0 .5rem; font-family: var(--font-h); font-weight: 700; color: var(--text); }
.lr-form label { display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; font-weight: 550; color: var(--text-2); }
.lr-form input[type="text"], .lr-form input[type="email"], .lr-form input[type="tel"], .lr-form input[type="number"], .lr-form select, .lr-form textarea {
    width: 100%; min-height: 44px; padding: .65rem .85rem; border-radius: 9px; font-size: .95rem;
    background: var(--bg); border: 1px solid var(--line-strong); color: var(--text); outline: none; transition: border-color .2s;
}
.lr-form input:focus, .lr-form select:focus, .lr-form textarea:focus { border-color: var(--blue); }
.lr-form textarea { resize: vertical; }
.lr-form .opt { font-weight: 400; color: var(--text-3); }
.lr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lr-row-3 { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; }
.lr-choice { display: flex; flex-wrap: wrap; gap: .6rem; }
.lr-choice label { flex-direction: row; align-items: flex-start; gap: .55rem; padding: .7rem .9rem; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; flex: 1 1 220px; font-weight: 500; }
.lr-choice label:has(input:checked) { border-color: var(--blue); background: rgba(47, 140, 255, .08); color: var(--text); }
.lr-choice small { display: block; color: var(--text-3); font-weight: 400; margin-top: .15rem; }
.lr-check { flex-direction: row !important; align-items: center; gap: .6rem !important; }
.lr-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: .9rem; color: var(--text-2); }
.lr-meta b { font-family: var(--font-m); }
.lr-receipt { margin-top: 1.5rem; padding: 1.6rem; border-radius: var(--r); border: 1px solid rgba(24, 217, 139, .4); background: var(--surface); }
.lr-receipt h2 { margin-top: 0; }
.lr-receipt dl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; margin: 1.2rem 0; font-size: .93rem; }
.lr-receipt dt { color: var(--text-3); }
.lr-receipt dd { color: var(--text); white-space: pre-wrap; word-break: break-word; }
.lr-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
#lr-status { color: var(--green); }
#lr-status.warn { color: var(--amber); }
@media (max-width: 640px) {
    .lr-row, .lr-row-3, .legal .provider, .lr-receipt dl { grid-template-columns: 1fr; }
    .lr-receipt dt { margin-top: .4rem; }
}
@media print {
    .site-header, .site-footer, .lr-actions, .legal-note, .wa-float, .scroll-progress { display: none !important; }
    body { background: #fff; color: #000; }
    .legal p, .lr-receipt dd, .lr-receipt dt, .legal h1, .legal h2 { color: #000 !important; }
    .lr-receipt { border-color: #000; background: #fff; }
}
