/*Fondo Secciones Catalogo*/
/* Fondo de la opcion catalogo */
.fondo_catalogo {
    position: relative;
    background: url('../images/secciones_home/fondo_catalogo.png') center center / cover no-repeat;
    overflow: hidden;
    aspect-ratio: 2464 / 466;
    padding: 1rem 6.5rem;
}

/* Capa oscura o clara encima del fondo */
.fondo_catalogo::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Asegura que el contenido quede visible sobre la capa */
.fondo_catalogo * {
    position: relative;
    z-index: 2;
}

/* Tamaños de texto fluidos, se ajustan solos entre móvil y desktop */
.fondo_catalogo h2 {
    font-size: clamp(1.5rem, 4vw, 2.75rem);
    line-height: 1.2;
}

.fondo_catalogo h5 {
    font-size: clamp(0.9rem, 1.8vw, 1.15rem);
}

/* Tablets */
@media (max-width: 992px) {
    .fondo_catalogo {
        aspect-ratio: unset;
        min-height: 22rem;
        padding: 3rem;
    }
}

/* Celulares grandes / tablets pequeñas */
@media (max-width: 768px) {
    .fondo_catalogo {
        min-height: 20rem;
        padding: 2.5rem 2rem;
        background-position: 70% center !important;
        background-size: cover !important;
    }

    .fondo_catalogo::before {
        background-color: rgba(0, 0, 0, 0.45) !important;
    }
}

/* Ajuste solo para móvil */
@media (max-width: 576px) {
    .fondo_catalogo {
        min-height: 24rem;
        padding: 2rem 1.5rem;
        background-position: 75% center !important;
        background-size: cover !important;
    }

    .fondo_catalogo::before {
        background-color: rgba(0, 0, 0, 0.55) !important;
    }

    .fondo_catalogo .col-lg-3 {
        margin-top: 1.25rem;
        text-align: start !important;
    }
}

/*CARD CATALOGO*/
.catalogo-img-wrap {
    background-color: #f5f6f8;
    border-radius: 1rem 1rem 0 0;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.catalogo-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.catalogo-card {
    transition: transform .15s ease, box-shadow .15s ease;
}

.catalogo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.1) !important;
}

/*BOTON WHATSAPP FLOTANTE*/
.whatsapp-flotante {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 50rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    overflow: hidden;
    height: 56px;
    transition: box-shadow .2s ease;
}

.whatsapp-flotante:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.whatsapp-icono {
    background-color: #2196c9; /* ajusta al azul de tu marca si es distinto */
    color: #fff;
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    z-index: 2;
}

.whatsapp-texto {
    color: #1d70b5;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width .35s ease, opacity .25s ease, padding .35s ease;
    padding-left: 0;
}

.whatsapp-flotante:hover .whatsapp-texto {
    max-width: 200px;
    opacity: 1;
    padding-left: 12px;
    padding-right: 20px;
}

@media (max-width: 576px) {
    .whatsapp-flotante {
        bottom: 16px;
        right: 16px;
    }
}

/*COLOR BOTNO DETALLE*/
.btn-color-detalle{
    background-color: #e3f0f6 !important;
    color: #27729d !important;
}

.btn-color-detalle:hover{
    background-color: #cbebf9 !important;
    color: #1c70a1 !important;
}

/*ZOOM IMAGEN EFECTO*/
.imagen-zoom {
    transition: transform 0.3s ease;
}

.imagen-zoom:hover {
    transform: scale(1.15);
}

/*Fondo Secciones cliente*/
/* Fondo de la seccion clientes */
.fondo_section3 {
    position: relative;
    background: url('../images/secciones_home/fondo_section3.webp') center center / cover no-repeat;
    background-attachment: fixed;
    overflow: hidden;
    padding: 8rem;
    min-height: 30rem;
    height: auto;
}

.fondo_section3 * {
    position: relative;
    z-index: 1;
}

/*COLOR BOTONES CAROUSEL CLIENTES*/
/* Flechas (prev/next) */
#carouselTestimonios .carousel-control-prev-icon,
#carouselTestimonios .carousel-control-next-icon {
    filter: invert(1) grayscale(100);
    background-color: #11509a;
    border-radius: 50%;
    padding: 12px;
    background-size: 60%;
}

/* Puntos indicadores */
#carouselTestimonios .carousel-indicators [data-bs-target] {
    background-color: #11509a;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0.5;
}

#carouselTestimonios .carousel-indicators .active {
    opacity: 1;
}

#carouselTestimonios {
    padding: 0 60px; 
    position: relative;
}

#carouselTestimonios .carousel-control-prev,
#carouselTestimonios .carousel-control-next {
    width: auto;
    top: 50%;
    transform: translateY(-50%);
    height: fit-content;
}

#carouselTestimonios .carousel-control-prev {
    left: -10px;
}

#carouselTestimonios .carousel-control-next {
    right: -10px;
}

#carouselTestimonios .carousel-control-prev-icon,
#carouselTestimonios .carousel-control-next-icon {
    filter: invert(1) grayscale(100);
    background-color: #11509a;
    border-radius: 50%;
    padding: 12px;
    background-size: 60%;
}

