/* ============================================
   Estilos para la pagina de Mantenimiento y Servicios Generales
   ============================================ */

/* Banner Mantenimiento y Servicios Generales */
.comite-banner {
    background: linear-gradient(135deg, #2d8a3e 0%, #359444 100%);
    padding: 40px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.banner-container h1 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.banner-contact {
    color: #ffffff;
    text-align: right;
}

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

/* Contenedor principal */
.comite-main {
    background: #f5f5f5;
    padding: 40px 20px;
    min-height: 70vh;
}

.comite-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

/* Sidebar con tabs */
.comite-sidebar {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

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

.tab-button {
    background: transparent;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

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

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

.tab-button.active {
    background: #f0f8f1;
    border-left: 4px solid #359444;
}

.tab-icon {
    font-size: 20px;
    color: #666;
}

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

.tab-text {
    font-size: 15px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

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

/* Contenido principal */
.comite-content {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Layout para funciones con widget de noticias */
.tab-content#funciones {
    display: none;
}

.tab-content#funciones.active {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.content-wrapper h2 {
    color: #359444;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.content-wrapper p {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    text-align: justify;
    margin-bottom: 20px;
}

/* Lista de funciones */
.funciones-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.funciones-list li {
    padding: 12px 0;
    padding-left: 25px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    text-align: justify;
    position: relative;
}

.funciones-list li::before {
    content: '\2022';
    color: #359444;
    font-size: 20px;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 8px;
}

/* Widget de Ultimas Noticias */
.noticias-widget {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
}

.noticias-widget h3 {
    color: #359444;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    text-transform: uppercase;
}

.noticias-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.no-events {
    color: #666;
    font-size: 14px;
    text-align: center;
    padding: 20px 0;
}

.calendario-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.btn-add {
    background: transparent;
    border: 2px solid #359444;
    color: #359444;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add:hover {
    background: #359444;
    color: #ffffff;
}

.btn-calendar {
    color: #359444;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-calendar:hover {
    text-decoration: underline;
}

/* Otros tabs */
#mision .content-wrapper,
#vision .content-wrapper,
#personal .content-wrapper,
#documentos .content-wrapper,
#organigrama .content-wrapper {
    max-width: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .comite-container {
        grid-template-columns: 220px 1fr;
        gap: 20px;
    }

    .tab-content#funciones.active {
        grid-template-columns: 1fr;
    }

    .noticias-widget {
        margin-top: 30px;
    }

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

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

    .comite-sidebar {
        position: static;
    }

    .tabs-menu {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .tab-button {
        flex: 1;
        min-width: 150px;
        border-bottom: none;
        border-right: 1px solid #e5e5e5;
    }

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

    .tab-button.active {
        border-left: none;
        border-bottom: 4px solid #359444;
    }

    .comite-content {
        padding: 20px;
    }

    .tab-content#funciones.active {
        gap: 20px;
    }

    .banner-container {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

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

    .comite-content {
        padding: 15px;
    }

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

    .content-wrapper h2 {
        font-size: 20px;
    }

    .funciones-list li {
        font-size: 13px;
    }

    .noticias-widget h3 {
        font-size: 16px;
    }

    .tab-button {
        min-width: 120px;
        padding: 15px 10px;
    }

    .tab-text {
        font-size: 13px;
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
