/* qrw.es · web pública. Colores y tipografía de TPH Marketing (tphmarketing.es). */

:root {
    --blue: #0088cc;
    --blue-600: #006ba8;
    --blue-700: #00578a;
    --electric: #5bc3eb;
    --night: #07131a;
    --night-2: #0a1820;
    --night-3: #0a1e2e;
    --night-line: rgba(255, 255, 255, .09);
    --ink: #0a1820;
    --muted: #5d676c;
    --gray-light: #f5f7fa;
    --gray-2: #eaf0f5;
    --border: #e1e8ee;
    --white: #ffffff;
    --ok: #13a36e;
    --radius: .5rem;
    --radius-lg: 1rem;
    --shadow: 0 1px 2px rgba(10, 24, 32, .06), 0 8px 24px rgba(10, 24, 32, .06);
    --shadow-lg: 0 24px 60px rgba(3, 12, 18, .35);
    --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --container: 1200px;
}

*, *::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.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--electric); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--white); padding: .5rem 1rem; border-radius: var(--radius); }
.skip:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--gray { background: var(--gray-light); }
.section--dark { background: var(--night-2); color: #d7e3ea; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .lead { margin-bottom: 0; }
.section--dark .lead, .section--dark .muted { color: #9fb3bf; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .75rem;
    font-family: var(--font-head); font-size: .78rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600);
    margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.on-dark .eyebrow, .section--dark .eyebrow { color: var(--electric); }
.hl { color: var(--blue); }
.on-dark .hl { background: linear-gradient(90deg, var(--blue), var(--electric)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Botones */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--font-head); font-weight: 700; font-size: .95rem;
    padding: .8rem 1.4rem; border-radius: var(--radius); border: 1px solid transparent;
    cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s;
    white-space: nowrap; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-600); color: var(--white); }
.btn--ghost { border-color: rgba(255, 255, 255, .28); color: var(--white); background: transparent; }
.btn--ghost:hover { border-color: var(--white); color: var(--white); }
.btn--outline { border-color: var(--border); color: var(--ink); background: var(--white); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue-600); }
.btn--sm { padding: .55rem 1rem; font-size: .88rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.link-arrow { font-family: var(--font-head); font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: .35rem; }
.link-arrow i { transition: transform .15s; }
.link-arrow:hover i { transform: translateX(3px); }

/* Cabecera */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(7, 19, 26, .86); backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--night-line);
}
.site-header .container { display: flex; align-items: center; gap: 2rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--white); flex-shrink: 0; }
.brand:hover { color: var(--white); }
.brand svg { width: 34px; height: 34px; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; }
.brand__name span { color: var(--electric); }
.brand__by { display: block; font-size: .62rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #8fa6b3; margin-top: -4px; }
.nav { display: flex; align-items: center; gap: .25rem; flex: 1; }
.nav__link, .nav__toggle {
    color: #d3dee5; font-size: .93rem; font-weight: 500; padding: .5rem .8rem; border-radius: var(--radius);
    background: none; border: 0; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: .3rem;
}
.nav__link:hover, .nav__toggle:hover, .nav__link.is-active { color: var(--white); background: rgba(255, 255, 255, .06); }
.nav__toggle i { font-size: .7rem; transition: transform .15s; }
.nav__item { position: relative; }
.nav__menu {
    position: absolute; top: calc(100% + 10px); left: 0; min-width: 340px; padding: .6rem;
    background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.nav__item:hover .nav__menu, .nav__item.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__item.is-open .nav__toggle i { transform: rotate(180deg); }
.nav__menu a { display: flex; gap: .8rem; padding: .7rem .8rem; border-radius: .6rem; color: var(--ink); }
.nav__menu a:hover { background: var(--gray-light); }
.nav__menu i { font-size: 1.15rem; color: var(--blue); width: 2.2rem; height: 2.2rem; flex-shrink: 0; display: grid; place-items: center; background: #e6f4fb; border-radius: .5rem; }
.nav__menu strong { display: block; font-family: var(--font-head); font-size: .92rem; }
.nav__menu small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.header-cta { display: flex; gap: .5rem; align-items: center; }
.site-header.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--night); }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--night-line); color: var(--white); border-radius: var(--radius); width: 44px; height: 44px; font-size: 1.4rem; cursor: pointer; }

