/********** Template CSS **********/
:root {
    --primary: #e30613;
    --secondary: #1d1d1b;
    --light: #F4F5F8;
    --dark: #1d1d1b;
}

h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}


.btn {
    border-radius: 100px !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.nav-bar::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    top: 0;
    left: 0;
    background: var(--dark);
}

.nav-bar::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 0;
    background: #ffffff;
}

.navbar-dark .navbar-nav .nav-link {
    padding: 30px 15px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--light);
    outline: none;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

.header-desktop {
    flex-wrap: nowrap;
}

.header-desktop .navbar-nav {
    flex-wrap: nowrap;
}

.header-desktop .navbar-nav .nav-link {
    white-space: nowrap;
}

.header-search .search-container {
    width: 100%;
}

.mobile-search-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f1f3f5;
}

.mobile-search-icon i {
    font-size: 1.25rem;
}

@media (max-width: 575.98px) {
    .mobile-search-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
}

@media (max-width: 1700px) {
    .header-desktop {
        padding: 0 1.5rem;
    }

    .header-desktop .navbar-nav .nav-link {
        padding: 0.5rem 1.2rem;
        font-size: 15px;
        letter-spacing: 0.8px;
    }

    .header-logo {
        min-width: 190px !important;
        padding-left: 1.5rem !important;
    }

    .header-search {
        min-width: 300px !important;
    }
}

@media (max-width: 1550px) {
    .header-desktop {
        padding: 0 1rem;
    }

    .header-desktop .navbar-nav .nav-link {
        padding: 0.45rem 1rem;
        font-size: 14px;
        letter-spacing: 0.6px;
    }

    .header-search {
        min-width: 260px !important;
    }

    .header-search .form-control {
        font-size: 0.85rem;
        height: 34px;
    }

    .header-search .btn {
        height: 34px;
    }
}

@media (max-width: 1400px) {
    .header-desktop .navbar-nav .nav-link {
        padding: 0.4rem 0.85rem;
        font-size: 13px;
        letter-spacing: 0.5px;
    }

    .header-logo {
        min-width: 170px !important;
        padding-left: 1.25rem !important;
    }

    .header-search {
        min-width: 230px !important;
    }

    .header-search .form-control {
        font-size: 0.8rem;
        height: 32px;
    }

    .header-search .btn {
        height: 32px;
    }
}

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link  {
        padding: 10px 15px;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(28, 30, 50, .7);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h4 {
        font-size: 18px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.page-header {
    height: 400px;
    margin-bottom: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(28, 30, 50, .9), rgba(28, 30, 50, .9)), url(../img/bg-banner.jpg);
    background-attachment: fixed;
}

@media (max-width: 991.98px) {
    .page-header {
        height: 300px;
    }
}

.texto-justificado {
    text-align: justify;
}

.fa {
    color: #E30613 !important;
}

.icon-blanco {
    color: #FFFFFF !important;
}

.borde-redondeado {
    border-radius: 10px !important;
}
.service-item {
    height: 320px;
    background: var(--light);
    transition: .5s;
    border-radius: 10px !important;
}

.service-item:hover,
.service-item.active {
    background: var(--secondary);
}

.service-item h1,
.service-item h4 {
    transition: .5s;
}

.service-item:hover h1,
.service-item.active h1 {
    color: var(--dark) !important;
}

.service-item:hover h4,
.service-item.active h4 {
    color: var(--light);
}

.rent-item {
    padding: 30px;
    text-align: center;
    background: var(--light);
    transition: .5s;
}

.rent-item:hover,
.rent-item.active {
    background: var(--secondary);
}

.rent-item h4 {
    transition: .5s;
}

.rent-item:hover h4,
.rent-item.active h4 {
    color: var(--light);
}

.team-item {
    padding: 30px 30px 0 30px;
    text-align: center;
    background: var(--light);
    transition: .5s;
}

.team-item:hover,
.owl-item.center .team-item {
    background: var(--secondary);
    
}

.team-item h4 {
    transition: .5s;
}

.owl-item.center .team-item h4,
.owl-item.center .rent-item h4 {
    color: var(--light);
}

.team-item .team-social {
    top: 0;
    left: 0;
    opacity: 0;
    transition: .5s;
    background: var(--light);
}

.owl-item.center .team-item .team-social,
.owl-item.center .rent-item {
    background: var(--secondary);
    
}

.team-item:hover .team-social {
    opacity: 1;
    background: var(--secondary);
}

.team-carousel .owl-nav,
.related-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 60px;
    top: calc(50% - 30px);
    left: 0;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next,
.related-carousel .owl-nav .owl-prev,
.related-carousel .owl-nav .owl-next {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    font-size: 22px;
    transition: .5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover,
.related-carousel .owl-nav .owl-prev:hover,
.related-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
}

.vendor-carousel .owl-dots,
.testimonial-carousel .owl-dots {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vendor-carousel .owl-dot,
.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: var(--secondary);
    transition: .5s;
}

.vendor-carousel .owl-dot.active,
.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 80px;
    height: 80px;
}

.testimonial-carousel .owl-item .testimonial-item {
    height: 350px;
    transition: .5s;
    background: var(--light);
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--secondary);
}

.testimonial-carousel .owl-item .testimonial-item h1,
.testimonial-carousel .owl-item .testimonial-item h4 {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item h1 {
    color: var(--dark) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item h4 {
    color: var(--light);
}

.bg-banner {
    background: linear-gradient(rgba(28, 30, 50, .9), rgba(28, 30, 50, .9)), url(../img/bg-banner.jpg);
    background-attachment: fixed;
}

/* --- Custom: Imagen responsiva para tarjetas de vehículos --- */
.vehicle-card-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #f6f6f6;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.vehicle-card-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.vehicle-card-image:hover img {
    transform: translate(-50%, -50%) scale(1.05);
}

/* --- Custom: Galería de imágenes para detalle de vehículo --- */
.vehicle-detail-main-image-container {
    position: relative;
    width: 100%;
}

.vehicle-detail-main-image {
    position: relative;
    width: 100%;
    background: #f6f6f6;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
    position: relative;
}

.vehicle-detail-main-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--main-image-url, none) center/cover no-repeat;
    filter: blur(28px);
    transform: scale(1.15);
    z-index: 0;
}

