/* ============================================
   ESTILOS SECRETARÍA GENERAL
   ============================================ */

/* Banner Secretaría General */
.secretaria-banner {
    background: linear-gradient(135deg, #2d8f47 0%, #359444 100%);
    color: white;
    padding: 50px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.banner-container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.banner-contact {
    text-align: right;
}

.banner-contact p {
    margin: 5px 0;
    font-size: 1rem;
}

.banner-contact strong {
    font-weight: 600;
}

/* Contenedor Principal */
.secretaria-main {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.secretaria-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

/* Sidebar con Tabs */
.secretaria-sidebar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: fit-content;
}

.tabs-menu {
    display: flex;
    flex-direction: column;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    border: none;
    background: white;
    border-bottom: 1px solid #e8e8e8;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 0.95rem;
    color: #555;
}

.tab-button:last-child {
    border-bottom: none;
}

.tab-button:hover {
    background: #f5f5f5;
}

.tab-button.active {
    background: #359444;
    color: white;
}

.tab-icon {
    font-size: 1.2rem;
    opacity: 0.7;
}

.tab-button.active .tab-icon {
    opacity: 1;
}

.tab-text {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Contenido */
.secretaria-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    min-height: 500px;
}

.tab-content {
    display: none;
    padding: 40px;
}

.tab-content.active {
    display: block;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
}

/* Sección de Funciones */
.funciones-section h2 {
    color: #359444;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.intro-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

.funciones-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.funciones-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    line-height: 1.6;
    color: #444;
    text-align: justify;
    font-size: 0.95rem;
}

.funciones-list li:before {
    content: "\2022";
    color: #359444;
    font-weight: bold;
    font-size: 1.3rem;
    position: absolute;
    left: 8px;
}

/* Sección de Agenda */
.agenda-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
}

.agenda-title {
    color: #359444;
    font-size: 1.2rem;
    margin: 0 0 15px;
    font-weight: 700;
    border-bottom: 2px solid #359444;
    padding-bottom: 10px;
}

.agenda-content {
    text-align: center;
}

.no-eventos {
    color: #888;
    font-size: 0.95rem;
    margin: 20px 0;
}

.calendario-link a {
    color: #359444;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.calendario-link a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .agenda-section {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 992px) {
    .secretaria-container {
        grid-template-columns: 1fr;
    }

    .banner-container {
        flex-direction: column;
        text-align: center;
    }

    .banner-contact {
        text-align: center;
    }

    .banner-container h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .tab-content {
        padding: 20px;
    }

    .banner-container h1 {
        font-size: 1.6rem;
    }

    .tab-button {
        padding: 15px;
    }

    .tab-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .secretaria-main {
        padding: 0 10px;
    }

    .banner-container h1 {
        font-size: 1.4rem;
    }

    .banner-contact p {
        font-size: 0.9rem;
    }

    .funciones-list li {
        font-size: 0.9rem;
        padding-left: 25px;
    }
}
