/* Carrusel full width */
#carouselExampleIndicators {
    width: 100vw;
    max-height: 600px;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Imágenes uniformes */
.carousel-item img {
    width: 100%; 
    height: 600px;
    object-fit: cover;
    object-position: center;
}

/* Controles del carrusel */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    background-color: rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Indicadores */
.carousel-indicators [data-bs-target] {
    background-color: #007bff;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    opacity: 0.7;
}
.carousel-indicators .active {
    background-color: #0056b3;
    opacity: 1;
}

/* Superposición de texto/logo */
.carousel-caption {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    padding: 2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    text-align: center;
}

.carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}
.carousel-caption p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.logo-overlay {
    max-width: 120px;
    height: auto;
}

/* Animación fade in desde abajo */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación aplicada a múltiples elementos */
.carousel-caption h2,
.carousel-caption p,
.carousel-caption img,
.carousel-item h2,
.carousel-item p,
.carousel-img-small {
    animation: fadeUp 1.2s ease-out forwards;
    opacity: 0;
    animation-fill-mode: both;
}

/* Delays animaciones */
.carousel-caption img { animation-delay: 0.2s; }
.carousel-caption h2 { animation-delay: 0.4s; }
.carousel-caption p  { animation-delay: 0.6s; }
.carousel-item h2    { animation-delay: 0.3s; }
.carousel-item p     { animation-delay: 0.6s; }

/* Slide especial con imagen a la derecha */
.carousel-item {
    background-color: #000;
}

/* Imagen del slide especial */
.carousel-img-small {
    max-height: 100%;
    object-fit: contain;
}

/* Asegura altura consistente */
.carousel-inner, 
.carousel-item, 
.carousel-item > .d-flex {
    height: 600px;
}

/* Estructura de slide con texto + imagen */
.carousel-item > .d-flex {
    padding: 2rem;
    height: 600px;
}
.carousel-item > .d-flex > div {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Catálogo */
.catalogo-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.catalogo-item a:hover {
    opacity: 0.9;
}



/* VALORES EMPRESA */
.valores-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.valor {
    text-align: center;
    max-width: 250px;
    transition: transform 0.3s ease;
}
.valor:hover {
    transform: translateY(-5px);
}

.fondo-parrafo-valores {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 1.1rem;
    color: #333;
}

/* Ajuste de sección para evitar hueco exagerado */
.empresa-tarjetas-wrapper {
    margin-bottom: 0.5rem !important;
}

/*color letras h2*/
.blanco {
    font-size: 1.2rem;
    color: white;
  }



/* Página del banner */
.banner {
    background-color: #4682B4;
    color: white;
}

.banner p {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Banner Serie 4200 a pantalla completa */
.bannerSerie4200 {
    width: 100%;
    height: 20vw; /* Reducimos la altura del banner para que la imagen sobresalga más */
    background-color: #e0e0e6;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    align-items:flex-start; 
    background-image: url('../images/fondos/fondo_edificio.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 45vw;
}

/* Estilo para la imagen del perfil  */
.bannerSerie4200 .col-md-6 img.img-fluid {
    max-width: 36%; /*hacer la imagen más pequeña */
    height: auto;
    bottom: -10vw; /* Ajustamos el bottom para que sobresalga más proporcionalmente a la altura del banner */
    transform: translateX(-50%);
    z-index: 10;
}

/*Pantalla movil*/
@media (max-width: 768px) {
    .bannerSerie4200 .col-md-6 img.img-fluid {
        max-width: 60%; /* imagen más pequeña en móviles */
        bottom: -100px; /* ajusta si se ve cortada */
        left: 50%;
    }

    .bannerSerie4200 .btn {

        font-size: 1.2rem; /* botón más grande */
        padding: 12px 24px;
        margin-top: 20px;
        display: inline-block;
    }

    .bannerSerie4200 .col-md-6.text-center.text-md-start {
        align-items: center;
        /* text-align: center; */
    }
}



/* RESPONSIVE */
@media (max-width: 768px) {
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
    .carousel-caption p {
        font-size: 1rem;
    }
    .carousel-item > .d-flex {
        flex-direction: column;
        padding: 1rem;
    }
}






/* //tarjetas de catalogos y sistemas */
.catalogos-sistemas {
    padding: 40px 20px;
    background-color: #4477A6;
}

.catalogos-container {
    max-width: 1200px;
    margin: 0 auto;
}

.catalogos-header {
    text-align: center;
    margin-bottom: 30px;
}

.catalogos-header h2,
.catalogos-header p {
    color: #fff;
}

.catalogos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.catalogo-item {
    text-align: center;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
}

.catalogo-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.catalogo-item img:hover {
    transform: scale(1.05);
}

.catalogo-item h6 {
    margin-top: 10px;
    font-weight: bold;
    color: #1c2f5c;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 992px) {
    .catalogos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .catalogos-grid {
        grid-template-columns: 1fr;
    }
}


/*Tarjetas de servicios industriales*/
.servicios-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.servicios-header {
    text-align: center;
    margin-bottom: 2rem;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: center;
}

.servicio-item img {
    max-width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.servicio-item img:hover {
    transform: scale(1.05);
}

.servicio-item h6 {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #1c2f5c;
}



/**/
