/* ==========================================================================
   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 ═══════════════ */

.nav {
    position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

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

.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: 110px 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: -140px; left: -100px; width: 560px; height: 560px; background: rgba(85, 55, 142, 0.35); }
.hero__aurora--two { bottom: -160px; right: -100px; width: 500px; height: 500px; background: rgba(141, 108, 199, 0.22); }
.hero__aurora--three { top: 30%; right: 20%; width: 340px; height: 340px; background: rgba(189, 160, 226, 0.12); }

.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: #000000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 14px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}
.preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 8px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
}
.preview-row.danger {
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}
.preview-row.clean {
    border: 1px solid rgba(189, 160, 226, 0.3);
    background: rgba(85, 55, 142, 0.14);
    color: #d7c6ee;
}

/* ═══════════════ 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 35s 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;
}
.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(330px, 1fr)); gap: 24px; }

.tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 28px 26px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 15px 40px -20px rgba(0, 0, 0, 0.8);
    transition: transform 0.4s var(--ease),
                border-color 0.4s var(--ease),
                box-shadow 0.4s var(--ease);
}

/* Dynamic Spotlight Glow that follows mouse */
.tool-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(380px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(189, 160, 226, 0.14), transparent 75%);
    z-index: 1;
}

.tool-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--brand-300), var(--brand-500), transparent 70%);
    opacity: 0; transition: opacity 0.35s var(--ease);
    z-index: 2;
}

.tool-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-brand);
    box-shadow: 0 22px 50px -15px rgba(0, 0, 0, 0.85),
                0 0 35px -8px rgba(85, 55, 142, 0.45);
}
.tool-card:hover::before { opacity: 1; }
.tool-card:hover::after { opacity: 1; }

.tool-card__top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}
.tool-card__num {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}
.tool-card__badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--emerald);
    border: 1px solid rgba(52, 211, 153, 0.4);
    background: rgba(52, 211, 153, 0.08);
    padding: 4px 10px;
    border-radius: 999px;
}
.tool-card__badge--soon { color: var(--amber); border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.08); }

.tool-card__icon {
    position: relative;
    z-index: 2;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(85, 55, 142, 0.18);
    border: 1px solid rgba(143, 108, 199, 0.35);
    color: var(--brand-lighter);
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
    transition: all 0.3s var(--ease);
}
.tool-card:hover .tool-card__icon {
    transform: scale(1.1);
    color: #ffffff;
    border-color: rgba(189, 160, 226, 0.7);
    box-shadow: 0 0 30px rgba(189, 160, 226, 0.5);
}
.tool-card__icon svg { width: 24px; height: 24px; }

.tool-card__title {
    position: relative;
    z-index: 2;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.22rem;
    letter-spacing: -0.015em;
    color: #ffffff;
    transition: color 0.3s var(--ease);
}
.tool-card:hover .tool-card__title {
    color: #ede4f8;
    text-shadow: 0 0 25px rgba(189, 160, 226, 0.4);
}

.tool-card__desc {
    position: relative;
    z-index: 2;
    margin-top: 10px;
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.65;
    flex: 1;
}

/* Individual Pill Chips (Estilo Cards.jsx del Portafolio) */
.tool-card__chips {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
}
.tool-chip {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(189, 160, 226, 0.95);
    background: rgba(85, 55, 142, 0.12);
    border: 1px solid rgba(143, 108, 199, 0.25);
    padding: 3px 9px;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.tool-card:hover .tool-chip {
    border-color: rgba(189, 160, 226, 0.45);
    background: rgba(85, 55, 142, 0.22);
}

.tool-card__cta {
    position: relative;
    z-index: 2;
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-lighter);
    transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.tool-card__cta:hover { gap: 10px; color: #ffffff; text-shadow: 0 0 15px rgba(189, 160, 226, 0.6); }
.tool-card__cta--disabled { color: var(--text-muted); cursor: not-allowed; opacity: 0.6; }
.tool-card__cta--disabled:hover { gap: 6px; color: var(--text-muted); }

/* ═══════════════ 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; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 36px 24px; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__logo { width: 28px; height: 28px; }
.footer__name { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.footer__links { display: flex; gap: 24px; font-size: 0.85rem; color: var(--text-dim); }
.footer__links a:hover { color: var(--brand-lighter); }
.footer__copy { width: 100%; text-align: center; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); }

/* ═══════════════ BOTONES ESTÁNDAR PORTAFOLIO ═══════════════ */

/* Botón Neón Primario Oficial (.btn-neon) */
.btn-neon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.96rem;
    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);
    cursor: pointer;
    overflow: hidden;
    user-select: none;
    transition: all 0.3s var(--ease);
    text-decoration: none;
}
.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) */
.btn-ghost {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    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.1);
    border-top-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    cursor: pointer;
    overflow: hidden;
    user-select: none;
    transition: all 0.3s var(--ease);
    text-decoration: none;
}
.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.18);
    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); }

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

@media (max-width: 980px) {
    .hero__grid { grid-template-columns: 1fr; gap: 40px; }
    .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 .nav__link { display: none; }
    .hero { padding: 80px 0 60px; }
    .hero__scroll { margin-top: 50px; }
    .footer__links { gap: 14px; font-size: 0.78rem; }
}

@media (max-width: 540px) {
    .stats-grid { grid-template-columns: 1fr; }
    .spotlight-features { grid-template-columns: 1fr; }
    .orbit-stage { height: 180px; }
    .orbit-ring { width: 140px; height: 140px; }
    .node-top-left, .node-bottom-left { left: 4px; }
    .node-top-right, .node-bottom-right { right: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}