/* ==========================================================================
   MousyTools — Tema Global Estándar
   Identidad Oficial: Mousy Dev (Dark OLED #000000 + Púrpura Neón #55378e)
   Alineado 100% con el Portafolio Oficial (mousydev-portfolio)
   ========================================================================== */

:root {
    /* Superficies y Fondos OLED */
    --night: #000000;
    --night-deep: #000000;
    --night-card: #0a0a0a;
    --night-elev: #0f0e16;
    --night-hover: #161424;

    --bg: #000000;
    --bg-elev: #0c0b12;
    --bg-card: #08080c;
    --bg-hover: #12101a;

    /* Bordes */
    --border: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-strong: rgba(143, 108, 199, 0.4);
    --border-brand: rgba(189, 160, 226, 0.45);

    /* Textos */
    --text: #f8fafc;
    --text-dim: #94a3b8;
    --text-muted: #64748b;

    /* Escala Púrpura Mousy Dev Oficial */
    --brand-100: #ede4f8;
    --brand-200: #d7c6ee;
    --brand-300: #bda0e2;
    --brand-400: #8f6cc7;
    --brand-500: #55378e;
    --brand-600: #472d75;
    --brand-700: #38215c;
    --brand-800: #271744;

    --brand: #55378e;
    --brand-light: #8f6cc7;
    --brand-lighter: #bda0e2;
    --brand-ink: #271744;
    --lavender: #bda0e2;

    /* Acentos de Estado */
    --emerald: #34d399;
    --amber: #fbbf24;
    --rose: #f43f5e;

    /* Tipografías */
    --font-display: 'Unbounded', system-ui, sans-serif;
    --font-body: 'Space Grotesk', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    /* Medidas & Transiciones */
    --radius: 20px;
    --radius-sm: 12px;
    --radius-full: 999px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
em { font-style: normal; color: var(--brand-lighter); }

/* Selección de texto */
::selection {
    background: rgba(85, 55, 142, 0.65);
    color: #ffffff;
}

/* Scrollbar idéntica al portafolio */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #000000; }
::-webkit-scrollbar-thumb {
    height: 40%;
    background: linear-gradient(180deg, #8f6cc7, #472d75);
    border-radius: 999px;
    transition: height 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
    height: 50%;
    background: #bda0e2;
}

/* Ruido de fondo analógico ultra-sutil */
.noise {
    position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.03;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ═══════════════ DEGRADÉ DE LETRAS OFICIAL PORTAFOLIO ═══════════════ */

.text-gradient-portfolio,
.hero__title-accent {
    color: #bda0e2 !important;
    text-shadow: 0 0 30px rgba(189, 160, 226, 0.45) !important;
    filter: drop-shadow(0 0 25px rgba(189, 160, 226, 0.4)) !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    display: inline-block;
}

.text-glow {
    text-shadow: 0 0 35px rgba(189, 160, 226, 0.55);
}

/* ─── Navbar base — ver definición completa al final del archivo ─── */

.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__logo { width: 34px; height: 34px; filter: drop-shadow(0 0 12px rgba(189, 160, 226, 0.5)); }
.nav__name {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.12rem;
    letter-spacing: -0.02em;
    color: #ffffff;
}
.nav__name-accent {
    background: linear-gradient(135deg, #bda0e2 0%, #d7c6ee 50%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 18px rgba(189, 160, 226, 0.6));
}

.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: color 0.25s var(--ease);
}
.nav__link:hover { color: #ffffff; }

/* ═══════════════ HERO ═══════════════ */

.hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 80px;
    background: radial-gradient(ellipse 100% 100% at 50% 50%, rgba(85, 55, 142, 0.04) 0%, transparent 60%);
}

.grid-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-size: 44px 44px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse 75% 65% at 50% 20%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 20%, black 20%, transparent 100%);
}

.hero__aurora { position: absolute; border-radius: 50%; filter: blur(140px); pointer-events: none; }
.hero__aurora--one { top: -60px; left: -100px; width: 500px; height: 500px; background: rgba(85, 55, 142, 0.14); }
.hero__aurora--two { bottom: -160px; right: -100px; width: 500px; height: 500px; background: rgba(141, 108, 199, 0.18); }
.hero__aurora--three { top: 30%; right: 20%; width: 340px; height: 340px; background: rgba(189, 160, 226, 0.10); }

.hero__inner { position: relative; z-index: 10; }

.hero__grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero__kicker {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--brand-lighter);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: #ede4f8;
    background: rgba(85, 55, 142, 0.16);
    border: 1px solid rgba(189, 160, 226, 0.35);
    box-shadow: 0 0 20px -4px rgba(85, 55, 142, 0.3);
    margin-bottom: 20px;
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.4rem, 5.8vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    text-wrap: balance;
}
.hero__title-white {
    color: #ffffff;
    display: block;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.hero__subtitle {
    max-width: 580px;
    margin-top: 22px;
    font-size: 1.08rem;
    color: var(--text-dim);
    line-height: 1.65;
}
.hero__subtitle strong {
    color: #ffffff;
    font-weight: 600;
}

.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}
.trust-pill svg { width: 14px; height: 14px; color: var(--brand-300); }

