/* ============================================
   ESTILOS SEGURIDAD Y SALUD OCUPACIONAL
   ============================================ */

/* Banner Seguridad y Salud Ocupacional */
.seguridad-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 */
.seguridad-main {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

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

/* Sidebar con Tabs */
.seguridad-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 */
.seguridad-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;
}

.content-wrapper-full {
    max-width: 100%;
}

/* 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: 30px;
    text-align: justify;
}

.funciones-image {
    text-align: center;
    margin: 30px 0;
}

.sso-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.eventos-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;
    }

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

@media (max-width: 992px) {
    .seguridad-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) {
    .seguridad-main {
        padding: 0 10px;
    }

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

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