.vehicle-detail-main-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 0;
}

.vehicle-detail-main-image img {
    position: relative;
    z-index: 1;
    max-width: min(100%, 1200px);
    max-height: 560px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.vehicle-detail-main-image:hover img {
    transform: scale(1.02);
}

/* Navegación de imágenes */
.image-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 2;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    color: #333;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 11;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.nav-btn:active {
    transform: scale(0.95);
}

/* Indicadores de imagen */
.image-indicators {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
    backdrop-filter: blur(5px);
}

/* Descripción del vehículo */
.vehicle-description {
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.vehicle-description .description-content ul li {
    padding: 4px 0;
    border-bottom: 1px solid #e9ecef;
}

.vehicle-description .description-content ul li:last-child {
    border-bottom: none;
}

.vehicle-thumbnail-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.thumbnail-item {
    position: relative;
    width: 100%;
    height: 80px;
    background: #f6f6f6;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.thumbnail-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(227, 6, 19, 0.2);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover img {
    transform: scale(1.1);
}

/* Responsive adjustments for gallery */
@media (max-width: 768px) {
    .vehicle-detail-main-image {
        max-height: 400px;
    }
    
    .vehicle-detail-main-image img {
        max-height: 400px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .image-indicators {
        bottom: 15px;
        right: 15px;
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .vehicle-description .description-content .row {
        flex-direction: column;
    }
    
    .vehicle-description .description-content .col-md-6 {
        margin-bottom: 20px;
    }
}

/* --- Custom: Carrusel catálogo mejorado --- */
.related-carousel .owl-stage-outer {
    overflow: hidden;
}

.related-carousel .owl-item { 
    width: 100% !important; 
}

/* --- Custom: Galería de detalles de vehículo --- */
.thumbnail-item {
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.thumbnail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.thumbnail-item.active {
    box-shadow: 0 0 0 3px var(--primary);
}

.thumbnail-item img {
    height: 80px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover img {
    transform: scale(1.1);
}

/* --- Custom: Header mejorado --- */
.search-container .input-group-lg .form-control {
    height: 50px;
    font-size: 1.1rem;
}

.search-container .btn {
    height: 50px;
    min-width: 60px;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-menu.bg-dark .dropdown-item:hover {
    background-color: rgba(227, 6, 19, 0.2) !important;
    color: var(--light) !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary) !important;
    font-weight: 600;
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
    transition: color 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .search-container {
        margin-bottom: 20px;
    }
    
    .col-lg-3:last-child {
        text-align: center !important;
    }
    
    .d-flex.flex-column.align-items-end {
        align-items: center !important;
    }
}

@media (max-width: 768px) {
    .search-container {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 20px;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    /* Reorganizar en móvil */
    .row.align-items-center > div {
        text-align: center !important;
    }
    
    .col-lg-3:first-child h1 {
        font-size: 1.7rem !important;
    }
    
    .btn-outline-primary {
        margin-top: 10px;
    }
}

/* --- Custom: Eliminar línea blanca arriba del header --- */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Evitar scroll horizontal */
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Evitar scroll horizontal */
}

.bg-secondary {
    margin-top: 0 !important;
    padding-top: 0;
}

/* --- Responsive Header y Footer para móviles --- */
@media (max-width: 991px) {
    /* Header móvil */
    .bg-secondary .container-fluid {
        padding: 1rem 0 !important;
        min-height: 80px !important;
    }
    
    .bg-secondary h1 {
        font-size: 1.5rem !important;
    }
    
    .search-container {
        min-width: 200px !important;
    }
    
    .search-container .input-group {
        max-width: 100%;
    }
    
    .search-container input {
        font-size: 0.85rem !important;
        height: 35px !important;
    }
    
    .search-container .btn {
        height: 35px !important;
        padding: 0 12px !important;
    }
    
    /* Botón hamburguesa */
    .navbar-toggler {
        border: none !important;
        padding: 0.5rem !important;
    }
    
    .navbar-toggler:focus {
        box-shadow: none !important;
    }
    
    /* Menú móvil */
    #mobileNavbar {
        border-top: 1px solid rgba(255,255,255,0.2) !important;
    }
    
    #mobileNavbar .nav-link {
        padding: 1rem 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
        font-size: 1rem !important;
    }
    
    #mobileNavbar .dropdown-menu {
        border-radius: 0 !important;
        margin-top: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: var(--secondary) !important;
    }
    
    #mobileNavbar .dropdown-item {
        padding: 0.8rem 1.5rem !important;
        border-bottom: 1px solid rgba(227, 6, 19, 0.1) !important;
        color: var(--light) !important;
        transition: all 0.3s ease !important;
    }
    
    #mobileNavbar .dropdown-item:hover {
        background: rgba(227, 6, 19, 0.2) !important;
        color: var(--light) !important;
    }
    
    #mobileNavbar .dropdown-item:last-child {
        border-bottom: none !important;
    }
}