/* ─── TECH CONSOLE / STUDIO VISUALIZER (ESTILO PORTAFOLIO ATOM) ─── */
.tech-console {
    position: relative;
    background: #08080c;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    overflow: hidden;
    padding: 24px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9),
                0 0 50px -10px rgba(85, 55, 142, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.tech-console::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, #bda0e2 35%, #55378e 70%, transparent);
}
.console-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 20px;
}
.console-dots { display: flex; align-items: center; gap: 6px; }
.dot-neutral { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.console-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}
.console-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--emerald);
}
.pulse-emerald { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald); animation: pulse 1.8s infinite; }

/* Órbita interactiva del motor */
.orbit-stage {
    position: relative;
    width: 100%;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.orbit-ring {
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 1px dashed rgba(189, 160, 226, 0.22);
    animation: rotateSlow 40s linear infinite;
}
.orbit-ring-inner {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: radial-gradient(circle, rgba(85, 55, 142, 0.25) 0%, transparent 70%);
}
.orbit-center-core {
    position: relative;
    z-index: 5;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(143, 108, 199, 0.3), rgba(85, 55, 142, 0.5));
    border: 1px solid rgba(189, 160, 226, 0.5);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.45);
    display: grid;
    place-items: center;
    color: #ffffff;
}
.orbit-center-core svg { width: 28px; height: 28px; }

