﻿/* ==========================================================================
   1. VARIABLES GLOBALES NEÓN
   ========================================================================== */
:root {
    --neon-primary: #ffffff;
    --neon-secondary: #e2e8f0;
    --neon-glow-primary: 0 0 5px rgba(255, 255, 255, 0.4), 0 0 10px rgba(255, 255, 255, 0.2);
    --neon-glow-secondary: 0 0 5px rgba(226, 232, 240, 0.3), 0 0 8px rgba(226, 232, 240, 0.1);
    --partner-gold: #ffb300;
    --partner-glow: 0 0 15px rgba(255, 179, 0, 0.4);
}

/* ==========================================================================
   2. FIXES GLOBALES PARA IONIC & SCROLL
   ========================================================================== */
html, body {
    max-width: 100vw;
    overflow-x: hidden !important;
    background-color: #0a0a0a !important;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Scrollbar personalizada */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(14, 165, 233, 0.5) transparent;
}

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    backdrop-filter: blur(4px);
    transition: background 0.3s ease;
}

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.8);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    }

/* ==========================================================================
   NEON TEXT GLOBALS 
   ========================================================================== */
.neon-text-primary {
    color: #0ea5e9 !important;
    text-shadow: 0 0 15px rgba(14, 165, 233, 0.8) !important;
}

.neon-text-secondary {
    color: #2dd36f !important; /* El verde de success para los financiamientos */
    text-shadow: 0 0 15px rgba(45, 211, 111, 0.8) !important;
}

/* ==========================================================================
   3. BOTONES PREMIUM & GLASSMORPHISM
   ========================================================================== */
.btn {
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(45deg, #0ea5e9, #2563eb) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4) !important;
    color: white !important;
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(14, 165, 233, 0.6) !important;
    }

.btn-success {
    background: linear-gradient(45deg, #22c55e, #16a34a) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3) !important;
    color: white !important;
}

    .btn-success:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5) !important;
    }

.btn-outline-primary, .btn-outline-info, .btn-outline-warning {
    border-width: 2px !important;
    backdrop-filter: blur(5px);
    background: rgba(0,0,0,0.3) !important;
}

/* ==========================================================================
   4. COMPONENTES VISUALES: HERO, BANNERS Y EFECTOS
   ========================================================================== */
.hero-logo {
    max-width: 130px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.4));
}

