/* ============================================= */
/* ========= ESTILOS GENERALES Y HERO ========== */
/* ============================================= */

.hero-section {
    position: relative;
    height: 60vh;
    background-image: url('../img/hero-background.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.section-title {
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================= */
/* ====== ESTILOS PARA TARJETAS DE VEHÍCULO ====== */
/* ============================================= */

/* Estilo GENERAL para todas las tarjetas del sitio */
.card {
    border-radius: 15px !important; /* Bordes redondeados */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important; /* Sombra suave */
    border: none !important; /* Quitamos el borde por defecto */
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    /* Aplicamos el borde redondeado solo a las esquinas superiores */
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.card-price {
    color: #28a745; /* Verde */
    font-weight: bold;
}

.share-button {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    border: 1px solid #eee;
}

.share-button:hover {
    background-color: rgba(255, 255, 255, 1);
}

/* ============================================= */
/* ====== ESTILOS PÁGINA DETALLE VEHÍCULO ====== */
/* ============================================= */

.vehicle-title {
    font-weight: 300;
}

.vehicle-price {
    font-weight: bold;
    font-size: 2.5rem;
    color: #28a745; /* Verde */
}

/* ============================================= */
/* ========= ESTILOS WHATSAPP FLOTANTE ========= */
/* ============================================= */

.whatsapp-flotante {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 2s infinite;
}

.whatsapp-flotante:hover {
    color: #FFF;
    transform: scale(1.1);
    transition: all 0.3s;
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ================================================================= */
/* ===== ESTILOS PARA CARRUSEL CON DESPLAZAMIENTO FLUIDO (3 ITEMS) ===== */
/* ================================================================= */

/* En pantallas pequeñas (móviles), mostramos solo 1 item a la vez */
@media (max-width: 767px) {
    #carouselDestacados .carousel-inner .carousel-item > div {
        display: none;
    }
    #carouselDestacados .carousel-inner .carousel-item > div:first-child {
        display: block;
    }
}

/* En pantallas medianas y grandes, hacemos que varios items sean visibles */
@media (min-width: 768px) {
    #carouselDestacados .carousel-inner .carousel-item-end.active,
    #carouselDestacados .carousel-inner .carousel-item-next {
      transform: translateX(33.333%);
    }
    
    #carouselDestacados .carousel-inner .carousel-item-start.active, 
    #carouselDestacados .carousel-inner .carousel-item-prev {
      transform: translateX(-33.333%);
    }
    
    #carouselDestacados .carousel-inner .carousel-item-end,
    #carouselDestacados .carousel-inner .carousel-item-start { 
      transform: translateX(0);
    }
}

#carouselDestacados .carousel-inner .carousel-item.active,
#carouselDestacados .carousel-inner .carousel-item-next,
#carouselDestacados .carousel-inner .carousel-item-prev {
    display: flex;
}

/* ======================================================= */
/* === ESPACIO ENTRE TARJETAS DEL CARRUSEL DESTACADO === */
/* ======================================================= */

/* Añadimos padding a los costados de cada columna dentro del carrusel.
   Como el JS mueve las columnas, aplicamos el estilo a los hijos directos
   de .carousel-item */
#carouselDestacados .carousel-inner .carousel-item > div {
    padding-left: 15px;  /* Ajustá este valor si querés más o menos espacio */
    padding-right: 15px;
}

/* Opcional: Ajuste para móviles para que no tengan tanto margen lateral */
@media (max-width: 767px) {
    #carouselDestacados .carousel-inner .carousel-item > div {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* ============================================= */
/* ========= ESTILOS PÁGINA DE SERVICIOS ========= */
/* ============================================= */

.service-section {
    padding: 60px 0;
}

.service-icon {
    width: 120px;
    height: 120px;
    background-color: #f8f9fa; /* Un gris muy claro */
    color: #0d6efd; /* Azul primario de Bootstrap */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-section {
    background-color: #343a40; /* El mismo gris oscuro del nav/footer */
    color: white;
    padding: 60px 0;
}

/* ======================================================= */
/* ===== ESTILOS PARA RESUMEN DE SERVICIOS EN INICIO ===== */
/* ======================================================= */

.service-summary-icon {
    font-size: 3.5rem; /* 56px */
    color: #0d6efd; /* Color primario de Bootstrap */
}

.service-card {
    transition: all 0.3s ease; /* Transición suave para el hover */
}

.service-card:hover {
    transform: translateY(-10px); /* Efecto de "levantar" la tarjeta al pasar el mouse */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important; /* Sombra más pronunciada */
}