.orbit-badge-node {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(10, 10, 15, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    z-index: 6;
}
.node-top-left { top: 12px; left: 14px; }
.node-top-right { top: 12px; right: 14px; }
.node-bottom-left { bottom: 12px; left: 14px; }
.node-bottom-right { bottom: 12px; right: 14px; }
.node-tag-ok { color: var(--emerald); font-weight: 700; }
.node-tag-accent { color: var(--brand-300); font-weight: 700; }

@keyframes rotateSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Consola de telemetría inferior */
.console-telemetry {
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 14px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    line-height: 1.7;
    color: #94a3b8;
}
.console-telemetry .line-active { color: #d7c6ee; }
.console-telemetry .line-success { color: var(--emerald); }

/* ─── STATS GRID STRIP (ESTILO PORTAFOLIO STATS) ─── */
.stats-strip {
    padding: 10px 0 50px;
    position: relative;
    z-index: 10;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.stat-card {
    background: #08080c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 22px 20px;
    transition: all 0.3s var(--ease);
}
.stat-card:hover {
    border-color: rgba(189, 160, 226, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -10px rgba(85, 55, 142, 0.3);
}
.stat-val {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.85rem;
    color: #ffffff;
    line-height: 1;
}
.stat-val span { color: var(--brand-300); }
.stat-label {
    display: block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.88rem;
    color: #e2e8f0;
    margin-top: 8px;
}
.stat-desc {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ─── SPOTLIGHT HERO CARD: LIMPIAR METADATOS (FLAGSHIP) ─── */
.spotlight-wrap {
    margin-bottom: 40px;
}
.spotlight-card {
    position: relative;
    background: #08080c;
    border: 1px solid rgba(189, 160, 226, 0.3);
    border-radius: 24px;
    padding: 36px 32px;
    overflow: hidden;
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.9),
                0 0 45px -10px rgba(85, 55, 142, 0.35);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
}
.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, #bda0e2, #55378e 60%, transparent);
}
.spotlight-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--emerald);
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.35);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.spotlight-card__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    color: #ffffff;
    line-height: 1.15;
}
.spotlight-card__title span {
    color: var(--brand-300);
}
.spotlight-card__desc {
    margin-top: 14px;
    color: var(--text-dim);
    font-size: 0.96rem;
    line-height: 1.65;
    max-width: 540px;
}
.spotlight-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 22px 0;
}
.spotlight-feat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #cbd5e1;
}
.spotlight-feat-item svg {
    width: 16px;
    height: 16px;
    color: var(--brand-300);
    flex-shrink: 0;
}
.spotlight-preview-box {
    background: #030206;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 40px -15px rgba(0, 0, 0, 0.9), 0 0 25px -10px rgba(85, 55, 142, 0.35);
}
.preview-terminal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-family: var(--font-mono);
    font-size: 0.68rem;
}
.preview-terminal-title {
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.05em;
}
.preview-terminal-badge {
    color: var(--emerald);
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}
.preview-rows-list {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 9px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    transition: all 0.2s ease;
}
.preview-row-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.preview-row .row-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
.row-icon.icon--danger { color: #f43f5e; }
.row-icon.icon--clean { color: #34d399; }
.row-icon.icon--warning { color: #fbbf24; }
.row-icon.icon--sky { color: #38bdf8; }

.preview-row.danger {
    background: rgba(244, 63, 94, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}
.preview-row.clean {
    background: rgba(85, 55, 142, 0.12);
    border: 1px solid rgba(189, 160, 226, 0.28);
    color: #e2d9f3;
}
.dock-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: var(--font-mono);
}
.dock-badge--danger {
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.25);
}
.dock-badge--warning {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.25);
}
.dock-badge--clean {
    color: #34d399;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

/* ═══════════════ MARQUEE BAND (ESTILO PORTAFOLIO) ═══════════════ */


.marquee-band {
    position: relative;
    width: 100%;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.65);
    padding: 14px 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 32px;
    width: max-content;
    animation: marquee 110s linear infinite;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: rgba(215, 198, 238, 0.85);
    white-space: nowrap;
    will-change: transform;
}
.marquee-band:hover .marquee-track {
    animation-play-state: paused;
}
.marquee-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-300);
    box-shadow: 0 0 10px var(--brand-300);
    flex-shrink: 0;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ═══════════════ SECCIÓN CABECERA ═══════════════ */

.section-head { max-width: 740px; margin-bottom: 48px; }
.section-head__kicker {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--brand-lighter);
    text-transform: uppercase;
}
.section-head__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2rem, 4.5vw, 3rem);
    letter-spacing: -0.025em;
    margin-top: 14px;
    line-height: 1.1;
    color: #ffffff;
}
.section-head__desc { margin-top: 14px; color: var(--text-dim); font-size: 1.05rem; }

/* ═══════════════ GRID DE HERRAMIENTAS (DYNAMIC SPOTLIGHT CARDS) ═══════════════ */

.tools { padding: 50px 0 80px; position: relative; }
.tools__grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); 
    gap: 24px; 
}

/* macOS Terminal Dots compartidos */
.terminal-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.dot--red {
    background: #f43f5e;
    box-shadow: 0 0 6px rgba(244, 63, 94, 0.45);
}
.dot--yellow {
    background: #fbbf24;
}
.dot--green {
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.45);
}

.tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #06050a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.85);
    transition: transform 0.35s var(--ease),
                border-color 0.35s var(--ease),
                box-shadow 0.35s var(--ease);
}
.tool-card:hover {
    transform: translateY(-6px);
    border-color: rgba(189, 160, 226, 0.48);
    box-shadow: 0 22px 50px -15px rgba(0, 0, 0, 0.95),
                0 0 32px -8px rgba(139, 92, 246, 0.35);
}
.tool-card::before {
    content: ''; 
    position: absolute; 
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, #f43f5e, #fbbf24 35%, #10b981 70%, #bda0e2);
    opacity: 0; 
    transition: opacity 0.35s var(--ease);
    z-index: 5;
}
.tool-card:hover::before { opacity: 1; }

/* Barra superior de terminal macOS */
.tool-card__terminal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.65);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    z-index: 2;
    position: relative;
}
.terminal-slug {
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.03em;
}
.terminal-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
}
.terminal-status-pill.live {
    color: var(--emerald);
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.35);
}
.live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 8px var(--emerald);
    animation: pulseGlow 2s infinite ease-in-out;
}
.terminal-status-pill.dev {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.09);
    border: 1px solid rgba(251, 191, 36, 0.28);
}
.dev-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fbbf24;
}

/* Contenedor interno con padding */
.tool-card__inner {
    padding: 24px 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 2;
}

.tool-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.tool-card__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(85, 55, 142, 0.18);
    border: 1px solid rgba(189, 160, 226, 0.35);
    color: #bda0e2;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    transition: all 0.3s var(--ease);
}
.tool-card:hover .tool-card__icon {
    transform: scale(1.08);
    color: #ffffff;
    border-color: #bda0e2;
    box-shadow: 0 0 28px rgba(189, 160, 226, 0.5);
    background: rgba(85, 55, 142, 0.32);
}
.tool-card__icon svg {
    width: 22px;
    height: 22px;
}
.tool-card__sysid {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.1em;
}

.tool-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.tool-card__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.22rem;
    letter-spacing: -0.02em;
    color: #ffffff;
    transition: color 0.3s var(--ease);
}
.tool-card:hover .tool-card__title {
    color: #ede4f8;
}
.tool-card__desc {
    margin-top: 8px;
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.62;
    flex: 1;
}

/* Chips estilo matriz tecnológica con viñeta */
.tool-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
}
.tool-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3px 9px;
    border-radius: 7px;
    transition: all 0.2s ease;
}
.chip-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #bda0e2;
    flex-shrink: 0;
}
.tool-card:hover .tool-chip {
    border-color: rgba(189, 160, 226, 0.35);
    background: rgba(85, 55, 142, 0.16);
    color: #ffffff;
}

/* Footer / CTA del card */
.tool-card__footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Botón de apertura estilo cyber */
.btn-card-launch {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(85, 55, 142, 0.25);
    border: 1px solid rgba(189, 160, 226, 0.4);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.25s var(--ease);
    text-decoration: none;
}
.btn-card-launch svg {
    transition: transform 0.25s var(--ease);
}
.btn-card-launch:hover {
    background: linear-gradient(135deg, #55378e 0%, #3e2468 100%);
    border-color: #bda0e2;
    box-shadow: 0 0 22px rgba(189, 160, 226, 0.38);
    color: #ffffff;
}
.btn-card-launch:hover svg {
    transform: translateX(4px);
}

/* Telemetría para tarjetas en desarrollo */
.tool-card__telemetry {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #64748b;
}
.telemetry-icon {
    color: #f59e0b;
    flex-shrink: 0;
}

/* ═══════════════ ADS SLOT ═══════════════ */

.ads-slot { padding: 10px 0 70px; }
.ads-slot__label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.ads-slot__box {
    width: 100%; min-height: 90px; display: grid; place-items: center;
    border: 1px dashed var(--border-strong); border-radius: 14px;
    background: rgba(85, 55, 142, 0.04);
    font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted);
}

