/* ==========================================================================
   Impulso — estilos del sitio público
   Paleta: violeta como acento sobre blanco, crema y casi negro.
   ========================================================================== */

:root {
    --p-950: #0e0619;
    --p-900: #1a0b2e;
    --p-800: #2c0f57;
    --p-700: #4a0aa8;
    --p-600: #6104d7;
    --p-500: #7a2ff0;
    --p-400: #994bfc;
    --p-300: #c3a0ff;
    --p-200: #dfccff;
    --p-100: #efe6ff;
    --p-50:  #f8f4ff;
    --accent: #d4bbff;   /* lila claro: resaltes sobre fondos oscuros */
    --cream: #f8f6ee;    /* secciones suaves */

    --ink:   #121016;
    --ink-2: #45414f;
    --ink-3: #6f6a7b;
    --line:  #e7e3ec;
    --white: #ffffff;
    --danger: #c62f3a;

    --font-head: "Montserrat", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(26, 11, 46, .06), 0 2px 8px rgba(26, 11, 46, .05);
    --shadow: 0 10px 30px -12px rgba(26, 11, 46, .25), 0 2px 6px rgba(26, 11, 46, .06);
    --shadow-lg: 0 30px 60px -20px rgba(26, 11, 46, .35), 0 8px 20px -8px rgba(26, 11, 46, .15);

    --header-h: 76px;
    --container: 1200px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--p-600); text-decoration: none; }
a:hover { color: var(--p-700); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
abbr[title] { text-decoration: none; color: var(--p-500); }
:focus-visible { outline: 3px solid var(--p-400); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

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

.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 200;
    background: var(--p-800); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Íconos ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--xs { width: 14px; height: 14px; }
.icon--sm { width: 18px; height: 18px; }
.icon--md { width: 26px; height: 26px; }

/* ---------- Botones ---------- */
.btn {
    --btn-bg: var(--p-600);
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    padding: .85em 1.4em;
    font: 600 1rem/1.2 var(--font-body);
    border-radius: 8px; border: 2px solid transparent;
    cursor: pointer; white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary {
    color: #fff;
    background: var(--p-600);
    box-shadow: 0 8px 20px -8px rgba(97, 4, 215, .65), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn--primary:hover { color: #fff; background: var(--p-700); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(97, 4, 215, .7), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn--ghost { color: var(--p-800); background: rgba(255, 255, 255, .7); border-color: var(--line); backdrop-filter: blur(6px); }
.btn--ghost:hover { color: var(--p-800); border-color: var(--p-300); background: #fff; }
.btn--outline { color: var(--p-700); background: transparent; border-color: var(--p-200); }
.btn--outline:hover { color: var(--p-800); border-color: var(--p-500); background: var(--p-50); }
.btn--light { color: var(--p-700); background: #fff; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.btn--light:hover { color: var(--p-800); transform: translateY(-2px); background: #e6d8ff; }
.btn--sm { padding: .6em 1.1em; font-size: .92rem; }
.btn--lg { padding: 1em 1.6em; font-size: 1.04rem; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--p-600); }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Etiquetas y resaltados ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: .55em;
    font: 700 .78rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
    color: var(--p-600);
    padding: .6em 1em; border-radius: 999px;
    background: var(--p-100); border: 1px solid var(--p-200);
    margin-bottom: 1.2rem;
}
.eyebrow--light { color: var(--accent); background: rgba(212, 187, 255, .08); border-color: rgba(212, 187, 255, .25); }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--p-500); box-shadow: 0 0 0 4px rgba(122, 47, 240, .18); animation: pulse 2s infinite; }

.text-highlight {
    font-style: italic; font-weight: 900;
    color: var(--p-600);
    -webkit-text-fill-color: currentColor;
    padding-right: .08em;
}
.section--dark .text-highlight,
.text-highlight--light { color: var(--accent); -webkit-text-fill-color: currentColor; }

.pill {
    display: inline-flex; align-items: center; gap: 4px;
    font: 700 .78rem/1 var(--font-body);
    padding: 6px 10px; border-radius: 999px;
}
.pill--up { color: var(--p-700); background: var(--p-100); }
.pill--sm { padding: 4px 8px; font-size: .72rem; }

.checklist { display: grid; gap: .55rem; margin: 0 0 1.4rem; }
.checklist li { display: flex; align-items: flex-start; gap: .6rem; font-size: .95rem; color: var(--ink-2); }
.checklist .icon {
    margin-top: .2em; padding: 3px; width: 20px; height: 20px;
    color: #fff; background: var(--p-500); border-radius: 50%; stroke-width: 3;
}
.checklist--lg li { font-size: 1.02rem; }

/* ==========================================================================
   Cabecera
   ========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    height: var(--header-h);
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -16px rgba(26, 11, 46, .35); background: rgba(255, 255, 255, .94); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 50px; width: auto; max-width: 220px; object-fit: contain; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav__list { display: flex; gap: 4px; }
.main-nav__link {
    position: relative; display: block; padding: 8px 12px;
    font-weight: 500; font-size: .95rem; color: var(--ink-2); border-radius: 8px;
}
.main-nav__link::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
    background: var(--p-500); border-radius: 2px; transform: scaleX(0); transition: transform .25s var(--ease);
}
.main-nav__link:hover, .main-nav__link.is-active { color: var(--p-700); }
.main-nav__link:hover::after, .main-nav__link.is-active::after { transform: scaleX(1); }

.nav-toggle {
    display: none; position: relative; width: 46px; height: 46px; padding: 0;
    border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer;
}
.nav-toggle__bar {
    position: absolute; left: 12px; right: 12px; height: 2px; background: var(--p-800); border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle__bar:nth-child(1) { top: 15px; }
.nav-toggle__bar:nth-child(2) { top: 22px; }
.nav-toggle__bar:nth-child(3) { top: 29px; }
.nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative; overflow: hidden;
    padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px);
    color: rgba(255, 255, 255, .76);
    background:
        radial-gradient(900px 560px at 88% 0%, rgba(97, 4, 215, .62), transparent 62%),
        radial-gradient(760px 520px at -8% 100%, rgba(122, 47, 240, .34), transparent 60%),
        radial-gradient(500px 300px at 40% 40%, rgba(60, 20, 140, .25), transparent 70%),
        linear-gradient(180deg, var(--p-950) 0%, var(--p-900) 100%);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__bg::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
}
.hero__swoosh { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70%; }

.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title {
    font-size: clamp(2.2rem, 4.5vw, 3.7rem); font-weight: 900; line-height: 1.06; letter-spacing: -.01em;
    text-transform: uppercase; color: #fff; margin-bottom: 1.4rem;
}
.hero__title .text-highlight { display: inline; color: var(--p-300); -webkit-text-fill-color: currentColor; }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: rgba(255, 255, 255, .76); max-width: 36em; margin-bottom: 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2rem; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .94rem; font-weight: 500; color: rgba(255, 255, 255, .84); }
.hero__checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero__checks .icon { color: var(--accent); stroke-width: 2.6; }
.hero .eyebrow { color: var(--accent); background: rgba(212, 187, 255, .08); border-color: rgba(212, 187, 255, .24); }
.hero .eyebrow__dot { background: var(--p-400); }
.hero .btn--ghost { color: #fff; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .24); }
.hero .btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .45); }
.hero .mock { border-color: rgba(255, 255, 255, .12); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .65), 0 8px 20px -8px rgba(0, 0, 0, .35); }

/* Ilustración del hero (tarjetas tipo dashboard) */
.hero__visual { position: relative; min-height: 500px; }
.mock {
    position: absolute; background: #fff; border: 1px solid rgba(231, 227, 236, .9);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.mock__label { display: block; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.mock__title { font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); }
.mock__big { display: block; font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--ink); line-height: 1.1; margin: 2px 0 6px; }

.mock--dash { top: 30px; left: 6%; right: 2%; padding: 24px; animation: float 7s ease-in-out infinite; }
.mock__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { padding: 12px 14px; border-radius: 12px; background: var(--p-50); border: 1px solid var(--p-100); }
.kpi span { display: block; font-size: .74rem; color: var(--ink-3); font-weight: 500; }
.kpi strong { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; color: var(--p-800); }
.mock__chart { width: 100%; height: 130px; overflow: visible; }
.mock__grid line { stroke: var(--line); stroke-dasharray: 3 5; }
.mock__line { stroke: var(--p-500); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.2s .4s var(--ease) forwards; }
.mock__dot { fill: #fff; stroke: var(--p-500); stroke-width: 3; }
.mock__bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; align-items: end; height: 46px; margin-top: 12px; }
.mock__bars span { display: block; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--p-300), var(--p-100)); }
.mock__bars span:last-child { background: linear-gradient(180deg, var(--p-500), var(--p-300)); }

.mock--qr { left: -2%; bottom: 10px; display: flex; align-items: center; gap: 16px; padding: 16px 20px 16px 16px; animation: float 6s -2s ease-in-out infinite; }
.mock--qr__code { position: relative; width: 84px; height: 84px; padding: 8px; border-radius: 14px; background: #fff; border: 2px solid var(--p-100); overflow: hidden; color: var(--p-900); }
.qr-art { width: 100%; height: 100%; }
.scanline {
    position: absolute; left: 6px; right: 6px; height: 3px; top: 10%;
    background: linear-gradient(90deg, transparent, var(--p-400), transparent);
    box-shadow: 0 0 12px 2px rgba(153, 75, 252, .55); border-radius: 3px;
    animation: scan 2.6s ease-in-out infinite;
}

.mock--chip { top: 0; right: -2%; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px; animation: float 5.5s -1s ease-in-out infinite; }
.mock--chip__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--p-900); background: var(--accent); }
.mock--chip strong { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); line-height: 1.1; }
.mock--chip span { font-size: .8rem; color: var(--ink-3); }

