/* css/institucional.css - Versión Final Optimizada - Marzo 2026 */

.sidebar-nav {
    background-color: var(--white-pure);
    padding: 1.8rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 110px;
    transition: all 0.3s ease;
}
.sidebar-nav h4 {
    color: var(--primary-deep-green);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 0.8rem;
}
.sidebar-nav h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: var(--border-radius-pill);
}

/* Menú Lateral */
.nav-link-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1.25rem;
    color: var(--text-medium);
    text-decoration: none;
    border-radius: var(--border-radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.nav-link-custom:hover {
    background-color: var(--primary-pale-green);
    color: var(--primary-deep-green);
    transform: translateX(8px);
}
.nav-link-custom.active {
    background-color: var(--primary-deep-green);
    color: var(--white-pure);
    box-shadow: 0 4px 15px rgba(var(--primary-deep-green-rgb), 0.25);
    font-weight: 700;
}

/* Botones de Descarga - Centrado PERFECTO */
.download-btn {
    width: 50px !important;
    height: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid var(--primary-vibrant-green) !important;
    color: var(--primary-vibrant-green) !important;
    border-radius: 50% !important;
    font-size: 1.35rem !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0;
}
.download-btn:hover {
    background-color: var(--primary-vibrant-green) !important;
    color: white !important;
    transform: scale(1.1) !important;
}

/* === Tarjetas Misión/Visión === */
.mission-card {
    background: var(--white-pure);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(var(--primary-vibrant-green-rgb), 0.3);
}
.mission-icon {
    font-size: 2.8rem;
    color: var(--primary-vibrant-green);
    margin-bottom: 1.5rem;
    background-color: var(--primary-light-green);
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.5s ease;
}
.mission-card:hover .mission-icon {
    transform: rotateY(360deg);
}

/* === Línea de Tiempo === */
.timeline {
    position: relative;
    padding: 1rem 0;
    margin-left: 10px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent-gold), var(--primary-pale-green));
    border-radius: var(--border-radius-pill);
}
.timeline-item {
    position: relative;
    padding-left: 45px;
    margin-bottom: 3.5rem;
}
.timeline-marker {
    position: absolute;
    left: -11px;
    top: 0;
    width: 25px;
    height: 25px;
    background-color: var(--white-pure);
    border: 4px solid var(--accent-gold);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}
.timeline-item:hover .timeline-marker {
    background-color: var(--accent-gold);
    transform: scale(1.2);
}
.timeline-year {
    display: inline-block;
    background-color: var(--primary-deep-green);
    color: var(--white-pure);
    padding: 0.3rem 1rem;
    border-radius: var(--border-radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

/* === Acordeón Sellos === */
.accordion-custom .accordion-item {
    border: 1px solid var(--border-light);
    margin-bottom: 1.2rem;
    border-radius: var(--border-radius-md) !important;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.accordion-custom .accordion-button {
    padding: 1.2rem;
    font-weight: 700;
    color: var(--primary-deep-green);
}
.accordion-custom .accordion-button:not(.collapsed) {
    background-color: var(--primary-pale-green);
    color: var(--primary-deep-green);
}

/* Responsive */
@media (max-width: 991px) {
    .sidebar-nav {
        position: static;
        margin-bottom: 2.5rem;
    }
}
