/* PYA - Reducir espacio entre encabezado y contenido */
.view-article .article-details,
.view-article .article-header {
    margin-top: 0;
}

.view-article #sp-main-body {
    padding-top: 35px;
}

/* PYA - Fondo azul institucional en menú desplegable */
.sp-megamenu-parent .sp-dropdown li.active > a,
.sp-megamenu-parent .sp-dropdown li.active > a:hover,
.sp-megamenu-parent .sp-dropdown li.current > a {
    background-color: #173E68 !important;
    color: #ffffff !important;
}

/* Hover de los elementos del menú */
.sp-megamenu-parent .sp-dropdown li > a:hover {
    background-color: #173E68 !important;
    color: #ffffff !important;
}

/* MENU PRINCIPAL PYA */
#sp-header .sp-megamenu-parent > li > a {
    color: #003B71;
    font-weight: 600;
    font-size: 14px;
}

/* MENU ACTIVO Y HOVER */
#sp-header .sp-megamenu-parent > li:hover > a,
#sp-header .sp-megamenu-parent > li.active > a {
    color: #003B71;
}

/* ==========================================
   PYA - MENU LATERAL DE SERVICIOS
   ========================================== */

/* Contenedor del menú */
#sp-left .sp-module-content > ul.nav.menu {
    background: #ffffff;
    border: 1px solid #dce4ed;
    border-radius: 8px;
    padding: 16px;
    margin: 0;
}

/* Categorías principales */
#sp-left .sp-module-content > ul.nav.menu > li.deeper.parent {
    margin-bottom: 12px;
    border-bottom: 1px solid #e1e7ef;
    padding-bottom: 10px;
}

/* Enlaces de categorías */
/* PYA - TITULOS DE CATEGORIAS DEL MENU LATERAL */
#sp-left .sp-module-content > ul.nav.menu > li.deeper.parent > a {
    display: block;
    background: #dce6f0;
    color: #003b71;
    font-size: 15px;
    font-weight: 700;
    padding: 11px 12px;
    border-radius: 5px;
    text-decoration: none;
}

/* Eliminar simbolo > de los titulos */
#sp-left .sp-module-content > ul.nav.menu > li.deeper.parent > a::before {
    content: none !important;
}

/* Subservicios */
#sp-left .sp-module-content > ul.nav.menu > li > ul {
    list-style: none;
    padding: 8px 0 0 10px;
    margin: 0;
}

/* Enlaces de subservicios */
#sp-left .sp-module-content > ul.nav.menu > li > ul > li > a {
    display: block;
    color: #35465a;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    padding: 9px 10px;
    border-bottom: 1px solid #edf1f5;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Hover */
#sp-left .sp-module-content > ul.nav.menu > li > ul > li > a:hover {
    background: #eaf1f8;
    color: #003b71;
    padding-left: 15px;
}

/* Servicio actual */
#sp-left .sp-module-content > ul.nav.menu > li > ul > li.current > a {
    background: #003b71;
    color: #ffffff;
    font-weight: 600;
    border-radius: 4px;
}

/* Ajuste móvil */
@media (max-width: 768px) {
    #sp-left .sp-module-content > ul.nav.menu {
        padding: 12px;
    }
}