.mock--roas { right: 4%; bottom: 40px; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px; animation: float 6.5s -3s ease-in-out infinite; }
.mock--roas__badge {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
    font: 900 1.2rem/1 var(--font-head); font-style: italic; color: #fff;
    background: linear-gradient(135deg, var(--p-500), var(--p-700));
}
.mock--roas strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--p-700); }

/* ==========================================================================
   Plataformas (marquesina)
   ========================================================================== */
.platforms { padding: 34px 0 30px; border-block: 1px solid var(--line); background: #fff; }
.platforms__title { text-align: center; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; gap: 14px; padding-right: 14px; }
.marquee__list li {
    font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--p-800);
    padding: 10px 22px; border-radius: 999px; background: var(--p-50); border: 1px solid var(--p-100); white-space: nowrap;
}

/* ==========================================================================
   Cifras
   ========================================================================== */
.stats { padding: 56px 0; background: var(--cream); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { padding: 8px 20px; border-left: 3px solid var(--p-400); }
.stat__value { display: block; font: 900 clamp(2.2rem, 4vw, 3rem)/1 var(--font-head); color: var(--ink); letter-spacing: -.03em; margin-bottom: 8px; }
.stat__label { font-size: .95rem; color: var(--ink-3); }

/* ==========================================================================
   Secciones
   ========================================================================== */
.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section--soft { background: var(--cream); }
.section--dark {
    color: rgba(255, 255, 255, .78);
    background:
        radial-gradient(800px 460px at 8% 0%, rgba(97, 4, 215, .5), transparent 60%),
        radial-gradient(640px 420px at 100% 100%, rgba(122, 47, 240, .3), transparent 60%),
        linear-gradient(160deg, var(--p-900), var(--p-950));
}
.section--dark h2, .section--dark h3, .section--dark strong { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head p { font-size: 1.08rem; color: var(--ink-3); }

/* ---------- Servicios ---------- */
.service-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -24px auto 34px; }
.service-filter {
    padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
    font: 600 .88rem/1.2 var(--font-body); color: var(--ink-2); cursor: pointer;
    transition: border-color .2s, background-color .2s, color .2s, box-shadow .2s;
}
.service-filter:hover { border-color: var(--p-300); color: var(--p-700); }
.service-filter.is-active { color: #fff; background: var(--p-600); border-color: var(--p-600); box-shadow: 0 10px 22px -12px rgba(97, 4, 215, .65); }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.service-card {
    position: relative; display: flex; flex-direction: column;
    padding: 30px 28px 26px; border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--line);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
    overflow: hidden;
}
.service-card::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 4px;
    background: linear-gradient(90deg, var(--p-500), var(--accent));
    transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--p-200); }
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
    display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px;
    border-radius: 16px; color: var(--p-600);
    background: linear-gradient(135deg, var(--p-100), #fff); border: 1px solid var(--p-200);
}
.service-card__icon .icon { width: 28px; height: 28px; }
.service-card p { color: var(--ink-3); font-size: .97rem; }
.service-card .checklist { margin-top: auto; padding-top: 6px; }
.service-card .checklist li { font-size: .9rem; }
.service-card .checklist .icon { width: 18px; height: 18px; color: var(--p-600); background: var(--p-100); }

