/* FORZAR GRID LAYOUT CON ALIGN-ITEMS START */
.services-layout {
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
    gap: 0 !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    align-items: start !important;
    min-height: 100vh !important;
    position: relative !important;
}

/* SIDEBAR SIN STICKY - SOLUCIÓN AL PROBLEMA DE SCROLL */
.services-sidebar {
    position: static !important; /* CAMBIADO: De sticky a static */
    top: auto !important; /* CAMBIADO: De 90px a auto */
    align-self: flex-start !important;
    max-height: none !important; /* CAMBIADO: Sin límite de altura */
    overflow-y: visible !important; /* CAMBIADO: Visible en vez de auto */
    z-index: 100 !important;
    
    /* Asegurar que no haya overflow escondido */
    contain: none !important;
}

/* ASEGURAR QUE CONTAINER-FLUID NO TENGA OVERFLOW */
.container-fluid {
    overflow: visible !important;
}

/* ASEGURAR QUE SERVICES-PAGE-CONTENT NO TENGA OVERFLOW */
.services-page-content {
    overflow: visible !important;
    position: relative !important;
}

/* ===== RESPONSIVE - MOBILE SIN CAMBIOS ===== */
@media (max-width: 1200px) {
    .services-layout {
        grid-template-columns: 250px 1fr !important;
        align-items: start !important;
    }
}

@media (max-width: 968px) {
    /* En mobile, volver al diseño original (horizontal) */
    .services-layout {
        grid-template-columns: 1fr !important;
    }

    .services-sidebar {
        position: static !important;
        max-height: none !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding: 30px 20px !important;
    }

    .services-nav {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        justify-content: center !important;
    }

    .service-nav-link {
        padding: 12px 20px !important;
        border-left: none !important;
        border-bottom: 2px solid transparent !important;
        border-radius: 25px !important;
        font-size: 0.8rem !important;
    }

    .service-nav-link:hover,
    .service-nav-link.active {
        padding-left: 20px !important; /* No padding extra en mobile */
    }
}