/* --- Estilos para el Centro de Recursos (Pestañas) --- */

.tab-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Ocultar el input de radio */
.tab-container input[type="radio"] {
    display: none;
}

/* Estilo general para las etiquetas (los botones de pestaña) */
.tab-label {
    display: inline-block;
    padding: 15px 25px;
    margin-right: 5px;
    cursor: pointer;
    background-color: #f0f0f0;
    color: #555;
    border-radius: 8px 8px 0 0;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.tab-label i {
    margin-right: 8px;
}

/* Estado activo de la pestaña */
.tab-container input[type="radio"]:checked + .tab-label {
    background-color: #004d99; /* Azul corporativo */
    color: white;
    border-bottom: 3px solid #00aaff;
}

/* Contenido de las pestañas */
.tab-content-wrapper {
    background-color: white;
    padding: 30px;
    border: 1px solid #ddd;
    border-top: none; /* Se une visualmente a las etiquetas */
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

/* Mostrar solo el contenido de la pestaña seleccionada */
#tab-videos:checked ~ .tab-content-wrapper #content-videos,
#tab-manuales:checked ~ .tab-content-wrapper #content-manuales,
#tab-faq:checked ~ .tab-content-wrapper #content-faq {
    display: block;
}

.tab-description {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

/* --- Estilos para la cuadrícula de Videos --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-item h3 {
    color: #004d99;
    margin-bottom: 10px;
}

.video-player {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.video-player iframe {
    display: block;
}


/* --- Estilos para la lista de Manuales --- */
.manual-list-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.manual-item {
    flex: 1 1 300px; /* Flexibilidad en el tamaño */
    background-color: #f9f9f9;
    padding: 20px;
    border-left: 5px solid #00aaff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pdf-icon-large {
    font-size: 2em;
    color: #e03c3c; /* Color rojo para el PDF */
    margin-bottom: 10px;
}

.manual-item h4 {
    margin: 5px 0 10px;
    color: #333;
}

/* --- Estilos para Preguntas Frecuentes (FAQ) --- */
.faq-acordeon {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #eee;
    margin-bottom: 10px;
    border-radius: 5px;
}

.faq-item summary {
    display: block; /* Asegura el relleno correcto */
    padding: 15px;
    background-color: #f5f5f5;
    color: #004d99;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    outline: none;
    transition: background-color 0.2s;
}

.faq-item summary:hover {
    background-color: #eaeaea;
}

.faq-item p {
    padding: 15px;
    border-top: 1px solid #eee;
    color: #555;
}