/* ---------- Bloques destacados (QR / reportes) ---------- */
.feature__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.feature--reverse .feature__copy { order: 0; }
.feature__copy p { font-size: 1.08rem; margin-bottom: 1.6rem; }
.section--dark .feature__copy p { color: rgba(255, 255, 255, .74); }
.feature__list { display: grid; gap: 18px; margin-bottom: 2.2rem; }
.feature__list li { display: flex; gap: 16px; align-items: flex-start; }
.feature__list .icon {
    padding: 11px; width: 48px; height: 48px; border-radius: 14px;
    color: var(--accent); background: rgba(212, 187, 255, .08); border: 1px solid rgba(212, 187, 255, .2);
}
.feature__list strong { display: block; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 2px; }
.feature__list span { color: rgba(255, 255, 255, .68); font-size: .96rem; }
.feature__visual { position: relative; }

.qr-poster {
    position: relative; width: min(290px, 60%); margin-left: 0;
    padding: 28px 28px 24px; border-radius: 26px; text-align: center;
    color: var(--p-900); background: linear-gradient(160deg, #fff, var(--p-50));
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
    transform: rotate(-4deg);
}
.qr-poster__tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--p-600); background: var(--p-100); padding: 6px 12px; border-radius: 999px; }
.qr-poster__offer { display: block; font: 900 3.4rem/1 var(--font-head); font-style: italic; color: var(--p-700) !important; letter-spacing: -.04em; margin: 14px 0 16px; }
.qr-poster__offer small { font-size: 1.4rem; }
.qr-poster__code { position: relative; width: 150px; height: 150px; margin: 0 auto 16px; padding: 14px; border-radius: 20px; background: #fff; border: 3px solid var(--p-600); overflow: hidden; color: var(--p-900); }
.qr-poster__cta { font-weight: 700; font-size: .92rem; color: var(--ink-2); }

.qr-metrics {
    position: absolute; right: 0; top: 40%; width: min(230px, 46%);
    padding: 20px 22px; border-radius: 20px;
    background: rgba(255, 255, 255, .96); box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}
.qr-metrics ul { display: grid; gap: 12px; margin-top: 12px; }
.qr-metrics li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; font-size: .85rem; color: var(--ink-2); }
.qr-metrics b { grid-column: 1 / -1; grid-row: 2; height: 8px; border-radius: 99px; background: var(--p-100); position: relative; overflow: hidden; }
.qr-metrics b::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--p-500), var(--p-300)); }
.qr-metrics em { font-style: normal; font-weight: 700; color: var(--p-700); }

/* Hoja de cálculo */
.sheet { border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.sheet__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #107c41; color: #fff; } /* verde de Excel */
.sheet__dots { display: flex; gap: 6px; }
.sheet__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.sheet__file { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; }
.sheet__xl { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: #fff; color: #107c41; font: 900 .8rem/1 var(--font-head); font-style: italic; }
.sheet__formula { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: .85rem; background: var(--p-50); }
.sheet__cell-ref { min-width: 44px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-weight: 600; color: var(--ink-2); }
.sheet__fx { font-style: italic; font-weight: 700; color: var(--ink-3); }
.sheet__formula code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--p-700); }
.sheet__table { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.sheet__table th, .sheet__table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.sheet__table thead th { background: var(--p-50); font-weight: 600; color: var(--ink-3); text-align: center; font-size: .78rem; padding: 5px; }
.sheet__table tbody th { width: 34px; background: var(--p-50); color: var(--ink-3); font-weight: 600; text-align: center; font-size: .78rem; }
.sheet__table td { color: var(--ink-2); }
.sheet__table td:nth-child(n+3) { text-align: right; }
.sheet__head td { font-weight: 700; color: var(--p-800); background: var(--p-100); }
.sheet__table td.is-selected { position: relative; font-weight: 700; color: var(--p-700); background: rgba(212, 187, 255, .35); outline: 2px solid var(--p-500); outline-offset: -2px; }
.sheet__chart { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: end; height: 150px; padding: 22px 24px 10px; }
.sheet__chart-bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.sheet__chart-bar::before { content: ""; order: 2; width: 100%; height: var(--h); max-height: calc(100% - 38px); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--p-300), var(--p-100)); }
.sheet__chart-bar.is-accent::before { background: linear-gradient(180deg, var(--p-500), var(--p-300)); }
.sheet__chart-bar span { order: 1; font-weight: 700; font-size: .82rem; color: var(--ink-2); margin-bottom: 4px; }
.sheet__chart-bar em { order: 3; font-style: normal; font-size: .74rem; color: var(--ink-3); margin-top: 6px; }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; position: relative; }
.steps::before {
    content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px;
    background: repeating-linear-gradient(90deg, var(--p-300) 0 8px, transparent 8px 16px);
}
.step { position: relative; padding: 0 12px; text-align: center; }
.step__num {
    position: relative; display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 22px;
    font: 900 1.25rem/1 var(--font-head); font-style: italic; color: #fff;
    border-radius: 22px; background: linear-gradient(135deg, var(--p-500), var(--p-700));
    box-shadow: 0 12px 24px -10px rgba(97, 4, 215, .6), 0 0 0 8px var(--cream);
}
.step p { color: var(--ink-3); font-size: .96rem; }

