body{
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.4) 100%
    ),
    url("../imagenes/paginas/bg-page.jpg") lightgray 50% /
        cover no-repeat;
}


.section-destacados{
    background: linear-gradient(to bottom, transparent, black);
}

.contenedor-imagen {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 1rem;
}

.img-proyecto {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-orange {
    background-color: #ff6600;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    padding: 10px;
}
.subtitulo-proyecto{
    height: 50px;
}

 /* Estilo para las tarjetas */
 .article-cards .card {
    position: static;
    height: 450px;
    width: 100%;
    box-sizing: border-box;
    border: 2px solid var(--principal);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1rem;
}

/* Efecto hover para las tarjetas */
.article-cards .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Estilo del cuerpo de las tarjetas */
.article-cards .card-body {
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    flex-grow: 1;
    color: var(--blanco);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 0 0 1rem 1rem;
}

/* Estilo de las imágenes */
.article-cards .card img {
    height: 60%;
    width: 100%;
    object-fit: cover;
    border-radius: 1rem 1rem 0 0;
}

/* Título de las tarjetas */
.article-cards .card-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--principal);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

/* Estilo del texto de las tarjetas */
.article-cards .card-text {
    font-size: 1rem;
    color: var(--blanco);
    line-height: 1.5;
    text-align: center;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

/* Estilo del botón */
.btn-orange {
    background-color: #ff6600;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    padding: 10px;
}

.btn-orange:hover {
    background-color: #e65c00;
}


/* Carrusel */
/* Estilos para el carrusel */
#carouselProyectos .carousel-inner .carousel-item img {
    width: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    width: 500px;
    height: 700px;
    border-radius: 1rem;
}

/* Hacer que la imagen activa sea cuadrada de 500px */
#carouselProyectos .carousel-item.active img {
    width: 500px;
    height: 700px;
    object-fit: cover; /* Mantener la imagen centrada y recortada si es necesario */
    margin: 0 auto; /* Centrar la imagen en el carrusel */
}

/* Estilos generales para las imágenes del carrusel */
#carouselProyectos .carousel-item img {
    height: auto; /* Las imágenes no activas se ajustarán automáticamente */
    max-height: 100%; /* Aseguramos que no se deformen */
    margin: 0 auto; /* Centrado en el carrusel */
}

/* Control de transición suave cuando se cambian las imágenes */
#carouselProyectos .carousel-item-next,
#carouselProyectos .carousel-item-prev,
#carouselProyectos .carousel-item.active {
    transition: transform 0.3s ease-in-out;
}