/* Hero */
.on-dark { color: #c9d7df; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.hero {
    position: relative; overflow: hidden; background: var(--night);
    background-image:
        radial-gradient(900px 500px at 85% 10%, rgba(0, 136, 204, .28), transparent 60%),
        radial-gradient(700px 500px at 0% 100%, rgba(91, 195, 235, .12), transparent 60%),
        linear-gradient(180deg, #0a1e2e 0%, #07131a 100%);
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
    background-size: 56px 56px; mask-image: linear-gradient(180deg, rgba(0, 0, 0, .6), transparent 75%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .6), transparent 75%);
}
.hero > .container { position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 88px 0 72px; }
.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { color: #b4c6d0; font-size: 1.18rem; max-width: 560px; margin-bottom: 2rem; }
.hero__trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--night-line); }
.hero__trust div { border-left: 2px solid var(--blue); padding-left: .8rem; }
.hero__trust strong { display: block; color: var(--white); font-family: var(--font-head); font-size: .9rem; }
.hero__trust span { font-size: .85rem; color: #8ea4b0; }
.page-hero .hero__grid { padding: 72px 0 64px; }
.page-hero--simple .hero__grid { grid-template-columns: 1fr; max-width: 820px; }
.breadcrumb { font-size: .85rem; color: #8ea4b0; margin-bottom: 1rem; }
.breadcrumb a { color: #b4c6d0; }

/* Maqueta del panel */
.mock {
    position: relative; background: #0d2231; border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; color: #cfdde5; font-size: .82rem;
}
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: #0a1b27; }
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: #2b4252; display: block; }
.mock__url { margin-left: 10px; flex: 1; background: rgba(255, 255, 255, .06); border-radius: 6px; padding: 3px 10px; font-size: .74rem; color: #8ea4b0; }
.mock__body { padding: 18px; display: grid; gap: 14px; }
.mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__kpi { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); border-radius: 10px; padding: 10px 12px; }
.mock__kpi small { display: block; color: #8ea4b0; font-size: .7rem; }
.mock__kpi strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--white); }
.mock__kpi em { font-style: normal; color: #4fd1a1; font-size: .7rem; margin-left: 4px; }
.mock__panel { background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); border-radius: 10px; padding: 12px; }
.mock__panel h4 { font-size: .75rem; color: #8ea4b0; font-weight: 600; margin: 0 0 8px; letter-spacing: 0; }
.mock__chart { width: 100%; height: 110px; display: block; }
.mock__rows { display: grid; gap: 7px; }
.mock__row { display: grid; grid-template-columns: 92px 1fr 44px; gap: 8px; align-items: center; font-size: .74rem; }
.mock__track { height: 6px; background: rgba(255, 255, 255, .06); border-radius: 4px; overflow: hidden; }
.mock__fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--electric)); border-radius: 4px; }
.mock__row b { text-align: right; color: var(--white); font-weight: 600; }
.mock__split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.float-card {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: .7rem;
    background: rgba(13, 34, 49, .92); border: 1px solid rgba(91, 195, 235, .25); backdrop-filter: blur(8px);
    border-radius: 12px; padding: .65rem .9rem; box-shadow: var(--shadow-lg); color: #cfdde5; font-size: .75rem;
}
.float-card i { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: rgba(0, 136, 204, .2); color: var(--electric); font-size: 1rem; }
.float-card strong { display: block; font-family: var(--font-head); color: var(--white); font-size: 1.05rem; }
.hero__visual { position: relative; }
.hero__visual .float-card--a { top: -22px; right: -12px; }
.hero__visual .float-card--c { bottom: -58px; right: 28px; }
.hero__visual { margin-bottom: 40px; }