/* ---------- Planes ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
    position: relative; display: flex; flex-direction: column;
    padding: 34px 30px 30px; border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--line);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan--featured {
    color: rgba(255, 255, 255, .8); border: 0;
    background: radial-gradient(500px 320px at 100% 0%, rgba(153, 75, 252, .35), transparent 60%), linear-gradient(160deg, var(--p-700), var(--p-950));
    box-shadow: var(--shadow-lg);
}
.plan--featured .plan__name, .plan--featured .plan__price strong { color: #fff; }
.plan--featured .plan__desc, .plan--featured .plan__price span { color: rgba(255, 255, 255, .7); }
.plan--featured .checklist li { color: rgba(255, 255, 255, .86); }
.plan--featured .checklist .icon { color: var(--p-900); background: var(--accent); }
.plan__badge {
    position: absolute; top: -13px; left: 30px;
    font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: var(--p-900); background: var(--accent); padding: 6px 14px; border-radius: 999px;
}
.plan__name { font-size: 1.4rem; margin-bottom: .3em; }
.plan__desc { color: var(--ink-3); font-size: .95rem; min-height: 3em; }
.plan__price { display: flex; align-items: baseline; gap: 6px; padding: 8px 0 20px; margin-bottom: 22px; border-bottom: 1px dashed var(--line); }
.plan--featured .plan__price { border-color: rgba(255, 255, 255, .15); }
.plan__price strong { font: 900 2.6rem/1 var(--font-head); color: var(--ink); letter-spacing: -.03em; }
.plan__price span { color: var(--ink-3); font-weight: 500; }
.plan .checklist { margin-bottom: 28px; flex: 1; align-content: start; }
.plan .btn { margin-top: auto; }
.plans__note { margin-top: 28px; text-align: center; font-size: .9rem; color: var(--ink-3); }

/* ---------- Testimonios ---------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.testimonial { margin: 0; padding: 30px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.testimonial__quote { width: 34px; height: 34px; color: var(--p-400); margin-bottom: 12px; }
.testimonial blockquote { margin: 0 0 18px; font-size: 1.02rem; color: var(--ink); }
.testimonial figcaption strong { display: block; color: var(--ink); }
.testimonial figcaption span { font-size: .9rem; color: var(--ink-3); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__head p { color: var(--ink-3); font-size: 1.05rem; margin-bottom: 1.6rem; }
.faq__list { display: grid; gap: 12px; }
.faq__item { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.faq__item[open] { border-color: var(--p-200); box-shadow: var(--shadow-sm); }
.faq__item summary {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 20px 22px; cursor: pointer; list-style: none;
    font-family: var(--font-head); font-weight: 700; font-size: 1.04rem; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; color: var(--p-600); background: var(--p-100); transition: transform .3s var(--ease), background-color .2s, color .2s; }
.faq__item[open] .faq__icon { transform: rotate(45deg); color: #fff; background: var(--p-600); }
.faq__answer { padding: 0 22px 6px; color: var(--ink-3); }

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact {
    color: rgba(255, 255, 255, .78);
    background:
        radial-gradient(760px 440px at 0% 0%, rgba(97, 4, 215, .5), transparent 60%),
        radial-gradient(640px 520px at 100% 100%, rgba(122, 47, 240, .28), transparent 60%),
        linear-gradient(160deg, var(--p-900), var(--p-950));
}
.contact h2 { color: #fff; }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact__info > p { font-size: 1.08rem; margin-bottom: 2rem; }

.next-steps { display: grid; gap: 16px; margin-bottom: 2.2rem; }
.next-steps li { display: flex; gap: 14px; align-items: flex-start; }
.next-steps li > span {
    display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px;
    font: 900 .95rem/1 var(--font-head); color: var(--p-900); background: var(--accent);
}
.next-steps strong { color: #fff; }
.next-steps--light { text-align: left; max-width: 440px; margin: 0 auto 2rem; }
.next-steps--light strong { color: var(--ink); }
.next-steps--light li > span { color: #fff; background: var(--p-600); }

.contact__channels { display: grid; gap: 10px; }
.contact__channels a, .contact__channels span { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .86); font-weight: 500; }
.contact__channels a:hover { color: var(--accent); }
.contact__channels .icon { color: var(--accent); }

.contact-form {
    padding: clamp(26px, 4vw, 40px); border-radius: 28px;
    background: #fff; color: var(--ink-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
}
.contact-form__title { font-size: 1.35rem; margin-bottom: 1.2rem; }
.contact-form__note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; font-size: .84rem; color: var(--ink-3); }
.contact-form__note .icon { color: var(--p-500); }

.alert { padding: 12px 16px; border-radius: 12px; font-size: .94rem; font-weight: 500; margin-bottom: 18px; }
.alert--error { color: #8e1d26; background: #fdecee; border: 1px solid #f6c7cc; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 15px;
    font: 400 .98rem/1.4 var(--font-body); color: var(--ink);
    background: #f7f6f9; border: 1.5px solid var(--line); border-radius: 12px;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
    appearance: none; -webkit-appearance: none;
}
.field select {
    padding-right: 40px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236104d7' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #a09bab; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--p-500); box-shadow: 0 0 0 4px rgba(122, 47, 240, .14); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); background: #fff8f8; }
.field__error { font-size: .82rem; font-weight: 500; color: var(--danger); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem !important; font-weight: 400 !important; color: var(--ink-2) !important; cursor: pointer; }
.check input { flex: none; width: 20px !important; height: 20px; padding: 0 !important; margin-top: 1px; border-radius: 6px !important; cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--p-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--p-600); }

.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ==========================================================================
   Pie de página
   ========================================================================== */