@media (max-width: 768px) {
    /* Header más compacto en móviles pequeños */
    .bg-secondary .container-fluid {
        padding: 0.8rem 0 !important;
        min-height: 70px !important;
    }
    
    .bg-secondary h1 {
        font-size: 1.3rem !important;
    }
    
    .search-container {
        min-width: 180px !important;
    }
    
    .search-container input {
        font-size: 0.8rem !important;
        height: 32px !important;
    }
    
    .search-container .btn {
        height: 32px !important;
        padding: 0 10px !important;
    }
    
    /* Footer móvil */
    .container-fluid.bg-secondary {
        padding: 2rem 1rem !important;
        margin-top: 60px !important;
    }
    
    .container-fluid.bg-secondary .row {
        margin: 0 !important;
    }
    
    .container-fluid.bg-secondary .col-sm-12 {
        padding: 0 0.5rem !important;
        margin-bottom: 2rem !important;
    }
    
    .container-fluid.bg-secondary h4 {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .container-fluid.bg-secondary p {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .container-fluid.bg-secondary a {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Redes sociales en móvil */
    .container-fluid.bg-secondary .btn-lg-square {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
        margin-right: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Copyright móvil */
    .container-fluid.bg-dark {
        padding: 1.5rem 1rem !important;
    }
    
    .container-fluid.bg-dark p {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem !important;
    }
}

@media (max-width: 576px) {
    /* Header ultra compacto */
    .bg-secondary .container-fluid {
        padding: 0.6rem 0 !important;
        min-height: 60px !important;
    }
    
    .bg-secondary h1 {
        font-size: 1.2rem !important;
    }
    
    .search-container {
        min-width: 150px !important;
    }
    
    .search-container input {
        font-size: 0.75rem !important;
        height: 30px !important;
    }
    
    .search-container .btn {
        height: 30px !important;
        padding: 0 8px !important;
    }
    
    /* Footer ultra compacto */
    .container-fluid.bg-secondary {
        padding: 1.5rem 0.5rem !important;
        margin-top: 50px !important;
    }
    
    .container-fluid.bg-secondary .col-sm-12 {
        padding: 0 0.25rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .container-fluid.bg-secondary h4 {
        font-size: 1rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .container-fluid.bg-secondary p,
    .container-fluid.bg-secondary a {
        font-size: 0.85rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    /* Redes sociales ultra compactas */
    .container-fluid.bg-secondary .btn-lg-square {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.9rem !important;
        margin-right: 0.3rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    /* Copyright ultra compacto */
    .container-fluid.bg-dark {
        padding: 1rem 0.5rem !important;
    }
    
    .container-fluid.bg-dark p {
        font-size: 0.8rem !important;
        margin-bottom: 0.3rem !important;
    }
}

/* --- Mejoras para el buscador en móviles --- */
@media (max-width: 768px) {
    .search-suggestions {
        max-height: 250px !important;
        font-size: 0.9rem !important;
    }
    
    .search-suggestion-item {
        padding: 0.8rem !important;
    }
    
    .suggestion-image {
        width: 40px !important;
        height: 30px !important;
        margin-right: 0.8rem !important;
    }
    
    .suggestion-title {
        font-size: 0.9rem !important;
    }
    
    .suggestion-specs {
        font-size: 0.8rem !important;
    }
    
    .suggestion-price {
        font-size: 0.85rem !important;
    }
}

/* --- Contenedor de banner con tamaño fijo --- */
.banner-image-container {
    width:100%;
    height: 600px; /* Altura fija para todos los banners */
    overflow: hidden;
    position: relative;
}

.banner-image-container img,
.banner-image-container video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene proporción sin distorsión */
    object-position: center;
}

/* --- Custom: Contenedores de empleados con tamaño fijo --- */
.team-item {
    height: 400px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.team-image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.team-item:hover .team-image {
    transform: scale(1.05);
}

.team-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.team-content h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    min-height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    word-wrap: break-word;
    hyphens: auto;
}

.team-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    height: 1.8rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Custom: Contenedores de vehículos en catálogo --- */
.vehicle-card-image {
    width: 100%;
    height: 160px; /* Reducido de 200px a 160px */
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.vehicle-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: none; /* Sin animación en la imagen */
}

.rent-item {
    height: auto; /* Cambiado de 100% a auto para tarjetas más compactas */
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    max-height: 380px; /* Aumentado de 350px a 380px para acomodar títulos más largos */
}

.rent-item:hover {
    transform: translateY(-8px) scale(1.02); /* Elevar y agrandar ligeramente toda la tarjeta */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Evitar cualquier cambio de color en hover */
.rent-item:hover,
.rent-item:hover *,
.rent-item:hover h4,
.rent-item:hover span,
.rent-item:hover i,
.rent-item:hover a {
    color: inherit !important;
    background-color: inherit !important;
}

.rent-item:hover .btn-primary {
    background-color: #E30613 !important;
    color: white !important;
    border-color: #E30613 !important;
}

/* --- Custom: Estilos para filtro lateral --- */
.filter-sidebar {
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.filter-sidebar h5 {
    color: #E30613;
    font-weight: 600;
    border-bottom: 2px solid #E30613;
    padding-bottom: 0.5rem;
}

.filter-sidebar h6 {
    color: #495057;
    font-weight: 500;
}

.form-check-label {
    cursor: pointer;
    font-size: 0.9rem;
}

.form-check-input:checked {
    background-color: #E30613;
    border-color: #E30613;
}

/* --- Custom: Footer siempre full width --- */
.container-fluid.bg-secondary,
.container-fluid.bg-dark {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    max-width: none !important;
}

/* --- Custom: Eliminar espacios extra después del footer --- */
.container-fluid.bg-dark {
    margin-bottom: 0 !important;
    padding-bottom: 20px !important;
}

/* Eliminar margen inferior en el último elemento del contenido */
#content:last-child,
.container-fluid:last-of-type:not(.bg-secondary):not(.bg-dark) {
    margin-bottom: 0 !important;
}

/* Específico para páginas de catálogo */
body {
    margin-bottom: 0 !important;
}

html {
    margin-bottom: 0 !important;
}

/* Eliminar espacios extra en elementos del catálogo */
.container-fluid.py-5:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 50px !important;
}

/* Asegurar que no hay padding/margin extra después del último elemento */
.container-fluid:not(.bg-secondary):not(.bg-dark):last-of-type {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Reset específico para el final de la página */
body::after {
    content: '';
    display: block;
    height: 0;
    margin: 0;
    padding: 0;
}

/* Botón Back to Top - sin afectar layout */
.back-to-top {
    position: fixed !important;
    margin: 0 !important;
    z-index: 1000;
    bottom: 25px;
    right: 25px;
}

/* --- Custom: Botón WhatsApp flotante --- */
.whatsapp-float {
    position: fixed !important;
    bottom: 100px; /* Más arriba que el Back to Top */
    right: 25px; /* Lado derecho igual que Back to Top */
    z-index: 1052; /* Mayor que el menú móvil (1048) y otros elementos */
    background-color: #25d366 !important; /* Color oficial de WhatsApp */
    border-color: #25d366 !important;
    border-radius: 50px !important;
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4) !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
}

.whatsapp-float:hover {
    background-color: #128c7e !important;
    border-color: #128c7e !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6) !important;
    text-decoration: none !important;
}

.whatsapp-float i {
    font-size: 28px !important;
    color: white !important;
}

.whatsapp-float:hover i {
    color: white !important;
}

/* Animación de pulso para llamar la atención */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.8), 0 0 0 10px rgba(37, 211, 102, 0.2);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

.whatsapp-float {
    animation: whatsapp-pulse 2s infinite;
}

/* Responsive: ajustar posición en móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px !important;
        height: 50px !important;
        bottom: 85px; /* Más arriba que el Back to Top en móvil */
        right: 20px; /* Mismo lado que Back to Top */
    }
    
    .whatsapp-float i {
        font-size: 22px !important;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px !important;
        height: 50px !important;
    }
}

/* Eliminar cualquier espacio después del último script o elemento */
script:last-child,
.back-to-top {
    margin-bottom: 0 !important;
}

/* Específico para páginas de catálogo, categoría y marca */
body:has(.filter-sidebar),
body:has(.vehicle-item) {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Forzar que el último container-fluid no tenga margen inferior */
.container-fluid:last-of-type {
    margin-bottom: 0 !important;
}

/* Eliminar línea blanca específicamente después del footer */
.container-fluid.bg-dark + * {
    margin-top: 0 !important;
}

/* Reset completo del margen inferior del documento */
html, body {
    min-height: 100vh;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Debug para verificar que los elementos existen */
.vehicle-item {
    border: 1px solid transparent;
}

.vehicle-item.debug-visible {
    border-color: green !important;
}

.vehicle-item.debug-hidden {
    border-color: red !important;
}

.rent-item .p-4 {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem !important; /* Reducido de p-4 (1.5rem) a 1rem */
}

.rent-item h4 {
    font-size: 0.95rem; /* Reducir un poco más para que quepa mejor */
    margin-bottom: 0.5rem;
    line-height: 1.3; /* Aumentar un poco para mejor legibilidad */
    min-height: 3rem; /* Cambiar de height fijo a min-height para permitir crecimiento */
    max-height: 4rem; /* Máximo 4rem para evitar que crezca demasiado */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-wrap: break-word; /* Permitir que las palabras largas se rompan */
    hyphens: auto; /* Agregar guiones automáticos */
    padding: 0.2rem 0.5rem; /* Padding interno para mejor espaciado */
}

/* Hacer más compactas las características del vehículo */
.rent-item .d-flex.justify-content-center {
    margin-bottom: 0.5rem !important; /* Reducir espacio entre características y botón */
    font-size: 0.85rem; /* Texto más pequeño */
}

.rent-item .px-2 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    font-size: 0.8rem; /* Texto aún más pequeño */
}

.rent-item .btn {
    padding: 0.5rem 1rem !important; /* Botón más compacto */
    font-size: 0.9rem !important;
}

/* --- Custom: Tarjetas mini de vehículos para index --- */
.vehicle-mini-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.vehicle-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.vehicle-mini-image {
    position: relative;
    width: 100%;
    height: 120px;
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.vehicle-mini-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vehicle-mini-image:hover img {
    transform: scale(1.05);
}

.vehicle-mini-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vehicle-mini-info h6 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 8px;
    color: var(--dark);
}

.mini-specs {
    margin-bottom: auto;
}

.mini-specs .badge {
    font-size: 0.75rem;
    padding: 3px 6px;
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    border: 1px solid #e9ecef;
}

/* --- Custom: Carrusel de categorías --- */
.category-carousel .owl-stage-outer {
    overflow: hidden;
    padding: 5px 0;
}

.category-carousel .owl-item {
    padding: 0 8px;
}

.category-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 40px;
    top: calc(50% - 20px);
    left: 0;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.category-carousel .owl-nav .owl-prev,
.category-carousel .owl-nav .owl-next {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    font-size: 16px;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin: 0 -15px;
}

.category-carousel .owl-nav .owl-prev:hover,
.category-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

/* Similar Vehicles Carousel - Detail Page */
.similar-vehicles-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 35px;
    top: calc(50% - 17px);
    left: 0;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
}

.similar-vehicles-carousel .owl-nav .owl-prev,
.similar-vehicles-carousel .owl-nav .owl-next {
    position: relative;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.3s ease;
    pointer-events: auto;
    border: none;
    outline: none;
}

.similar-vehicles-carousel .owl-nav .owl-prev:hover,
.similar-vehicles-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.similar-vehicles-carousel .owl-nav .owl-prev {
    margin-left: -17px;
}

.similar-vehicles-carousel .owl-nav .owl-next {
    margin-right: -17px;
}

/* Responsive adjustments para mini cards */
@media (max-width: 768px) {
    .vehicle-mini-image {
        height: 100px;
    }
    
    .vehicle-mini-info h6 {
        font-size: 0.85rem;
    }
    
    .category-carousel .owl-nav .owl-prev,
    .category-carousel .owl-nav .owl-next {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .similar-vehicles-carousel .owl-nav .owl-prev,
    .similar-vehicles-carousel .owl-nav .owl-next {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .vehicle-mini-card {
        padding: 12px;
    }
    
    .vehicle-mini-image {
        height: 90px;
    }
}

/* --- Custom: Carrusel de vehículos similares en detail --- */
.similar-vehicles-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
}

.similar-vehicles-carousel .owl-nav .owl-prev,
.similar-vehicles-carousel .owl-nav .owl-next {
    position: absolute;
    width: 45px;
    height: 45px;
    background: var(--primary) !important;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    pointer-events: all;
    border: none !important;
}

.similar-vehicles-carousel .owl-nav .owl-prev {
    left: -20px;
}

.similar-vehicles-carousel .owl-nav .owl-next {
    right: -20px;
}

.similar-vehicles-carousel .owl-nav .owl-prev:hover,
.similar-vehicles-carousel .owl-nav .owl-next:hover {
    background: var(--secondary) !important;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive para navegación del carrusel */
@media (max-width: 768px) {
    .similar-vehicles-carousel .owl-nav .owl-prev,
    .similar-vehicles-carousel .owl-nav .owl-next {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .similar-vehicles-carousel .owl-nav .owl-prev {
        left: -15px;
    }
    
    .similar-vehicles-carousel .owl-nav .owl-next {
        right: -15px;
    }
}

/* --- NUEVO: Estilos para Detail Page Rediseñado --- */

/* Vehicle Main Image Container */
.vehicle-main-image-container {
    position: relative;
    max-height: 500px;
    overflow: hidden;
    border-radius: 15px;
}

.vehicle-main-image-container img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
}

/* Vehicle Gallery Thumbnails */
.vehicle-gallery-thumbnails .thumbnail-wrapper {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.vehicle-gallery-thumbnails .thumbnail-wrapper:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.vehicle-gallery-thumbnails .thumbnail-wrapper.active {
    border-color: var(--primary);
    box-shadow: 0 3px 10px rgba(227, 6, 19, 0.3);
}

.vehicle-gallery-thumbnails .thumbnail-wrapper img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.vehicle-gallery-thumbnails .thumbnail-wrapper:hover img {
    transform: scale(1.1);
}

/* Vehicle Details Card */
.vehicle-details-card .card {
    border-radius: 15px;
    overflow: hidden;
}

.vehicle-details-card .card-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    border: none;
    padding: 1.5rem;
}

.vehicle-details-card .card-body {
    padding: 2rem;
}

/* Vehicle Specifications */
.vehicle-specs .spec-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vehicle-specs .spec-item:last-child {
    border-bottom: none;
}

.vehicle-specs .spec-item strong {
    color: var(--dark);
    font-size: 0.9rem;
    min-width: 120px;
}

.vehicle-specs .spec-item span {
    color: var(--secondary);
    font-weight: 500;
    text-align: right;
    flex: 1;
}

/* Contact Section */
.contact-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin: -1rem;
    margin-top: 1.5rem;
}

.contact-section h5 {
    color: var(--dark);
    margin-bottom: 1rem;
}

.contact-section p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact-section a {
    text-decoration: none;
    font-weight: 500;
}

.contact-section a:hover {
    text-decoration: underline;
}

/* Action Buttons */
.action-buttons .btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.action-buttons .btn-success:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* Badge Styles for Title */
.badge-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: transparent;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-outline-secondary {
    color: var(--secondary);
    border: 2px solid var(--secondary);
    background: transparent;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-outline-dark {
    color: var(--dark);
    border: 2px solid var(--dark);
    background: transparent;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Similar Vehicles Grid */
.similar-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 100%;
}

.similar-vehicle-card .card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.similar-vehicle-card .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.similar-vehicle-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.similar-vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.similar-vehicle-card:hover .similar-vehicle-image img {
    transform: scale(1.05);
}

.similar-vehicle-card .card-body {
    padding: 1.5rem;
}

.similar-vehicle-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
}

.vehicle-specs-mini {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.vehicle-specs-mini small {
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .vehicle-main-image-container {
        max-height: 400px;
    }
    
    .vehicle-main-image-container img {
        height: 400px;
    }
    
    .vehicle-details-card {
        margin-top: 2rem;
    }
    
    .similar-vehicles-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .vehicle-main-image-container {
        max-height: 300px;
    }
    
    .vehicle-main-image-container img {
        height: 300px;
    }
    
    .vehicle-gallery-thumbnails .thumbnail-wrapper img {
        height: 60px;
    }
    
    .vehicle-details-card .card-body {
        padding: 1.5rem;
    }
    
    .contact-section {
        padding: 1rem;
        margin: -0.5rem;
        margin-top: 1rem;
    }
    
    .similar-vehicles-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .similar-vehicle-image {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .display-5 {
        font-size: 1.8rem;
    }
    
    .h3 {
        font-size: 1.4rem;
    }
    
    .vehicle-specs .spec-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 0;
    }
    
    .vehicle-specs .spec-item span {
        text-align: left;
        margin-top: 0.25rem;
    }
    
    .similar-vehicles-grid {
        grid-template-columns: 1fr;
    }
}

/* Search Suggestions - Header */
.search-container {
    min-width: 280px;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1050;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
}

.search-suggestion-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
}

.search-suggestion-item:hover,
.search-suggestion-item.active {
    background-color: #f8f9fa;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-image {
    width: 50px;
    height: 35px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.suggestion-details {
    flex: 1;
}

.suggestion-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    font-size: 14px;
}

.suggestion-specs {
    font-size: 12px;
    color: #6c757d;
}

.suggestion-price {
    font-weight: 600;
    color: var(--primary);
    font-size: 13px;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.search-loading {
    padding: 15px;
    text-align: center;
    color: #6c757d;
}

.search-icon {
    cursor: pointer;
    transition: color 0.2s ease;
}

.search-icon:hover {
    color: var(--primary) !important;
}

/* Responsive adjustments for search */
@media (max-width: 768px) {
    .search-container {
        min-width: 220px;
    }
    
    .suggestion-image {
        width: 40px;
        height: 30px;
        margin-right: 10px;
    }
    
    .suggestion-title {
        font-size: 13px;
    }
    
    .suggestion-specs {
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .search-container {
        min-width: 200px;
    }
}

/* Mejoras para la responsividad */
@media (max-width: 768px) {
    .vehicle-card-image {
        padding-top: 65%;
    }
    
    .rent-item {
        padding: 20px;
        max-height: 360px; /* Ligeramente más compacto en tablets */
    }
    
    .rent-item h4 {
        font-size: 0.9rem;
        min-height: 2.8rem;
        max-height: 3.8rem;
        line-height: 1.25;
    }
    
    .service-item {
        height: auto;
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .vehicle-card-image {
        padding-top: 70%;
    }
    
    .rent-item {
        padding: 15px;
    }
    
    .rent-item h4 {
        font-size: 0.9rem; /* Más pequeño en móviles para evitar cortes */
        min-height: 2.5rem; /* Menos altura mínima en móviles */
        max-height: 3.5rem; /* Menos altura máxima en móviles */
        line-height: 1.2;
    }
}

/* Animaciones suaves */
.rent-item,
.service-item,
.team-item {
    transition: all 0.3s ease;
}

.rent-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mejoras en la navegación */
.navbar-brand h1 {
    transition: color 0.3s ease;
}

.navbar-brand:hover h1 {
    color: var(--primary) !important;
}

/* Back to top mejorado */
.back-to-top {
    background: var(--primary);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-3px);
}

/* Formularios mejorados */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(227, 6, 19, 0.25);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

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

/* Text utilities */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

/* Carousel improvements */
.carousel-inner video {
    object-fit: cover;
    height: 100vh;
    max-height: 600px;
}

@media (max-width: 768px) {
    .carousel-inner video {
        max-height: 400px;
    }
}

/* Vendor carousel improvements */
.vendor-carousel .owl-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    padding: 30px !important;
    
}

.vendor-carousel .owl-item:hover img {
    transform: scale(1.1);
}

/* Footer improvements */
.container-fluid.bg-secondary a {
    transition: color 0.3s ease;
}

.container-fluid.bg-secondary a:hover {
    color: var(--primary) !important;
}

/* Gallery hover effects */
.row.mx-n1 img {
    transition: transform 0.3s ease;
}

.row.mx-n1 a:hover img {
    transform: scale(1.05);
}

/* --- Similar Vehicles Carousel Styling --- */
.similar-vehicles-carousel .rent-item {
    max-width: 280px;
    margin: 0 auto;
    height: auto;
    max-height: none; /* Permitir altura completa para mostrar botón Ver detalle */
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 10px;
}

.similar-vehicles-carousel .rent-item:hover {
    transform: none;
    box-shadow: none;
}

/* Contenedor de imagen dentro del carrusel (cuando usa vehicle-image-container) */
.similar-vehicles-carousel .vehicle-image-container {
    height: 220px;
    width: 100%;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    position: relative;
    background: #f8f9fa;
}

.similar-vehicles-carousel .vehicle-card-image {
    height: 160px; /* Misma altura que en catálogo */
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.similar-vehicles-carousel .vehicle-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: none;
}

/* --- Header Móvil Nuevo y Mejorado --- */
.mobile-header-main {
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: all 0.3s ease;
    background: var(--secondary);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mobile-header-main h2 {
    color: var(--light);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.mobile-header-main .btn {
    background: var(--primary);
    border: none;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mobile-header-main .btn:hover {
    background: var(--primary) !important;
    opacity: 0.9;
    transform: scale(1.05);
}

/* Barra de búsqueda móvil */
.mobile-search-bar {
    background: var(--secondary);
    animation: slideDown 0.3s ease;
    z-index: 1049;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-suggestions-mobile {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--light);
    border: 1px solid var(--secondary);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1051;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

/* Estilos para elementos dentro de las sugerencias móviles */
.search-suggestions-mobile .search-suggestion-item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(29, 29, 27, 0.1);
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    color: var(--dark);
}

.search-suggestions-mobile .search-suggestion-item:hover,
.search-suggestions-mobile .search-suggestion-item.active {
    background-color: rgba(227, 6, 19, 0.1);
}

.search-suggestions-mobile .search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestions-mobile .suggestion-image {
    width: 50px;
    height: 35px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
    background: var(--light);
    border: 1px solid var(--secondary);
}

.search-suggestions-mobile .suggestion-details {
    flex: 1;
}

.search-suggestions-mobile .suggestion-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
    font-size: 14px;
}

.search-suggestions-mobile .suggestion-specs {
    font-size: 12px;
    color: var(--secondary);
}

.search-suggestions-mobile .suggestion-price {
    font-weight: 600;
    color: var(--primary);
    font-size: 13px;
}

.search-suggestions-mobile .search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--secondary);
    font-style: italic;
}

.search-suggestions-mobile .search-loading {
    padding: 15px;
    text-align: center;
    color: var(--secondary);
}

/* Menú móvil mejorado */
.mobile-menu {
    background: var(--secondary);
    animation: slideDown 0.3s ease;
    z-index: 1048;
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-menu-section {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-section:last-child {
    border-bottom: none;
}

.mobile-menu-header {
    color: var(--light);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
    padding: 0 1rem;
    opacity: 0.8;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 0.5rem 0.3rem 0.5rem;
}

.mobile-menu-item:hover {
    background: rgba(227, 6, 19, 0.2);
    color: var(--light);
    text-decoration: none;
    transform: translateX(5px);
}

.mobile-menu-item.active {
    background: rgba(227, 6, 19, 0.3);
    border-left: 3px solid var(--primary);
}

.mobile-menu-icon {
    width: 40px;
    height: 40px;
    background: rgba(227, 6, 19, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.mobile-menu-item:hover .mobile-menu-icon {
    background: var(--primary);
    transform: scale(1.1);
}

.mobile-menu-icon i {
    font-size: 1.1rem;
    color: var(--light);
}

.mobile-menu-text {
    font-size: 1rem;
    font-weight: 500;
    flex: 1;
}

/* Responsive para diferentes tamaños de móvil */
@media (max-width: 576px) {
    .mobile-header-main h2 {
        font-size: 1.2rem !important;
    }
    
    .mobile-menu-item {
        padding: 0.8rem;
        margin: 0 0.3rem 0.2rem 0.3rem;
    }
    
    .mobile-menu-icon {
        width: 35px;
        height: 35px;
        margin-right: 0.8rem;
    }
    
    .mobile-menu-icon i {
        font-size: 1rem;
    }
    
    .mobile-menu-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .mobile-header-main h2 {
        font-size: 1.1rem !important;
    }
    
    .mobile-header-main .btn {
        width: 35px !important;
        height: 35px !important;
    }
    
    .mobile-header-main .btn i {
        font-size: 0.9rem !important;
    }
}

/* Animaciones adicionales */
.mobile-menu-item {
    animation: fadeInUp 0.4s ease;
    animation-fill-mode: both;
}

.mobile-menu-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-item:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu-item:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu-item:nth-child(4) { animation-delay: 0.4s; }
.mobile-menu-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mejoras para el scroll */
.mobile-menu::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: rgba(227, 6, 19, 0.1);
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(227, 6, 19, 0.8);
}

/* --- Responsive Header y Footer para móviles --- */


/* --- Responsividad mejorada para catálogo en móvil --- */
@media (max-width: 576px) {
    /* Botón de filtro móvil */
    #toggleFiltersBtn {
        background: var(--primary);
        border-color: var(--primary);
        font-weight: 500;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(227, 6, 19, 0.2);
        transition: all 0.3s ease;
    }
    
    #toggleFiltersBtn:hover {
        background: var(--secondary);
        border-color: var(--secondary);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
    }
    
    #toggleFiltersBtn i {
        font-size: 1.1rem;
    }
    
    /* Filtros móviles */
    #mobileFilters {
        background: var(--light);
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border: 1px solid #dee2e6;
        margin-bottom: 1.5rem;
    }
    
    #mobileFilters .filter-sidebar {
        background: transparent;
        border: none;
        padding: 1.5rem;
    }
    
    #mobileFilters h5 {
        color: var(--primary);
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    #mobileFilters .btn-outline-secondary {
        border-color: var(--secondary);
        color: var(--secondary);
    }
    
    #mobileFilters .btn-outline-secondary:hover {
        background: var(--secondary);
        color: white;
    }
    
    /* Asegurar que los filtros sean más accesibles en móvil */
    .filter-sidebar {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .filter-sidebar h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .filter-sidebar h6 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .form-check-label {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    /* Mejorar visualización de vehículos en móvil */
    .vehicle-item .rent-item {
        padding: 0.75rem;
        min-height: auto;
        height: auto;
    }
    
    .vehicle-item .rent-item h4 {
        font-size: 0.85rem;
        line-height: 1.2;
        min-height: auto;
        max-height: none;
        margin-bottom: 0.5rem;
    }
    
    .vehicle-item .rent-item .d-flex.justify-content-center {
        margin-bottom: 0.75rem;
    }
    
    .vehicle-item .rent-item .px-2 {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem !important;
    }
    
    .vehicle-item .rent-item .btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        width: 100%;
    }
    
    /* Asegurar que las imágenes se vean bien */
    .vehicle-item .vehicle-card-image {
        padding-top: 60%;
        margin-bottom: 0.75rem;
    }
    
    .vehicle-item .vehicle-card-image img {
        object-fit: cover;
    }
}

/* Asegurar que los filtros funcionen bien en tablets también */
@media (max-width: 768px) {
    .filter-sidebar {
        position: relative;
        z-index: 10;
    }
    
    .filter-sidebar .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* --- Estilos mejorados para tarjetas de empleados --- */
.team-content p.text-primary {
    color: var(--primary) !important;
    font-weight: 500;
    font-size: 0.85rem;
}

.team-content .fa {
    width: 14px;
    text-align: center;
    margin-right: 4px;
    color: var(--primary);
}

.team-content p.text-muted.small {
    font-size: 0.75rem;
    line-height: 1.3;
    margin-bottom: 1px;
    color: #6c757d !important;
}

.team-content p.text-muted.small:last-child {
    margin-bottom: 0;
}

.team-content p.text-muted.small i {
    opacity: 0.7;
}

.team-content p.text-muted.small:hover i {
    opacity: 1;
}

/* Mejorar el espaciado en las tarjetas de empleados */
.team-content {
    padding: 1.5rem 1rem !important;
}

.team-content h5 {
    margin-bottom: 0.75rem !important;
    font-size: 1rem;
    font-weight: 600;
}

.team-content p.text-muted {
    margin-bottom: 0.5rem !important;
    font-size: 0.9rem;
}

/* Responsive para tarjetas de empleados */
@media (max-width: 768px) {
    .team-content {
        padding: 1rem 0.75rem !important;
    }
    
    .team-content h5 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem !important;
    }
    
    .team-content p.text-muted {
        font-size: 0.8rem;
        margin-bottom: 0.4rem !important;
    }
    
    .team-content p.text-muted.small {
        font-size: 0.7rem;
    }
    
    .team-content p.text-primary {
        font-size: 0.75rem;
    }
}

/* Vehicle Carousel Navigation Styles */
.vehicle-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 35px;
    top: calc(50% - 17px);
    left: 0;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
}

.vehicle-carousel .owl-nav .owl-prev,
.vehicle-carousel .owl-nav .owl-next {
    position: relative;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.3s ease;
    pointer-events: auto;
    border: none;
    outline: none;
}

.vehicle-carousel .owl-nav .owl-prev:hover,
.vehicle-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.vehicle-carousel .owl-nav .owl-prev {
    margin-left: -17px;
}

.vehicle-carousel .owl-nav .owl-next {
    margin-right: -17px;
}

/* Responsive adjustments for vehicle carousel */
@media (max-width: 768px) {
    .vehicle-carousel .owl-nav .owl-prev,
    .vehicle-carousel .owl-nav .owl-next {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .vehicle-carousel .owl-nav .owl-prev {
        margin-left: -15px;
    }
    
    .vehicle-carousel .owl-nav .owl-next {
        margin-right: -15px;
    }
}

/* Responsive styles for banner and vehicle carousel on mobile */
@media (max-width: 768px) {
    /* Banner principal responsivo */
    .banner-image-container {
        height: 400px; /* Reducir altura en móvil */
    }
    
    .carousel-caption {
        left: 5% !important;
        right: 5% !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        padding: 20px !important;
    }
    
    .carousel-caption h2 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }
    
    .carousel-caption p {
        font-size: 1rem !important;
        margin-bottom: 20px !important;
    }
    
    .carousel-caption .btn {
        font-size: 0.9rem !important;
        padding: 8px 20px !important;
    }
    
    /* Carrusel de vehículos responsivo */
    .vehicle-carousel {
        margin: 0 -10px; /* Compensar padding del container */
    }
    
    .vehicle-carousel .owl-item {
        padding: 0 5px;
    }
    
    .vehicle-carousel .rent-item {
        height: auto !important;
        min-height: 280px;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
    }
    
    .vehicle-carousel .vehicle-card-image {
        height: 140px; /* Reducir altura de imagen en móvil */
        margin-bottom: 15px;
    }
    
    .vehicle-carousel .rent-item h4 {
        font-size: 0.9rem;
        line-height: 1.2;
        margin-bottom: 10px;
        min-height: auto;
        height: auto !important;
        overflow: visible !important;
        text-overflow: unset !important;
        white-space: normal !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .vehicle-carousel .rent-item .d-flex.justify-content-center {
        margin-bottom: 10px;
    }
    
    .vehicle-carousel .rent-item .px-2 {
        font-size: 0.75rem;
        padding: 2px 6px !important;
    }
    
    .vehicle-carousel .rent-item .btn {
        font-size: 0.8rem;
        padding: 6px 12px;
        margin-top: auto;
    }
    
    /* Ajustar navegación del carrusel en móvil */
    .vehicle-carousel .owl-nav {
        top: calc(50% - 12px);
    }
    
    .vehicle-carousel .owl-nav .owl-prev,
    .vehicle-carousel .owl-nav .owl-next {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .vehicle-carousel .owl-nav .owl-prev {
        margin-left: -12px;
    }
    
    .vehicle-carousel .owl-nav .owl-next {
        margin-right: -12px;
    }
}

@media (max-width: 576px) {
    /* Banner principal para pantallas muy pequeñas */
    .banner-image-container {
        height: 350px;
    }
    
    .carousel-caption {
        left: 3% !important;
        right: 3% !important;
        padding: 15px !important;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem !important;
        margin-bottom: 10px !important;
    }
    
    .carousel-caption p {
        font-size: 0.9rem !important;
        margin-bottom: 15px !important;
    }
    
    .carousel-caption .btn {
        font-size: 0.8rem !important;
        padding: 6px 16px !important;
    }
    
    /* Carrusel de vehículos para pantallas muy pequeñas */
    .vehicle-carousel .rent-item {
        min-height: 260px;
        display: flex;
        flex-direction: column;
    }
    
    .vehicle-carousel .vehicle-card-image {
        height: 120px;
        margin-bottom: 12px;
    }
    
    .vehicle-carousel .rent-item h4 {
        font-size: 0.85rem;
        margin-bottom: 8px;
        height: auto !important;
        overflow: visible !important;
        text-overflow: unset !important;
        white-space: normal !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .vehicle-carousel .rent-item .d-flex.justify-content-center {
        margin-bottom: 8px;
    }
    
    .vehicle-carousel .rent-item .px-2 {
        font-size: 0.7rem;
        padding: 1px 4px !important;
    }
    
    .vehicle-carousel .rent-item .btn {
        font-size: 0.75rem;
        padding: 5px 10px;
        margin-top: auto;
    }
    
    /* Navegación del carrusel para pantallas muy pequeñas */
    .vehicle-carousel .owl-nav .owl-prev,
    .vehicle-carousel .owl-nav .owl-next {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
    
    .vehicle-carousel .owl-nav .owl-prev {
        margin-left: -11px;
    }
    
    .vehicle-carousel .owl-nav .owl-next {
        margin-right: -11px;
    }
}

/* Asegurar que el carrusel de vehículos tenga suficiente espacio */
.container-fluid.py-5 .container {
    padding-left: 15px;
    padding-right: 15px;
}

/* Ajustar el espaciado del carrusel en móvil */
@media (max-width: 768px) {
    .container-fluid.py-5 .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .vehicle-carousel .owl-stage-outer {
        padding: 0 5px;
    }
}

/* Estilos para la página de contacto */
.map-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    border: none;
    width: 100%;
    height: 100%;
}

.contact-form {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-form .form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(227, 6, 19, 0.25);
}

.contact-form .btn {
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
}

/* Responsive para la página de contacto */
@media (max-width: 768px) {
    .map-container {
        height: 300px !important;
    }
    
    .contact-form {
        padding: 20px !important;
    }
    
    .contact-form .form-control {
        font-size: 0.9rem;
        padding: 12px 15px !important;
    }
    
    .contact-form .btn {
        font-size: 0.9rem;
        padding: 12px 25px !important;
    }
}

@media (max-width: 576px) {
    .map-container {
        height: 250px !important;
    }
    
    .contact-form {
        padding: 15px !important;
    }
    
    .contact-form .form-control {
        font-size: 0.85rem;
        padding: 10px 12px !important;
    }
    
    .contact-form .btn {
        font-size: 0.85rem;
        padding: 10px 20px !important;
    }
}

/* Estilos para el botón de WhatsApp */
#whatsappBtn {
    background: #0ec652;
    border: none;
    color: white;
    font-weight: 600;
    border-radius:10px;
}


@keyframes whatsapp-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Search form styling */
.search-form-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2rem !important;
}

.search-form-container .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 45px;
}

.search-form-container .form-control:focus {
    border-color: #E30613;
    box-shadow: 0 0 0 0.2rem rgba(227, 6, 19, 0.25);
}

.search-form-container .btn-primary {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    height: 45px;
}

.search-form-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 6, 19, 0.3);
}

/* Scroll interno para los selects */
.search-select {
    max-height: 200px;
    overflow-y: auto;
}

.search-select::-webkit-scrollbar {
    width: 8px;
}

.search-select::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.search-select::-webkit-scrollbar-thumb {
    background: #E30613;
    border-radius: 4px;
}

.search-select::-webkit-scrollbar-thumb:hover {
    background: #c00510;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-form-container {
        padding: 1.5rem !important;
    }
    
    .search-form-container .form-control,
    .search-form-container .btn-primary {
        height: 40px;
        font-size: 14px;
    }
}