.section-bg-glass {
    background-color: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(10px);
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.neon-banner-narrow {
    background-color: rgba(10, 10, 10, 0.7);
    padding: 1.5rem 2rem;
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

.fade-in-section {
    opacity: 0;
    transform: perspective(1200px) rotateX(8deg) translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

    .fade-in-section.is-visible {
        opacity: 1;
        transform: perspective(1200px) rotateX(2deg) translateY(0);
    }

/* ==========================================================================
   5. INVENTARIO (SWIPER) - FORZADO COMPACTO
   ========================================================================== */
.inventorySwiper {
    width: 100%;
    padding-top: 40px;
    padding-bottom: 50px;
}

    .inventorySwiper .swiper-slide {
        width: 320px !important;
        height: auto;
        filter: brightness(0.3);
        opacity: 0.6;
        transition: filter 0.4s ease, opacity 0.4s ease;
    }

    .inventorySwiper .swiper-slide-active {
        filter: brightness(1.1);
        opacity: 1;
    }

    .inventorySwiper .vehicle-card {
        transform: scale(0.85);
        transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
        border-radius: 12px;
        background: rgba(22, 22, 22, 0.85) !important;
    }

    .inventorySwiper .swiper-slide-active .vehicle-card {
        transform: scale(1.05) !important;
        box-shadow: 0 10px 30px rgba(14, 165, 233, 0.4);
    }

/* ==========================================================================
   6. PARTNER MARKETPLACE
   ========================================================================== */
.partner-card {
    background: rgba(20, 20, 20, 0.8) !important;
    border: 1px solid rgba(255, 179, 0, 0.15);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    overflow: hidden;
}

    .partner-card:hover {
        border-color: var(--partner-gold);
        box-shadow: var(--partner-glow);
    }

        .partner-card:hover .partner-img {
            transform: scale(1.08);
        }

.partner-img-wrapper {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.partner-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.partner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(10,10,10, 1) 0%, rgba(10,10,10, 0) 100%);
    pointer-events: none;
}

.partner-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--partner-gold);
    color: #000;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 10;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* ==========================================================================
   7. SHOWROOM 3D & HUD TOP GEAR
   ========================================================================== */
.exhibition-container {
    position: relative;
    width: 100%;
    height: 60vh;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

#3d-canvas-container {
    width: 100%;
    height: 100%;
    outline: none;
}

.stats-overlay {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 380px;
    justify-content: center;
    background: rgba(5, 5, 5, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
    pointer-events: none;
}

.speedometer-container {
    position: relative;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
}

    .speedometer-container .gauge-bg {
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: conic-gradient(from 225deg, #10b981 0%, #eab308 35%, #ef4444 70%, transparent 70%);
        mask-image: radial-gradient(transparent 60%, black 61%);
        -webkit-mask-image: radial-gradient(transparent 60%, black 61%);
    }

.gauge-needle {
    position: absolute;
    width: 2px;
    height: 45%;
    background: #fff;
    bottom: 50%;
    left: calc(50% - 1px);
    transform-origin: bottom center;
    transform: rotate(-135deg);
    box-shadow: 0 0 5px #fff;
    z-index: 3;
}

.speedometer-container .data {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 4;
    margin-top: 15px;
}

.speedometer-container .val {
    font-weight: 900;
    font-size: 1rem;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 8px #ef4444;
}

.speedometer-container .unit {
    font-size: 0.6rem;
    font-weight: 700;
    color: #aaa;
}

.stats-info {
    display: flex;
    flex-direction: column;
}

    .stats-info .stat-line {
        font-family: 'VT323', monospace;
        font-size: 1.1rem;
        color: #ffffff;
        display: flex;
        gap: 8px;
        align-items: center;
        margin-bottom: 2px;
        text-transform: uppercase;
        min-height: 24px;
    }

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: #ffffff;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.car-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 2rem;
    width: 50px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: 0.3s;
    backdrop-filter: blur(5px);
    user-select: none;
}

    .car-nav-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    }

.btn-prev {
    left: 0;
    border-radius: 0 10px 10px 0;
}

.btn-next {
    right: 0;
    border-radius: 10px 0 0 10px;
}

#action-btn-container {
    pointer-events: auto;
}

/* ==========================================================================
   8. ELEMENTOS FLOTANTES (MÚSICA & WHATSAPP)
   ========================================================================== */
.whatsapp-float, .music-float {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp-float {
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: #FFF;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.7);
}

    .whatsapp-float:hover {
        transform: scale(1.1);
        box-shadow: 0 0 25px rgba(37, 211, 102, 1);
        color: white;
    }

.music-float {
    top: 20px;
    right: 20px;
    background-color: rgba(20, 20, 20, 0.9);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

    .music-float:hover {
        background-color: rgba(0, 0, 0, 1);
        color: #0ea5e9;
        border-color: #0ea5e9;
        box-shadow: 0 0 25px rgba(14, 165, 233, 0.8);
        transform: scale(1.1);
    }

.music-active-pulse {
    color: #0ea5e9 !important;
    border-color: #0ea5e9 !important;
    background-color: rgba(0,0,0,0.9) !important;
    animation: pulse-neon-main 1.5s infinite !important;
}

@keyframes pulse-neon-main {
    0% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
        transform: scale(1);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(14, 165, 233, 0);
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
        transform: scale(1);
    }
}

/* ==========================================================================
   9. SPLASH SCREEN & EFECTOS GLOBALES
   ========================================================================== */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

.splash-logo-container {
    width: 300px;
    animation: cinematicSplash 4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.splash-logo {
    width: 100%;
    filter: brightness(1.5) drop-shadow(0 0 15px var(--neon-primary));
}

@keyframes cinematicSplash {
    0% {
        transform: scale(0.2);
        opacity: 0;
        filter: blur(20px);
    }

    25%, 75% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
    }

    100% {
        transform: scale(8);
        opacity: 0;
        filter: blur(10px);
    }
}

#main-content, footer, .whatsapp-float, .music-float {
    opacity: 0;
    filter: blur(15px);
    transition: filter 1.2s ease-out, opacity 1.2s ease-out;
}

.site-ready #main-content, .site-ready footer, .site-ready .whatsapp-float, .site-ready .music-float {
    opacity: 1;
    filter: blur(0);
}

/* ==========================================================================
   10. MEDIA QUERIES RESPONSIVOS
   ========================================================================== */
