/* ─── Variables ─────────────────────────────────────── */
:root {
    --navy:       #1c396c;
    --blue:       #456fb5;
    --blue-light: #6b94d3;
    --blue-pale:  #e8eef8;
    --gray:       #d8d8da;
    --white:      #ffffff;
    --dark:       #0d1f3c;
    --bg-light:   #f4f7fb;
    --text:       #1a2236;
    --muted:      #64748b;
    --border:     #e2e8f0;
    --green:      #10b981;

    --font:       'Montserrat', sans-serif;
    --r:          12px;
    --r-lg:       20px;
    --shadow:     0 4px 24px rgba(28,57,108,.08);
    --shadow-lg:  0 12px 48px rgba(28,57,108,.14);
    --ease:       all .3s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font); }

/* ─── Utilities ─────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-header { text-align: center; margin-bottom: 64px; }

.label {
    display: inline-block;
    font-size: 11px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--blue);
    background: rgba(69,111,181,.1);
    padding: 6px 16px; border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px,4vw,42px);
    font-weight: 700; color: var(--navy); line-height: 1.2;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 18px; color: var(--muted);
    max-width: 620px; margin: 0 auto; line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 8px;
    font-size: 15px; font-weight: 600;
    cursor: pointer; border: none;
    transition: var(--ease); text-decoration: none;
}
.btn-lg { padding: 16px 36px; font-size: 16px; }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover {
    background: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(69,111,181,.35);
}

.btn-ghost {
    background: transparent; color: #fff;
    border: 2px solid rgba(255,255,255,.4);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }

.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }

/* Fade-up animation */
.fu { opacity: 0; transform: translateY(32px); transition: opacity .65s ease, transform .65s ease; }
.fu.vis { opacity: 1; transform: none; }

/* ─── Navbar ─────────────────────────────────────────── */
#nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 20px 0; transition: var(--ease);
}
.nav-inner { position: relative; }
#nav.scrolled {
    background: var(--navy); padding: 14px 0;
    box-shadow: 0 4px 24px rgba(0,0,0,.18);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 38px; width: auto; }

/* Wrapper de nav-links + nav-actions: invisible en desktop (display:contents
   deja a sus hijos como flex items directos de .nav-inner); en mobile se
   convierte en el panel desplegable único (ver media query 768px). */
.nav-menu { display: contents; }

.nav-links {
    display: flex; align-items: center; gap: 4px;
}
.nav-links a {
    color: rgba(255,255,255,.82); font-size: 14px; font-weight: 500;
    padding: 8px 14px; border-radius: 6px; transition: var(--ease);
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.1); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-login {
    color: rgba(255,255,255,.82); font-size: 14px; font-weight: 500;
    padding: 8px 14px; border-radius: 6px; transition: var(--ease);
}
.nav-login:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-demo {
    background: var(--blue); color: #fff !important;
    padding: 10px 20px !important; border-radius: 8px !important;
    font-weight: 600 !important; font-size: 14px;
}
.nav-demo:hover { background: #3a62a8 !important; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 4px; background: none; border: none;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: #fff; border-radius: 2px; transition: var(--ease);
}

/* ─── Hero ───────────────────────────────────────────── */
#hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark) 0%, var(--navy) 55%, #1e4080 100%);
    position: relative; display: flex; align-items: center; overflow: hidden;
}
.hero-dots {
    position: absolute; inset: 0; opacity: .055;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.9) 1px, transparent 0);
    background-size: 38px 38px;
}
.hero-glow {
    position: absolute; pointer-events: none;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(69,111,181,.22) 0%, transparent 70%);
    top: 50%; left: 45%; transform: translate(-50%,-50%);
}
.hero-glow2 {
    position: absolute; pointer-events: none;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(107,148,211,.14) 0%, transparent 70%);
    top: 15%; right: 8%;
}

.hero-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 72px; align-items: center;
    padding: 124px 0 80px; position: relative; z-index: 2;
}
.hero-grid.solo {
    grid-template-columns: 1fr; max-width: 780px; margin: 0 auto; text-align: center;
}
.hero-grid.solo .hero-ctas { justify-content: center; }
.hero-grid.solo .hero-stats { justify-content: center; }
.hero-grid.solo .hero-sub { margin-left: auto; margin-right: auto; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.82); font-size: 13px; font-weight: 500;
    padding: 8px 16px; border-radius: 100px; margin-bottom: 24px;
    backdrop-filter: blur(10px);
}
.badge-dot {
    width: 8px; height: 8px; background: var(--green);
    border-radius: 50%; animation: blink 2s infinite;
}
@keyframes blink {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .45; transform: scale(.75); }
}