/* Acortador de demostración */
.shortener { margin-top: -40px; position: relative; z-index: 3; }
.shortener__box { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.shortener__form { display: flex; gap: .6rem; }
.shortener__form input {
    flex: 1; min-width: 0; font: inherit; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); color: var(--ink);
}
.shortener__form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 136, 204, .15); }
.shortener__label { font-family: var(--font-head); font-weight: 700; margin-bottom: .6rem; display: block; }
.shortener__result { display: none; align-items: center; gap: 1rem; margin-top: 1rem; padding: .8rem 1rem; background: var(--gray-light); border-radius: var(--radius); }
.shortener__result.is-visible { display: flex; }
.shortener__result code { font-family: var(--font-head); font-weight: 800; color: var(--blue-600); font-size: 1.05rem; }
.shortener__result small { color: var(--muted); }
.shortener__qr { width: 96px; height: 96px; padding: 8px; border: 1px solid var(--border); border-radius: 10px; color: var(--ink); }
.shortener__qr svg { width: 100%; height: 100%; display: block; }

/* Logos */
.logos { padding: 56px 0 24px; }
.logos p { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.logos__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px 16px; align-items: center; }
.logos__grid img { width: 100%; max-width: 150px; margin: 0 auto; display: block; opacity: .85; mix-blend-mode: multiply; }

/* Tarjetas */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px;
    transition: border-color .15s, box-shadow .15s, transform .15s; display: flex; flex-direction: column;
}
.card:hover { border-color: #c5dbe8; box-shadow: var(--shadow); }
.card p { color: var(--muted); }
.card .link-arrow { margin-top: auto; }
.icon {
    width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem;
    background: linear-gradient(135deg, #e3f3fb, #d2ecf8); color: var(--blue-600); margin-bottom: 1.1rem; flex-shrink: 0;
}
.section--dark .card { background: rgba(255, 255, 255, .03); border-color: var(--night-line); }
.section--dark .card p { color: #9fb3bf; }
.section--dark .icon { background: rgba(0, 136, 204, .16); color: var(--electric); }
.checks { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .5rem; }
.checks li { position: relative; padding-left: 1.6rem; font-size: .94rem; }
.checks li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 700; }
.section--dark .checks li::before, .on-dark .checks li::before { color: var(--electric); }

/* Bloques texto + imagen */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 96px; }
.split--reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.visual {
    background: linear-gradient(160deg, #0a1e2e, #07131a); border-radius: 20px; padding: 32px;
    position: relative; overflow: hidden; min-height: 320px; display: grid; align-items: center; color: #cfdde5;
}
.visual::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(500px 260px at 90% 0%, rgba(0, 136, 204, .3), transparent 65%);
}
.visual > * { position: relative; }
.visual--light { background: var(--gray-light); border: 1px solid var(--border); color: var(--ink); }
.visual--light::before { background: radial-gradient(500px 260px at 90% 0%, rgba(91, 195, 235, .18), transparent 65%); }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 1rem; border-top: 2px solid var(--border); }
.step::before {
    counter-increment: step; content: "0" counter(step);
    font-family: var(--font-head); font-weight: 800; font-size: .85rem; color: var(--blue); display: block; margin-bottom: .6rem;
}
.step.is-active { border-color: var(--blue); }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }
.section--dark .step { border-color: var(--night-line); }
.section--dark .step.is-active { border-color: var(--electric); }
.section--dark .step::before { color: var(--electric); }

