/* BANNER SUPERIOR */
.capv-banner {
    background-image: url('/images/footer/FEC-WEB-PIE-DE-PAGINA.png'); /* Cambia por tu imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 40vh;
    min-height: 300px;
    position: relative;
    display: flex;
    align-items: center;
}

.capv-banner-overlay {
    background: rgba(30, 36, 82, 0.6);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.capv-banner-overlay .container-fluid {
    max-width: 1400px;
    padding-left: 3rem;
}

.capv-banner-titulo {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    font-family: MiFuenteDos, sans-serif;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    text-align: left;
    margin: 0;
    line-height: 1.1;
}

/* WRAPPER */
.capv-wrapper {
    background: #f8f9fa;
    padding: 4rem 0;
}

.capv-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* SUBTÍTULO */
.capv-subtitulo {
    font-size: 1.5rem;
    color: #333;
    font-family: MiFuente, sans-serif;
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* ITEM TIPO TABLA - 2 COLUMNAS */
.capv-item {
    display: grid;
    grid-template-columns: 280px 1fr; /* Columna imagen fija, texto flexible */
    gap: 2.5rem;
    padding: 2.5rem;
    background: white;
    border-radius: 15px;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.capv-item:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.capv-item-img {
    width: 280px;
    height: 280px;
    flex-shrink: 0;
}

.capv-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.capv-item-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.capv-item-titulo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000;
    font-family: MiFuenteDos, sans-serif;
    margin: 0;
    line-height: 1.3;
}

.capv-item-desc {
    font-size: 1.05rem;
    color: #555;
    font-family: MiFuente, sans-serif;
    line-height: 1.7;
    margin: 0;
}

/* BOTÓN LEER MÁS - Blanco con letras negras */
.capv-btn-leer {
    background: #fff;
    color: #000;
    border: 1px solid #000;
    border-radius: 10px;
    padding: 0.7rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: MiFuente, sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    width: fit-content;
}

.capv-btn-leer:hover {
    background: #000;
    color: #fff;
    transform: translateX(3px);
}

.capv-btn-leer i {
    font-size: 1.1rem;
}

/* SECCIÓN FINAL */
.capv-footer-seccion {
    text-align: center;
    padding: 3rem 0 2rem;
    margin-top: 2rem;
}

/* BOTÓN VIGENTES - Blanco alargado */
.capv-btn-realizadas {
    background: #fff;
    color: #1E2452;
    border: 1px solid #1E2452;
    border-radius: 10px;
    padding: 1.2rem 4rem;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: MiFuenteDos, sans-serif;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(30, 36, 82, 0.2);
}

.capv-btn-realizadas:hover {
    background: #1E2452;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(30, 36, 82, 0.4);
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .capv-banner-overlay .container-fluid {
        padding-left: 2rem;
    }

    .capv-banner-titulo {
        font-size: 3rem;
    }

    .capv-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem;
    }

    .capv-item-img {
        width: 100%;
        height: 250px;
    }
}

@media (max-width: 767px) {
    .capv-banner {
        height: 30vh;
        min-height: 250px;
    }

    .capv-banner-overlay .container-fluid {
        padding-left: 1rem;
    }

    .capv-banner-titulo {
        font-size: 2rem;
    }

    .capv-container {
        padding: 0 1rem;
    }

    .capv-subtitulo {
        font-size: 1.2rem;
    }

    .capv-item-titulo {
        font-size: 1.4rem;
    }

    .capv-item-desc {
        font-size: 0.95rem;
    }

    .capv-btn-realizadas {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}