/* Variables de Color (basadas en el logo) */
:root {
    --primary-red: #D3121E;
    --primary-blue: #0C45A3;
    --dark-bg: #111111;
    --light-text: #FFFFFF;
    --gray-bg: #F8F9FA;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif; /* Usaremos fuentes del sistema por ahora o cargaremos luego */
    background-color: var(--gray-bg);
    margin: 0;
    padding: 0;
}

/* =========================================
   Desktop Navbar
========================================= */
.desktop-navbar {
    background: rgba(17, 17, 17, 0.85); /* Semi-transparent dark */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--primary-red);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
    z-index: 1030;
}

.desktop-navbar .nav-link {
    color: var(--light-text) !important;
    font-weight: 500;
    margin-left: 15px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.desktop-navbar .nav-link:hover,
.desktop-navbar .nav-link.active {
    color: var(--primary-red) !important;
}

/* =========================================
   Mobile Header (Top)
========================================= */
.mobile-header {
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--primary-red);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1030;
}

/* =========================================
   Mobile Bottom Navigation (App-like)
========================================= */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--light-text);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6c757d; /* Gris de bootstrap */
    transition: all 0.3s ease;
    flex: 1;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.mobile-bottom-nav .nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover {
    color: var(--primary-red);
}

.mobile-bottom-nav .nav-item.active i {
    transform: translateY(-2px);
}

/* Ajuste del body para que no lo tape la barra inferior en móviles */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 70px;
    }
}

/* =========================================
   Hero Section
========================================= */
.hero-section {
    background: linear-gradient(rgba(17, 17, 17, 0.7), rgba(17, 17, 17, 0.7)), url('../img/hero_car_bg.jpg') center/cover no-repeat;
    color: var(--light-text);
    padding: 100px 0;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-weight: 700;
    font-size: 3rem;
}

.hero-section .text-red {
    color: var(--primary-red);
}

.hero-section .text-blue {
    color: var(--primary-blue);
}

.btn-primary-custom {
    background-color: var(--primary-red);
    color: var(--light-text);
    border: none;
    padding: 10px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--primary-blue);
    color: var(--light-text);
}

/* =========================================
   Vehicles Section & Cards
========================================= */
.vehicle-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.vehicle-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.vehicle-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.vehicle-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.vehicle-year {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.9rem;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.view-gallery-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark-bg);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 10;
    cursor: pointer;
}

.view-gallery-btn:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: scale(1.15);
}

.bg-primary-custom {
    background-color: var(--primary-red);
    color: var(--light-text);
}

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

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

.features-grid i {
    font-size: 1.1rem;
    margin-right: 5px;
}

.btn-outline-primary-custom {
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary-custom:hover {
    background-color: var(--primary-red);
    color: var(--light-text);
}

/* Swiper Pagination customization */
.swiper-pagination-bullet-active {
    background: var(--primary-red) !important;
}

/* =========================================
   Nuevas Clases de Tarjetas (WhatsApp, Destacado, Descuento)
========================================= */
.btn-whatsapp {
    background-color: #25D366; /* Verde oficial de WhatsApp */
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    box-shadow: 0 6px 15px rgba(18, 140, 126, 0.4);
    transform: translateY(-2px);
}

.bg-primary-blue {
    background-color: var(--primary-blue);
    color: var(--light-text);
}

.vehicle-featured {
    position: absolute;
    top: 15px;
    left: 0;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 15px 6px 10px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.3);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Efecto Lateral para Tarjetas Destacadas */
.card-destacado {
    border-left: 2px solid rgba(12, 69, 163, 0.7) !important;
    border-right: 2px solid rgba(12, 69, 163, 0.7) !important;
    animation: glowSides 2s infinite alternate;
}

@keyframes glowSides {
    0% {
        box-shadow: -5px 0 15px -5px rgba(12, 69, 163, 0.1), 5px 0 15px -5px rgba(12, 69, 163, 0.1);
    }
    100% {
        box-shadow: -8px 0 25px -5px rgba(12, 69, 163, 0.7), 8px 0 25px -5px rgba(12, 69, 163, 0.7);
    }
}

/* =========================================
   VIP Banner (Glassmorphism & 3D Tilt)
========================================= */
.vip-banner-wrapper {
    perspective: 1000px;
    margin-top: -100px; /* Superposición entre el hero oscuro y la sección clara */
}

.vip-banner-glass {
    background: rgba(17, 17, 17, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
    transition: transform 0.1s;
    position: relative;
    overflow: hidden;
}

/* Efecto de Brillo de Cristal */
.vip-banner-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: premiumSheen 5s infinite;
}

.vip-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 1px solid rgba(255, 215, 0, 0.4);
    transform: translateZ(40px); /* 3D Depth */
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.1);
}

.text-gold {
    color: #FFD700;
}

.vip-title {
    color: #ffffff;
    font-weight: 800;
    transform: translateZ(30px); /* 3D Depth */
}

.vip-discount-box {
    transform: translateZ(50px); /* 3D Depth máxima para el número */
}

.border-start-md {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 767.98px) {
    .border-start-md {
        border-left: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }
}

.vip-amount {
    font-weight: 900;
    background: linear-gradient(135deg, #25D366, #128C7E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    filter: drop-shadow(0 5px 10px rgba(37, 211, 102, 0.3));
}

@keyframes premiumSheen {
    0%, 40% { left: -100%; }
    100% { left: 200%; }
}

/* =========================================
   About & Contact Sections
========================================= */
.tracking-wide {
    letter-spacing: 2px;
}

.experience-badge {
    box-shadow: 0 15px 30px rgba(211, 18, 30, 0.3) !important;
}

.icon-box-small {
    font-size: 1.2rem;
}

.icon-box-medium {
    font-size: 1.5rem;
}

.contact-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.map-wrapper iframe {
    transition: filter 0.3s ease;
}

.map-wrapper:hover iframe {
    filter: brightness(0.9);
}

/* =========================================
   Services Section
========================================= */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
}

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

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

.contact-hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-hover-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
}

/* =========================================
   Scroll to Top Button
========================================= */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-red);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#scrollTopBtn.show {
    opacity: 0.9;
    visibility: visible;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    opacity: 1;
    transform: translateY(-5px);
    background-color: var(--primary-blue);
}

/* =========================================
   Floating Social Buttons
========================================= */
#floatingSocials {
    position: fixed;
    top: 50%;
    left: 30px;
    transform: translateY(-50%) translateX(-100px);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#floatingSocials.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-btn:hover {
    transform: scale(1.15);
    color: white;
}

.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.whatsapp-btn {
    background-color: #25D366;
}

@media (max-width: 767.98px) {
    #scrollTopBtn {
        bottom: 90px; /* Evita que choque con el nav móvil */
        right: 20px;
    }
    
    #floatingSocials {
        left: 20px;
        gap: 10px;
    }
    
    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* =========================================
   Animations & Page Transitions
========================================= */
/* Transición suave al cargar la página */
body {
    animation: fadeInPage 0.6s cubic-bezier(0.39, 0.575, 0.565, 1);
}

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

/* Clases para revelar elementos al hacer scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Retrasos escalonados para tarjetas múltiples (ej. grid de vehículos) */
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* =========================================
   Ultra-Premium Modal UI
========================================= */
.premium-input-group {
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.premium-input-group:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(12, 69, 163, 0.1) !important;
}

.premium-input-group input:focus {
    outline: none;
    box-shadow: none;
}

.group-hover:hover .timeline-dot {
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

.timeline-track {
    border-radius: 2px;
}

/* Make custom calendar icon click open the picker in modern browsers */
.premium-input-group input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.premium-input-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}