/* Enhanced search form styling */
.search-select {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #E30613 #f8f9fa;
}

.search-select::-webkit-scrollbar {
    width: 6px;
}

.search-select::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.search-select::-webkit-scrollbar-thumb {
    background: #E30613;
    border-radius: 3px;
}

.search-select::-webkit-scrollbar-thumb:hover {
    background: #c00510;
}

.search-btn {
    height: 45px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.form-label {
    font-weight: 500;
    color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-form-container {
        padding: 2rem !important;
    }
    
    .search-form-container h2 {
        font-size: 1.5rem;
    }
}

/* Responsive adjustments for search form */
@media (max-width: 768px) {
    .search-form-container .row > div {
        margin-bottom: 1rem;
    }
    
    .search-form-container .btn-primary {
        margin-top: 1rem;
    }
}

.h-100 {
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover !important; 
    object-position: center !important; 
    display: block !important;
}



.vehicle-image-container {
    height: 220px ; 
    width: 100% ; 
    overflow: hidden ; 
    position: relative ; 
}

.vehicle-card {
    border-radius: 7% !important;
}

.modelo-text {
    line-height: 1.3em;          /* Ajusta según tu diseño */
    height: 2.6em;               /* 1.3em × 2 líneas */
    overflow: hidden;
}


/* servicios */
.service-item {
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease;
    min-height: 180px;
}

.service-item:hover {
    background: #0F0F0F;
    transform: translateY(-5px);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: #0F0F0F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.borde-vehiculo{
    border-radius: 10px !important;
    cursor: pointer;
    border: 2px solid #E30613;

}