* {
    font-display: swap;
}
/* --- ARREGLO CORRECTO PARA MÓVILES --- */
html, body {
    overflow-x: hidden; 
    max-width: 100%;    
}



#inicio {
   
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/fondo-hero-movil.webp') no-repeat center center/cover;
}


@media (min-width: 992px) {
    #inicio {
        background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/fondo-hero.webp') no-repeat center center/cover;
    }
}

.ls-2 {
    letter-spacing: 2px; 
}

/* --- Estilos para Tarjetas Giratorias (Flip Cards) --- */

.flip-card {
  background-color: transparent;
  width: 100%;
  height: 300px; 
  perspective: 1000px; 
}


.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s; 
  transform-style: preserve-3d;
}


.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}


.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden; 
  border-radius: 10px; 
}


.flip-card-front {
  background-color: #fff;
  color: black;
}


.flip-card-back {
  transform: rotateY(180deg);
}

/* --- Estilos para Productos --- */

.linea-roja {
    width: 60px;
    height: 3px;
    background-color: #dc3545; 
}


.img-wrapper {
    overflow: hidden; 
    height: 250px; 
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease; 
}


.product-card:hover .img-wrapper img {
    transform: scale(1.1); 
}

.product-card:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important; 
}

/* --- Estilos para Servicios (Acordeón) --- */

.accordion-item {
    overflow: hidden; 
}


.accordion-button:not(.collapsed) {
    background-color: #dc3545; 
    color: white;
    box-shadow: none; 
}


.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1); 
}


.accordion-button {
    background-color: white;
    color: #333;
    font-weight: bold;
}


.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}


.scale-down {
    transform: scale(0.95); 
    transition: all 0.3s ease; 
}

/* Ajustes de texto para pantallas pequeñas (móviles) */
@media (max-width: 768px) {
    
    h1.display-3 {
        font-size: 2.5rem; 
    }
    
    
    h2 {
        font-size: 1.8rem;
    }
    
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Efecto Grayscale para Clientes */
.client-logo {
    filter: grayscale(100%); /* Blanco y negro */
    opacity: 0.6;
    transition: all 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%); /* Color original */
    opacity: 1;
    transform: scale(1.1); /* Crece un poquito */
}