.site-footer { padding: 72px 0 28px; color: rgba(255, 255, 255, .66); background: var(--p-950); border-top: 1px solid rgba(255, 255, 255, .06); font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, .8fr) minmax(0, 1.3fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer__brand { display: inline-block; padding: 12px 18px; margin-bottom: 20px; border-radius: 16px; background: #fff; }
.site-footer__brand img { height: 46px; width: auto; max-width: 220px; object-fit: contain; }
.site-footer__title { font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.site-footer__links { display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: var(--accent); }
.site-footer__contact { display: grid; gap: 10px; margin-top: 22px; }
.site-footer__contact li { display: flex; align-items: center; gap: 10px; }
.site-footer__contact .icon { color: var(--p-300); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .86rem; }
.site-footer__bottom p { margin: 0; }

.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: rgba(255, 255, 255, .08); transition: background-color .2s, color .2s, transform .2s; }
.socials a:hover { color: var(--p-900); background: var(--accent); transform: translateY(-2px); }

.newsletter { margin-top: 14px; }
.newsletter__field { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.newsletter__field:focus-within { border-color: var(--p-400); }
.newsletter input { flex: 1; min-width: 0; padding: 8px 14px; font: inherit; color: #fff; background: transparent; border: 0; outline: none; }
.newsletter input::placeholder { color: rgba(255, 255, 255, .45); }
.newsletter__msg { margin: 10px 0 0; font-size: .88rem; font-weight: 500; }
.newsletter__msg.is-ok { color: var(--accent); }
.newsletter__msg.is-error { color: #ffb3b8; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 90;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px; border-radius: 999px;
    color: #fff; background: #25d366; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .7);
    transition: transform .25s var(--ease), padding .25s var(--ease);
}
.wa-float .icon { width: 28px; height: 28px; }
.wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 700; transition: max-width .35s var(--ease); }
.wa-float:hover { color: #fff; transform: translateY(-3px); padding-right: 20px; }
.wa-float:hover .wa-float__label { max-width: 120px; }

/* ==========================================================================
   Páginas internas
   ========================================================================== */
.result-page { min-height: calc(100vh - var(--header-h) - 200px); display: grid; align-items: center; background: linear-gradient(180deg, #fff, var(--p-50)); }
.result-card { max-width: 640px; margin: 0 auto; padding: clamp(32px, 5vw, 56px); text-align: center; border-radius: 32px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.result-card__icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 24px; border-radius: 24px; color: #fff; background: linear-gradient(135deg, var(--p-400), var(--p-700)); box-shadow: 0 16px 30px -12px rgba(97, 4, 215, .6); }
.result-card__icon .icon { width: 38px; height: 38px; stroke-width: 2.6; }
.result-card__code { display: block; font: 900 clamp(4rem, 12vw, 7rem)/1 var(--font-head); font-style: italic; letter-spacing: -.05em; margin-bottom: 8px; color: var(--p-600); }
.result-card h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.result-card > p { color: var(--ink-3); font-size: 1.05rem; margin-bottom: 1.8rem; }
.result-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; }
.legal__updated { color: var(--ink-3); font-size: .92rem; }
.prose { margin-top: 2rem; font-size: 1.02rem; }
.prose h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.prose ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: .5rem; margin-bottom: 1rem; }
.prose ul li::marker { color: var(--p-500); }
.legal__note { margin-top: 2.5rem; padding: 16px 18px; border-radius: 12px; background: var(--p-50); border: 1px dashed var(--p-300); font-size: .92rem; color: var(--ink-3); }

/* Breadcrumbs, páginas legales/soporte y banner de cookies */
.breadcrumbs { margin-bottom: 18px; font-size: .86rem; color: var(--ink-3); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; opacity: .55; }
.breadcrumbs a { color: var(--p-700); font-weight: 500; }
.breadcrumbs-wrap--dark .breadcrumbs, .breadcrumbs-wrap--dark .breadcrumbs a { color: rgba(255, 255, 255, .75); }
.public-card { margin-top: 24px; padding: clamp(22px, 3.5vw, 34px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 18px; }
.public-card h2 { font-size: 1.2rem; margin: 8px 0 0; }
.public-card--compact { margin-top: 22px; }
.support-lookup-result { margin: 20px 0; padding: 20px 22px; border-radius: var(--radius); background: var(--p-50); border: 1px solid var(--p-200); }
.support-reply { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }

.cookie-banner {
    position: fixed; left: 20px; bottom: 20px; z-index: 120; max-width: 440px;
    padding: 18px 20px; border-radius: 18px; background: var(--p-950); color: rgba(255, 255, 255, .86);
    border: 1px solid rgba(212, 187, 255, .24); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .65);
    display: grid; gap: 14px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner strong { display: block; color: #fff; font-size: 1rem; margin-bottom: 4px; }
.cookie-banner p { margin: 0; font-size: .86rem; line-height: 1.45; }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-banner .btn--outline { color: #fff; border-color: rgba(255, 255, 255, .28); background: transparent; }

/* Banner de home, modales popup/exit-intent, blog y landing pages */
.home-promo-bar { background: linear-gradient(90deg, var(--p-900), var(--p-700)); color: #fff; padding: 10px 0; font-size: .9rem; }
.home-promo-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.home-promo-bar__inner > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.home-promo-bar__inner span { color: rgba(255, 255, 255, .84); }

.promo-modal {
    position: fixed; inset: 0; z-index: 200; padding: 20px;
    background: rgba(14, 6, 25, .66); backdrop-filter: blur(4px);
    display: grid; place-items: center;
}
.promo-modal[hidden] { display: none; }
.promo-modal__card {
    position: relative; width: min(100%, 460px); padding: 30px 28px;
    border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
    display: grid; gap: 12px;
}
.promo-modal__close {
    position: absolute; top: 12px; right: 14px; width: 34px; height: 34px;
    border: 0; border-radius: 50%; background: var(--p-50); color: var(--ink); font-size: 1.3rem; cursor: pointer;
}

.blog-featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-bottom: 34px; }
.blog-featured__card { padding: 24px; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--p-50), #fff); border: 1px solid var(--p-200); display: grid; gap: 10px; }
.blog-featured__card h2 { font-size: 1.3rem; margin: 0; }
.blog-layout { display: grid; grid-template-columns: 1fr 310px; gap: 32px; align-items: start; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.blog-card__img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.blog-meta { font-size: .84rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.blog-meta--lead { margin: 12px 0 22px; }
.blog-article h1 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); }
.blog-article__cover { width: 100%; height: auto; border-radius: 16px; margin-bottom: 22px; }
.blog-toc { padding: 18px 20px; border-radius: 14px; background: var(--p-50); border: 1px solid var(--p-200); margin-bottom: 24px; }
.blog-toc strong { display: block; margin-bottom: 8px; color: var(--p-900); }
.blog-toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 6px; }
.blog-toc__lvl-3 { margin-left: 16px; font-size: .92rem; }
.blog-article__cta { margin: 28px 0; }
.blog-cta-box { padding: 24px; border-radius: 18px; background: linear-gradient(135deg, var(--p-900), var(--p-700)); color: #fff; display: grid; gap: 10px; }
.blog-cta-box strong { font-size: 1.15rem; }
.blog-cta-box p { margin: 0; color: rgba(255, 255, 255, .82); }
.author-box { margin-top: 32px; padding: 20px 22px; border-radius: 16px; background: var(--cream); border: 1px solid var(--line); }
.author-box strong { display: block; font-size: 1.05rem; margin-top: 8px; color: var(--ink); }
.author-box__role { display: block; font-size: .86rem; color: var(--p-700); font-weight: 600; margin-bottom: 6px; }
.author-box p { margin: 0; font-size: .92rem; color: var(--ink-3); }
.blog-sidebar { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 20px); }
.sidebar-promo { padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 10px; }
.sidebar-promo--soft { background: var(--cream); box-shadow: none; }
.sidebar-promo h3 { font-size: 1.12rem; margin: 0; }
.sidebar-promo p { margin: 0; font-size: .9rem; color: var(--ink-3); }

.landing-detail { display: grid; grid-template-columns: 1.35fr .85fr; gap: 36px; align-items: start; }
.landing-detail__aside { position: sticky; top: calc(var(--header-h) + 20px); }
.landing-price { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.landing-price span { display: block; font-size: .82rem; color: var(--ink-3); }
.landing-price strong { font: 900 1.8rem/1.1 var(--font-head); color: var(--p-700); }

@media (max-width: 960px) {
    .blog-layout, .landing-detail { grid-template-columns: 1fr; }
    .blog-sidebar, .landing-detail__aside { position: static; }
}

/* ==========================================================================
   Herramientas gratis & módulos SaaS
   ========================================================================== */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tool-card { cursor: pointer; }
.tool-card h2 { font-size: clamp(1.2rem, 1.8vw, 1.38rem); margin: 0 0 .5rem; line-height: 1.2; }
.tool-card .link-arrow { margin-top: auto; padding-top: 8px; }
.tool-card .link-arrow::after,
.tool-card .tool-card__cta::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tool-card:hover { border-color: var(--p-400); }
.tool-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tool-card__cta { margin-top: 16px; align-self: flex-start; }
.tool-badge {
    display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px;
    font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.tool-badge--free { color: #0f6b3a; background: #dff7ea; border: 1px solid #b5ebd0; }
.tool-badge--saas { color: var(--p-700); background: var(--p-100); border: 1px solid var(--p-200); }
.tools-saas-band { margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }

/* Espacio de trabajo interactivo (/herramientas) */
.tools-hero { background: linear-gradient(180deg, var(--p-50) 0%, #fff 240px); }
.workspace-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
.workspace-tab {
    display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px;
    border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
    font-weight: 600; font-size: .92rem; color: var(--ink-2);
    transition: border-color .2s, background-color .2s, color .2s, box-shadow .2s;
}
.workspace-tab:hover { border-color: var(--p-300); color: var(--p-700); }
.workspace-tab.is-active { color: #fff; background: var(--p-600); border-color: var(--p-600); box-shadow: 0 10px 24px -10px rgba(97, 4, 215, .65); }

.workspace-grid { display: grid; grid-template-columns: 1.25fr .95fr; gap: 26px; align-items: start; }
.workspace-card, .workspace-preview {
    padding: clamp(22px, 3.5vw, 32px); border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.workspace-card__head { margin-bottom: 20px; }
.workspace-card__head h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: 10px 0 6px; }
.workspace-card__head p { color: var(--ink-3); font-size: .96rem; margin: 0; }
.workspace-card .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.workspace-card input[type="color"] { padding: 4px; height: 46px; cursor: pointer; }

.seg-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.seg-btn {
    padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line);
    background: var(--p-50); color: var(--ink-2); font: 600 .86rem/1.2 var(--font-body); cursor: pointer;
}
.seg-btn.is-active { color: #fff; background: var(--p-700); border-color: var(--p-700); }

.workspace-preview { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.qr-preview-box {
    width: min(260px, 100%); aspect-ratio: 1; padding: 14px;
    border-radius: 18px; background: #fff; border: 2px solid var(--p-100);
    display: grid; place-items: center; box-shadow: 0 12px 26px -18px rgba(26, 11, 46, .35);
}
.qr-preview-box--sm { width: 170px; padding: 10px; }
.qr-preview-box svg { width: 100%; height: 100%; display: block; }
.qr-error { font-size: .85rem; color: var(--danger); font-weight: 600; }
.workspace-preview__note { font-size: .84rem; color: var(--ink-3); margin: 0; }
.workspace-preview__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }

.output-block { width: 100%; text-align: left; }
.output-block label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; padding: 9px 12px; font-size: .85rem; border: 1px solid var(--line); border-radius: 10px; background: #f7f6f9; color: var(--ink); }

.calc-result { width: 100%; display: grid; gap: 10px; padding: 16px; border-radius: 14px; background: var(--p-50); border: 1px solid var(--p-100); text-align: left; }
.calc-result__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .95rem; color: var(--ink-2); }
.calc-result__row--total { padding-top: 10px; border-top: 1px dashed var(--p-300); font-size: 1.1rem; font-weight: 700; color: var(--p-800); }
.calc-result__row--total strong { font-family: var(--font-head); font-size: 1.35rem; }

.vcard-preview { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; padding: 18px; border-radius: 16px; background: linear-gradient(155deg, var(--p-900), var(--p-800)); color: #fff; }
.vcard-preview strong { display: block; font-family: var(--font-head); font-size: 1.15rem; }
.vcard-preview span { display: block; font-size: .85rem; color: rgba(255, 255, 255, .75); }

.saas-callout { width: 100%; padding: 16px 18px; border-radius: 14px; background: var(--cream); border: 1px solid var(--line); text-align: left; }
.saas-callout strong { display: block; font-size: .94rem; color: var(--ink); margin-bottom: 4px; }
.saas-callout p { font-size: .86rem; color: var(--ink-3); margin-bottom: 10px; }

/* Editor PDF */
.pdf-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 14px; }
.pdf-blocks { display: grid; gap: 12px; margin-bottom: 18px; }
.pdf-block { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #faf9fc; display: grid; gap: 8px; }
.pdf-block__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .88rem; }
.pdf-block__actions { display: flex; gap: 4px; }
.pdf-block__actions .btn { padding: 4px 9px; font-size: .78rem; }
.pdf-block input, .pdf-block textarea { width: 100%; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line); font: 400 .9rem/1.4 var(--font-body); background: #fff; color: var(--ink); }
.pdf-block__img { max-height: 110px; width: auto; border-radius: 8px; border: 1px solid var(--line); }
.pdf-sign-box { padding: 14px; border-radius: 12px; border: 1px dashed var(--p-300); background: #fff; display: grid; gap: 10px; }
.pdf-sign-box__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pdf-sign-canvas { width: 100%; height: 130px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: crosshair; touch-action: none; }
.pdf-summary-card { width: 100%; padding: 16px; border-radius: 14px; background: var(--p-50); border: 1px solid var(--p-100); text-align: left; }
.pdf-summary-card strong { display: block; margin-bottom: 8px; color: var(--p-900); }

.p2w-dropzone {
    display: grid; justify-items: center; text-align: center; gap: 6px;
    padding: 24px 18px; border-radius: 14px; border: 2px dashed var(--p-300);
    background: var(--p-50); color: var(--p-900); cursor: pointer;
    transition: border-color .2s, background-color .2s, transform .2s;
}
.p2w-dropzone .icon { width: 32px; height: 32px; color: var(--p-600); }
.p2w-dropzone strong { font-size: .96rem; }
.p2w-dropzone span { font-size: .82rem; color: var(--ink-3); }
.p2w-dropzone.is-dragover { border-color: var(--p-600); background: var(--p-100); transform: scale(1.01); }
.p2w-dropzone.has-file { border-style: solid; border-color: var(--p-400); background: #fff; }

/* Auditor SEO */
.seo-submit-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.seo-results { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.seo-checks { display: grid; gap: 10px; }
.seo-check { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.seo-check__icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; font-size: .85rem; }
.seo-check--ok .seo-check__icon { color: #0f6b3a; background: #dff7ea; }
.seo-check--warn .seo-check__icon { color: #8a5a00; background: #fff4d4; }
.seo-check--error .seo-check__icon { color: #b4232e; background: #fdecee; }
.seo-check strong { display: block; font-size: .92rem; color: var(--ink); }
.seo-check strong small { font-weight: 500; color: var(--ink-3); }
.seo-check p { margin: 2px 0 0; font-size: .86rem; color: var(--ink-3); }
.seo-score-card { width: 100%; padding: 20px; border-radius: 16px; background: linear-gradient(155deg, var(--p-900), var(--p-800)); color: #fff; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.seo-score-card__label { font-size: .82rem; color: rgba(255, 255, 255, .72); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.seo-score-card__num { font: 900 2.6rem/1 var(--font-head); }
.seo-kpis { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; font-size: .78rem; color: rgba(255, 255, 255, .85); }
.seo-kpis span { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.serp-preview { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; text-align: left; }
.serp-preview__tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 6px; }
.serp-preview__url { font-size: .78rem; color: #0f6b3a; word-break: break-all; }
.serp-preview__title { font-size: 1.02rem; font-weight: 600; color: #1a0dab; margin: 2px 0 4px; }
.serp-preview__desc { font-size: .84rem; color: #4d5156; line-height: 1.4; }

/* Consejos, guías y enlaces internos en herramientas */
.tool-guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.tool-guide-grid h2 { font-size: 1.2rem; margin: 0 0 12px; }
.tool-blog-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.tool-blog-list li { padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.tool-blog-list a { font-weight: 600; color: var(--p-800); }
.tool-blog-list a:hover { color: var(--p-600); text-decoration: underline; }
.tools-related-band { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.tools-related-band__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.tools-related-band__head h2 { font-size: 1.25rem; margin: 0; }
.tool-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-tool-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.cta-tool-picker select { flex: 1 1 260px; min-width: 0; }

/* Menú desplegable de atajo a herramientas en cabecera */
.nav-dropdown { position: relative; }
.nav-dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.nav-dropdown__trigger { display: inline-flex; align-items: center; gap: 2px; }
.nav-dropdown__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 6px 4px; border: 0; background: transparent; color: var(--ink-2);
    border-radius: 6px; cursor: pointer; transition: color .2s, transform .2s;
}
.nav-dropdown__toggle:hover, .nav-dropdown.is-open .nav-dropdown__toggle { color: var(--p-700); }
.nav-dropdown.is-open .nav-dropdown__toggle .icon { transform: rotate(180deg); }
.nav-dropdown__menu {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
    width: min(460px, 92vw); padding: 14px; border-radius: 18px; background: #fff;
    border: 1px solid var(--line); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s;
    z-index: 120;
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0); transition-delay: 0s;
}
.nav-dropdown__head {
    display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: var(--ink-3); padding: 2px 8px 8px;
}
.nav-dropdown__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 10px; }
.nav-dropdown__item {
    display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px;
    font-size: .88rem; font-weight: 600; color: var(--ink-2);
    transition: background-color .15s, color .15s;
}
.nav-dropdown__item .icon { color: var(--p-600); flex: none; }
.nav-dropdown__item:hover { background: var(--p-50); color: var(--p-700); }
.nav-dropdown__foot {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 10px 8px 2px; border-top: 1px solid var(--line); font-size: .84rem; font-weight: 600;
}
.nav-dropdown__foot a { display: inline-flex; align-items: center; gap: 4px; color: var(--p-700); }
.nav-dropdown__foot a:hover { text-decoration: underline; }

/* Gate de registro previo y barra de sesión en herramientas */
.tool-client-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 12px 16px; margin-bottom: 18px; border-radius: 14px;
    background: var(--p-50); border: 1px solid var(--p-100); font-size: .9rem; color: var(--ink-2);
}
.tool-client-bar__info { display: flex; align-items: center; gap: 8px; }
.tool-client-bar__info .icon { color: var(--p-600); flex: none; }
.tool-gate__alert {
    padding: 12px 14px; margin-bottom: 14px; border-radius: 12px;
    background: #fdecee; color: #b4232e; font-size: .9rem; font-weight: 600; border: 1px solid #f7ccd1;
}
.tool-gate__form h3 { font-size: 1.25rem; margin: 0 0 4px; }
.tool-gate__check { display: flex; align-items: flex-start; gap: 10px; font-size: .86rem; color: var(--ink-2); cursor: pointer; }
.tool-gate__check input { flex: none; width: 18px !important; height: 18px; margin-top: 2px; padding: 0 !important; accent-color: var(--p-600); }
.field.is-error input { border-color: var(--danger); background: #fff8f8; }
.field__err { font-size: .82rem; font-weight: 600; color: var(--danger); }

/* ==========================================================================
   Animaciones
   ========================================================================== */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes scan { 0%, 100% { top: 8%; } 50% { top: 88%; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(122, 47, 240, .18); } 50% { box-shadow: 0 0 0 8px rgba(122, 47, 240, .06); } }

/* Aparición al hacer scroll (solo con JS activo) */
.js [data-reveal] { opacity: 0; translate: 0 26px; transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: var(--delay, 0s); }
.js [data-reveal].is-visible { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
    .js [data-reveal] { opacity: 1; translate: none; }
    .mock__line { stroke-dashoffset: 0; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .main-nav { gap: 16px; }
    .main-nav__link { padding: 8px 8px; font-size: .9rem; }
    .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 960px) {
    :root { --header-h: 68px; }
    .brand img { height: 42px; }

    .nav-toggle { display: block; z-index: 2; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 18px;
        padding: 20px 20px 28px;
        background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -20px rgba(26, 11, 46, .35);
        transform: translateY(-12px); opacity: 0; visibility: hidden;
        transition: transform .3s var(--ease), opacity .25s, visibility 0s .3s;
    }
    .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; transition: transform .3s var(--ease), opacity .25s; }
    .main-nav__list { flex-direction: column; gap: 2px; }
    .main-nav__link { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--p-50); }
    .main-nav__link::after { display: none; }
    .main-nav__cta { padding: 1em; font-size: 1rem; }

    .nav-dropdown::after { display: none; }
    .nav-dropdown__trigger { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--p-50); }
    .nav-dropdown__trigger .main-nav__link { flex: 1; border-bottom: 0; }
    .nav-dropdown__toggle { padding: 12px; }
    .nav-dropdown__menu {
        position: static; transform: none; width: 100%; box-shadow: none;
        background: var(--p-50); border-radius: 12px; margin: 4px 0 8px;
        display: none; opacity: 1; visibility: visible; pointer-events: auto;
    }
    .nav-dropdown:hover .nav-dropdown__menu,
    .nav-dropdown:focus-within .nav-dropdown__menu { display: none; opacity: 1; visibility: visible; transform: none; }
    .nav-dropdown.is-open .nav-dropdown__menu { display: block; opacity: 1; visibility: visible; transform: none; }
    .nav-dropdown__grid { grid-template-columns: 1fr; }

    .hero__grid, .feature__grid, .contact__grid, .faq, .workspace-grid, .tool-guide-grid { grid-template-columns: 1fr; }
    .hero__copy { text-align: center; }
    .hero__lead { margin-inline: auto; }
    .hero__ctas, .hero__checks { justify-content: center; }
    .hero__visual { min-height: 460px; max-width: 560px; width: 100%; margin: 0 auto; }

    .feature--reverse .feature__copy { order: 0; }
    .feature__visual { max-width: 520px; width: 100%; margin: 0 auto; }
    #qr .feature__visual { order: 2; }

    .services, .plans { grid-template-columns: 1fr 1fr; }
    .plans .plan--featured { order: -1; grid-column: 1 / -1; }
    .stats__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
    .steps { grid-template-columns: 1fr 1fr; gap: 40px 22px; }
    .steps::before { display: none; }
    .faq__head { position: static; text-align: center; }
}

@media (max-width: 640px) {
    body { font-size: .98rem; }
    .container { width: min(100% - 32px, var(--container)); }
    .hero__visual { min-height: 400px; }
    .mock--dash { left: 0; right: 0; padding: 18px; top: 40px; }
    .kpi { padding: 10px; }
    .kpi strong { font-size: 1.1rem; }
    .mock--qr { left: -4px; bottom: -6px; padding: 12px 14px 12px 12px; }
    .mock--qr__code { width: 66px; height: 66px; }
    .mock__big { font-size: 1.35rem; }
    .mock--roas { display: none; }
    .mock--chip { right: -4px; top: 0; }

    .services, .plans, .steps, .form-grid, .workspace-card .form-grid { grid-template-columns: 1fr; }
    .plans .plan--featured { grid-column: auto; }
    .stat { padding: 4px 14px; }
    .qr-poster { width: 84%; padding: 22px; margin-left: 0; }
    .qr-poster__code { width: 140px; height: 140px; }
    .qr-metrics { position: relative; top: auto; width: 88%; margin: 18px 0 0 auto; }
    .sheet__table th, .sheet__table td { padding: 7px 8px; font-size: .78rem; }
    .sheet__table tbody th { width: 26px; }
    .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .hero__ctas .btn { width: 100%; }
    .wa-float { right: 14px; bottom: 14px; }
}
