:root {
    --bg-dark: #050811;
    --brand-dark: #0f1c33;
    --primary: #4A76A8;
    --primary-glow: rgba(74, 118, 168, 0.35);
    --primary-light: #628ECB;
    
    /* Acentos refinados: presentes pero no fosforescentes */
    --accent-cyan: #00d9e8;
    --accent-cyan-soft: rgba(0, 217, 232, 0.18);
    
    --text-main: #FFFFFF;
    --text-muted: #9BB0CE;
    --card-bg: rgba(13, 22, 38, 0.72); 
    --card-border: rgba(74, 118, 168, 0.22);
    --card-border-hover: rgba(98, 142, 203, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    width: 100%;
}

/* Canvas Backgrounds & Auras equilibradas */
#vanta-canvas {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -3;
}

.vanta-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 20%, rgba(5, 8, 17, 0.35) 0%, rgba(5, 8, 17, 0.92) 100%);
    z-index: -2;
    pointer-events: none;
}

.ambient-glow {
    position: fixed;
    top: -15vh;
    left: 50%;
    transform: translateX(-50%);
    width: 75vw;
    height: 50vh;
    background: radial-gradient(circle, rgba(98, 142, 203, 0.25) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(55px);
}

.ambient-glow-secondary {
    position: fixed;
    bottom: -15vh;
    left: -5%;
    width: 40vw;
    height: 40vh;
    background: radial-gradient(circle, rgba(74, 118, 168, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(65px);
}

.ambient-glow-cyan {
    position: fixed;
    top: 40vh;
    right: -10%;
    width: 35vw;
    height: 35vh;
    background: radial-gradient(circle, rgba(0, 217, 232, 0.08) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(75px);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.75rem 2%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 8, 17, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(74, 118, 168, 0.18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* ========================================================= */
/* LOGO Y NOMBRE INTEGRADOS: TAMAÑO 76px Y ESPACIADO 0.45rem */
/* ========================================================= */

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.1rem; /* Acercados de manera armónica */
}

.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
}

.logo-img {
    height: 78px !important; /* Tu tamaño original intacto */
    width: auto !important;
    object-fit: contain;
    transform: scale(1.25);
    transform-origin: center center;
    filter: drop-shadow(0 0 10px rgba(98, 142, 203, 0.45)) drop-shadow(0 0 18px var(--accent-cyan-soft)) contrast(1.3) brightness(1.2);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.3);
    filter: drop-shadow(0 0 14px var(--accent-cyan)) drop-shadow(0 0 24px rgba(0, 217, 232, 0.35)) contrast(1.35) brightness(1.25);
}

.brand-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.4px;
    color: #fff;
}

.brand-sub {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--accent-cyan);
    margin-top: 3px;
}

/* Navegación */
nav {
    display: flex;
    gap: 2.2rem;
    align-items: center;
}

nav a.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

nav a.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent-cyan));
    box-shadow: 0 0 8px var(--accent-cyan);
    transition: width 0.3s ease;
}

nav a.nav-link:hover {
    color: #fff;
}

nav a.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
}

nav .mobile-cta {
    display: none;
}

/* Botones */
.btn-primary {
    position: relative;
    background: linear-gradient(135deg, #13233f 0%, var(--primary) 70%, #1a3c63 100%);
    color: #fff;
    padding: 0.78rem 1.65rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: 1px solid rgba(0, 217, 232, 0.4);
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 217, 232, 0.18), inset 0 0 10px rgba(0, 217, 232, 0.1);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: var(--accent-cyan);
    box-shadow: 0 8px 24px rgba(0, 217, 232, 0.35);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.78rem 1.65rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(0, 217, 232, 0.06);
    border-color: rgba(0, 217, 232, 0.35);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 9.5rem 6% 4rem 6%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(0, 217, 232, 0.08);
    border: 1px solid rgba(0, 217, 232, 0.3);
    padding: 0.45rem 1.25rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-cyan);
    letter-spacing: 0.8px;
    margin-bottom: 2rem;
    box-shadow: 0 0 16px rgba(0, 217, 232, 0.15);
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 217, 232, 0.6); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(0, 217, 232, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 217, 232, 0); }
}

.hero h1 {
    font-size: 4.1rem;
    font-weight: 900;
    line-height: 1.12;
    max-width: 960px;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.9);
}

.shimmer-text {
    background: linear-gradient(135deg, #FFFFFF 15%, var(--accent-cyan) 50%, var(--primary-light) 85%, #FFFFFF 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 720px;
    line-height: 1.65;
    margin-bottom: 2.6rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.hero-description strong {
    color: #fff;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 3.8rem;
    width: 100%;
    justify-content: center;
}

/* Metrics Bar */
.metrics-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1.2rem 2.8rem;
    border-radius: 24px;
    backdrop-filter: blur(20px);
    margin-bottom: 3.8rem;
    box-shadow: 0 10px 35px rgba(0,0,0,0.6);
    width: 100%;
    max-width: 820px;
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.metrics-bar:hover {
    border-color: rgba(0, 217, 232, 0.35);
    transform: translateY(-3px);
}

.metric-item {
    text-align: center;
}

.metric-num {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent-cyan);
    letter-spacing: -0.5px;
}

.metric-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

.divider {
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg, transparent, rgba(0, 217, 232, 0.3), transparent);
}