@media (max-width: 768px) {
    .hero-logo {
        max-width: 80px !important;
    }

    .stats-overlay {
        width: 70%;
        flex-direction: column;
        top: 10px;
        text-align: center;
    }

    .speedometer-container {
        width: 50px;
        height: 50px;
    }

    .car-nav-btn {
        font-size: 1.5rem;
        width: 35px;
        height: 55px;
    }

    .inventorySwiper .swiper-slide {
        width: 240px !important;
    }

    .inventorySwiper .swiper-slide-active .vehicle-card {
        transform: scale(1.02) !important;
    }

    .music-float {
        top: 20px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* ==========================================================================
   FORZAR ESTILOS DE BOTONES SOBRE IONIC
   ========================================================================== */
a.btn, button.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    line-height: 1.5 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.5px !important;
}

/* Botones principales (View Inventory / Apply Now) */
.btn-primary {
    background: linear-gradient(45deg, #0ea5e9, #2563eb) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4) !important;
}

    .btn-primary:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6) !important;
    }

/* Botones de acción (View Details / View Listing) */
.btn-outline-primary, .btn-outline-warning {
    background: rgba(14, 165, 233, 0.1) !important;
    color: #0ea5e9 !important;
    border: 2px solid #0ea5e9 !important;
    backdrop-filter: blur(5px);
}

.btn-outline-warning {
    color: #ffb300 !important;
    border-color: #ffb300 !important;
    background: rgba(255, 179, 0, 0.1) !important;
}

/* Botón de Whatsapp / Financing */
.btn-success {
    background: linear-gradient(45deg, #22c55e, #16a34a) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3) !important;
}

/* Forzar anchos en Ionic */
.w-100 {
    width: 100% !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

/* ==========================================================================
   11. MENÚ NATIVO (APP FEEL) Y LOGO CENTRADO
   ========================================================================== */
.black-menu-content {
    --background: #050505 url('https://www.transparenttextures.com/patterns/stardust.png');
}

.native-menu-item {
    --background: rgba(255, 255, 255, 0.03);
    --color: #e2e8f0;
    --border-radius: 12px;
    margin: 8px 16px;
    font-size: 1.05rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

    .native-menu-item:hover {
        --background: rgba(14, 165, 233, 0.1);
        border-color: rgba(14, 165, 233, 0.3);
        transform: translateX(5px);
    }

    .native-menu-item.active {
        --background: linear-gradient(90deg, rgba(14, 165, 233, 0.2) 0%, transparent 100%);
        border-left: 4px solid #0ea5e9 !important;
        --color: #ffffff;
        font-weight: bold;
    }

/* ==========================================================================
   12. BOTÓN GIGANTE DE SIMULACIÓN Y CARDS DE FINANCIAMIENTO
   ========================================================================== */
.btn-massive-sim {
    background: linear-gradient(45deg, #0f172a, #082f49);
    border: 2px solid #0ea5e9;
    border-radius: 16px;
    color: #fff !important;
    padding: 20px 40px;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    max-width: 500px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .btn-massive-sim:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 15px 40px rgba(14, 165, 233, 0.6);
        background: linear-gradient(45deg, #082f49, #0ea5e9);
    }

.finance-card-premium {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

/* ==========================================================================
   13. FIX MODAL DE SIMULACIÓN E IMÁGENES
   ========================================================================== */
ion-modal {
    --background: rgba(10, 10, 10, 0.95);
    --backdrop-opacity: 0.8;
}

.sim-car-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: 0.3s;
}

    .sim-car-item:hover, .sim-car-item.selected {
        background: rgba(14, 165, 233, 0.15);
        border-color: #0ea5e9;
        box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
    }

.sim-car-img {
    width: 90px;
    height: 65px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* ==========================================================================
   14. CENTRADO DEL CONTENEDOR 3D SHOWROOM
   ========================================================================== */
#3d-canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

    #3d-canvas-container canvas {
        outline: none;
        display: block;
    }

/* ==========================================================================
   15. UTILIDADES EXTRAS (FOOTER & TRANSICIONES)
   ========================================================================== */
.transition-all {
    transition: all 0.3s ease !important;
}

.hover-neon:hover {
    color: #0ea5e9 !important;
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.8);
    transform: translateX(5px);
}

.hover-neon.d-inline-flex:hover {
    transform: translateX(5px) scale(1.02);
}

