/* ─── Variables de Diseño (Kinetic Laboratory) ─────────────────── */
:root {
    --ia-glow: rgba(0, 102, 255, 0.4);
    --ia-glow-strong: rgba(0, 102, 255, 0.7);
}

/* ─── Hero Section ────────────────────────────────────────────── */
.audit-hero {
    position: relative;
    padding: 10rem 0 8rem;
    overflow: hidden;
    background: #0A0A0A;
}

.audit-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(0, 102, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.audit-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
}

.audit-hero__badge span {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #FFFFFF !important;
}

.audit-hero__title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    line-height: 0.95;
    margin-bottom: 2rem;
    color: #FFFFFF;
}

.audit-hero__highlight {
    display: block;
    color: #FFFFFF;
}

.audit-hero__highlight span {
    color: #ff9d00 !important;
}

.audit-hero__desc {
    max-width: 38rem;
    color: #E5E7EB !important;
    margin-bottom: 3.5rem;
    opacity: 1 !important;
}

.audit-hero__tech-specs {
    position: absolute;
    bottom: 4rem;
    right: 5%;
    text-align: right;
    font-family: var(--font-headline);
    opacity: 0.4;
}

.audit-hero__tech-specs div {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

/* ─── Protocolo (Timeline) ─────────────────────────────────────── */
.audit-proto {
    position: relative;
    padding: 8rem 0;
}

.audit-timeline {
    position: relative;
    max-width: 900px;
    margin: 4rem auto 0;
}

.audit-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.1) 10%, rgba(255,255,255,0.1) 90%, transparent);
    transform: translateX(-50%);
}

.audit-step {
    display: flex;
    align-items: center;
    margin-bottom: 6rem;
    position: relative;
    width: 100%;
}

.audit-step:last-child { margin-bottom: 0; }

.audit-step__content {
    width: 42%;
}

.audit-step--left .audit-step__content { text-align: right; padding-right: 3rem; }
.audit-step--right .audit-step__content { text-align: left; padding-left: 3rem; margin-left: auto; }

.audit-step__node {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    background: var(--color-surface);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.audit-step:hover .audit-step__node {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px var(--ia-glow);
}

.audit-step__num {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-on-surface-variant);
}

.audit-step:hover .audit-step__num { color: var(--color-primary); }

/* ─── Final CTA ───────────────────────────────────────────────── */
.audit-cta {
    background: #0A0A0A;
    border-radius: var(--radius-xl);
    padding: 6rem 3rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    margin: 4rem 0;
}

.audit-cta__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}
/* ─── Media Queries (Específicos de Página) ────────────────────── */

@media (max-width: 992px) {
    /* Hero Buttons */
    .hero-btns, .final-cta-btns {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-btns .btn, .final-cta-btns .btn {
        width: 100%;
        justify-content: center;
    }

    /* Bento Cards Fix */
    .bento-grid {
        display: flex;
        flex-direction: column;
    }
    .bento-card {
        width: 100%;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        min-height: auto !important;
    }
    .bento-card__main {
        width: 100%;
    }
    .bento-card__text {
        max-width: 100% !important;
        margin-left: auto;
        margin-right: auto;
    }
    .analysis-viz-container, .roadmap-viz {
        margin-top: 2rem;
        width: 100% !important;
    }
    .roadmap-viz {
        height: 200px !important;
    }

    .audit-hero {
        padding: 8rem 0 4rem;
        text-align: center;
    }
    .audit-hero__bg-image {
        position: relative;
        width: 100%;
        height: 300px;
        order: 2;
        margin-top: 3rem;
        mask-image: linear-gradient(to top, black 40%, transparent 100%);
        -webkit-mask-image: linear-gradient(to top, black 40%, transparent 100%);
    }
    .audit-hero .container {
        display: flex;
        flex-direction: column;
    }
    .audit-hero__desc {
        margin-left: auto;
        margin-right: auto;
    }
    .audit-hero__tech-specs {
        position: static;
        margin-top: 2rem;
        text-align: center;
        opacity: 0.3;
    }

    /* Timeline Responsive */
    .audit-timeline::before {
        left: 20px;
        transform: none;
    }
    .audit-step {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 50px;
        margin-bottom: 4rem;
    }
    .audit-step__content {
        width: 100% !important;
        text-align: left !important;
        padding: 0 !important;
    }
    .audit-step__node {
        left: 20px;
        transform: translateX(-50%);
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 768px) {
    .audit-hero__title {
        font-size: 3rem;
    }
    .audit-cta {
        padding: 4rem 1.5rem;
    }
    .audit-cta__title {
        font-size: 2.2rem;
    }
}