/* Glass Mockup Frame */
.hero-mockup-wrapper {
    width: 100%;
    max-width: 850px;
}

.glass-window {
    background: rgba(8, 14, 26, 0.88);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 25px 60px rgba(0,0,0,0.85);
    backdrop-filter: blur(24px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-window:hover {
    border-color: rgba(0, 217, 232, 0.4);
}

.window-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.85rem 1.3rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 1rem;
}

.dots { display: flex; gap: 6px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.window-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.window-body {
    padding: 1.6rem;
    overflow-x: auto;
}

.window-body pre code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    line-height: 1.65;
    color: #f0f0f0;
}

.code-keyword { color: var(--accent-cyan); font-weight: 600; }
.code-comment { color: #526f96; font-style: italic; }
.code-func { color: #8DB3E2; font-weight: 600; }

/* Bento Grid */
.container {
    padding: 6.5rem 6%;
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 4rem;
}

.sub-title {
    color: var(--accent-cyan);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 3px;
}

.section-title-wrap h2 {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-top: 0.5rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}

.bento-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 26px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.bento-card:hover {
    border-color: rgba(0, 217, 232, 0.35);
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8);
}

.bento-hero {
    grid-column: span 2;
}

.bento-wide {
    grid-column: span 3;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.card-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 217, 232, 0.12);
    color: var(--accent-cyan);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 217, 232, 0.3);
}

.bento-icon {
    width: 54px;
    height: 54px;
    background: rgba(0, 217, 232, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    margin-bottom: 1.6rem;
    border: 1px solid rgba(0, 217, 232, 0.25);
    transition: all 0.35s ease;
}

.bento-card:hover .bento-icon {
    transform: scale(1.08);
    border-color: var(--accent-cyan);
}

.bento-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: -0.4px;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 1.6rem;
}

.tech-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-tags span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.38rem 0.9rem;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #E8E8E8;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-tags .tag-highlight {
    background: rgba(0, 217, 232, 0.12);
    border: 1px solid rgba(0, 217, 232, 0.35);
    color: var(--accent-cyan);
    font-weight: 700;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.4rem;
    border-radius: 24px;
    transition: all 0.35s ease;
}

.step-card:hover {
    border-color: rgba(0, 217, 232, 0.35);
    transform: translateY(-4px);
}

.step-num {
    font-size: 3.2rem;
    font-weight: 900;
    color: rgba(74, 118, 168, 0.25);
    display: block;
    margin-bottom: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
}

.step-card:hover .step-num {
    color: var(--accent-cyan);
}

.step-card h4 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.6;
}

/* Footer CTA */
footer {
    padding: 4rem 6% 3rem 6%;
}

.footer-cta-card {
    background: linear-gradient(180deg, rgba(19, 35, 63, 0.95) 0%, rgba(5, 8, 17, 0.98) 100%);
    border: 1px solid rgba(0, 217, 232, 0.3);
    padding: 4.8rem 2.5rem;
    border-radius: 36px;
    text-align: center;
    box-shadow: 0 0 60px rgba(0, 217, 232, 0.1);
    margin-bottom: 3.5rem;
}

.footer-cta-card h2 {
    font-size: 2.6rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.footer-cta-card p {
    color: var(--text-muted);
    font-size: 1.12rem;
    max-width: 620px;
    margin: 0 auto 2.4rem auto;
}

.cta-large {
    padding: 1.05rem 2.6rem;
    font-size: 1.08rem;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    header {
        padding: 0.8rem 5%;
    }

    .desktop-cta {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: fixed;
        top: 68px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 68px);
        background: rgba(5, 8, 17, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    nav.active {
        right: 0;
    }

    nav a.nav-link {
        font-size: 1.35rem;
    }

    nav .mobile-cta {
        display: inline-flex;
        width: 100%;
        max-width: 280px;
        margin-top: 1rem;
    }

    .hero {
        padding-top: 8rem;
    }

    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: -0.8px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions a {
        width: 100%;
    }

    .metrics-bar {
        flex-direction: column;
        gap: 1.2rem;
        padding: 1.5rem;
    }

    .divider {
        width: 80%;
        height: 1px;
    }

    .bento-grid, .process-steps {
        grid-template-columns: 1fr;
    }

    .bento-hero, .bento-wide {
        grid-column: span 1;
    }

    .bento-wide {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }

    .footer-cta-card h2 {
        font-size: 1.9rem;
    }
}

@media (max-width: 480px) {
    .brand-text {
        font-size: 1.2rem;
    }

    .logo-img {
        height: 52px !important;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title-wrap h2 {
        font-size: 1.9rem;
    }

    .window-body pre code {
        font-size: 0.78rem;
    }
}