/**
 * Estilos del Navegador Vertical de Transparencia - Zacualpan
 * Versión 4.7.0
 * 
 * Diseño minimalista con fondo blanco predominante, tipografía Montserrat,
 * sin franjas laterales decorativas y con soporte responsive completo.
 */

.zp-vertical-nav {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    color: #1e293b;
    margin: 0 0 32px 0;
    padding: 24px;
    box-sizing: border-box;
}

.zp-vertical-nav *,
.zp-vertical-nav *::before,
.zp-vertical-nav *::after {
    box-sizing: border-box;
}

/* Encabezado */
.zp-vnav-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.zp-vnav-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #006837;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.zp-vnav-back-link:hover,
.zp-vnav-back-link:focus-visible {
    color: #004d28;
    text-decoration: underline;
    transform: translateX(-2px);
}

.zp-vnav-back-icon {
    font-size: 14px;
    line-height: 1;
}

.zp-vnav-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.zp-vnav-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

/* Buscador local */
.zp-vnav-search-wrap {
    position: relative;
    width: 100%;
}

.zp-vnav-search-input {
    width: 100%;
    padding: 10px 38px 10px 14px;
    font-family: inherit;
    font-size: 13px;
    color: #0f172a;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
}

.zp-vnav-search-input:focus {
    background-color: #ffffff;
    border-color: #006837;
    box-shadow: 0 0 0 3px rgba(0, 104, 55, 0.15);
}

.zp-vnav-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #94a3b8;
    pointer-events: none;
}

.zp-vnav-search-count {
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
    font-weight: 500;
}

/* Grupos <details> */
.zp-vnav-groups {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zp-vnav-group {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background-color: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.zp-vnav-group[open] {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* <summary> cabecera del grupo */
.zp-vnav-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background-color: #f8fafc;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.15s ease;
}

.zp-vnav-summary::-webkit-details-marker {
    display: none;
}

.zp-vnav-summary:hover,
.zp-vnav-summary:focus-visible {
    background-color: #f1f5f9;
}

.zp-vnav-summary-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 12px;
}

.zp-vnav-group-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.zp-vnav-group-subtitle {
    font-size: 12px;
    color: #64748b;
    line-height: 1.3;
}

.zp-vnav-summary-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.zp-vnav-group-badge {
    background-color: #e2e8f0;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    line-height: 1.4;
}

.zp-vnav-toggle-icon {
    width: 8px;
    height: 8px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-right: 4px;
}

.zp-vnav-group[open] .zp-vnav-toggle-icon {
    transform: rotate(-135deg);
}

/* Lista de obligaciones - Navegador vertical (4.7.4: anulación estricta de viñetas Divi) */
.zp-vertical-nav ul.zp-vnav-list,
.zp-vnav-list {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background-color: #ffffff;
    max-height: 480px;
    overflow-y: auto;
}

.zp-vertical-nav ul.zp-vnav-list > li.zp-vnav-item,
.zp-vnav-item {
    list-style: none !important;
    list-style-type: none !important;
    display: block;
    margin: 0;
    padding: 0;
}

.zp-vertical-nav ul.zp-vnav-list > li.zp-vnav-item::marker {
    content: "";
    display: none;
}

.zp-vertical-nav ul.zp-vnav-list > li.zp-vnav-item::before {
    content: none !important;
    display: none !important;
}

.zp-vnav-link {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #1e293b;
    text-decoration: none;
    background-color: transparent;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.zp-vnav-link:hover,
.zp-vnav-link:focus-visible {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    text-decoration: none;
}

/* Elemento Activo (página actual) */
.zp-vnav-link--active,
.zp-vnav-item--active .zp-vnav-link {
    background-color: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #166534 !important;
    box-shadow: 0 1px 3px rgba(0, 104, 55, 0.08);
}

.zp-vnav-link--active .zp-vnav-item-ref,
.zp-vnav-item--active .zp-vnav-item-ref {
    color: #15803d !important;
    font-weight: 700;
}

.zp-vnav-link--active .zp-vnav-item-title,
.zp-vnav-item--active .zp-vnav-item-title {
    color: #14532d !important;
    font-weight: 600;
}

/* Referencia y Título del ítem */
.zp-vnav-item-ref {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #006837;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.zp-vnav-item-title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    line-height: 1.4;
}

/* Elementos no vinculados ("Próximamente") */
.zp-vnav-link--disabled {
    cursor: default;
    opacity: 0.75;
    background-color: #fafafa;
    border: 1px dashed #e2e8f0;
}

.zp-vnav-disabled-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.zp-vnav-status-pill {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    background-color: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Ocultación por filtro */
.zp-vnav-item--hidden {
    display: none !important;
}

/* Accesibilidad y scrollbar */
.zp-vnav-list::-webkit-scrollbar {
    width: 6px;
}

.zp-vnav-list::-webkit-scrollbar-track {
    background: #f8fafc;
}

.zp-vnav-list::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

/* Modo Responsive */
@media (max-width: 640px) {
    .zp-vertical-nav {
        padding: 16px;
        border-radius: 8px;
    }

    .zp-vnav-title {
        font-size: 18px;
    }

    .zp-vnav-summary {
        padding: 12px 14px;
    }

    .zp-vnav-list {
        max-height: 380px;
    }
}