.hero-h1 {
    font-size: clamp(34px,5vw,58px); font-weight: 700;
    color: #fff; line-height: 1.14; margin-bottom: 24px;
}
.hero-h1 .accent { color: var(--blue-light); }

.hero-sub {
    font-size: 18px; color: rgba(255,255,255,.68);
    line-height: 1.72; margin-bottom: 40px; max-width: 510px;
}

.hero-ctas { display: flex; align-items: center; gap: 16px; margin-bottom: 52px; flex-wrap: wrap; }

.hero-stats {
    display: flex; gap: 32px;
    padding-top: 32px; border-top: 1px solid rgba(255,255,255,.1);
}
.stat-val {
    font-size: 28px; font-weight: 800; color: #fff; line-height: 1;
}
.stat-lbl {
    font-size: 11px; font-weight: 500; letter-spacing: .5px;
    color: rgba(255,255,255,.48); margin-top: 4px;
}

/* Browser mockup */
.browser {
    border-radius: 12px; overflow: hidden;
    background: #111d33;
    box-shadow: 0 32px 80px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.06);
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
.browser-bar {
    background: #0b1525; padding: 12px 16px;
    display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.browser-dots { display: flex; gap: 6px; }
.bd { width: 10px; height: 10px; border-radius: 50%; }
.bd:nth-child(1) { background: #ff5f57; }
.bd:nth-child(2) { background: #ffbd2e; }
.bd:nth-child(3) { background: #28c840; }
.browser-url {
    flex: 1; background: rgba(255,255,255,.055); border-radius: 6px;
    padding: 5px 14px; font-size: 12px; font-family: monospace;
    color: rgba(255,255,255,.35);
}
.browser-content img { width: 100%; display: block; }

.hero-chip {
    position: absolute; bottom: -18px; right: -18px;
    background: #fff; border-radius: 12px; padding: 12px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.22);
    display: flex; align-items: center; gap: 10px;
}
.chip-icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: linear-gradient(135deg, var(--green), #059669);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 15px;
}
.chip-icon.blue { background: linear-gradient(135deg, var(--blue), var(--navy)); }
.chip-text strong { display: block; font-size: 13px; font-weight: 700; color: var(--navy); }
.chip-text span  { font-size: 11px; color: var(--muted); }

.hero-visual { position: relative; }

/* ─── Home: Hub visual (hexágono + circuitos + órbita) ──────── */
.hub-visual { position: relative; width: 440px; height: 440px; margin: 0 auto; }
.hub-glow {
    position: absolute; inset: -40px; border-radius: 50%;
    background: radial-gradient(circle, rgba(107,148,211,.28) 0%, transparent 70%);
    animation: hubGlowPulse 6s ease-in-out infinite;
}
.hub-ring { position: absolute; border: 1.5px dashed rgba(255,255,255,.14); border-radius: 50%; }
.hub-ring-a { inset: 70px; }
.hub-ring-b { inset: 20px; }
.hub-core {
    position: absolute; top: 50%; left: 50%; z-index: 3;
    width: 112px; height: 100px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: linear-gradient(135deg, #ffffff, var(--blue-pale));
    border: 2px solid #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 44px rgba(107,148,211,.55);
    animation: hubPulse 4s ease-in-out infinite;
}
.hub-core img { width: 52px; height: 52px; object-fit: contain; }
.hub-orbit { position: absolute; inset: 0; }
.hub-orbit-a { animation: hubSpin 22s linear infinite; }
.hub-orbit-b { animation: hubSpin 30s linear infinite reverse; }
.hub-orbit-line {
    position: absolute; left: 50%; bottom: 50%; width: 1.5px;
    background: linear-gradient(transparent, rgba(107,148,211,.5));
    transform-origin: bottom center;
}
.hub-orbit-a .hub-orbit-line { height: 150px; }
.hub-orbit-b .hub-orbit-line { height: 200px; }
.hub-sat-pos { position: absolute; left: 50%; transform: translate(-50%, -50%); }
.hub-sat-pos-a { top: 70px; }
.hub-sat-pos-b { top: 20px; }
.hub-sat {
    display: flex; align-items: center; gap: 7px; white-space: nowrap;
    background: #fff; border: 1px solid var(--border); border-radius: 100px;
    padding: 8px 14px; font-size: 12.5px; font-weight: 700; color: var(--navy);
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.hub-sat i { color: var(--blue); }
.hub-sat-a { animation: hubSpin 22s linear infinite reverse; }
.hub-sat-b { animation: hubSpin 30s linear infinite; }
@keyframes hubSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes hubPulse {
    0%, 100% { transform: translate(-50%,-50%) scale(1); }
    50%      { transform: translate(-50%,-50%) scale(1.05); }
}
@keyframes hubGlowPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .hub-glow, .hub-core, .hub-orbit-a, .hub-orbit-b, .hub-sat-a, .hub-sat-b { animation: none; }
}

.hero-video-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; mix-blend-mode: screen; opacity: .6;
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    .hero-video-bg { display: none; }
}

/* ─── Trusted sectors ────────────────────────────────── */
#trusted { background: var(--bg-light); padding: 28px 0; border-bottom: 1px solid var(--border); }
.trusted-row {
    display: flex; align-items: center; gap: 40px;
    flex-wrap: wrap; justify-content: center;
}
.trusted-lbl { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .5px; white-space: nowrap; }
.sectors { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.sector {
    display: flex; align-items: center; gap: 7px;
    background: #fff; border: 1px solid var(--border); border-radius: 8px;
    padding: 7px 14px; font-size: 13px; font-weight: 500; color: var(--navy);
}
.sector i { color: var(--blue); font-size: 13px; }

/* ─── Problem ────────────────────────────────────────── */
#problema { padding: 100px 0; background: #fff; }
.prob-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.prob-card {
    background: #fafbff; border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 36px 30px;
    transition: var(--ease);
}
.prob-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(69,111,181,.2); }
.prob-icon {
    width: 54px; height: 54px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(28,57,108,.07), rgba(69,111,181,.12));
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--navy); margin-bottom: 20px;
}
.prob-title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.prob-text  { font-size: 15px; color: var(--muted); line-height: 1.65; }
.prob-tag {
    display: inline-block; margin-top: 16px;
    font-size: 11px; font-weight: 700; letter-spacing: .4px;
    background: rgba(239,68,68,.08); color: #dc2626;
    padding: 4px 10px; border-radius: 100px;
}

/* ─── Solution ───────────────────────────────────────── */
#solucion { padding: 100px 0; background: var(--bg-light); }
.sol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 80px; }
.sol-grid:last-child { margin-bottom: 0; }
.sol-grid.rev { direction: rtl; }
.sol-grid.rev > * { direction: ltr; }

.sol-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.sol-tag::before { content:''; width: 22px; height: 2px; background: var(--blue); display: block; }

.sol-title { font-size: clamp(22px,3vw,34px); font-weight: 700; color: var(--navy); line-height: 1.25; margin-bottom: 18px; }
.sol-text  { font-size: 16px; color: var(--muted); line-height: 1.75; margin-bottom: 30px; }

.bullets { display: flex; flex-direction: column; gap: 12px; }
.bullet  { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; font-weight: 500; color: var(--text); }
.bcheck {
    width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
    background: rgba(69,111,181,.12); color: var(--blue);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; margin-top: 2px;
}

.sol-img { position: relative; }
.sol-img img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; }
.sol-badge {
    position: absolute; background: #fff; border-radius: 12px;
    padding: 11px 16px; box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 9px;
    font-size: 13px; font-weight: 600; color: var(--navy); white-space: nowrap;
}
.sol-badge i { color: var(--blue); font-size: 15px; }
.sb-bottom { bottom: -16px; left: -16px; }
.sb-top    { top: -16px; right: -16px; }

