/* BANNER - Reutiliza estilos de capacitaciones realizadas */
.capr-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;
}

.capr-banner-overlay {
    background: rgba(30, 36, 82, 0.6);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.capr-banner-overlay .container-fluid {
    max-width: 1400px;
    padding-left: 3rem;
}

.capr-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 CONTENIDO */
.proyecto-wrapper {
    background: #fff;
    padding: 4rem 0 5rem;
}

.proyecto-wrapper .container {
    max-width: 1100px; /* Más angosto para que no abarque todo */
}

/* BOTONES FICHA Y PARTICIPANTES */
.proyecto-botones {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.proy-btn-doc {
    background: #fff;
    color: #000;
    border: 2px solid #000;
    border-radius: 40px;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: MiFuente, sans-serif;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.proy-btn-doc:hover {
    background: #000;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* CAROUSEL */
.proy-carousel-detalle {
    position: relative;
    max-width: 900px; /* No abarca todo el ancho */
    margin: 0 auto;
}

.proy-carousel-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
}

/* CONTROLES TRANSPARENTES CON FONDO BLANCO REDONDEADO */
.proy-control-custom {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.proy-control-custom:hover {
    background: rgba(255, 255, 1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.proy-control-custom .carousel-control-prev-icon,
.proy-control-custom .carousel-control-next-icon {
    filter: invert(1) grayscale(100%) brightness(0); /* Flecha negra */
    width: 25px;
    height: 25px;
}

.carousel-control-prev.proy-control-custom {
    left: -30px;
}

.carousel-control-next.proy-control-custom {
    right: -30px;
}

/* INDICADORES */
.proy-indicators {
    position: relative;
    margin-top: 2rem;
    margin-bottom: 0;
}

.proy-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    margin: 0 5px;
}

.proy-indicators button.active {
    background-color: #1E2452;
    width: 30px;
    border-radius: 6px;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .capr-banner-overlay .container-fluid {
        padding-left: 2rem;
    }

    .capr-banner-titulo {
        font-size: 3rem;
    }

    .proy-carousel-img {
        height: 400px;
    }

    .proyecto-botones {
        gap: 1.5rem;
    }

    .proy-btn-doc {
        padding: 0.9rem 2.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .capr-banner {
        height: 30vh;
        min-height: 250px;
    }

    .capr-banner-overlay .container-fluid {
        padding-left: 1rem;
    }

    .capr-banner-titulo {
        font-size: 2rem;
    }

    .proyecto-botones {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .proy-btn-doc {
        width: 100%;
        max-width: 300px;
    }

    .proy-carousel-img {
        height: 300px;
    }

    .proy-control-custom {
        width: 45px;
        height: 45px;
    }

    .carousel-control-prev.proy-control-custom {
        left: -10px;
    }

    .carousel-control-next.proy-control-custom {
        right: -10px;
    }
}