/* Cifras */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { padding: 8px 0 8px 20px; border-left: 2px solid var(--blue); }
.stat strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -.03em; color: var(--white); line-height: 1.1; }
.stat span { color: #9fb3bf; font-size: .95rem; }
.section:not(.section--dark) .stat strong { color: var(--ink); }
.section:not(.section--dark) .stat span { color: var(--muted); }
.note { font-size: .8rem; color: var(--muted); margin-top: 24px; }
.section--dark .note { color: #7d93a0; }

/* Pestañas */
.tabs__list { display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; margin-bottom: 40px; }
.tabs__btn {
    font-family: var(--font-head); font-weight: 700; font-size: .92rem; padding: .65rem 1.2rem; border-radius: 999px;
    border: 1px solid var(--border); background: var(--white); color: var(--ink); cursor: pointer;
}
.tabs__btn[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.tabs__panel[hidden] { display: none; }

/* Integraciones */
.integration { display: flex; gap: 1rem; align-items: flex-start; }
.integration .icon { margin-bottom: 0; }
.integration h3 { margin-bottom: .3rem; font-size: 1.05rem; }
.integration p { margin: 0; font-size: .92rem; }
.badge {
    display: inline-block; font-family: var(--font-head); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: .2rem .55rem; border-radius: 999px; background: #e3f3fb; color: var(--blue-600); vertical-align: middle;
}
.badge--soft { background: var(--gray-2); color: var(--muted); }
.badge--dark { background: rgba(91, 195, 235, .15); color: var(--electric); }

/* Cita / caso */
.quote { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.quote blockquote { margin: 0; font-family: var(--font-head); font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 700; line-height: 1.35; color: var(--white); letter-spacing: -.01em; }
.quote cite { display: block; margin-top: 1.2rem; font-style: normal; color: #9fb3bf; font-size: .95rem; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); padding: 0 24px; }
.faq summary {
    list-style: none; cursor: pointer; padding: 20px 32px 20px 0; position: relative;
    font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\F4FE"; font-family: "bootstrap-icons"; position: absolute; right: 0; top: 20px; color: var(--blue); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p, .faq details ul { color: var(--muted); }
.faq details > :last-child { margin-bottom: 20px; }
.faq-group { margin-bottom: 56px; }
.faq-group h2 { font-size: 1.4rem; max-width: 820px; margin: 0 auto 20px; }

/* CTA final */
.cta {
    position: relative; overflow: hidden; border-radius: 24px; padding: 64px 48px; text-align: center;
    background: radial-gradient(700px 300px at 50% 0%, rgba(0, 136, 204, .45), transparent 70%), var(--night-3);
}
.cta h2 { color: var(--white); max-width: 720px; margin: 0 auto .6em; }
.cta p { color: #b4c6d0; max-width: 620px; margin: 0 auto 2rem; font-size: 1.1rem; }
.cta .btn-row { justify-content: center; }
.guarantees { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 32px; color: #b4c6d0; font-size: .9rem; }
.guarantees span { display: inline-flex; gap: .45rem; align-items: center; }
.guarantees i { color: var(--electric); }

/* Precios */
.billing { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid var(--night-line); margin-top: 1.5rem; }
.billing button { font-family: var(--font-head); font-weight: 700; font-size: .9rem; border: 0; background: none; color: #c9d7df; padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer; }
.billing button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.billing .save { font-size: .7rem; color: var(--ok); margin-left: .3rem; }
.billing button[aria-pressed="false"] .save { color: #4fd1a1; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -56px; position: relative; z-index: 2; }
.plan { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan--featured { border: 2px solid var(--blue); position: relative; }
.plan__tag { position: absolute; top: -13px; left: 24px; background: var(--blue); color: var(--white); font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px; }
.plan h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.plan__for { color: var(--muted); font-size: .9rem; min-height: 2.9em; }
.plan__price { font-family: var(--font-head); margin: .6rem 0 .2rem; display: flex; align-items: baseline; gap: .3rem; }
.plan__price strong { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; }
.plan__price span { color: var(--muted); font-size: .9rem; }
.plan__billed { font-size: .8rem; color: var(--muted); min-height: 1.3em; margin-bottom: 1.2rem; }
.plan .btn { margin-bottom: 1.4rem; }
.plan .checks { font-size: .9rem; margin: 0; }
.plan .checks li { font-size: .9rem; }
.plan__sub { font-family: var(--font-head); font-weight: 700; font-size: .82rem; margin: 0 0 .7rem; color: var(--ink); }
.included { margin-top: 32px; padding: 20px 24px; border-radius: var(--radius-lg); background: #e9f5fb; border: 1px solid #cde7f4; display: flex; gap: 1rem; align-items: center; }
.included i { font-size: 1.6rem; color: var(--blue); }
.included p { margin: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); }
.compare { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .92rem; }
.compare th, .compare td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--border); }
.compare th:first-child, .compare td:first-child { text-align: left; width: 32%; }
.compare thead th { font-family: var(--font-head); font-size: 1rem; background: var(--gray-light); position: sticky; top: 0; }
.compare thead th small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.compare .group td { background: var(--gray-light); font-family: var(--font-head); font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600); text-align: left; }
.compare .yes { color: var(--blue); font-size: 1.1rem; }
.compare .no { color: #b8c4cc; }
.compare tr:last-child td { border-bottom: 0; }

.compare.facts { min-width: 0; }
.compare.facts th { text-align: left; width: 30%; background: var(--gray-light); font-family: var(--font-head); font-size: .92rem; }
.compare.facts td { text-align: left; }

/* Prosa (legales, empresa) */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.45rem; margin-top: 2.4rem; }
.prose h3 { margin-top: 1.6rem; }
.prose p, .prose li { color: #33424a; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.prose li { margin-bottom: .35rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; font-size: .92rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--gray-light); font-family: var(--font-head); }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.legal-nav { position: sticky; top: 100px; display: grid; gap: 2px; }
.legal-nav a { padding: .5rem .8rem; border-radius: var(--radius); color: var(--muted); font-size: .92rem; }
.legal-nav a:hover { background: var(--gray-light); color: var(--ink); }
.legal-nav a.is-active { background: #e6f4fb; color: var(--blue-600); font-weight: 700; }
.updated { font-size: .88rem; color: var(--muted); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-list { display: grid; gap: 16px; }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 500; }
.form input, .form select, .form textarea {
    font: inherit; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); color: var(--ink); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 136, 204, .15); }
.form textarea { min-height: 140px; resize: vertical; }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: .86rem; }
.form .check input { width: auto; margin-top: .25rem; }

/* Diagramas e ilustraciones */
.rule { display: grid; gap: 10px; }
.rule__item { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); border-radius: 10px; padding: 10px 12px; color: #cfdde5; font-size: .85rem; }
.rule__item i { color: var(--electric); }
.rule__item b { color: var(--white); font-weight: 600; }
.rule__item .to { margin-left: auto; color: #8ea4b0; font-size: .78rem; white-space: nowrap; }
.rule__item.is-default { border-style: dashed; }
.qr-card { background: var(--white); color: var(--ink); border-radius: 16px; padding: 18px; width: 190px; box-shadow: var(--shadow-lg); text-align: center; }
.qr-card svg { display: block; width: 100%; height: auto; }
.qr-card small { display: block; margin-top: 10px; font-family: var(--font-head); font-weight: 800; font-size: .9rem; }
.flow { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.flow__arrow { height: 2px; background: linear-gradient(90deg, var(--electric), transparent); position: relative; }
.flow__arrow::after { content: ""; position: absolute; right: 0; top: -4px; border: 5px solid transparent; border-left-color: var(--electric); }
.flow__stack { display: grid; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: #d7e3ea; font-size: .78rem; }
.chip i { color: var(--electric); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.heat { display: grid; grid-template-columns: 34px repeat(12, 1fr); gap: 3px; font-size: .62rem; color: #8ea4b0; align-items: center; }
.heat span { aspect-ratio: 1; border-radius: 3px; display: block; }
.donut { display: flex; align-items: center; gap: 18px; }
.donut svg { width: 120px; height: 120px; flex-shrink: 0; }
.legend { display: grid; gap: 6px; font-size: .78rem; }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.layers { display: grid; gap: 12px; }
.layer { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: #d7e3ea; }
.layer i { font-size: 1.3rem; color: var(--electric); }
.layer strong { display: block; color: var(--white); font-family: var(--font-head); font-size: .95rem; }
.layer small { color: #8ea4b0; }
.timeline { display: grid; gap: 0; border-left: 2px solid var(--border); margin-left: 8px; }
.timeline > div { position: relative; padding: 0 0 28px 28px; }
.timeline > div::before { content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--blue); }
.timeline strong { font-family: var(--font-head); display: block; }
.timeline p { color: var(--muted); margin: 0; }

/* Pie */
.site-footer { background: var(--night); color: #9fb3bf; padding: 72px 0 32px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer__grid h4 { color: var(--white); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer__grid a { color: #9fb3bf; }
.footer__grid a:hover { color: var(--white); }
.footer__about p { margin: 1rem 0; max-width: 300px; }
.footer__tph { display: inline-flex; align-items: center; gap: .6rem; font-size: .8rem; color: #7d93a0; }
.footer__tph img { height: 28px; width: auto; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--night-line); margin-top: 56px; padding-top: 24px; font-size: .84rem; color: #7d93a0; }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__bottom a { color: #9fb3bf; }

/* Adaptación */
@media (max-width: 1080px) {
    .nav, .header-cta { display: none; }
    .burger { display: grid; place-items: center; }
    .site-header.is-open .nav {
        display: flex; flex-direction: column; align-items: stretch; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
        background: var(--night); padding: 16px 20px 120px; overflow-y: auto; gap: 2px;
    }
    .site-header.is-open .header-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; padding: 16px 20px; background: var(--night); border-top: 1px solid var(--night-line); }
    .site-header.is-open .header-cta .btn { flex: 1; }
    .nav__link, .nav__toggle { font-size: 1.05rem; padding: .85rem .6rem; width: 100%; justify-content: space-between; }
    .nav__menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; min-width: 0; background: rgba(255, 255, 255, .04); margin: 0 0 8px; }
    .nav__item.is-open .nav__menu { display: block; }
    .nav__menu a { color: #d7e3ea; }
    .nav__menu a:hover { background: rgba(255, 255, 255, .06); }
    .nav__menu small { color: #8ea4b0; }
    .nav__menu i { background: rgba(0, 136, 204, .16); color: var(--electric); }
    .hero__grid, .split, .quote, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .split--reverse > :first-child { order: 0; }
    .grid--3, .grid--4, .plans { grid-template-columns: repeat(2, 1fr); }
    .steps, .stats { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__about { grid-column: 1 / -1; }
    .logos__grid { grid-template-columns: repeat(4, 1fr); }
    .legal-layout { grid-template-columns: 1fr; gap: 24px; }
    .legal-nav { position: static; display: flex; flex-wrap: wrap; }
    .hero__visual { max-width: 560px; }
}
@media (max-width: 680px) {
    .hero__trust { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
    .container { padding: 0 16px; }
    .grid--2, .grid--3, .grid--4, .plans, .steps, .form__row { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
    .logos__grid { grid-template-columns: repeat(3, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .shortener__box { grid-template-columns: 1fr; padding: 20px; }
    .shortener__form { flex-direction: column; }
    .shortener__aside { display: none; }
    .hero__grid { padding: 56px 0 64px; }
    .hero__visual .float-card { display: none; }
    .mock__kpis { grid-template-columns: 1fr 1fr; }
    .mock__kpi:nth-child(3) { display: none; }
    .mock__split { grid-template-columns: 1fr; }
    .cta { padding: 48px 20px; border-radius: 16px; }
    .visual { padding: 20px; min-height: 0; }
    .flow { grid-template-columns: 1fr; }
    .flow__arrow { display: none; }
    .qr-card { margin: 0 auto; }
    .plans { margin-top: -40px; }
    .included { flex-direction: column; align-items: flex-start; }
    .brand__by { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

/* Acceso de clientes (login, verificación y recuperación de contraseña) */
.auth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 100vh; }
.auth__aside {
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
    padding: 40px 48px; background: var(--night);
    background-image:
        radial-gradient(700px 420px at 100% 0%, rgba(0, 136, 204, .32), transparent 60%),
        radial-gradient(500px 400px at 0% 100%, rgba(91, 195, 235, .14), transparent 60%),
        linear-gradient(180deg, #0a1e2e 0%, #07131a 100%);
}
.auth__aside::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
    background-size: 56px 56px; mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 80%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 80%);
}
.auth__aside > * { position: relative; }
.auth__quote { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; color: var(--white); margin: 0 0 32px; }
.auth__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.auth__kpis div { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); border-radius: 12px; padding: 14px 16px; }
.auth__kpis strong { display: block; font-family: var(--font-head); font-size: 1.35rem; color: var(--white); }
.auth__kpis span { font-size: .8rem; color: #8ea4b0; }
.auth__trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .88rem; color: #9fb3bf; }
.auth__trust i { color: var(--electric); margin-right: .4rem; }
.auth__main { display: flex; flex-direction: column; padding: 28px 48px; background: var(--gray-light); }
.auth__top { display: flex; align-items: center; gap: 16px; font-size: .9rem; color: var(--muted); }
.auth__back { color: var(--muted); display: inline-flex; gap: .4rem; align-items: center; }
.auth__back:hover { color: var(--ink); }
.auth__cta { margin-left: auto; }
.auth__mobile-brand { display: none; color: var(--ink); }
.auth__mobile-brand:hover { color: var(--ink); }
.auth__mobile-brand svg { width: 30px; height: 30px; }
.auth__mobile-brand .brand__name { font-size: 1.2rem; }
.auth__mobile-brand .brand__name span { color: var(--blue); }
.auth__card {
    width: 100%; max-width: 440px; margin: auto; padding: 40px; background: var(--white);
    border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow);
}
.auth__title { font-size: 1.75rem; margin-bottom: .4rem; }
.auth__lead { color: var(--muted); margin-bottom: 1.6rem; }
.auth__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: linear-gradient(135deg, #e3f3fb, #d2ecf8); color: var(--blue-600); margin-bottom: 1.2rem; }
.auth__icon--ok { background: #dcf5ea; color: var(--ok); }
.auth__label-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.auth__label-row a { font-size: .85rem; font-weight: 500; }
.auth__divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--muted); font-size: .85rem; }
.auth__divider::before, .auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth__note { font-size: .82rem; color: var(--muted); text-align: center; margin: .6rem 0 0; }
.auth__foot { text-align: center; font-size: .9rem; color: var(--muted); margin: 28px 0 0; line-height: 1.8; }
.auth__tips { margin-bottom: 1.6rem; }
.auth__tips li { color: var(--muted); font-size: .9rem; }
.auth__preview { margin: 20px 0 0; padding: 10px 12px; border: 1px dashed var(--border); border-radius: var(--radius); font-size: .82rem; color: var(--muted); text-align: center; }
.auth__notice { display: flex; gap: 14px; margin-top: 20px; padding: 18px; border-radius: 14px; background: #e9f5fb; border: 1px solid #cde7f4; }
.auth__notice > i { font-size: 1.4rem; color: var(--blue); }
.auth__notice strong { font-family: var(--font-head); display: block; margin-bottom: .3rem; }
.auth__notice p { color: var(--muted); font-size: .9rem; margin-bottom: .9rem; }
.auth__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; color: var(--muted); }
.auth__bottom nav { display: flex; gap: 18px; }
.auth__bottom a { color: var(--muted); }
.auth__bottom a:hover { color: var(--ink); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--blue-600); cursor: pointer; }
.link-button:hover { color: var(--blue-700); }
.link-button:disabled { color: var(--muted); cursor: default; }
.password { position: relative; display: block; }
.password input { padding-right: 3rem; }
.password__toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: var(--radius); font-size: 1.05rem; }
.password__toggle:hover { color: var(--ink); }
.otp { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.form .otp input { text-align: center; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; padding: .7rem 0; }
.strength { display: grid; gap: 6px; margin-top: -6px; }
.strength__bar { height: 6px; border-radius: 4px; background: var(--gray-2); overflow: hidden; }
.strength__bar span { display: block; height: 100%; width: 0; border-radius: 4px; background: #d9534f; transition: width .2s, background .2s; }
.strength__label { font-size: .8rem; color: var(--muted); }
.rules { list-style: none; padding: 0; margin: -4px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: .82rem; color: var(--muted); }
.rules li::before { content: "\F28A"; font-family: "bootstrap-icons"; margin-right: .4rem; font-size: .75rem; }
.rules li.is-ok { color: var(--ok); }
.rules li.is-ok::before { content: "\F26E"; }
.field-error { font-size: .82rem; color: #c0392b; margin-top: -8px; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1080px) {
    .auth { grid-template-columns: 1fr; }
    .auth__aside { display: none; }
    .auth__mobile-brand { display: inline-flex; }
    .auth__back { display: none; }
}
@media (max-width: 680px) {
    .auth__main { padding: 20px 16px; background: var(--white); }
    .auth__card { padding: 32px 4px; border: 0; box-shadow: none; }
    .auth__cta { font-size: .82rem; text-align: right; }
    .rules { grid-template-columns: 1fr; }
}

/* Evita que el contenido ancho (maquetas, tablas) ensanche las rejillas en móvil */
.hero__grid > *, .split > *, .grid > *, .quote > *, .contact-grid > *, .legal-layout > *, .steps > *, .plans > * { min-width: 0; }
html, body { overflow-x: clip; }
