.recursos-hero {
    position: relative;
    height: 50vh; 
    min-height: 500px;
    background-color: var(--azul-intra, #003366);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.recursos-hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.recursos-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out, visibility 1.5s;
}

.recursos-hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.recursos-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 51, 102, 0.6) 0%, rgba(0, 25, 50, 0.3) 100%);
    z-index: 2;
}

.recursos-hero-content {
    position: relative;
    z-index: 3;
}

.recursos-hero h1 {
    color: var(--blanco, #ffffff);
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

@media (max-width: 992px) {
    .recursos-hero h1 {
        font-size: 2.5rem;
    }
}

.recursos-section {
    padding: 90px 2%; 
    background-color: #ffffff;
}

.recursos-section .container {
    max-width: 1600px !important; 
    width: 96% !important; 
}

.recursos-title {
    color: var(--azul-intra, #003366);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto 15px auto;
    position: relative;
    display: block; 
    text-align: center; 
}

.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.15rem; 
    color: #4b5563;
    max-width: 900px;
    line-height: 1.8;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.recursos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; 
    width: 100%;
    margin: 0 auto;
}

.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%; 
}

.recursos-pro-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 48px rgba(0, 51, 102, 0.14);
}

.recursos-card-img {
    height: 210px; 
    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);
}

.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));
}

.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);
}

.recursos-pro-content {
    padding: 5px 30px 40px 30px; 
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
}

.recursos-pro-content h3 {
    color: var(--azul-intra, #003366);
    font-size: 1.4rem; 
    font-weight: 700;
    margin-bottom: 14px;
}

.recursos-pro-content p {
    color: #4b5563;
    font-size: 1.15rem; 
    line-height: 1.7;
    margin: 0;
    text-align: center; 
}

@media (max-width: 1250px) {
    .recursos-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 35px;
    }
}

@media (max-width: 700px) {
    .recursos-grid {
        grid-template-columns: 1fr; 
    }
    
    .recursos-hero h1 {
        font-size: 2.5rem;
    }

    .recursos-section .container {
        width: 92% !important;
    }
}