/* ═══════════════ POR QUÉ (GLASS CARDS) ═══════════════ */

.why { padding: 60px 0 90px; border-top: 1px solid var(--border); }
.why__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 40px; }
.why__item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 24px;
    background: var(--bg-card);
    transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.why__item:hover {
    border-color: var(--border-brand);
    background-color: rgba(85, 55, 142, 0.06);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px -15px rgba(85, 55, 142, 0.3);
}
.why__num { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; color: var(--brand-lighter); }
.why__item h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-top: 12px; color: #ffffff; }
.why__item p { margin-top: 10px; color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; }

/* ═══════════════ CTA FINAL (CYBER CONTAINER) ═══════════════ */

.cta { padding: 0 24px 100px; }
.cta__box {
    position: relative; text-align: center; overflow: hidden;
    border: 1px solid var(--border-strong); border-radius: 32px; padding: 80px 30px;
    background: radial-gradient(ellipse at 50% 0%, rgba(85, 55, 142, 0.35), transparent 65%), var(--bg-card);
    box-shadow: 0 0 60px -15px rgba(85, 55, 142, 0.35);
}
.cta__box::before {
    content: ''; position: absolute; inset: -1px; border-radius: 32px; padding: 1px;
    background: linear-gradient(140deg, var(--brand-lighter), transparent 40%, transparent 60%, var(--brand));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0.65;
}
.cta__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.8rem, 4.5vw, 2.7rem);
    letter-spacing: -0.02em;
    color: #ffffff;
}
.cta__desc { max-width: 600px; margin: 16px auto 32px; color: var(--text-dim); font-size: 1.05rem; }

/* ═══════════════ FOOTER ═══════════════ */