/* ─── Features ───────────────────────────────────────── */
#funcionalidades { padding: 100px 0; background: #fff; }
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.feat-card {
    padding: 30px 26px; border: 1px solid var(--border);
    border-radius: var(--r-lg); transition: var(--ease); position: relative; overflow: hidden;
}
.feat-card::before {
    content:''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--navy), var(--blue));
    opacity: 0; transition: var(--ease);
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(69,111,181,.15); }
.feat-card:hover::before { opacity: 1; }
.feat-icon {
    width: 50px; height: 50px; border-radius: 12px;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fff; margin-bottom: 18px;
}
.feat-title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feat-text  { font-size: 14px; color: var(--muted); line-height: 1.65; }
.feat-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.feat-tag {
    font-size: 11px; font-weight: 600; color: var(--blue);
    background: rgba(69,111,181,.08); padding: 3px 10px; border-radius: 100px;
}

/* ─── Hardware ───────────────────────────────────────── */
#hardware { padding: 100px 0; background: var(--bg-light); }
.hw-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; margin-bottom: 60px; }
.hw-intro-text p { font-size: 16px; color: var(--muted); line-height: 1.75; margin-bottom: 16px; }
.hw-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.hw-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 26px 22px;
    text-align: center; transition: var(--ease);
}
.hw-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hw-icon {
    width: 60px; height: 60px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(28,57,108,.06), rgba(69,111,181,.1));
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: var(--navy); margin: 0 auto 14px;
}
.hw-compat {
    display: inline-block; margin-bottom: 8px;
    font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
    background: rgba(69,111,181,.1); color: var(--blue);
    padding: 3px 10px; border-radius: 100px;
}
.hw-name  { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.hw-desc  { font-size: 12px; color: var(--muted); line-height: 1.55; margin-bottom: 12px; }
.hw-price { font-size: 14px; font-weight: 700; color: var(--blue); }
.hw-promo-tag {
    display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: .8px;
    text-transform: uppercase; background: var(--green); color: #fff;
    padding: 3px 9px; border-radius: 100px; margin-bottom: 5px;
}
.hw-price-list {
    font-size: 11px; color: var(--muted); text-decoration: line-through; margin-top: 3px;
}
.hw-addon-note {
    font-size: 10px; color: var(--blue); font-weight: 600; margin-top: 6px;
    display: flex; align-items: center; gap: 4px;
}
.addons-wrap { margin-top: 52px; padding-top: 48px; border-top: 1px solid var(--border); }
.addons-header { text-align: center; margin-bottom: 32px; }
.addons-header h3 { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.addons-header p { font-size: 14px; color: var(--muted); max-width: 600px; margin: 0 auto; line-height: 1.6; }
.addons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.addon-group { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.addon-group-head {
    background: var(--navy); padding: 12px 20px;
    display: flex; align-items: center; gap: 9px;
}
.addon-group-head span { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.75); }
.addon-group-head i { color: rgba(255,255,255,.45); font-size: 13px; }
.addon-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 20px; border-bottom: 1px solid var(--border); gap: 16px;
}
.addon-row:last-child { border-bottom: none; }
.addon-row:nth-child(even) { background: var(--bg-light); }
.addon-name { font-size: 13px; font-weight: 600; color: var(--text); }
.addon-plans { font-size: 11px; color: var(--muted); margin-top: 2px; }
.addon-price { font-size: 13px; font-weight: 700; color: var(--blue); white-space: nowrap; }
.addon-footnote { font-size: 12px; color: var(--muted); margin-top: 20px; text-align: center; line-height: 1.75; }
@media (max-width: 768px) { .addons-grid { grid-template-columns: 1fr; } }

/* ─── Pricing ─────────────────────────────────────────── */
#precios { padding: 100px 0; background: #fff; }

.price-toggle {
    display: flex; align-items: center; justify-content: center;
    gap: 14px; margin-bottom: 48px;
}
.price-toggle-lbl { font-size: 15px; font-weight: 500; color: var(--muted); }
.price-toggle-lbl.on { font-weight: 600; color: var(--navy); }
.toggle {
    width: 50px; height: 26px; background: var(--navy);
    border-radius: 100px; cursor: pointer; position: relative;
    border: none; transition: var(--ease);
}
.toggle::after {
    content:''; position: absolute;
    width: 18px; height: 18px; background: #fff;
    border-radius: 50%; top: 4px; left: 4px; transition: var(--ease);
}
.toggle.ann::after { transform: translateX(24px); }
.save-badge {
    background: rgba(16,185,129,.12); color: #059669;
    font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 100px;
}

.price-grid {
    display: grid; grid-template-columns: repeat(4,1fr);
    gap: 18px; align-items: start;
}
.price-card {
    border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 30px 22px; background: #fff;
    position: relative; transition: var(--ease);
}
.price-card:hover:not(.pop) { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price-card.pop {
    border-color: var(--blue);
    background: linear-gradient(160deg, var(--navy) 0%, #1a4080 100%);
    color: #fff; transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(28,57,108,.28);
}
.pop-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--blue), var(--navy));
    color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 1.2px;
    text-transform: uppercase; padding: 5px 14px; border-radius: 100px; white-space: nowrap;
}
.plan-name {
    font-size: 12px; font-weight: 800; letter-spacing: 1.2px;
    text-transform: uppercase; color: var(--blue); margin-bottom: 8px;
}
.pop .plan-name { color: rgba(255,255,255,.65); }
.plan-price { font-size: 34px; font-weight: 800; color: var(--navy); line-height: 1; margin-bottom: 4px; }
.pop .plan-price { color: #fff; }
.plan-sub { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.pop .plan-sub { color: rgba(255,255,255,.55); }
.plan-desc {
    font-size: 13px; color: var(--muted); line-height: 1.55;
    padding: 16px 0; border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border); margin-bottom: 18px;
}
.pop .plan-desc { color: rgba(255,255,255,.65); border-color: rgba(255,255,255,.12); }
.plan-feats { display: flex; flex-direction: column; gap: 9px; margin-bottom: 26px; }
.plan-feat  { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--text); line-height: 1.4; }
.pop .plan-feat { color: rgba(255,255,255,.82); }
.pf-check { color: var(--green); font-size: 12px; margin-top: 2px; flex-shrink: 0; }
.pop .pf-check { color: #6ee7b7; }
.plan-btn {
    display: block; width: 100%; text-align: center;
    padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 600;
    cursor: pointer; border: 2px solid var(--blue);
    background: transparent; color: var(--blue); transition: var(--ease);
}
.plan-btn:hover { background: var(--blue); color: #fff; }
.pop .plan-btn { background: #fff; color: var(--navy); border-color: #fff; }
.pop .plan-btn:hover { background: var(--blue-light); color: #fff; border-color: var(--blue-light); }

.price-note {
    text-align: center; margin-top: 28px;
    font-size: 14px; color: var(--muted);
}
.price-note a { color: var(--blue); text-decoration: underline; }

/* ─── Why ─────────────────────────────────────────────── */
#diferenciacion { padding: 100px 0; background: var(--bg-light); }
.diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.reasons { display: flex; flex-direction: column; gap: 22px; }
.reason { display: flex; gap: 16px; align-items: flex-start; }
.reason-num {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--navy); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 800; flex-shrink: 0;
}
.reason-body strong { display: block; font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.reason-body p { font-size: 14px; color: var(--muted); line-height: 1.6; }

.comp-table {
    background: #fff; border-radius: var(--r-lg);
    border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-lg);
}
.comp-head {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr;
    background: var(--navy); padding: 14px 20px;
}
.comp-hcell { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.7); text-align: center; }
.comp-hcell:first-child { text-align: left; }
.comp-hcell.hl {
    color: #fff; background: rgba(255,255,255,.09);
    border-radius: 6px; padding: 5px 10px;
}
.comp-row {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr;
    padding: 12px 20px; border-bottom: 1px solid var(--border); align-items: center;
}
.comp-row:last-child { border-bottom: none; }
.comp-row:nth-child(even) { background: var(--bg-light); }
.comp-feat { font-size: 13px; font-weight: 500; color: var(--text); }
.comp-cell { text-align: center; font-size: 15px; }
.ok  { color: var(--green); }
.no  { color: #ef4444; }
.par { color: #f59e0b; font-size: 11px; font-weight: 700; }

.tco-box {
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: #fff; padding: 22px 26px; border-radius: var(--r-lg); margin-top: 22px;
}
.tco-box strong { display: block; font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.tco-box p { font-size: 13px; opacity: .8; }

/* ─── FAQ ─────────────────────────────────────────────── */
#faq { padding: 100px 0; background: #fff; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 920px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: var(--ease); }
.faq-item.open { border-color: var(--blue); }
.faq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 18px 22px; background: none; border: none; cursor: pointer;
    font-size: 14px; font-weight: 600; color: var(--navy); text-align: left;
    transition: var(--ease);
}
.faq-q:hover { background: var(--bg-light); }
.faq-item.open .faq-q { background: var(--bg-light); color: var(--blue); }
.faq-arrow { font-size: 12px; color: var(--blue); transition: var(--ease); flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-ans { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-ans-inner { padding: 0 22px 18px; font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ─── Contact ─────────────────────────────────────────── */
#contacto {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark), var(--navy));
    position: relative; overflow: hidden;
}
#contacto::before {
    content:''; position: absolute; inset: 0; opacity: .04;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.9) 1px, transparent 0);
    background-size: 38px 38px;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 2; }
.contact-text .section-title { color: #fff; text-align: left; margin-bottom: 14px; }
.contact-text p { font-size: 17px; color: rgba(255,255,255,.65); line-height: 1.72; margin-bottom: 30px; }
.contact-benefits { display: flex; flex-direction: column; gap: 12px; }
.cb { display: flex; align-items: center; gap: 12px; font-size: 15px; color: rgba(255,255,255,.82); font-weight: 500; }
.cb i { color: #6ee7b7; width: 18px; }

.form-wrap {
    background: #fff; border-radius: var(--r-lg); padding: 40px;
    box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
.form-head { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.form-sub  { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.form-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg { margin-bottom: 18px; }
.fl { display: block; font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.fi {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid var(--border); border-radius: 8px;
    font-family: var(--font); font-size: 14px; color: var(--text);
    transition: var(--ease); background: #fff; outline: none;
}
.fi:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(69,111,181,.12); }
textarea.fi { min-height: 110px; resize: vertical; }
.fsub {
    width: 100%; padding: 14px; border-radius: 8px; border: none; cursor: pointer;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: #fff; font-size: 15px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    transition: var(--ease);
}
.fsub:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(28,57,108,.35); }
.fsub:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.fprivacy { font-size: 11px; color: var(--muted); text-align: center; margin-top: 10px; }
.form-ok { display: none; text-align: center; padding: 20px 0; }
.form-ok i { font-size: 48px; color: var(--green); margin-bottom: 12px; }
.form-ok strong { display: block; font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.form-ok p { font-size: 14px; color: var(--muted); }

/* ─── Home: Branch cards (Desarrollo / Access) ──────────── */
#branch-desarrollo, #branch-access { padding: 100px 0; }
#branch-desarrollo { background: #fff; }
#branch-access { background: var(--bg-light); }
.branch-intro { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.branch-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-bottom: 44px; }
.branch-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 32px 26px;
    transition: var(--ease);
}
.branch-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(69,111,181,.2); }
.branch-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    display: flex; align-items: center; justify-content: center;
    font-size: 21px; color: #fff; margin-bottom: 20px;
}
.branch-title { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.branch-text  { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 14px; }
.branch-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.branch-tag {
    font-size: 11px; font-weight: 600; color: var(--blue);
    background: rgba(69,111,181,.08); padding: 3px 10px; border-radius: 100px;
}
.branch-cta { text-align: center; }

/* ─── Home: Desarrollo — acentos dinámicos ──────────────────── */
#desarrollo { position: relative; overflow: hidden; }
.dev-glow-blob {
    position: absolute; pointer-events: none; z-index: 0;
    width: 520px; height: 520px; border-radius: 50%;
    background: radial-gradient(circle, rgba(69,111,181,.16) 0%, transparent 70%);
    top: -180px; right: -160px;
    animation: blobFloat 14s ease-in-out infinite;
}
@keyframes blobFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(-30px,40px) scale(1.08); }
}
#desarrollo .container { position: relative; z-index: 1; }

.info-pill {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(69,111,181,.08); border: 1px solid rgba(69,111,181,.16);
    padding: 8px 16px 8px 10px; border-radius: 100px; margin-bottom: 20px;
    font-size: 13px; font-weight: 600; color: var(--navy);
}
.dev-orb-canvas { width: 26px; height: 26px; display: block; border-radius: 50%; }

/* Pulso "en vivo" (indicador tipo radar) para la píldora de Access */
.pulse-icon {
    position: relative; width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    color: var(--blue); font-size: 13px; flex-shrink: 0;
}
.pulse-icon::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: rgba(69,111,181,.25);
    animation: pulseRing 2s ease-out infinite;
}
.pulse-icon i { position: relative; z-index: 1; }
@keyframes pulseRing {
    0%   { transform: scale(.5); opacity: .8; }
    100% { transform: scale(1.9); opacity: 0; }
}

/* Trust bar */
.trust-bar {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 18px;
    margin: 44px 0 8px; padding: 26px 8px;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--navy); justify-content: center; }
.trust-item i { color: var(--blue); font-size: 15px; flex-shrink: 0; }

/* Stack marquee */
.stack-marquee {
    overflow: hidden; margin: 36px 0;
    -webkit-mask-image: linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
    mask-image: linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
}
.stack-track { display: flex; gap: 14px; width: max-content; animation: stackScroll 24s linear infinite; }
.stack-item {
    display: flex; align-items: center; gap: 8px; white-space: nowrap;
    font-size: 13px; font-weight: 600; color: var(--muted);
    background: #fff; border: 1px solid var(--border); border-radius: 100px; padding: 8px 16px;
}
.stack-item i { color: var(--blue); }
@keyframes stackScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Selector de proyecto */
.dev-selector { text-align: center; margin: 40px 0 8px; }
.dev-selector p { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.selector-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.selector-btn {
    padding: 12px 22px; border-radius: 10px; border: 2px solid var(--border);
    background: #fff; color: var(--navy); font-size: 14px; font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px; transition: var(--ease); text-decoration: none;
}
.selector-btn:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }
.selector-btn i { color: var(--blue); }
.selector-btn.selected { border-color: var(--blue); background: var(--blue); color: #fff; }
.selector-btn.selected i { color: #fff; }

/* ─── Desarrollo: hero code mockup ───────────────────────── */
.code-window { background: #0d1526; }
.code-body {
    padding: 22px 24px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 12.5px; line-height: 1.9; overflow-x: auto;
}
.code-line {
    white-space: pre; color: rgba(255,255,255,.75);
    animation: codeLineIn .4s ease both;
}
.code-line:nth-child(1) { animation-delay: .1s; }
.code-line:nth-child(2) { animation-delay: .3s; }
.code-line:nth-child(3) { animation-delay: .5s; }
.code-line:nth-child(4) { animation-delay: .7s; }
.code-line:nth-child(5) { animation-delay: .9s; }
.code-line:nth-child(6) { animation-delay: 1.1s; }
.code-line:nth-child(7) { animation-delay: 1.3s; }
.code-line:nth-child(8) { animation-delay: 1.5s; }
@keyframes codeLineIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.code-kw  { color: #c586c0; }
.code-fn  { color: #569cd6; }
.code-str { color: #ce9178; }
.code-com { color: #6a9955; }
.code-var { color: #9cdcfe; }
.code-cursor {
    display: inline-block; width: 7px; height: 14px; margin-left: 2px;
    background: var(--blue-light); vertical-align: middle;
    animation: caretBlink 1s step-end infinite;
}
@keyframes caretBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

#servicios { padding: 100px 0; }
#proceso { padding: 100px 0; }

/* ─── Desarrollo: proceso timeline ───────────────────────── */
.timeline { display: flex; justify-content: space-between; gap: 8px; position: relative; margin-top: 24px; }
.timeline.fu { opacity: 1; transform: none; transition: none; } /* wrapper solo dispara .vis, no se desvanece a sí mismo */
.timeline-track {
    position: absolute; top: 23px; left: 60px; right: 60px;
    height: 2px; background: var(--border); z-index: 0; overflow: hidden; border-radius: 2px;
}
.timeline-progress {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--navy), var(--blue));
    transform: scaleX(0); transform-origin: left center;
    transition: transform 1.5s cubic-bezier(.4,0,.2,1) .2s;
}
.timeline.vis .timeline-progress { transform: scaleX(1); }
.timeline-item { flex: 1; text-align: center; position: relative; z-index: 1; padding: 0 12px; transition: opacity .6s ease, transform .6s cubic-bezier(.34,1.1,.64,1); }
.timeline-item:nth-child(2) { transition-delay: .15s; }
.timeline-item:nth-child(3) { transition-delay: .35s; }
.timeline-item:nth-child(4) { transition-delay: .55s; }
.timeline-num {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--navy); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 16px; margin: 0 auto 18px;
    box-shadow: 0 0 0 6px var(--bg-light);
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.timeline-item:hover .timeline-num {
    transform: scale(1.12);
    background: var(--blue);
    box-shadow: 0 0 0 6px var(--bg-light), 0 6px 18px rgba(69,111,181,.35);
}
.timeline-item:hover .timeline-title { color: var(--blue); }
.timeline-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; transition: color .3s ease; }
.timeline-text { font-size: 13px; color: var(--muted); line-height: 1.6; }
@media (max-width: 900px) {
    .timeline { flex-direction: column; gap: 30px; }
    .timeline-track { display: none; }
    .timeline-item { text-align: left; display: flex; gap: 16px; padding: 0; }
    .timeline-num { margin: 0; flex-shrink: 0; }
}

/* ─── Home: Experiencia ──────────────────────────────────── */
#experiencia { padding: 100px 0; background: #fff; }
.exp-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; margin-top: 48px; }
.exp-card {
    text-align: center; padding: 30px 18px;
    border: 1px solid var(--border); border-radius: var(--r-lg);
    transition: var(--ease);
}
.exp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(69,111,181,.2); }
.exp-icon {
    width: 56px; height: 56px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(28,57,108,.07), rgba(69,111,181,.12));
    display: flex; align-items: center; justify-content: center;
    font-size: 23px; color: var(--navy); margin: 0 auto 16px;
    transition: var(--ease);
}
.exp-card:hover .exp-icon { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; }
.exp-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.exp-text  { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ─── Home: CTA final ────────────────────────────────────── */
.cta-final {
    padding: 90px 0;
    background: linear-gradient(135deg, var(--dark), var(--navy));
    text-align: center; position: relative; overflow: hidden;
}
.cta-final::before {
    content:''; position: absolute; inset: 0; opacity: .04;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.9) 1px, transparent 0);
    background-size: 38px 38px;
}
.cta-glow-blob {
    position: absolute; pointer-events: none; z-index: 0;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(107,148,211,.2) 0%, transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%,-50%);
    animation: blobFloat 14s ease-in-out infinite;
}
.cta-final .container { position: relative; z-index: 2; }
.cta-final h2 { color: #fff; }
.cta-final .section-sub { color: rgba(255,255,255,.65); }
.cta-final-btns { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 36px; }

/* ─── Footer ──────────────────────────────────────────── */
footer {
    background: var(--dark); padding: 64px 0 32px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand img { height: 34px; margin-bottom: 16px; }
.footer-tag { font-size: 14px; color: rgba(255,255,255,.45); line-height: 1.65; margin-bottom: 22px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 34px; height: 34px; border-radius: 7px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.45); font-size: 13px; transition: var(--ease);
}
.footer-social a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.fcol-title { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 14px; }
.fcol-links { display: flex; flex-direction: column; gap: 10px; }
.fcol-links a { font-size: 14px; color: rgba(255,255,255,.5); transition: var(--ease); }
.fcol-links a:hover { color: #fff; }
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 28px; border-top: 1px solid rgba(255,255,255,.06);
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,.3); }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,.3); transition: var(--ease); }
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* WhatsApp FAB */
.wa-fab {
    position: fixed; bottom: 26px; right: 26px; z-index: 999;
    width: 54px; height: 54px; border-radius: 50%;
    background: #25d366; color: #fff; font-size: 24px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(37,211,102,.38); transition: var(--ease);
}
.wa-fab:hover { transform: scale(1.1); box-shadow: 0 12px 32px rgba(37,211,102,.48); }

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
    .price-grid { grid-template-columns: 1fr 1fr; }
    .price-card.pop { transform: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .branch-grid { grid-template-columns: 1fr 1fr; }
    .exp-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; padding: 100px 0 60px; }
    .hero-visual { display: none; }
    .hero-stats { gap: 20px; }
    .prob-grid { grid-template-columns: 1fr; }
    .sol-grid, .sol-grid.rev { grid-template-columns: 1fr; gap: 40px; direction: ltr; }
    .feat-grid { grid-template-columns: 1fr 1fr; }
    .hw-intro { grid-template-columns: 1fr; gap: 36px; }
    .hw-grid { grid-template-columns: 1fr 1fr; }
    .price-grid { grid-template-columns: 1fr; }
    .diff-grid { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
    .nav-menu { display: none; }
    .nav-toggle { display: flex; }
    .nav-menu.open {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--navy); padding-bottom: 8px;
        box-shadow: 0 8px 24px rgba(0,0,0,.3);
        max-height: 80vh; overflow-y: auto;
    }
    .nav-menu.open .nav-links {
        flex-direction: column; align-items: stretch;
        padding: 16px 24px 12px; gap: 4px;
    }
    .nav-menu.open .nav-links a { display: block; }
    .nav-menu.open .nav-actions {
        flex-direction: column; align-items: stretch;
        padding: 8px 24px 16px; gap: 10px;
        border-top: 1px solid rgba(255,255,255,.1);
    }
    .nav-menu.open .nav-actions a { text-align: center; }
    .branch-grid { grid-template-columns: 1fr; }
    .exp-grid { grid-template-columns: 1fr 1fr; }
    .trust-bar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .feat-grid, .hw-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .form-wrap { padding: 28px 20px; }
    .section-header { margin-bottom: 48px; }
    .exp-grid { grid-template-columns: 1fr; }
    .trust-bar { grid-template-columns: 1fr; }
}
/* ── Reduced motion ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .badge-dot { animation: none; }
    .browser { animation: none; }
    .fu { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
    .dev-glow-blob { animation: none; }
    .stack-track { animation: none; }
}

/* ── Modales legales ─────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: #1a2a4a;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    width: 100%;
    max-width: 780px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}
.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.modal-header span { font-size: 12px; color: rgba(255,255,255,.35); margin-top: 3px; display: block; }
.modal-close {
    background: rgba(255,255,255,.08);
    border: none;
    color: rgba(255,255,255,.6);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s;
}
.modal-close:hover { background: rgba(255,255,255,.15); color: #fff; }
.modal-body {
    overflow-y: auto;
    padding: 24px 28px 32px;
    color: rgba(255,255,255,.8);
    font-size: 14px;
    line-height: 1.75;
}
.modal-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 28px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.modal-body h3:first-child { margin-top: 0; }
.modal-body h4 { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9); margin: 16px 0 6px; }
.modal-body p { margin: 0 0 10px; }
.modal-body ul { margin: 6px 0 10px 18px; padding: 0; }
.modal-body ul li { margin-bottom: 5px; }
.modal-body a { color: #5a9fd4; text-decoration: none; }
.modal-body a:hover { text-decoration: underline; }
.modal-body table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 13px; }
.modal-body th { background: rgba(255,255,255,.07); color: #fff; text-align: left; padding: 8px 12px; font-weight: 600; }
.modal-body td { padding: 7px 12px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: top; }
.modal-body td:first-child { color: rgba(255,255,255,.9); font-weight: 500; white-space: nowrap; }
@media(max-width:600px) {
    .modal-box { max-height: 92vh; }
    .modal-header, .modal-body { padding-left: 18px; padding-right: 18px; }
    .modal-body td:first-child { white-space: normal; }
}
