/* =======================================================
   ESTILOS BLINDADOS DE RECURSOS (recursos.css) - TARJETAS ANCHAS
   Prefijo de encapsulamiento: recursos-
   ======================================================= */

/* --- HERO RECURSOS --- */
.recursos-hero {
    height: 50vh; 
    min-height: 500px;
    background-image: url('../img/HeroRecursos.jpg'); 
    background-color: var(--azul-intra, #003366);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.recursos-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 51, 102, 0.412); 
    z-index: 1;
}

.recursos-hero-content {
    position: relative;
    z-index: 2;
}

.recursos-hero h1 {
    color: var(--blanco, #ffffff);
    font-size: 3.5rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin: 0;
}

/* --- SECCIÓN GENERAL (EXPANDIDA PARA TARJETAS MÁS ANCHAS) --- */
.recursos-section {
    padding: 90px 2%; /* Reducimos el padding lateral del fondo para ganar espacio */
    background-color: #ffffff;
}

/* TRUCO MAESTRO: Expandimos el contenedor SÓLO en esta página */
.recursos-section .container {
    max-width: 1600px !important; /* Rompemos el límite de 1200px del layout maestro */
    width: 96% !important; /* Aprovechamos casi toda la pantalla del monitor */
}

.recursos-title {
    color: var(--azul-intra, #003366);
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 auto 15px auto;
    position: relative;
    display: block; /* Cambiado de inline-block a block */
    text-align: center; /* Centrado forzado */
}

.recursos-intro {
    text-align: center !important;
}

.recursos-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 70px;
    height: 3px;
    background-color: var(--rojo-intra, #cc0000);
}

.recursos-lead {
    font-size: 1.35rem; 
    color: #4b5563;
    max-width: 900px;
    line-height: 1.8;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* --- GRID DE TARJETAS PROFESIONALES (4 EN FILA Y MÁS ANCHAS) --- */
.recursos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas exactas */
    gap: 30px; /* Separación elegante entre tarjetas */
    width: 100%;
    margin: 0 auto;
}

/* Tarjeta individual con proporciones anchas */
.recursos-pro-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 51, 102, 0.07);
    border: 1px solid rgba(0, 51, 102, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    width: 100%; /* Garantiza que llene todo el ancho disponible de su columna */
}

.recursos-pro-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 48px rgba(0, 51, 102, 0.14);
}

/* Contenedor de la fotografía superior (Ligeramente más alta para balancear el nuevo ancho) */
.recursos-card-img {
    height: 210px; /* Aumentado de 180px para mantener la proporción visual */
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #e2e8f0; 
}

.recursos-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.recursos-pro-card:hover .recursos-card-img img {
    transform: scale(1.08);
}

/* Capa oscura sutil sobre la foto */
.recursos-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,51,102,0.4));
}

/* Icono flotante superpuesto */
.recursos-floating-icon {
    width: 68px; 
    height: 68px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -34px auto 18px auto; 
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.09);
    border: 3px solid #ffffff;
}

.recursos-floating-icon i {
    font-size: 1.65rem; 
    color: var(--rojo-intra, #cc0000); 
    transition: transform 0.3s ease;
}

.recursos-pro-card:hover .recursos-floating-icon i {
    transform: scale(1.15);
}

/* Contenido de texto con márgenes laterales más amplios para el nuevo formato ancho */
.recursos-pro-content {
    padding: 5px 30px 40px 30px; /* Más padding lateral y inferior */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
}

/* Título de la tarjeta grande e imponente */
.recursos-pro-content h3 {
    color: var(--azul-intra, #003366);
    font-size: 1.65rem; 
    font-weight: 700;
    margin-bottom: 14px;
}

/* Descripción con excelente legibilidad y aire */
.recursos-pro-content p {
    color: #4b5563;
    font-size: 1.15rem; 
    line-height: 1.7;
    margin: 0;
    text-align: center;
}

/* --- RESPONSIVE DE PROTECCIÓN --- */
/* En laptops pequeñas o tablets, pasamos a 2 columnas bien anchas */
@media (max-width: 1250px) {
    .recursos-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 35px;
    }
}

/* En teléfonos celulares, 1 sola columna que toma todo el ancho */
@media (max-width: 700px) {
    .recursos-grid {
        grid-template-columns: 1fr; 
    }
    
    .recursos-hero h1 {
        font-size: 2.5rem;
    }

    .recursos-section .container {
        width: 92% !important;
    }
}