/* =====================================================================
   MoodCloud — Hoja de estilos principal (v2: oscuro + bento + efectos)
   Sin frameworks. Mobile-first. Colores de marca del logotipo.
   ===================================================================== */

:root {
    /* Marca */
    --blue-700: #0B5FA5;
    --blue-600: #1279C9;
    --blue-500: #2E90E0;
    --blue-400: #46AEEF;
    --sky-400: #5AA9FF;
    --cyan-400: #2DD4F0;
    --cyan-500: #12B5D6;

    /* Tinta (secciones oscuras) */
    --ink-950: #040B19;
    --ink-900: #071428;
    --ink-800: #0B1E3A;
    --navy-900: #0B2545;
    --navy-800: #102F57;

    /* Claro */
    --text: #2C3E58;
    --muted: #5A6A84;
    --line: #DFE8F3;
    --line-strong: #C7D7EA;
    --bg: #FFFFFF;
    --bg-soft: #F4F8FD;
    --bg-tint: #E8F3FD;

    /* Oscuro */
    --d-text: #C9D8EC;
    --d-muted: #8CA3C2;
    --d-line: rgba(148, 190, 240, .14);
    --d-surface: rgba(255, 255, 255, .04);

    /* Estados */
    --success: #0F7A4A;
    --success-bg: #E7F6EE;
    --live: #34D399;
    --danger: #B42318;
    --danger-bg: #FDECEA;
    --warning: #8A5A00;
    --warning-bg: #FFF5DB;
    --info-bg: #E8F3FD;

    --grad-brand: linear-gradient(135deg, #1279C9 0%, #12B5D6 100%);
    --grad-btn: linear-gradient(135deg, #2E90E0 0%, #1279C9 45%, #0B5FA5 100%);
    --grad-text: linear-gradient(90deg, #5AA9FF 0%, #2DD4F0 100%);
    --grad-text-dark: linear-gradient(90deg, #1279C9 0%, #0E9BC0 100%);

    /* Formas: más cuadradas */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 2px rgba(11, 37, 69, .06), 0 1px 3px rgba(11, 37, 69, .05);
    --shadow: 0 6px 16px rgba(11, 37, 69, .07), 0 18px 40px rgba(11, 37, 69, .07);
    --shadow-lg: 0 30px 80px rgba(4, 11, 25, .35);
    --ring: 0 0 0 3px rgba(46, 144, 224, .35);

    --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, sans-serif;
    --font-display: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;

    --header-h: 68px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6;
    color: var(--text); background: var(--bg);
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy-900); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.03em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
ul, ol { padding: 0; margin: 0; }
code { font-family: var(--mono); font-size: .88em; background: var(--bg-tint); padding: .1em .35em; border-radius: 4px; color: var(--navy-800); }
button, input, select, textarea { font: inherit; color: inherit; }
main:focus { outline: none; }
[hidden] { display: none !important; }
::selection { background: rgba(46, 144, 224, .25); }

:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; border-radius: 4px; }

.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: -100px; z-index: 1000; background: var(--blue-600); color: #fff; padding: .7rem 1rem; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.muted { color: var(--muted); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 860px; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-tight { padding-top: clamp(40px, 6vw, 64px); }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head .lead { margin-bottom: 0; }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.split { display: grid; gap: clamp(36px, 6vw, 80px); align-items: center; position: relative; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } }

.eyebrow {
    display: inline-flex; align-items: center; gap: .45rem;
    font-family: var(--mono); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--blue-600); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow .icon { width: 1.1em; height: 1.1em; }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.28rem); color: var(--muted); line-height: 1.6; }
.text-gradient { background: var(--grad-text-dark); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center-link { text-align: center; margin: 2.5rem 0 0; color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; text-decoration: none; }
.link-arrow .icon { transition: transform .2s var(--ease); width: 1.1em; height: 1.1em; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Superficies oscuras ---------- */
.hero, .page-hero, .section-dark, .cta-band, .site-header, .site-footer { color: var(--d-text); }
.hero h1, .hero h2, .hero h3, .page-hero h1, .section-dark h2, .section-dark h3, .cta-band h2 { color: #fff; }
.hero .lead, .page-hero .lead, .section-dark .lead { color: var(--d-muted); }
.hero .text-gradient, .page-hero .text-gradient, .section-dark .text-gradient { background-image: var(--grad-text); }
.section-dark { background: var(--ink-950); overflow: hidden; }
.section-dark .eyebrow { color: var(--cyan-400); }

.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.aurora { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; mix-blend-mode: screen; animation: drift 18s ease-in-out infinite alternate; pointer-events: none; }
.a1 { width: 620px; height: 620px; background: radial-gradient(circle, #1279C9, transparent 65%); top: -260px; right: -120px; }
.a2 { width: 520px; height: 520px; background: radial-gradient(circle, #12B5D6, transparent 65%); bottom: -260px; left: -180px; animation-duration: 22s; opacity: .4; }
.a3 { width: 420px; height: 420px; background: radial-gradient(circle, #5A6BFF, transparent 65%); top: 30%; left: 40%; animation-duration: 26s; opacity: .25; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-60px, 40px) scale(1.1); } 100% { transform: translate(40px, -30px) scale(.95); } }
.grid-pattern {
    position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(120, 180, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 180, 255, .07) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.cursor-glow {
    position: absolute; width: 600px; height: 600px; border-radius: 50%;
    left: var(--mx, 70%); top: var(--my, 30%); transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(46, 144, 224, .22), transparent 60%);
    transition: left .25s ease-out, top .25s ease-out;
}

.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: ping 1.8s infinite; flex-shrink: 0; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 100% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }

.badge-new {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .38rem .85rem .38rem .7rem; border-radius: 999px;
    font-family: var(--mono); font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: #CFE3FA; background: rgba(46, 144, 224, .12); border: 1px solid rgba(90, 169, 255, .3);
    margin-bottom: 1.6rem; backdrop-filter: blur(6px);
}
.status-box .badge-new { color: var(--blue-700); background: var(--bg-tint); border-color: #CBE3F8; }

/* ---------- Botones ---------- */
.btn {
    --btn-py: .7rem; --btn-px: 1.15rem;
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: var(--btn-py) var(--btn-px); border-radius: var(--radius-sm); border: 1px solid transparent;
    font-weight: 650; font-size: .95rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
    cursor: pointer; position: relative; isolation: isolate;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn .icon { width: 1.05em; height: 1.05em; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { --btn-py: .95rem; --btn-px: 1.5rem; font-size: 1.02rem; }
.btn-sm { --btn-py: .45rem; --btn-px: .8rem; font-size: .86rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--grad-btn); background-size: 160% 160%; color: #fff; box-shadow: 0 8px 24px rgba(18, 121, 201, .35), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); background-position: 100% 50%; box-shadow: 0 14px 32px rgba(18, 121, 201, .45), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-glow::after {
    content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -1;
    background: conic-gradient(from var(--angle, 0deg), transparent 0 60%, #2DD4F0 75%, transparent 90%);
    animation: spin-angle 3s linear infinite; opacity: .9; filter: blur(4px);
}
.btn-secondary { background: #fff; color: var(--navy-900); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { color: var(--blue-700); border-color: var(--blue-400); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--navy-900); }
.btn-ghost:hover { background: var(--bg-tint); color: var(--blue-700); }
.btn-ghost-light { background: transparent; color: #DCE8F7; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.btn-glass { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); }
.btn-glass:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--ink-900); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.btn-white:hover { color: var(--blue-700); transform: translateY(-2px); }

.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading .icon { display: none; }
.btn.is-loading::before { content: ""; width: 1em; height: 1em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin-angle { to { --angle: 360deg; } }

/* ---------- Header (cristal oscuro) ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(4, 11, 25, .94);
    backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid rgba(148, 190, 240, .08);
    transition: background-color .25s, border-color .25s;
}
.site-header.is-scrolled { background: rgba(4, 11, 25, .97); border-bottom-color: rgba(148, 190, 240, .16); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { width: 142px; height: auto; }

.nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .05); color: #fff; cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline-flex; }

.site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--ink-950);
    padding: 24px 20px 32px; display: flex; flex-direction: column; gap: 24px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
.nav-open { overflow: hidden; }
.nav-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.nav-link { display: block; padding: .85rem 1rem; border-radius: var(--radius-sm); color: #DCE8F7; font-weight: 600; text-decoration: none; font-size: 1.1rem; }
.nav-link:hover, .nav-link[aria-current="page"] { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-actions { display: flex; flex-direction: column; gap: 10px; }
.site-header :focus-visible { outline-color: var(--cyan-400); }

@media (min-width: 1024px) {
    .nav-toggle { display: none; }
    .site-nav { position: static; inset: auto; padding: 0; background: none; flex-direction: row; align-items: center; gap: 24px; flex: 1; justify-content: space-between; opacity: 1; visibility: visible; transform: none; overflow: visible; margin-left: 36px; }
    .nav-list { flex-direction: row; gap: 2px; }
    .nav-link { font-size: .93rem; padding: .5rem .8rem; color: #AFC3DD; position: relative; }
    .nav-link:hover { background: none; color: #fff; }
    .nav-link[aria-current="page"] { background: none; color: #fff; }
    .nav-link[aria-current="page"]::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: -2px; height: 2px; border-radius: 2px; background: var(--grad-text); }
    .nav-actions { flex-direction: row; align-items: center; gap: 8px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink-950); padding: clamp(56px, 9vw, 110px) 0 clamp(80px, 10vw, 130px); margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px)); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(180deg, transparent, var(--ink-950)); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; gap: clamp(48px, 7vw, 72px); align-items: center; }
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1fr 1.08fr; } }
.display { font-size: clamp(2.6rem, 6.4vw, 4.8rem); font-weight: 850; letter-spacing: -.045em; line-height: 1; margin-bottom: 1.3rem; }
.hero-copy .lead { font-size: clamp(1.15rem, 2vw, 1.4rem); max-width: 460px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 2rem 0 1.6rem; }
.hero-notes { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; color: var(--d-muted); font-size: .9rem; }
.hero-notes li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-notes .icon { color: var(--live); width: 1.05em; height: 1.05em; stroke-width: 2.4; }

/* Mockup oscuro con inclinación 3D */
.hero-visual { margin: 0; position: relative; perspective: 1400px; }
.mockup {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    background: linear-gradient(180deg, rgba(20, 40, 72, .85), rgba(8, 20, 40, .92));
    border: 1px solid rgba(148, 190, 240, .18);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 0 120px rgba(18, 121, 201, .25);
    transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg));
    transform-style: preserve-3d; transition: transform .4s var(--ease);
    backdrop-filter: blur(10px);
}
.mockup::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .09), transparent 35%); pointer-events: none; }
.mockup-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--d-line); }
.mockup-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.mockup-bar .dot:nth-child(1) { background: #F87171; } .mockup-bar .dot:nth-child(2) { background: #FBBF24; } .mockup-bar .dot:nth-child(3) { background: #34D399; }
.mockup-url { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; font-family: var(--mono); font-size: .72rem; color: var(--d-muted); background: rgba(255, 255, 255, .05); padding: 4px 12px; border-radius: 6px; }
.mockup-url .icon { width: 11px; height: 11px; color: var(--live); }
.mockup-body { display: flex; min-height: 360px; }
.mockup-side { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 10px; border-right: 1px solid var(--d-line); }
.mockup-side img { margin-bottom: 8px; }
.ms-item { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: var(--d-muted); }
.ms-item .icon { width: 18px; height: 18px; }
.ms-item.is-active { background: rgba(46, 144, 224, .2); color: #fff; box-shadow: inset 0 0 0 1px rgba(90, 169, 255, .35); }
.mockup-main { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mm-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mm-title { font-weight: 700; color: #fff; font-size: 1.05rem; letter-spacing: -.01em; }
.mm-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; color: #A7F3D0; background: rgba(52, 211, 153, .12); padding: 4px 10px; border-radius: 999px; }
.mm-chip .live-dot { width: 6px; height: 6px; }
.mm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mm-card { border: 1px solid var(--d-line); background: rgba(255, 255, 255, .03); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mm-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; }
.mm-icon .icon { width: 16px; height: 16px; }
.mm-label { font-size: .82rem; font-weight: 650; color: #fff; }
.mm-status { font-size: .7rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.mm-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mm-status.is-ok { color: var(--live); }
.mm-status.is-live { color: var(--cyan-400); }
.mm-status.is-live::before { animation: ping 1.8s infinite; }
.mm-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; padding: 12px; border-radius: 10px; border: 1px solid var(--d-line); background: rgba(255, 255, 255, .02); }
.mm-bars i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--cyan-400), var(--blue-600)); opacity: .85; animation: grow 3.2s ease-in-out infinite; transform-origin: bottom; }
.mm-bars i:nth-child(1) { height: 30%; } .mm-bars i:nth-child(2) { height: 45%; animation-delay: -.3s; } .mm-bars i:nth-child(3) { height: 38%; animation-delay: -.6s; }
.mm-bars i:nth-child(4) { height: 60%; animation-delay: -.9s; } .mm-bars i:nth-child(5) { height: 52%; animation-delay: -1.2s; } .mm-bars i:nth-child(6) { height: 70%; animation-delay: -1.5s; }
.mm-bars i:nth-child(7) { height: 64%; animation-delay: -1.8s; } .mm-bars i:nth-child(8) { height: 80%; animation-delay: -2.1s; } .mm-bars i:nth-child(9) { height: 72%; animation-delay: -2.4s; }
.mm-bars i:nth-child(10) { height: 88%; animation-delay: -2.7s; } .mm-bars i:nth-child(11) { height: 78%; animation-delay: -3s; } .mm-bars i:nth-child(12) { height: 95%; animation-delay: -3.2s; }
@keyframes grow { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.75); } }
.mm-voice { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: linear-gradient(90deg, rgba(18, 121, 201, .25), rgba(18, 181, 214, .12)); border: 1px solid rgba(90, 169, 255, .25); }
.voice-avatar { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; flex-shrink: 0; }
.voice-avatar .icon { width: 17px; height: 17px; }
.voice-wave { display: flex; align-items: center; gap: 3px; height: 26px; flex: 1; }
.voice-wave i { flex: 1; max-width: 4px; height: 30%; border-radius: 3px; background: var(--cyan-400); animation: wave 1.1s ease-in-out infinite; }
.voice-wave i:nth-child(2n) { animation-delay: -.2s; } .voice-wave i:nth-child(3n) { animation-delay: -.45s; }
.voice-wave i:nth-child(4n) { animation-delay: -.7s; } .voice-wave i:nth-child(5n) { animation-delay: -.9s; }
.voice-wave.sm { height: 14px; flex: 0 0 auto; display: inline-flex; vertical-align: middle; margin-right: 6px; }
.voice-wave.sm i { width: 3px; flex: 0 0 3px; background: #fff; }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 100%; } }

.float-chip {
    position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: .45rem;
    padding: .55rem .85rem; border-radius: 10px; font-size: .8rem; font-weight: 650; color: #fff; white-space: nowrap;
    background: rgba(12, 28, 54, .8); border: 1px solid rgba(148, 190, 240, .25); backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35); animation: float 6s ease-in-out infinite;
}
.float-chip .icon { width: 15px; height: 15px; color: var(--cyan-400); }
.fc-1 { top: -16px; right: 14%; }
.fc-2 { bottom: 22%; right: -16px; animation-delay: -2s; }
.fc-3 { bottom: -16px; left: 18%; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 560px) {
    .mm-cards { grid-template-columns: 1fr 1fr; }
    .mm-cards .mm-card:nth-child(3), .mockup-side { display: none; }
    .fc-1 { right: 8px; } .fc-2 { right: 4px; }
}

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; background: var(--ink-950); border-block: 1px solid var(--d-line); padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { list-style: none; display: flex; gap: 12px; padding-right: 12px; }
.marquee-list li { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 8px; border: 1px solid var(--d-line); background: var(--d-surface); color: #C9D8EC; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.marquee-list .icon { width: 17px; height: 17px; color: var(--cyan-400); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Spotlight (luz que sigue al cursor) ---------- */
.spot { position: relative; isolation: isolate; }
.spot::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
    background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(46, 144, 224, .13), transparent 45%);
    opacity: 0; transition: opacity .3s;
}
.spot:hover::before { opacity: 1; }
.spot::after {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
    background: radial-gradient(260px circle at var(--sx, 50%) var(--sy, 50%), rgba(46, 144, 224, .9), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0; transition: opacity .3s;
}
.spot:hover::after { opacity: 1; }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
    .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(220px, auto); }
    .tile-voice { grid-column: span 4; grid-row: span 2; }
    .tile-hosting, .tile-flow { grid-column: span 2; }
    .tile-panel, .tile-secure { grid-column: span 3; }
}
.tile {
    position: relative; overflow: hidden; display: flex; flex-direction: column;
    padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
    box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile h3, .tile-title { font-size: 1.25rem; margin-bottom: .35rem; }
.tile p { color: var(--muted); margin: 0; }
.tile-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--grad-brand); color: #fff; margin-bottom: 18px; box-shadow: 0 8px 20px rgba(18, 121, 201, .3); }
.tile-icon .icon { width: 22px; height: 22px; }
.tile-icon-lg { width: 52px; height: 52px; border-radius: 12px; }
.tile-icon-lg .icon { width: 26px; height: 26px; }

/* Tile destacada oscura (voz) */
.tile-voice { background: var(--ink-900); border-color: rgba(148, 190, 240, .14); color: var(--d-text); }
.tile-voice h3 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.tile-voice p { color: var(--d-muted); font-size: 1.05rem; }
.tile-voice::before { background: radial-gradient(500px circle at var(--sx, 50%) var(--sy, 50%), rgba(46, 144, 224, .25), transparent 45%); }
.tile-voice { background-image: radial-gradient(600px circle at 100% 100%, rgba(18, 181, 214, .2), transparent 50%), radial-gradient(500px circle at 0% 0%, rgba(18, 121, 201, .22), transparent 50%); }
.viz-chat { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 28px; }
.bubble { max-width: 78%; padding: .7rem 1rem; border-radius: 12px; font-size: .92rem; line-height: 1.4; opacity: 0; animation: pop .5s var(--ease) forwards; }
.bubble-in { align-self: flex-start; background: rgba(255, 255, 255, .07); border: 1px solid var(--d-line); color: #E2ECF8; border-bottom-left-radius: 4px; }
.bubble-out { align-self: flex-end; background: var(--grad-btn); color: #fff; border-bottom-right-radius: 4px; }
.bubble:nth-child(1) { animation-delay: .2s; } .bubble:nth-child(2) { animation-delay: .9s; } .bubble:nth-child(3) { animation-delay: 1.6s; } .bubble:nth-child(4) { animation-delay: 2.3s; }
.typing { display: inline-flex; gap: 4px; padding: .8rem 1rem; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.viz-status { margin-top: auto; display: grid; gap: 8px; padding-top: 16px; }
.viz-status div { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .8rem; color: var(--navy-800); padding: .55rem .7rem; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--line); }
.viz-status b { margin-left: auto; font-size: .68rem; color: var(--success); background: var(--success-bg); padding: 2px 6px; border-radius: 4px; }
.viz-status .viz-meter { padding: 0; height: 6px; background: var(--line); border: 0; overflow: hidden; }
.viz-meter i { display: block; height: 100%; width: 40%; background: var(--grad-brand); border-radius: 6px; animation: load 2.8s ease-in-out infinite; }
@keyframes load { 0% { width: 15%; } 50% { width: 92%; } 100% { width: 15%; } }

.viz-flow { margin-top: auto; padding-top: 20px; display: flex; align-items: center; gap: 6px; }
.viz-flow span { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-soft); border: 1px solid var(--line); color: var(--blue-600); flex-shrink: 0; }
.viz-flow span .icon { width: 20px; height: 20px; }
.viz-flow i { position: relative; flex: 1; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.viz-flow i::after { content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: var(--grad-brand); animation: travel 1.6s linear infinite; }
.viz-flow i:nth-of-type(2)::after { animation-delay: .8s; }
@keyframes travel { to { left: 100%; } }

.viz-icons { margin-top: auto; padding-top: 20px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.viz-icons span { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; background: var(--bg-soft); border: 1px solid var(--line); color: var(--blue-600); transition: transform .3s var(--ease), background-color .3s, color .3s; }
.viz-icons span .icon { width: 20px; height: 20px; }
.tile-panel:hover .viz-icons span { background: var(--blue-600); color: #fff; }
.tile-panel:hover .viz-icons span:nth-child(odd) { transform: translateY(-4px); }

.viz-shield { position: relative; margin: auto auto 0; margin-top: 18px; width: 96px; height: 96px; display: grid; place-items: center; color: var(--blue-600); }
.viz-shield .icon { width: 34px; height: 34px; position: relative; z-index: 1; }
.viz-shield .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(18, 121, 201, .25); animation: ripple 2.6s ease-out infinite; }
.viz-shield .r2 { animation-delay: 1.3s; }
@keyframes ripple { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }

/* Bento de la página de funcionalidades */
@media (min-width: 1024px) {
    .bento-features { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(260px, auto); }
    .bento-features .tile-wide { grid-column: span 2; }
    .bento-features .tile-tall { grid-row: span 2; }
}
.bento-features .tile:nth-child(1), .bento-features .tile:nth-child(6) { background: var(--ink-900); border-color: rgba(148, 190, 240, .14); color: var(--d-text); background-image: radial-gradient(500px circle at 100% 0%, rgba(18, 121, 201, .3), transparent 55%); }
.bento-features .tile:nth-child(1) .tile-title, .bento-features .tile:nth-child(6) .tile-title { color: #fff; }
.bento-features .tile:nth-child(1) p, .bento-features .tile:nth-child(6) p { color: var(--d-muted); }
.bento-features .tile:nth-child(1) .tag-list li, .bento-features .tile:nth-child(6) .tag-list li { background: rgba(255, 255, 255, .06); border-color: var(--d-line); color: #DCE8F7; }
.bento-features .tile-tall { background: linear-gradient(160deg, #EAF4FE, #E2F7FB); }
.viz-bigwave { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 18px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.viz-bigwave .voice-wave { height: 56px; }
.viz-bigwave .voice-wave i { background: linear-gradient(180deg, var(--cyan-500), var(--blue-600)); max-width: 5px; }
.hero-inner > *, .split > *, .bento > *, .faq-layout > *, .contact-layout > *, .auth-layout > * { min-width: 0; }
.tile-glow { position: absolute; width: 220px; height: 220px; right: -70px; bottom: -70px; border-radius: 50%; background: radial-gradient(circle, rgba(46, 144, 224, .25), transparent 70%); pointer-events: none; transition: transform .5s var(--ease); }
.tile:hover .tile-glow { transform: scale(1.4); }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 22px; }
.tag-list li { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .7rem; border-radius: 6px; font-size: .84rem; font-weight: 600; background: var(--bg-soft); border: 1px solid var(--line); color: var(--navy-800); }
.tag-list .icon { width: 14px; height: 14px; color: var(--blue-600); stroke-width: 2.6; }

/* ---------- Mini tiles (beneficios / valores / ejemplos) ---------- */
.tiles-6, .tiles-4, .tiles-3 { display: grid; gap: 16px; }
@media (min-width: 640px) { .tiles-6, .tiles-4, .tiles-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tiles-6, .tiles-3 { grid-template-columns: repeat(3, 1fr); } .tiles-4 { grid-template-columns: repeat(4, 1fr); } }
.mini-tile { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.mini-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mini-tile h3 { margin-bottom: .25rem; font-size: 1.15rem; }
.mini-tile p { margin: 0; color: var(--muted); font-size: .96rem; }
.mini-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--bg-tint); color: var(--blue-600); margin-bottom: 16px; transition: background-color .3s, color .3s, transform .3s var(--ease); }
.mini-icon .icon { width: 21px; height: 21px; }
.mini-tile:hover .mini-icon { background: var(--grad-brand); color: #fff; transform: rotate(-6deg) scale(1.05); }
.section-dark .mini-tile { background: var(--d-surface); border-color: var(--d-line); }
.section-dark .mini-tile p { color: var(--d-muted); }
.section-dark .mini-icon { background: rgba(46, 144, 224, .15); color: var(--cyan-400); }

/* ---------- Conectado ---------- */
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 1.6rem 0 2rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border-radius: 8px; background: var(--d-surface); border: 1px solid var(--d-line); color: #fff; font-weight: 600; font-size: .9rem; }
.chip .icon { width: 16px; height: 16px; color: var(--cyan-400); }
.chip-arrow { color: var(--d-muted); display: inline-flex; }
.chip-arrow .icon { width: 16px; height: 16px; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(3px); } }

.hub { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; margin: 0 auto; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-lines line { stroke: var(--blue-400); stroke-width: 1.5; stroke-dasharray: 4 6; opacity: .6; animation: dash 14s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -220; } }
.hub-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30%; aspect-ratio: 1; border-radius: 24px; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(46, 144, 224, .12), 0 0 0 22px rgba(46, 144, 224, .06), 0 0 80px rgba(46, 144, 224, .5); }
.hub-center img { width: 58%; }
.hub-node { position: absolute; translate: -50% -50%; display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .85rem; border-radius: 8px; background: rgba(12, 28, 54, .85); border: 1px solid rgba(148, 190, 240, .25); font-size: .85rem; font-weight: 650; color: #fff; white-space: nowrap; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: float 6s ease-in-out infinite; backdrop-filter: blur(6px); }
.hub-node .icon { width: 16px; height: 16px; color: var(--cyan-400); }
.n1 { left: 50%; top: 10%; } .n2 { left: 86%; top: 30%; animation-delay: -1s; } .n3 { left: 86%; top: 70%; animation-delay: -2s; }
.n4 { left: 50%; top: 90%; animation-delay: -3s; } .n5 { left: 14%; top: 70%; animation-delay: -4s; } .n6 { left: 14%; top: 30%; animation-delay: -5s; }

/* ---------- Pasos ---------- */
.steps, .step-grid { list-style: none; display: grid; gap: 16px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .step-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .step-grid { grid-template-columns: repeat(6, 1fr); } .step-grid .step-tile { grid-column: span 2; } .step-grid .step-tile:nth-child(4) { grid-column: 2 / span 2; } }
.step-tile { position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; display: flex; flex-direction: column; }
.step-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num { position: absolute; right: 18px; top: 6px; font-family: var(--font-display); font-size: 5rem; font-weight: 900; letter-spacing: -.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--line-strong); transition: -webkit-text-stroke-color .3s; pointer-events: none; }
.step-tile:hover .step-num { -webkit-text-stroke-color: var(--blue-400); }
.step-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: var(--grad-brand); color: #fff; margin-bottom: 40px; box-shadow: 0 8px 20px rgba(18, 121, 201, .3); }
.step-icon .icon { width: 22px; height: 22px; }
.step-tile h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.step-done { border-color: #BFE6D1; background: linear-gradient(180deg, #F3FBF6, #fff); }
.step-done .step-icon { background: var(--success); box-shadow: 0 8px 20px rgba(15, 122, 74, .25); }
.step-tile p { margin: 0; color: var(--muted); }

/* ---------- Testimonios / aviso editable ---------- */
.testimonial { padding: 28px; margin: 0; }
.testimonial blockquote { margin: 0 0 1.2rem; font-size: 1.02rem; color: var(--navy-800); }
.testimonial figcaption { display: flex; flex-direction: column; font-size: .9rem; color: var(--muted); }
.testimonial strong { color: var(--navy-900); }
.editable-note { display: flex; gap: 14px; padding: 18px 22px; border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--bg-soft); color: var(--muted); }
.editable-note .icon { color: var(--blue-600); margin-top: 3px; }
.editable-note p { margin: 0; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .faq-layout { grid-template-columns: .8fr 1.2fr; gap: 64px; } .faq-head { position: sticky; top: calc(var(--header-h) + 32px); } }
.faq { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.faq-item:hover { border-color: var(--line-strong); }
.faq-item[open] { border-color: var(--blue-400); box-shadow: 0 0 0 4px rgba(46, 144, 224, .08); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 650; color: var(--navy-900); border-radius: var(--radius); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; background: var(--bg-tint); transition: background-color .25s, transform .25s var(--ease); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; background: var(--blue-600); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .25s var(--ease), background-color .25s; }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--blue-600); transform: rotate(180deg); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: #fff; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq-answer { padding: 0 20px 18px; color: var(--muted); }
.faq-answer p { margin: 0; }

/* ---------- CTA ---------- */
.cta-section { padding-top: 0; }
.section-soft + .cta-section, .section-dark + .cta-section { padding-top: clamp(72px, 10vw, 128px); }
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink-950); padding: clamp(40px, 7vw, 80px); display: grid; gap: 28px; align-items: center; border: 1px solid rgba(148, 190, 240, .14); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.3fr auto; } }
.cta-band .aurora { opacity: .5; }
.cta-band::before { background: radial-gradient(600px circle at var(--sx, 50%) var(--sy, 50%), rgba(46, 144, 224, .3), transparent 45%); }
.cta-content, .cta-actions { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: .4rem; }
.cta-band p { color: var(--d-muted); margin: 0; font-size: 1.15rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-950); color: #9FB4D0; padding: 72px 0 28px; font-size: .94rem; border-top: 1px solid var(--d-line); position: relative; overflow: hidden; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(2, 1fr); position: relative; }
.footer-brand { grid-column: 1 / -1; max-width: 320px; }
.footer-brand img { width: 142px; margin-bottom: 16px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } .footer-brand { grid-column: auto; } }
.footer-col h2 { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 14px; font-weight: 600; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #9FB4D0; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-mail { display: inline-flex; align-items: center; gap: .4rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--d-line); font-size: .86rem; }
.footer-bottom p { margin: 0; }
.footer-tagline { color: #6F87A8; }
.site-footer :focus-visible { outline-color: var(--cyan-400); }

/* ---------- Hero de páginas interiores ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--ink-950); text-align: center; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + clamp(56px, 8vw, 96px)) 0 clamp(56px, 8vw, 96px); }
.page-hero-inner { position: relative; z-index: 1; max-width: 860px; }
.page-hero h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); letter-spacing: -.045em; font-weight: 850; }
.page-hero .lead { max-width: 620px; margin: 0 auto; }

/* ---------- Status box (Sobre) ---------- */
.status-box { padding: clamp(28px, 5vw, 48px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); text-align: center; box-shadow: var(--shadow-sm); }
.status-box p { color: var(--muted); max-width: 560px; margin: 0 auto 1.6rem; font-size: 1.05rem; }
.about-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 380px; margin: 0 auto; width: 100%; }
.about-visual img { position: relative; z-index: 1; width: 45%; filter: drop-shadow(0 18px 30px rgba(18, 121, 201, .3)); animation: float 6s ease-in-out infinite; }
.ring { position: absolute; border-radius: 24%; border: 2px dashed rgba(18, 121, 201, .25); animation: rotate 40s linear infinite; }
.ring-1 { inset: 12%; }
.ring-2 { inset: 0; border-style: solid; border-color: rgba(18, 181, 214, .15); background: radial-gradient(circle, #EAF4FE 0%, transparent 70%); animation-direction: reverse; }
@keyframes rotate { to { transform: rotate(360deg); } }

/* ---------- Precios ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--radius); background: var(--info-bg); color: var(--navy-800); border: 1px solid #CBE3F8; margin-bottom: 32px; }
.notice .icon { color: var(--blue-600); margin-top: 2px; }
.notice p { margin: 0; }
.notice-warning { background: var(--warning-bg); border-color: #F3DFA6; color: #5C3D00; }
.notice-warning .icon { color: var(--warning); }
/* ---------- Precios: selector compacto ---------- */
.page-hero-sm { padding-bottom: clamp(36px, 5vw, 56px); }
.page-hero-sm h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.pricing-wrap { max-width: 1040px; }
.pricing-section { padding-top: clamp(32px, 5vw, 48px); padding-bottom: clamp(48px, 7vw, 80px); }
.notice-sm { margin: 0 0 16px; padding: 10px 14px; font-size: .88rem; }
.notice-sm .icon { width: 17px; height: 17px; }
.notice-voice { background: #FFF9EB; border-color: #F3DFA6; color: #5C3D00; }
.notice-voice .icon { color: var(--warning); }

/* Facturación mensual / anual (sin JS se ve la mensual) */
.pricing:not(.is-annual) .when-annual { display: none; }
.pricing.is-annual .when-monthly { display: none; }

.tab-panel[hidden] { display: none; }
.tab-panel:focus-visible { outline-offset: 4px; }

/* Panel */
.picker { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.picker-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.type-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.type-tab {
    display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .9rem; border: 1px solid transparent; border-radius: 8px;
    background: transparent; color: var(--muted); font-weight: 650; font-size: .9rem; cursor: pointer; white-space: nowrap;
    transition: background-color .2s, color .2s, border-color .2s;
}
.type-tab .icon { width: 16px; height: 16px; }
.type-tab:hover { color: var(--navy-900); }
.type-tab[aria-selected="true"] { background: #fff; color: var(--navy-900); border-color: var(--line); box-shadow: 0 1px 2px rgba(11, 37, 69, .08); }
.type-tab[aria-selected="true"] .icon { color: var(--blue-600); }
.type-sep { width: 1px; align-self: stretch; margin: 6px 4px; background: var(--line-strong); flex-shrink: 0; }

.billing { display: inline-flex; padding: 3px; gap: 2px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.billing-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .75rem; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-weight: 650; font-size: .85rem; cursor: pointer; white-space: nowrap; }
.billing-btn[aria-pressed="true"] { background: var(--navy-900); color: #fff; }
.billing-save { font-size: .66rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: var(--success-bg); color: var(--success); }

.picker-body { padding: clamp(16px, 3vw, 24px); }
.cat-line { margin: 0 0 14px; color: var(--muted); font-size: .92rem; }

/* Botones de plan */
.plan-options { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); margin-bottom: 16px; }
.plan-opt {
    position: relative; display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 10px;
    border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.plan-opt:hover { border-color: var(--blue-400); }
.plan-opt[aria-selected="true"] { border-color: var(--blue-600); background: #F2F8FE; box-shadow: 0 0 0 3px rgba(46, 144, 224, .14); }
.plan-opt-name { font-weight: 700; color: var(--navy-900); font-size: .9rem; }
.plan-opt-price { font-size: .84rem; color: var(--muted); }
.plan-opt-price b { color: var(--navy-900); font-size: 1.02rem; }
.plan-opt-tag { position: absolute; top: -8px; right: 8px; padding: 1px 7px; border-radius: 5px; background: var(--grad-brand); color: #fff; font-size: .64rem; font-weight: 700; }

/* Detalle del plan */
.plan-detail { display: grid; gap: 20px; padding: clamp(16px, 2.5vw, 22px); border-radius: 12px; border: 1px solid var(--line); background: #fff; }
@media (min-width: 820px) { .plan-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; } }
.plan-detail.is-popular { border-color: #BFDDF7; background: linear-gradient(180deg, #F6FAFF, #fff 60%); }
.pd-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pd-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pd-title h3 { margin: 0; font-size: 1.3rem; }
.pd-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 5px; background: var(--grad-brand); color: #fff; font-size: .7rem; font-weight: 700; }
.pd-badge .icon { width: 12px; height: 12px; }
.pd-desc { margin: -4px 0 0; color: var(--muted); font-size: .92rem; }
.pd-price p { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 4px; }
.pd-price .amount { font-family: var(--font-display); font-size: 2.2rem; font-weight: 850; letter-spacing: -.04em; color: var(--navy-900); line-height: 1.1; }
.pd-price .per { color: var(--muted); font-weight: 600; }
.pd-price .billed { flex-basis: 100%; font-size: .8rem; color: var(--success); font-weight: 650; }
.pd-price .vat { font-size: .76rem; color: var(--muted); }
.pd-minutes { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; background: var(--bg-tint); font-size: .86rem; color: var(--navy-800); }
.pd-minutes .icon { width: 16px; height: 16px; color: var(--blue-600); }
.pd-minutes strong { color: var(--navy-900); }
.pd-includes { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.pd-includes li { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--navy-800); font-size: .78rem; font-weight: 650; }
.pd-includes .icon { width: 13px; height: 13px; color: var(--blue-600); }
.pd-savings { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: .82rem; font-weight: 600; color: var(--success); }
.pd-savings .icon { width: 15px; height: 15px; margin-top: 1px; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }

.pd-side { display: grid; gap: 14px; align-content: start; min-width: 0; }
.pd-limits { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.pd-limits div { display: inline-flex; gap: 6px; align-items: baseline; padding: 5px 10px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--line); font-size: .82rem; }
.pd-limits dt { color: var(--muted); }
.pd-limits dd { margin: 0; font-weight: 700; color: var(--navy-900); }
.pd-features { list-style: none; display: grid; gap: 6px 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); font-size: .88rem; }
.pd-features li, .plan-features li { display: flex; gap: 6px; align-items: flex-start; line-height: 1.4; }
.pd-features .icon, .plan-features .icon { width: 15px; height: 15px; margin-top: 3px; color: var(--blue-600); stroke-width: 2.6; }
.pd-features sup, .plan-features sup, .extras sup { color: var(--blue-600); font-weight: 700; cursor: help; }

/* Desplegables (extras, comparativas) */
.fold { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; font-weight: 650; font-size: .92rem; color: var(--navy-900); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary > span { display: inline-flex; align-items: center; gap: .5rem; }
.fold > summary .icon { width: 16px; height: 16px; color: var(--blue-600); }
.fold > summary::after { content: "+"; font-size: 1.2rem; line-height: 1; color: var(--blue-600); }
.fold[open] > summary::after { content: "−"; }
.fold-body { padding: 0 16px 16px; }
.extras ul { list-style: none; display: grid; gap: 0 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.extras li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line-strong); font-size: .88rem; }
.extras li strong { color: var(--navy-900); white-space: nowrap; }
.extras-note, .footnote { margin: 10px 0 0; font-size: .8rem; color: var(--muted); }
.footnote sup { color: var(--blue-600); font-weight: 700; }

.compare-folds { display: grid; gap: 10px; margin-top: 20px; }
.compare-folds .fold { margin: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.table-scroll:focus-visible { outline: 2px solid var(--blue-500); }
.ctable, .stable { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .86rem; }
.ctable { min-width: 760px; }
.stable { min-width: 420px; }
.ctable th, .ctable td, .stable th, .stable td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ctable tbody tr:last-child > *, .stable tbody tr:last-child > * { border-bottom: 0; }
.ctable thead th, .stable thead th { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg-soft); }
.ctable tbody th, .stable tbody th { font-weight: 650; color: var(--navy-900); }
.ctable th:first-child, .ctable td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: 1px 0 0 var(--line); }
.ctable thead th:first-child { background: var(--bg-soft); }
.ctable .is-popular { background: #F1F8FF; }
.ctable thead .is-popular { background: #E3F1FD; color: var(--blue-700); }
.dash { color: var(--line-strong); }
.summary-stack { display: grid; gap: 14px; }
.summary-stack h4 { display: flex; align-items: center; gap: .4rem; margin: 0 0 8px; font-size: .95rem; }
.summary-stack h4 .icon { width: 16px; height: 16px; color: var(--blue-600); }

.legal-notes { list-style: none; display: grid; gap: 4px 20px; margin: 20px 0 0; padding: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.legal-notes li { display: flex; gap: 6px; align-items: flex-start; font-size: .8rem; color: var(--muted); }
.legal-notes .icon { width: 14px; height: 14px; color: var(--muted); margin-top: 2px; }

.minute-list { list-style: none; display: grid; gap: 4px; margin: 10px 0; }
.minute-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; border-radius: 6px; background: var(--bg-soft); font-size: .88rem; }
.minute-list strong { color: var(--navy-900); }

@media (max-width: 600px) {
    .picker-top { flex-direction: column; align-items: stretch; }
    .billing { align-self: flex-start; }
    .plan-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Plan seleccionado (registro) */
.selected-plan { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 14px; margin-bottom: 20px; border-radius: var(--radius); background: linear-gradient(135deg, #EAF4FE, #E4F7FB); border: 1px solid #CBE3F8; }
.selected-plan-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; }
.selected-plan-icon .icon { width: 19px; height: 19px; }
.selected-plan-info { display: grid; line-height: 1.3; min-width: 0; }
.selected-plan-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-700); }
.selected-plan-info strong { color: var(--navy-900); }
.selected-plan-info span:last-child { font-size: .82rem; color: var(--muted); }
.selected-plan-actions { display: grid; gap: 2px; text-align: right; font-size: .84rem; font-weight: 600; }
.selected-plan-note { grid-column: 1 / -1; display: flex; gap: 6px; align-items: flex-start; margin: 8px 0 0; padding-top: 10px; border-top: 1px solid #CBE3F8; font-size: .8rem; color: var(--navy-800); }
.selected-plan-note .icon { width: 15px; height: 15px; color: var(--blue-600); margin-top: 1px; }

/* ---------- Texto legal ---------- */
.prose { color: var(--text); }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; letter-spacing: -.02em; }
.prose h2:first-of-type { margin-top: 1rem; }
.prose ul { padding-left: 1.3rem; margin: 0 0 1rem; display: grid; gap: .4rem; }
.legal-card { padding: clamp(24px, 5vw, 48px); }
.legal-updated { color: var(--muted); font-size: .9rem; font-family: var(--mono); }
.legal-data { list-style: none !important; padding: 16px 20px !important; background: var(--bg-soft); border-radius: var(--radius-sm); }
.check-list { list-style: none; display: grid; gap: .65rem; margin: 1.2rem 0 1.6rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; }
.check-list .icon { width: 20px; height: 20px; padding: 3px; border-radius: 6px; background: var(--bg-tint); color: var(--blue-600); margin-top: 2px; stroke-width: 2.6; }
.check-list-sm { gap: .5rem; margin: 1rem 0 0; font-size: .95rem; }

/* ---------- Tarjetas genéricas ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.icon-tile { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: var(--grad-brand); color: #fff; margin-bottom: 16px; box-shadow: 0 8px 20px rgba(18, 121, 201, .25); }
.icon-tile .icon { width: 22px; height: 22px; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field > label, .label-row label { font-weight: 650; color: var(--navy-900); font-size: .9rem; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.small-link { font-size: .86rem; font-weight: 600; }
.req { color: var(--danger); }
.optional { color: var(--muted); font-weight: 500; font-size: .84rem; }
.input { width: 100%; padding: .8rem .95rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong); background: #fff; color: var(--navy-900); font-size: 1rem; line-height: 1.4; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.input::placeholder { color: #8796AC; }
.input:hover { border-color: #A9C2DE; }
.input:focus { outline: none; border-color: var(--blue-500); box-shadow: var(--ring); }
.input[aria-invalid="true"] { border-color: var(--danger); background: #FFFBFA; }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .2); }
textarea.input { resize: vertical; min-height: 140px; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; 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='%23556580' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px; }
.input-group { position: relative; }
.input-group .input { padding-right: 3.2rem; }
.input-addon { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; border-radius: 6px; display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.input-addon:hover { color: var(--blue-600); background: var(--bg-tint); }
.input-addon .when-visible { display: none; }
.input-addon[aria-pressed="true"] .when-hidden { display: none; }
.input-addon[aria-pressed="true"] .when-visible { display: inline; }
.field-help { margin: 0; font-size: .84rem; color: var(--muted); }
.field-error { margin: 0; font-size: .86rem; font-weight: 600; color: var(--danger); }
.field-error:empty { display: none; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; }
.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue-600); flex-shrink: 0; cursor: pointer; }
.checkbox label { font-size: .92rem; font-weight: 500; color: var(--text); cursor: pointer; }
.checkbox input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 2px; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.strength { height: 5px; border-radius: 4px; background: var(--line); overflow: hidden; }
.strength span { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--danger); transition: width .25s var(--ease), background-color .25s; }
.strength[data-level="1"] span { width: 25%; background: var(--danger); }
.strength[data-level="2"] span { width: 50%; background: #D97706; }
.strength[data-level="3"] span { width: 75%; background: var(--blue-600); }
.strength[data-level="4"] span { width: 100%; background: var(--success); }

/* Alertas */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; border: 1px solid transparent; animation: slideIn .3s var(--ease); }
.alert p { margin: 0; flex: 1; font-weight: 550; font-size: .94rem; }
.alert-icon { margin-top: 1px; }
.alert-success { background: var(--success-bg); color: #0B5C38; border-color: #BFE6D1; }
.alert-error { background: var(--danger-bg); color: #8E1C13; border-color: #F6C9C4; }
.alert-info { background: var(--info-bg); color: var(--navy-800); border-color: #CBE3F8; }
.alert-close { border: 0; background: none; color: inherit; opacity: .7; cursor: pointer; padding: 2px; border-radius: 4px; display: grid; place-items: center; }
.alert-close:hover { opacity: 1; }
.alert-close .icon { width: 18px; height: 18px; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-6px); } }

/* Contacto */
.contact-layout { display: grid; gap: 16px; align-items: start; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 1.6fr 1fr; } }
.form-card { padding: clamp(24px, 4vw, 40px); }
.form-title { font-size: 1.5rem; margin-bottom: .3rem; }
.form-subtitle { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.contact-aside { display: grid; gap: 16px; }
.info-card { padding: 24px; }
.info-card h2 { font-size: 1.1rem; letter-spacing: -.02em; }
.info-card p { color: var(--muted); font-size: .95rem; margin-bottom: .6rem; }
.info-card .icon-tile { width: 40px; height: 40px; margin-bottom: 12px; }
.info-card .icon-tile .icon { width: 19px; height: 19px; }

/* ---------- Autenticación ---------- */
/* Páginas independientes a pantalla completa (layouts/auth.php) */
.auth-body { background: #fff; }
.auth-shell { display: grid; min-height: 100vh; min-height: 100dvh; }
@media (min-width: 960px) { .auth-shell { grid-template-columns: minmax(420px, 1fr) minmax(480px, 1fr); } }

/* Panel de marca (izquierda) */
.auth-brand { position: relative; overflow: hidden; display: none; flex-direction: column; justify-content: space-between; gap: 40px; padding: 40px clamp(32px, 4vw, 64px); background: var(--ink-950); color: var(--d-text); }
@media (min-width: 960px) { .auth-brand { display: flex; position: sticky; top: 0; height: 100vh; height: 100dvh; } }
.auth-brand > *:not(.hero-bg) { position: relative; z-index: 1; }
.auth-brand-logo { display: inline-flex; align-self: flex-start; }
.auth-brand-logo img { width: 176px; }
.auth-brand-body { max-width: 460px; }
.auth-orb { position: relative; width: 132px; height: 132px; display: grid; place-items: center; margin: 40px 0 76px 40px; }
.auth-orb img { position: relative; z-index: 1; width: 64px; filter: drop-shadow(0 0 24px rgba(45, 212, 240, .6)); animation: float 6s ease-in-out infinite; }
.orb-ring { position: absolute; inset: 0; border-radius: 28px; border: 1px solid rgba(90, 169, 255, .35); background: rgba(46, 144, 224, .06); animation: orb 6s ease-in-out infinite; }
.orb-ring.r2 { inset: -18px; border-radius: 36px; opacity: .6; animation-delay: -2s; }
.orb-ring.r3 { inset: -38px; border-radius: 46px; opacity: .3; animation-delay: -4s; }
@keyframes orb { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(8deg) scale(1.04); } }
.auth-brand-title { font-family: var(--font-display); font-size: clamp(2.2rem, 3.4vw, 3.1rem); font-weight: 850; line-height: 1.04; letter-spacing: -.045em; color: #fff; margin-bottom: 32px; }
.auth-brand-title .text-gradient { background-image: var(--grad-text); }
.auth-brand-list { list-style: none; display: grid; gap: 10px; }
.auth-brand-list li { display: flex; align-items: center; gap: 12px; color: #DCEAF7; font-weight: 600; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--d-line); backdrop-filter: blur(6px); transition: transform .3s var(--ease), border-color .3s; }
.auth-brand-list li:hover { transform: translateX(6px); border-color: rgba(90, 169, 255, .4); }
.auth-brand-list li span { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; flex-shrink: 0; }
.auth-brand-list .icon { width: 17px; height: 17px; }
.auth-brand-foot { margin: 0; font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: #6F87A8; }

/* Formulario (derecha) */
.auth-main { position: relative; display: flex; flex-direction: column; padding: 24px clamp(20px, 5vw, 64px); background: #fff; }
.auth-main::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(18, 121, 201, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 121, 201, .045) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000, transparent 60%); mask-image: radial-gradient(ellipse at 70% 0%, #000, transparent 60%); }
.auth-main > * { position: relative; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.auth-mobile-logo img { width: 132px; }
@media (min-width: 960px) { .auth-mobile-logo { visibility: hidden; } }
.auth-back { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 600; color: var(--muted); text-decoration: none; padding: .45rem .8rem; border-radius: 8px; border: 1px solid var(--line); transition: color .2s, border-color .2s, background-color .2s; }
.auth-back:hover { color: var(--blue-700); border-color: var(--blue-400); background: var(--bg-soft); }
.auth-back .icon { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.auth-back:hover .icon { transform: rotate(180deg) translateX(3px); }
.icon-flip { transform: rotate(180deg); }
.auth-form-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: clamp(32px, 6vh, 64px) 0; }
.auth-panel { width: 100%; max-width: 440px; animation: pop .5s var(--ease) both; }
.auth-panel h1 { font-size: clamp(2rem, 3.6vw, 2.6rem); letter-spacing: -.04em; margin-bottom: .4rem; }
.auth-subtitle { color: var(--muted); margin-bottom: 1.8rem; }
.auth-footer { text-align: center; margin: 1.5rem 0 0; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 1.6rem 0 1rem; color: var(--muted); font-size: .86rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-legal { margin: 0; text-align: center; font-size: .82rem; color: var(--muted); }
.auth-legal a { color: var(--muted); }
.auth-legal a:hover { color: var(--blue-700); }

/* ---------- Errores ---------- */
.error-page { min-height: 60vh; display: flex; align-items: center; }
.error-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.error-inner img { margin-bottom: 12px; animation: float 6s ease-in-out infinite; }
.error-code { font-family: var(--font-display); font-size: clamp(4rem, 12vw, 7rem); font-weight: 900; letter-spacing: -.06em; line-height: 1; margin: 0 0 .3rem; background: var(--grad-text-dark); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-inner .hero-actions { justify-content: center; }

/* ---------- Panel privado ---------- */
.app-body { background: #F3F6FB; }
.app-shell { display: grid; min-height: 100vh; min-height: 100dvh; }
@media (min-width: 1024px) { .app-shell { grid-template-columns: 260px minmax(0, 1fr); } }

/* Barra lateral */
.app-sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 130; width: 272px; max-width: 86vw;
    display: flex; flex-direction: column; gap: 8px; padding: 18px 14px 14px;
    background: var(--ink-950); color: var(--d-text); border-right: 1px solid var(--d-line);
    transform: translateX(-100%); transition: transform .28s var(--ease); overflow: hidden;
}
.app-sidebar::before { content: ""; position: absolute; width: 300px; height: 300px; left: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(18, 121, 201, .35), transparent 65%); pointer-events: none; }
.app-sidebar > * { position: relative; }
.sidebar-open .app-sidebar { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .4); }
@media (min-width: 1024px) { .app-sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; width: auto; max-width: none; transform: none; } }
.sb-top { padding: 4px 8px 14px; }
.sb-logo { display: inline-flex; }
.sb-logo img { width: 132px; }
.sb-nav { flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; }
.sb-list { list-style: none; display: grid; gap: 2px; }
.sb-heading { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: #5F7697; font-weight: 600; margin: 20px 10px 8px; }
.sb-link {
    display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px;
    padding: .58rem .7rem; border-radius: 8px; color: #B6C8E0; font-weight: 600; font-size: .9rem; text-decoration: none;
    transition: background-color .2s, color .2s;
}
.sb-link > span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-link .icon { width: 18px; height: 18px; }
a.sb-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sb-link.is-active { background: linear-gradient(90deg, rgba(46, 144, 224, .28), rgba(46, 144, 224, .08)); color: #fff; box-shadow: inset 2px 0 0 var(--cyan-400); }
.sb-link.is-active .icon { color: var(--cyan-400); }
.sb-link.is-disabled { color: #7389A8; cursor: default; }
.sb-soon { font-size: .64rem; font-weight: 700; letter-spacing: .03em; padding: 2px 6px; border-radius: 4px; background: rgba(148, 190, 240, .1); color: #8CA3C2; }
.sb-user { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--d-line); }
.sb-user-info { display: grid; line-height: 1.25; min-width: 0; }
.sb-user-info strong { color: #fff; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-user-info span { color: var(--d-muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-user form { margin: 0; }
.sb-logout { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--d-muted); cursor: pointer; transition: background-color .2s, color .2s; }
.sb-logout:hover { background: rgba(248, 113, 113, .15); color: #FCA5A5; }
.sb-logout .icon { width: 18px; height: 18px; }
.app-sidebar :focus-visible { outline-color: var(--cyan-400); }

.app-overlay { position: fixed; inset: 0; z-index: 120; background: rgba(4, 11, 25, .55); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.sidebar-open .app-overlay { opacity: 1; visibility: visible; }
.sidebar-open { overflow: hidden; }
@media (min-width: 1024px) { .app-overlay { display: none; } .sidebar-open { overflow: auto; } }

/* Zona principal */
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
    position: sticky; top: 0; z-index: 90; display: flex; align-items: center; gap: 12px;
    height: 64px; padding: 0 clamp(16px, 3vw, 32px);
    background: rgba(243, 246, 251, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.app-menu-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--navy-900); cursor: pointer; flex-shrink: 0; }
.app-menu-btn .icon { width: 20px; height: 20px; }
.app-menu-btn .nav-toggle-close { display: none; }
.app-menu-btn[aria-expanded="true"] .nav-toggle-open { display: none; }
.app-menu-btn[aria-expanded="true"] .nav-toggle-close { display: inline-flex; }
@media (min-width: 1024px) { .app-menu-btn { display: none; } }
.app-topbar-title { display: grid; line-height: 1.2; min-width: 0; }
.app-crumb { font-size: .75rem; color: var(--muted); font-weight: 600; }
.app-topbar-title strong { color: var(--navy-900); font-size: 1rem; }
.app-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.app-topbar-actions form { margin: 0; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--danger); border-color: #F6C9C4; }
.icon-btn .icon { width: 18px; height: 18px; }
.app-hide-sm { display: none; }
@media (min-width: 640px) { .app-hide-sm { display: inline-flex; } }
@media (min-width: 1024px) { .app-hide-lg { display: none; } }
.avatar { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-weight: 700; font-size: .82rem; flex-shrink: 0; }
.avatar-sm { width: 34px; height: 34px; font-size: .78rem; }

.app-content { width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(16px, 3vw, 32px); display: grid; gap: clamp(20px, 3vw, 28px); align-content: start; }
.app-content > .alert { margin: 0; }

/* Bienvenida */
.dash-hero {
    position: relative; overflow: hidden; display: grid; gap: 20px; align-items: center;
    padding: clamp(24px, 4vw, 36px); border-radius: var(--radius-lg); background: var(--ink-950); color: var(--d-text);
}
@media (min-width: 860px) { .dash-hero { grid-template-columns: minmax(0, 1fr) auto; } }
.dash-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.dash-hero-bg .aurora { opacity: .5; }
.dash-hero-copy, .dash-hero-actions { position: relative; z-index: 1; min-width: 0; }
.dash-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .7rem; border-radius: 999px; font-size: .76rem; font-weight: 650; color: #CFE3FA; background: rgba(46, 144, 224, .14); border: 1px solid rgba(90, 169, 255, .28); margin-bottom: 14px; }
.dash-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: .35rem; }
.dash-hero p { margin: 0; color: var(--d-muted); font-size: 1rem; }
.dash-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Tarjetas de resumen */
.dash-stats { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1100px) { .dash-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-card { display: flex; align-items: center; gap: 12px; padding: 16px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.stat-card > div { display: grid; min-width: 0; line-height: 1.25; }
.stat-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-tint); color: var(--blue-600); flex-shrink: 0; }
.stat-icon.is-green { background: var(--success-bg); color: var(--success); }
.stat-icon .icon { width: 20px; height: 20px; }
.stat-label { font-size: .78rem; font-weight: 600; color: var(--muted); }
.stat-value { font-size: 1rem; font-weight: 750; color: var(--navy-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-card-lg .stat-value { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: -.03em; }
@media (max-width: 420px) { .dash-stats { grid-template-columns: minmax(0, 1fr); } }

/* Secciones */
.dash-section { display: grid; gap: 14px; min-width: 0; }
.dash-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dash-section-head h2, .panel-head h2, .panel-head h3 { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.08rem; letter-spacing: -.02em; }
.dash-section-head h2 .icon, .panel-head .icon { width: 19px; height: 19px; color: var(--blue-600); }
.dash-section-note { font-size: .82rem; color: var(--muted); }

.dash-admin { display: grid; gap: 14px; }
.dash-admin-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Módulos */
.dash-modules { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.module { display: flex; flex-direction: column; gap: 6px; padding: 18px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s var(--ease), box-shadow .25s; }
.module:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.module-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.module-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; flex-shrink: 0; }
.module-icon .icon { width: 20px; height: 20px; }
.soon-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; font-size: .7rem; font-weight: 700; color: var(--blue-700); background: var(--bg-tint); white-space: nowrap; }
.soon-pill .icon { width: 12px; height: 12px; }
.module h3 { font-size: 1rem; margin: 0; }
.module p { font-size: .88rem; color: var(--muted); margin: 0; }

/* Paneles */
.dash-columns { display: grid; gap: 14px; align-items: start; }
@media (min-width: 960px) { .dash-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; overflow: hidden; }
.panel-head { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-foot { display: flex; gap: 10px; align-items: flex-start; padding: 14px 20px; background: var(--bg-soft); border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.panel-foot .icon { width: 17px; height: 17px; color: var(--blue-600); margin-top: 2px; }
.panel-foot p { margin: 0; }

.kv { margin: 0; padding: 6px 20px; }
.kv div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-size: .85rem; font-weight: 600; }
.kv dd { margin: 0; color: var(--navy-900); font-weight: 600; font-size: .93rem; overflow-wrap: anywhere; }

.timeline-list { list-style: none; padding: 8px 20px 16px; margin: 0; }
.timeline-list li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 10px 0; }
.timeline-list li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 46px; bottom: -6px; width: 2px; background: var(--line); }
.tl-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-tint); color: var(--blue-600); }
.tl-icon .icon { width: 16px; height: 16px; }
.timeline-list li.is-warn .tl-icon { background: var(--warning-bg); color: var(--warning); }
.tl-body { display: grid; line-height: 1.3; min-width: 0; padding-top: 2px; }
.tl-body strong { color: var(--navy-900); font-size: .92rem; }
.tl-body span { color: var(--muted); font-size: .8rem; font-family: var(--mono); overflow-wrap: anywhere; }

/* Tabla responsive: en móvil cada fila es una tarjeta */
.rtable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.rtable th { text-align: left; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 20px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.rtable td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rtable tr:last-child td { border-bottom: 0; }
.rtable td strong { display: block; color: var(--navy-900); }
.rtable td a { display: block; overflow-wrap: anywhere; }
.rtable td small { display: block; color: var(--muted); }
.rtable .nowrap { white-space: nowrap; }
.tag { justify-self: start; display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--bg-tint); color: var(--blue-700); font-size: .78rem; font-weight: 650; }
.cell-message { color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 760px) {
    .rtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .rtable, .rtable tbody, .rtable tr, .rtable td { display: block; width: 100%; }
    .rtable tr { padding: 14px 20px; border-bottom: 1px solid var(--line); }
    .rtable tr:last-child { border-bottom: 0; }
    .rtable td { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; padding: 6px 0; border: 0; }
    .rtable td::before { content: attr(data-label); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: 2px; }
    .rtable .nowrap { white-space: normal; }
}

.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 28px 16px; color: var(--muted); }
.empty-state .icon { width: 30px; height: 30px; color: var(--blue-400); }
.empty-state p { margin: 0; }
.empty-state-lg { padding: 48px 20px; gap: 12px; }
.empty-state-lg h2 { margin: 0; font-size: 1.25rem; }
.empty-state-lg .icon { width: 40px; height: 40px; }
.empty-state-lg p { max-width: 420px; }

.stat-card-link { text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.stat-card-link:hover { border-color: var(--blue-400); box-shadow: var(--shadow-sm); transform: translateY(-2px); color: inherit; }

/* Mi plan */
.dash-hero-sm { padding: clamp(20px, 3vw, 28px); }
.dash-hero-sm h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.dash-chip .icon { width: 14px; height: 14px; }
.confirm-plan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-color: var(--blue-400); box-shadow: 0 0 0 4px rgba(46, 144, 224, .08); }
.confirm-plan-body { display: flex; align-items: center; gap: 14px; min-width: 0; }
.confirm-plan-body h2 { font-size: 1.08rem; margin: 0 0 .15rem; }
.confirm-plan-body p { margin: 0; color: var(--muted); font-size: .9rem; }
.confirm-plan-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.confirm-plan-actions form { margin: 0; }
.plan-layout { display: grid; gap: 14px; align-items: start; }
@media (min-width: 1024px) { .plan-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.plan-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 6px; background: var(--warning-bg); color: var(--warning); font-size: .76rem; font-weight: 700; white-space: nowrap; }
.status-pill .icon { width: 13px; height: 13px; }
.plan-features { padding: 4px 20px 18px; border-top: 1px solid var(--line); }
.plan-features h3 { font-size: .95rem; margin: 14px 0 10px; }
.plan-features ul { list-style: none; display: grid; gap: 7px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); font-size: .88rem; }
.plan-foot { justify-content: space-between; align-items: center; flex-wrap: wrap; }
.plan-foot form { margin: 0; }
.next-step { padding: 24px; background: var(--ink-950); color: var(--d-text); border-color: transparent; background-image: radial-gradient(400px circle at 100% 0%, rgba(18, 121, 201, .4), transparent 55%); }
.next-step h2 { color: #fff; font-size: 1.15rem; margin: 0 0 .4rem; }
.next-step p { color: var(--d-muted); font-size: .92rem; }
.next-step-icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; margin-bottom: 14px; }
.next-step-icon .icon { width: 21px; height: 21px; }
.next-list { list-style: none; display: grid; gap: 8px; margin-top: 14px; }
.next-list li { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: #DCE8F7; }
.next-list .icon { width: 17px; height: 17px; color: var(--live); }

/* Mi cuenta */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.page-head h1 { margin: 0 0 .2rem; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.page-head p { margin: 0; color: var(--muted); }
.page-head-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.page-head-nav a { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .75rem; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: .86rem; font-weight: 600; text-decoration: none; }
.page-head-nav a:hover { border-color: var(--blue-400); color: var(--blue-700); }
.page-head-nav .icon { width: 15px; height: 15px; color: var(--blue-600); }
.app-content:has(.account-grid) { max-width: 980px; }
.account-grid { display: grid; gap: 16px; }
.field { align-content: start; }
.account-summary { display: grid; order: -1; }
@media (min-width: 760px) {
    .account-summary { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: center; }
    .account-summary .account-id { border-bottom: 0; border-right: 1px solid var(--line); height: 100%; }
    .kv-compact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
    .kv-compact div:nth-last-child(2) { border-bottom: 0; }
}
.account-card { scroll-margin-top: 84px; }
.account-form { padding: 18px 20px 20px; gap: 14px; }
.form-intro { margin: 0; font-size: .9rem; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 16px; }
.form-hint { display: flex; gap: 6px; align-items: flex-start; margin: 0 auto 0 0; font-size: .82rem; color: var(--muted); }
.form-hint .icon { width: 15px; height: 15px; color: var(--blue-600); margin-top: 1px; }
.account-summary .kv { padding: 4px 20px; }
.account-id { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); min-width: 0; }
.account-id > div { display: grid; min-width: 0; line-height: 1.3; }
.account-id > div strong { color: var(--navy-900); font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-id > div span { color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-lg { width: 52px; height: 52px; border-radius: 13px; font-size: 1.05rem; }
a.avatar { text-decoration: none; }
a.avatar:hover { color: #fff; box-shadow: 0 0 0 3px rgba(46, 144, 224, .25); }
a.sb-user-info { text-decoration: none; }
a.sb-user-info:hover strong { color: var(--cyan-400); }
.kv-compact div { grid-template-columns: 110px minmax(0, 1fr); padding: 10px 0; }
.ok-text { color: var(--success); }
.warn-text { color: var(--warning); }
.danger-zone { border-color: #F6C9C4; }
.danger-zone .panel-head { background: #FFF6F5; border-bottom-color: #F6C9C4; }
.danger-zone .panel-head h2, .danger-zone .panel-head .icon { color: var(--danger); }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 6px 16px rgba(180, 35, 24, .25); }
.btn-danger:hover { background: #8E1C13; color: #fff; transform: translateY(-1px); }

/* ---------- Centro de seguridad ---------- */
.sec { display: grid; gap: clamp(16px, 2.4vw, 22px); }
.app-content:has(.sec) { max-width: 1320px; }
.sec .notice { margin: 0; }
.sec-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: var(--success-bg); color: var(--success); font-size: .8rem; font-weight: 700; }
.live-pill.is-paused { background: var(--warning-bg); color: var(--warning); }
.live-pill.is-paused .live-dot { background: var(--warning); animation: none; box-shadow: none; }
.sec-myip { font-size: .82rem; color: var(--muted); }
.sec-kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.sec-kpis .stat-value { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sec-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.sec-feed-actions { display: flex; gap: 6px; }

/* Gráfica */
.sec-chart-wrap { position: relative; padding: 16px 16px 8px; }
.sec-chart { width: 100%; height: 200px; }
.chart-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.chart-axis { stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-label { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart-bar { fill: var(--blue-600); }
.chart-bar.has-issues { fill: var(--blue-700); }
.chart-hit { fill: transparent; cursor: crosshair; }
.chart-hit.is-hover { fill: rgba(18, 121, 201, .08); }
.sec-tooltip { position: absolute; top: 8px; transform: translateX(-50%); display: grid; gap: 2px; padding: 8px 11px; border-radius: 8px; background: var(--ink-900); color: #fff; font-size: .8rem; line-height: 1.35; pointer-events: none; white-space: nowrap; box-shadow: var(--shadow); z-index: 3; }
.sec-tooltip strong { font-size: .84rem; }
.tip-warn { color: #FCD34D; }
.sec-fold { margin: 0 16px 16px; }

/* Tablas pequeñas */
.sec-mini-wrap { border: 0; border-radius: 0; }
.sec-mini td, .sec-mini th { padding: 10px 16px; }
.sec-mini td:last-child { text-align: right; }
.ip-link { padding: 0; border: 0; background: none; color: var(--blue-700); font: inherit; font-family: var(--mono); font-size: .86rem; font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.ip-link:hover { text-decoration-color: currentColor; }
.you-tag { margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: var(--bg-tint); color: var(--blue-700); font-size: .68rem; font-weight: 700; }
.mono { font-family: var(--mono); font-size: .82rem; }
.path-text { overflow-wrap: anywhere; }

/* Filtros */
.sec-filters { display: grid; gap: 10px 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); align-items: end; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.sec-filters .input { padding: .55rem .75rem; font-size: .9rem; }
.sec-filters label { font-size: .8rem; }
.sec-check { align-self: center; padding-top: 18px; }
.sec-check span { font-size: .88rem; }

/* Feed */
.sec-feed-scroll { border: 0; border-radius: 0; max-height: 520px; overflow: auto; }
.feed-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: .86rem; }
.feed-table thead th { position: sticky; top: 0; z-index: 1; text-align: left; padding: 9px 12px; background: #fff; border-bottom: 1px solid var(--line); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.feed-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.feed-table tr.is-new { animation: rowIn 1.6s var(--ease); }
.feed-table tr.is-flagged td { background: #FFFBEB; }
.feed-table tr.is-blocked td { background: #FEF2F2; }
@keyframes rowIn { from { background: #E3F1FD; } }
.feed-table .path { max-width: 420px; }
.path-user { display: block; font-size: .74rem; color: var(--muted); }
.method { font-weight: 700; }
.m-post { color: #7C3AED; }
.m-get { color: var(--blue-700); }
.st { display: inline-block; padding: 1px 7px; border-radius: 5px; font-family: var(--mono); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.st-2 { background: var(--success-bg); color: var(--success); }
.st-3 { background: var(--bg-tint); color: var(--blue-700); }
.st-4 { background: var(--warning-bg); color: var(--warning); }
.st-5, .st-blocked { background: var(--danger-bg); color: var(--danger); }
.flags { display: flex; flex-wrap: wrap; gap: 4px; }
.flag { padding: 1px 6px; border-radius: 4px; font-size: .7rem; font-weight: 700; background: var(--danger-bg); color: var(--danger); white-space: nowrap; }
.flag-no-ua { background: var(--bg-soft); color: var(--muted); }
.sec-feed-scroll .empty-state { flex-direction: row; justify-content: center; padding: 24px; }
.sec-feed-scroll .empty-state .icon { width: 20px; height: 20px; }

/* Bloqueos */
.sec-block-form { display: grid; gap: 12px 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); align-items: end; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.sec-block-form .btn { justify-self: start; }
.sec-block-form .input { padding: .6rem .8rem; }
@media (min-width: 900px) { .sec-block-form { grid-template-columns: 1fr 180px 1.4fr auto; } }
.sec .rtable form { margin: 0; }
.rtable td code, .rtable td > span { justify-self: start; }
.sec-rules { list-style: none; display: grid; gap: 0; margin: 0; padding: 6px 20px; }
.sec-rules li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.sec-rules li:last-child { border-bottom: 0; }
.sec-rules strong { color: var(--navy-900); }
.sec-rules span { color: var(--muted); }

/* Barras de planes elegidos (admin) */
.bar-list { list-style: none; display: grid; gap: 10px; padding: 16px 20px; margin: 0; }
.bar-list li { display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr) 32px; align-items: center; gap: 12px; font-size: .88rem; }
.bar-label { color: var(--navy-900); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-list strong { text-align: right; color: var(--navy-900); }
.bar-track meter { width: 100%; height: 10px; display: block; }
.bar-track meter::-webkit-meter-bar { background: var(--bg-tint); border: 0; border-radius: 6px; height: 10px; }
.bar-track meter::-webkit-meter-optimum-value { background: var(--grad-brand); border-radius: 6px; }
.bar-track meter::-moz-meter-bar { background: linear-gradient(135deg, #1279C9, #12B5D6); border-radius: 6px; }

/* ---------- Aparición al hacer scroll ---------- */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); }
.reveal.is-pending { opacity: 0; transform: translateY(28px) scale(.98); filter: blur(6px); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal.is-pending { opacity: 1; transform: none; filter: none; }
    .mockup { transform: none; }
    .bubble { opacity: 1; }
    .marquee-track { animation: none; }
}

@media print { .site-header, .site-footer, .cta-section, .marquee { display: none; } }
