/* ================================
   PRENSA RECURSOS - DISEÑO MODERNO
   ================================ */

/* Container principal */
.prensa-recursos-container {
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    min-height: 100vh;
    padding: 40px 0;
    position: relative;
}

.prensa-recursos-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #01ace4 0%, #0d8dc4 50%, #01ace4 100%);
    display: none; /* Deshabilitado temporalmente para evitar conflictos */
}

/* Secciones */
.recursos-section {
    margin-bottom: 60px;
}

.recursos-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
}

.recursos-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: linear-gradient(135deg, #01ace4 0%, #0d8dc4 100%);
    border-radius: 2px;
}

/* Grid de recursos */
.recursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Cards de recursos */
.recurso-prensa-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(1, 172, 228, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.recurso-prensa-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(1, 172, 228, 0.2);
    text-decoration: none;
    color: inherit;
}

.recurso-prensa-imagen {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fbff 0%, #e8f4f8 100%);
}

.recurso-prensa-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recurso-prensa-card:hover .recurso-prensa-imagen img {
    transform: scale(1.05);
}

.recurso-prensa-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(1, 172, 228, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recurso-prensa-card:hover .recurso-prensa-overlay {
    opacity: 1;
}

.recurso-prensa-overlay i {
    font-size: 40px;
    color: #ffffff;
}

.recurso-prensa-contenido {
    padding: 25px;
}

.recurso-prensa-titulo {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.3;
}

.recurso-prensa-descripcion {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.recurso-prensa-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recurso-prensa-tipo {
    background: linear-gradient(135deg, #01ace4 0%, #0d8dc4 100%);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.recurso-prensa-accion {
    display: flex;
    align-items: center;
    color: #01ace4;
    font-size: 14px;
    font-weight: 600;
}

.recurso-prensa-accion i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.recurso-prensa-card:hover .recurso-prensa-accion i {
    transform: translateX(5px);
}

/* Grid de junta directiva */
.junta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Cards de miembros de junta */
.junta-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(1, 172, 228, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.junta-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(1, 172, 228, 0.2);
    text-decoration: none;
    color: inherit;
}

.junta-foto {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.junta-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.junta-card:hover .junta-foto img {
    transform: scale(1.05);
}

.junta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 172, 228, 0.8) 0%, rgba(13, 141, 196, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.junta-card:hover .junta-overlay {
    opacity: 1;
}

.junta-overlay i {
    font-size: 30px;
    color: #ffffff;
}

.junta-info {
    padding: 25px;
    text-align: center;
}

.junta-nombre {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.2;
}

.junta-cargo {
    font-size: 16px;
    color: #01ace4;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.junta-detalles {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.junta-detalles i {
    margin-right: 8px;
    color: #01ace4;
}

/* Responsive */
@media (max-width: 768px) {
    .recursos-grid,
    .junta-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .recursos-section-title {
        font-size: 24px;
        padding-left: 15px;
    }
    
    .recursos-section-title::before {
        width: 3px;
        height: 25px;
    }
    
    .recurso-prensa-contenido,
    .junta-info {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .prensa-recursos-container {
        padding: 20px 0;
    }
    
    .recursos-section {
        margin-bottom: 40px;
    }
    
    .recursos-section-title {
        font-size: 20px;
    }
}

/* Efectos adicionales */
.recurso-prensa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #01ace4 0%, #0d8dc4 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.recurso-prensa-card:hover::before {
    transform: scaleX(1);
}

.junta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #01ace4 0%, #0d8dc4 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.junta-card:hover::before {
    transform: scaleX(1);
}

/* Reset completo para evitar conflictos con el menú principal */
.prensa-recursos-container {
    isolation: isolate;
}

.prensa-recursos-container * {
    box-sizing: border-box;
}

/* Evitar que los estilos afecten elementos fuera del container */
body:has(.prensa-recursos-container) .navbar-nav .nav-link,
body:has(.prensa-recursos-container) .navbar-nav .nav-link::before,
body:has(.prensa-recursos-container) .navbar-nav .nav-link::after,
body:has(.prensa-recursos-container) .navbar-nav .dropdown-menu,
body:has(.prensa-recursos-container) .navbar-nav .dropdown-item {
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Reset específico para navegación */
.navbar-nav .nav-link {
    border-bottom: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
    border-bottom: none !important;
    outline: none !important;
}

/* Solución definitiva - Reset completo del menú cuando esta página está activa */
body .navbar-nav .nav-link,
body .navbar-nav .nav-item,
body .nav-link,
body .dropdown-item {
    border: 0 !important;
    border-bottom: 0 !important;
    border-top: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

body .navbar-nav .nav-link::before,
body .navbar-nav .nav-link::after {
    display: none !important;
    content: none !important;
}

/* Asegurar que el menú activo no tenga bordes */
body .navbar-nav .nav-link.active,
body .navbar-nav .nav-link:hover,
body .navbar-nav .nav-link:focus {
    border: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

/* Atacar específicamente el problema del ::before del container */
.prensa-recursos-container::before {
    display: none !important;
}

/* Override específico para Bootstrap */
.container-fluid.cabecera .navbar-nav .nav-link,
.navbar-expand-lg .navbar-nav .nav-link,
.navbar-light .navbar-nav .nav-link {
    border-bottom: none !important;
    border: none !important;
}

/* Reset más agresivo usando selectores de Bootstrap */
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .show > .nav-link,
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:hover {
    border-bottom: 0 !important;
    box-shadow: none !important;
}