.modal {
    display: none; 
    position: fixed; 
    
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.2); 
    }
.modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 0px;
    border: 1px solid #888;
    width: 100%; 
    max-width: 35% !important; 
}
.modal-title-form {
    padding-left:20px;
    padding-bottom:25px;
    color: white !important;
    background-color: #183276 !important;
}
.close-button 
{
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding-left: 20px;
    background-color: #183276 !important;
}
.custom-form {
    padding:20px !important;
}

.btn-movil-ver-menos {
    display:none;
}
.btn-movil-ver-mas {
    display:block;
}
.show-details-movil {
    display:none;
}
.btn-news {
    color: #183276 !important;
    background-color: #fff !important;
    
}
.news-item .news-item-header {
  background-color: #183276;
  color: white;
  font-weight:bold;
  padding: 15px;
  /*text-transform: uppercase;*/
}
/*actualizar esto para el home para mostrar versiones distintas del carrousel para las versiones movil y web*/
.carrousel-web {
    display:block;
}
.carrousel-movil {
    display:none;
}
.busqueda-web {
    display:block;
}
.busqueda-movil {
    display:none;
}
.img-category-1 {
    height: 15vh; 
    width: 100%;
    object-fit: cover;
    border-radius:20px;
}
.img-category-2 {
    height: 15vh; 
    width: 100%;
    object-fit: cover;
    border-radius:20px;
    margin-top:10px;
}
.news-web-short {
    display:block;
}
.news-web-detail {
    display:none;
}
.news-web {
    display:block;
}

.news-movil {
    display:none;
}
#carousel_news-v2 .carousel-control-prev {
  width: auto;
  position: absolute;
  left: 24px;
}
#carousel_news-v2 .carousel-control-prev-icon {
    background-image: url("/images/arrow_left.png") !important;
    width: 10px;
    height: 36px;
}
#carousel_news-v2 .carousel-control-next {
  width: auto;
  position: absolute;
  right: 24px;
}
#carousel_news-v2 .carousel-control-next-icon {
    background-image: url("/images/arrow_right.png") !important;
    width: 10px;
    height: 36px;
}
#carousel_news-details .carousel-control-prev {
  width: auto;
  position: absolute;
  left: 24px;
}
#carousel_news-details .carousel-control-prev-icon {
    background-image: url("/images/arrow_left.png") !important;
    width: 10px;
    height: 36px;
}
#carousel_news-details .carousel-control-next {
  width: auto;
  position: absolute;
  right: 24px;
}
#carousel_news-details .carousel-control-next-icon {
    background-image: url("/images/arrow_right.png") !important;
    width: 10px;
    height: 36px;
}
#carousel_nmd .carousel-control-prev {
  width: auto;
  position: absolute;
  left: 24px;
}
#carousel_nmd .carousel-control-prev-icon {
    background-image: url("/images/arrow_left.png") !important;
    width: 10px;
    height: 36px;
}
#carousel_nmd .carousel-control-next {
  width: auto;
  position: absolute;
  right: 24px;
}
#carousel_nmd .carousel-control-next-icon {
    background-image: url("/images/arrow_right.png") !important;
    width: 10px;
    height: 36px;
}
@media (max-width: 575.98px) {
    .modal-content {
        margin-top:80px !important;
        max-width: 90% !important; 
    }
    .carrousel-web {
        display:none;
    }
    .carrousel-movil {
        display:block;
    }
    .busqueda-web {
        display:none;
    }
    .busqueda-movil {
        display:block;
    }
    .news-web {
        display:none;
    }
    .news-movil {
        display:block;
    }
    
    #carousel_news-v2 a {
        flex: 1 1 100%;
      }
    
    
}
.hero-banner {
    object-fit: cover;
    height: 460px; /* desktop por defecto */
}

/* Mobile / pantallas pequeñas */
@media (max-width: 575.98px) {
    .hero-banner {
        height: 125px; /* aquí eliges 100 o 200 */
    }
}

/* Tablet aprox */
@media (min-width: 576px) and (max-width: 991.98px) {
    .hero-banner {
        height: 320px;
    }
}
/* base desktop */
.home-bg-img {
    aspect-ratio: 16 / 9; /* mantiene proporción visual */
    width: 100%;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a1a; /* fallback por si tarda */
    overflow: hidden;
}

/* contenedor general de la sección en desktop */
.revisa-row {
    display: flex;
    gap: 1rem;
    align-items: stretch; /* 👈 las dos columnas misma altura */
}

/* columna izquierda (AGENDA TU CITA) */
.revisa-left {
    flex: 5; /* como tu col-lg-5 */
    display: flex;
}

/* columna derecha (las dos de arriba/abajo) */
.revisa-right {
    flex: 7; /* como tu col-lg-7 */
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* las cajas */
.home-bg-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a1a;
    border-radius: 12px;
    width: 100%;
    height: 100%;      /* 👈 clave: que llene el espacio que le toca */
    min-height: 240px; /* por si la pantalla no es tan ancha */
    overflow: hidden;
}

/* la de la derecha tienen que repartirse la altura */
.revisa-right .home-bg-img {
    flex: 1 1 0; /* 👈 hace que las 2 ocupen 50% */
}

/* imágenes específicas */
.home-bg-img--cita {
    background-image: url("/images/demo/revisa_auto_3.jpg");
}
.home-bg-img--posventa {
    background-image: url("/images/demo/revisa_auto_2.jpg");
}
.home-bg-img--locales {
    background-image: url("/images/demo/revisa_auto_1.jpg");
}

/* centrado del texto dentro */
.service-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    width: 100%;
    color: #fff;
    font-weight: 700;
    font-size: 2rem;
    text-decoration: none;
}

/* responsive: en móviles vuelves a tu carrusel actual */
@media (max-width: 991.98px) {
    .revisa-row {
        display: block; /* que se comporte normal en tablets/móvil */
    }
    .home-bg-img {
        height: 300px; /* como antes */
    }
}

/* fondos para las tarjetas del carrusel móvil */
.mobile-service-card--cita {
    background-image: url("/images/demo/revisa_auto_3.jpg");
}

.mobile-service-card--posventa {
    background-image: url("/images/demo/revisa_auto_2.jpg");
}

.mobile-service-card--locales {
    background-image: url("/images/demo/revisa_auto_1.jpg");
}