.footer { border-top: 1px solid var(--border); background: #030206; }
.footer__inner { display: flex; flex-direction: column; gap: 28px; padding: 48px 24px 28px; }
/* 4 columnas: marca + imagen + developer + recursos. Antes era
   "1.4fr 1fr 1fr" con 4 hijos, asi que la columna de recursos caia a una
   segunda fila y el footer se partia en dos bandas desiguales. */
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  width: 100%;
  align-items: start;
}
.footer__brand-col { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer__brand { display: inline-flex; align-items: center; }
.footer__tagline { font-size: 0.86rem; line-height: 1.6; color: var(--text-dim); max-width: 36ch; margin: 0; }
.footer__badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em; color: #6ee7b7; background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.3); padding: 5px 12px; border-radius: 999px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__col-title { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-lighter); margin: 0 0 2px; }
.footer__col a { font-size: 0.88rem; color: var(--text-dim); text-decoration: none; transition: color 0.15s ease; }
.footer__col a:hover { color: #ffffff; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; width: 100%; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer__copy { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); margin: 0; }
.footer__made { font-size: 0.82rem; color: var(--text-dim); margin: 0; }
.footer__author { color: var(--brand-lighter); font-weight: 700; text-decoration: none; }
.footer__author:hover { color: #ffffff; text-decoration: underline; }
/* Compatibilidad: footers simples de herramientas legacy */
.footer__links { display: flex; gap: 24px; font-size: 0.85rem; color: var(--text-dim); }
.footer__links a:hover { color: var(--brand-lighter); }

/* ═══════════════ BOTONES ESTÁNDAR PORTAFOLIO (Alturas y geometrías 100% idénticas) ═══════════════ */

/* Base compartida: garantiza altura fija matemática de 48px en cualquier navegador */
.btn-neon,
.btn-ghost {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 0 28px !important;
    border-radius: 16px;
    font-family: var(--font-body);
    font-size: 0.94rem;
    line-height: 1 !important;
    box-sizing: border-box !important;
    vertical-align: middle;
    cursor: pointer;
    overflow: hidden;
    user-select: none;
    text-decoration: none;
    transition: transform 0.3s var(--ease),
                background 0.3s var(--ease),
                border-color 0.3s var(--ease),
                box-shadow 0.3s var(--ease),
                color 0.3s var(--ease);
}

.btn-icon {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
    display: inline-block;
}

/* Botón Neón Primario Oficial (.btn-neon) */
.btn-neon {
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(180deg, #55378e 0%, #38215c 100%);
    border: 1px solid rgba(143, 108, 199, 0.5);
    border-top-color: rgba(189, 160, 226, 0.8);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6),
                0 8px 28px -4px rgba(139, 92, 246, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-neon::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-25deg);
    transition: left 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.btn-neon:hover {
    background: linear-gradient(180deg, #8f6cc7 0%, #472d75 100%);
    border-color: #bda0e2;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6),
                0 14px 36px -4px rgba(139, 92, 246, 0.8),
                inset 0 1px 0 rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
    color: #ffffff;
}
.btn-neon:hover::after {
    left: 160%;
}
.btn-neon:active {
    transform: scale(0.97) translateY(0);
}

/* Botón Ghost Glass (.btn-ghost) — Misma altura exacta (48px) que .btn-neon */
.btn-ghost {
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.btn-ghost::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: skewX(-25deg);
    transition: left 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.btn-ghost:hover {
    background: rgba(85, 55, 142, 0.15);
    border-color: rgba(143, 108, 199, 0.5);
    border-top-color: rgba(189, 160, 226, 0.8);
    color: #ffffff;
    box-shadow: 0 4px 20px -4px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}
.btn-ghost:hover::after {
    left: 160%;
}
.btn-ghost:active {
    transform: scale(0.97) translateY(0);
}

/* ═══════════════ ANIMACIONES ═══════════════ */

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* Reveal on scroll */
.will-reveal { opacity: 0; transform: translateY(26px); }
.is-visible { opacity: 1; transform: translateY(0); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }

/* ═══════════════ NAVBAR — MEJORADO (estilo portfolio) ═══════════════ */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    border: none !important;
    border-bottom: 1px solid transparent !important;
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none !important;
    transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.nav.nav--scrolled {
    background: rgba(0, 0, 0, 0.8) !important;
    border-bottom: 1px solid rgba(85, 55, 142, 0.18) !important;
    backdrop-filter: blur(16px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
}
.nav.nav--hidden {
    transform: translateY(-100%);
}

/* Logo wrap con glow */
.nav__logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.nav__logo-glow {
    position: absolute;
    inset: -4px;
    border-radius: 14px;
    background: rgba(85, 55, 142, 0.3);
    filter: blur(14px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}
.nav__brand:hover .nav__logo-glow { opacity: 0.85; }

/* CTA en navbar (pill pequeño) */
.nav__cta {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 18px !important;
    font-size: 0.82rem !important;
    font-family: var(--font-mono) !important;
    border-radius: 999px !important;
}

/* Hamburger button */
.nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav__hamburger span {
    display: block;
    width: 100%; height: 2px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 10px 24px 18px;
    border-top: 1px solid rgba(85, 55, 142, 0.22);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}
.nav__mobile.is-open { display: flex; }
.nav__mobile-link {
    padding: 12px 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.2s;
}
.nav__mobile-link:hover { color: #ffffff; }
.nav__mobile-link--accent { color: var(--brand-300); font-family: var(--font-mono); font-size: 0.85rem; }

/* Compensar nav fixed en el body */
body { padding-top: 74px; }

/* ═══════════════ NEBULA BACKGROUND (Canvas interactivo cósmico) ═══════════════ */

.nebula-bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    user-select: none;
    opacity: 0.92;
}

/* Logo oficial completo (logo.webp 802x222) en navbar y footer */
.nav__logo-full {
    height: 48px;
    width: auto;
    max-width: 215px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 16px rgba(189, 160, 226, 0.4));
    transition: filter 0.3s ease, transform 0.3s ease;
}
.nav__brand:hover .nav__logo-full {
    filter: drop-shadow(0 0 25px rgba(189, 160, 226, 0.8));
    transform: scale(1.03);
}
.footer__logo-full {
    height: 54px;
    width: auto;
    max-width: 230px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 14px rgba(189, 160, 226, 0.35));
    transition: filter 0.25s ease, transform 0.25s ease;
}
.footer__brand:hover .footer__logo-full {
    filter: drop-shadow(0 0 24px rgba(189, 160, 226, 0.65));
    transform: scale(1.02);
}

/* ═══════════════ ATOM HERO (réplica idéntica de AtomHero.jsx del portfolio) ═══════════════ */

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.atom-hero {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    user-select: none;
}

/* 1. Nebulosa cósmica (idéntica al portfolio) */
.atom-nebula {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}
.atom-nebula__glow {
    width: 75%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: rgba(85, 55, 142, 0.28);
    filter: blur(80px);
    animation: atom-pulse-soft 6s ease-in-out infinite;
}
@keyframes atom-pulse-soft {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(1.06); }
}

/* 2. Canvas de partículas (ocupa el contenedor 1:1) */
.atom-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 3. Núcleo con parallax al mouse (desplazamiento 14px como en portfolio) */
.atom-core {
    position: absolute;
    inset: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    z-index: 2;
}

/* Órbitas tracks */
.atom-orbit-track {
    position: absolute;
    inset: 0;
}
.atom-orbit-track--2 {
    transform: rotate(55deg) scaleY(0.45);
}
.atom-orbit-track--3 {
    transform: rotate(-55deg) scaleY(0.45);
}

/* Anillos orbitales geométricos (estación espacial estelar) */
.atom-orbit-ring {
    position: absolute;
    border-radius: 50%;
}
.atom-orbit--fast {
    inset: 4px;
    border: 1px solid rgba(143, 108, 199, 0.35);
}
.atom-orbit--rev {
    inset: 32px;
    border: 1px solid rgba(143, 108, 199, 0.28);
}
.atom-orbit--slow {
    inset: 72px;
    border: 1px solid rgba(143, 108, 199, 0.28);
}

/* Electrones brillantes (satélites luminosos en cada órbita) */
.atom-electron {
    position: absolute;
    border-radius: 50%;
    left: 50%;
    pointer-events: none;
}
.atom-electron--1 {
    top: -5px;
    margin-left: -5px;
    width: 10px;
    height: 10px;
    background: #bda0e2;
    box-shadow: 0 0 16px 4px rgba(189, 160, 226, 0.95);
}
.atom-electron--2 {
    top: -4px;
    margin-left: -4px;
    width: 8px;
    height: 8px;
    background: #d7c6ee;
    box-shadow: 0 0 14px 4px rgba(215, 198, 238, 0.9);
}
.atom-electron--3 {
    top: -4px;
    margin-left: -4px;
    width: 8px;
    height: 8px;
    background: #8f6cc7;
    box-shadow: 0 0 14px 4px rgba(143, 108, 199, 0.9);
}

/* 4. Núcleo central con avatar oficial (icon.webp) y background oscuro premium */
.atom-nucleus {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.atom-nucleus::before {
    content: '';
    position: absolute;
    width: 145px;
    height: 145px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(143, 108, 199, 0.35) 0%, rgba(85, 55, 142, 0.15) 50%, transparent 72%);
    filter: blur(14px);
    pointer-events: none;
    animation: nucleus-glow-pulse 4s ease-in-out infinite;
    z-index: 0;
}
@keyframes nucleus-glow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.14); opacity: 1; }
}

.atom-nucleus__avatar-wrap {
    position: relative;
    width: 124px;
    height: 124px;
    border-radius: 50%;
    padding: 18px;
    background: radial-gradient(circle at 40% 35%, #151028 0%, #06040d 60%, #000000 100%);
    border: 1.5px solid rgba(189, 160, 226, 0.45);
    border-top-color: rgba(215, 198, 238, 0.85);
    box-shadow: 0 0 38px rgba(85, 55, 142, 0.75),
                inset 0 0 24px rgba(85, 55, 142, 0.35),
                0 20px 40px rgba(0, 0, 0, 0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.atom-nucleus:hover .atom-nucleus__avatar-wrap {
    transform: scale(1.08);
    border-color: #bda0e2;
    box-shadow: 0 0 50px rgba(189, 160, 226, 0.75), inset 0 0 30px rgba(143, 108, 199, 0.45);
}
.atom-nucleus__avatar {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 16px rgba(189, 160, 226, 0.55));
}
.scanlines {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    opacity: 0.22;
    pointer-events: none;
    background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px);
}
.atom-nucleus__hover-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(143, 108, 199, 0.15);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.atom-nucleus:hover .atom-nucleus__hover-glow {
    opacity: 1;
}

/* 5. Anillo exterior de badges del stack (posiciones orbitales fijas, estables y perfectamente verticales) */
.atom-badge-ring {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.atom-badge-pos {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: auto;
}

/* Badges unitarios: siempre 100% verticales, nítidos y legibles */
.atom-badge-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    pointer-events: auto;
}

.atom-badge-box {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(4, 3, 8, 0.92);
    border: 1px solid rgba(189, 160, 226, 0.25);
    border-top-color: rgba(215, 198, 238, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 0 22px -6px rgba(85, 55, 142, 0.9), inset 0 0 12px rgba(85, 55, 142, 0.2);
    display: grid;
    place-items: center;
    color: #bda0e2;
    transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}
.atom-badge-unit:hover .atom-badge-box {
    transform: scale(1.15);
    border-color: #bda0e2;
    color: #ffffff;
    box-shadow: 0 0 30px -2px rgba(189, 160, 226, 0.9);
}

.atom-badge-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(4, 3, 8, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 1px 6px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* ═══════════════ RESPONSIVE ═══════════════ */

@media (max-width: 980px) {
    .hero__grid { grid-template-columns: 1fr; gap: 40px; }
    .hero { padding: 80px 0 60px; }
    .atom-hero { max-width: 360px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .spotlight-card { grid-template-columns: 1fr; padding: 28px 22px; gap: 28px; }
}

@media (max-width: 720px) {
    .nav__links { display: none; }
    .nav__hamburger { display: flex; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer__brand-col { grid-column: 1 / -1; }
    .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 540px) {
    .stats-grid { grid-template-columns: 1fr; }
    .spotlight-features { grid-template-columns: 1fr; }
    .atom-hero { max-width: 290px; }
    .atom-nucleus__avatar-wrap { width: 94px; height: 94px; }
    .atom-badge-box { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation-duration: 160s !important; }
}

/* ══════════ LANGUAGE SWITCHER COMPONENT ══════════ */
.lang-switch-wrap {
    display: inline-flex;
    align-items: center;
}
.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(167, 139, 250, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 9999px;
    padding: 5px 12px;
    color: #a1a1aa;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}
.lang-switch-btn:hover {
    background: rgba(167, 139, 250, 0.22);
    border-color: rgba(167, 139, 250, 0.55);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.25);
}
.lang-switch-btn .lang-opt {
    opacity: 0.5;
    transition: opacity 0.2s, color 0.2s;
}
.lang-switch-btn .lang-opt.active {
    opacity: 1;
    color: #c4b5fd;
    font-weight: 700;
}
.lang-switch-btn .lang-divider {
    opacity: 0.35;
    font-size: 11px;
}

/* ── Separador de clúster dentro del grid de herramientas ──────────────
   El hub mezcla herramientas de imagen y de desarrollo: agruparlas ayuda
   a descubrir el clúster nuevo y refuerza el enlazado interno. */
.tools__grid-divider {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 10px 0 -6px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #bda0e2;
}
.tools__grid-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(143,108,199,.45), rgba(255,255,255,.06));
}
@media (max-width: 640px) { .tools__grid-divider { margin: 4px 0 -2px; } }
