@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0072ff;           /* Azul eléctrico brillante del logo */
    --primary-glow: rgba(0, 114, 255, 0.25);
    --primary-glow-strong: rgba(0, 114, 255, 0.45);
    --secondary: #0284c7;
    --accent-red: #ff2e55;        /* Rojo de acento de la luz trasera del logo */
    --accent-red-glow: rgba(255, 46, 85, 0.35);
    --bg-light: #fbf8f0;          /* Amarillo suave / crema cálido del lienzo del logo */
    --bg-light-surface: #f4f0e2;
    --bg-card: #ffffff;           /* Blanco puro para destacar vehículos */
    --text-main: #0f172a;         /* Azul marino oscuro / grafito del texto RENUEVA */
    --text-muted: #64748b;
    --panel-border: rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-light);
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    color: var(--text-main);
}

/* =========================================
   UTILITY & GLASSMORPHISM PREMIUM LIGHT
   ========================================= */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--panel-border);
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
    border-color: rgba(0, 114, 255, 0.3);
    box-shadow: 0 20px 45px rgba(0, 114, 255, 0.12);
}

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, #0f172a 30%, #0072ff 100%);
}

.text-gradient-red {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, #0f172a 20%, #ff2e55 100%);
}

.glow-text {
    text-shadow: 0 0 20px rgba(0, 114, 255, 0.3);
}

.glow-red {
    text-shadow: 0 0 20px rgba(255, 46, 85, 0.3);
}

/* =========================================
   ANIMATED BACKGROUNDS (WARM AMBIENT GLOW)
   ========================================= */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    z-index: 0;
    opacity: 0.45;
    animation: float 22s infinite alternate ease-in-out;
    pointer-events: none;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(0, 114, 255, 0.12) 0%, rgba(251, 248, 240, 0) 70%);
}

.shape-2 {
    bottom: -20%;
    right: -10%;
    width: 65vw;
    height: 65vw;
    background: radial-gradient(circle, rgba(255, 46, 85, 0.08) 0%, rgba(251, 248, 240, 0) 70%);
    animation-delay: -11s;
}

.bg-tech-grid {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 45px 45px;
    background-position: center center;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(3%, 4%) scale(1.05); }
    100% { transform: translate(-2%, -3%) scale(0.95); }
}

/* =========================================
   SCROLL REVEAL & STAGGER
   ========================================= */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.scale-in.active {
    opacity: 1;
    transform: scale(1);
}

.fade-in {
    opacity: 0;
    transition: opacity 1.2s ease-out;
}
.fade-in.active {
    opacity: 1;
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* =========================================
   PARALLAX & 3D TILT EFFECT
   ========================================= */
.perspective-1000 {
    perspective: 1000px;
}

.tilt-card {
    will-change: transform;
    transform-style: preserve-3d;
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* =========================================
   PREMIUM BUTTONS & MICRO-INTERACTIONS
   ========================================= */
.btn-premium {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), #0284c7);
    color: #ffffff;
    box-shadow: 0 4px 18px var(--primary-glow);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #0284c7, var(--primary));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.btn-premium:hover {
    box-shadow: 0 8px 25px var(--primary-glow-strong);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-premium:hover::before {
    opacity: 1;
}

.btn-premium:active {
    transform: scale(0.96) translateY(0);
}

/* Botón de Acento Rojo (Inspirado en luz trasera del logo) */
.btn-accent-red {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-red), #e61e43);
    color: #ffffff;
    box-shadow: 0 4px 18px var(--accent-red-glow);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.btn-accent-red:hover {
    box-shadow: 0 8px 25px rgba(255, 46, 85, 0.5);
    transform: translateY(-2px);
}

.btn-accent-red:active {
    transform: scale(0.96) translateY(0);
}

.btn-outline-premium {
    position: relative;
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--panel-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-outline-premium:hover {
    border-color: rgba(0, 114, 255, 0.4);
    color: var(--primary);
    background: rgba(0, 114, 255, 0.04);
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.15);
    transform: translateY(-2px);
}

/* =========================================
   HIGH-IMPACT HEADER & NAV-LINKS (ROYAL BLUE PRESERVED)
   ========================================= */
.navbar-blue-premium {
    background: linear-gradient(135deg, #091326 0%, #004ebf 50%, #091326 100%) !important;
    border-bottom: 2px solid rgba(0, 114, 255, 0.6);
    box-shadow: 0 10px 35px rgba(0, 78, 191, 0.35);
}

.nav-link-bold {

    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff !important;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

@media (min-width: 1280px) {
    .nav-link-bold {
        font-size: 0.95rem;
        letter-spacing: 0.08em;
    }
}


.nav-link-bold::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 3px;
    background: #0072ff;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link-bold:hover {
    color: #0072ff !important;
}

.nav-link-bold:hover::after {
    width: 100%;
}


.btn-outline-premium:active {
    transform: scale(0.97);
}

/* =========================================
   CARDS HOVER ELEVATION & LIGHT GLOW
   ========================================= */
.car-card-premium {
    background: var(--bg-card);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    border: 1px solid var(--panel-border);
}

.car-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.12), 0 0 20px rgba(0, 114, 255, 0.1);
    border-color: rgba(0, 114, 255, 0.3);
}

.car-card-premium .img-container {
    overflow: hidden;
}

.car-card-premium .img-inner {
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.car-card-premium:hover .img-inner {
    transform: scale(1.08);
}

/* =========================================
   NAV LINKS EFFECTS LIGHT
   ========================================= */
.nav-link {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 8px var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* =========================================
   INPUT & FORMS ANIMATIONS
   ========================================= */
.input-premium {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--panel-border);
    transition: all 0.3s ease;
}

.input-premium:focus {
    box-shadow: 0 0 0 2px var(--primary-glow), 0 0 15px rgba(0, 114, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* =========================================
   SKELETON LOADER ANIMATION LIGHT
   ========================================= */
.skeleton-box {
    background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.8s infinite ease-in-out;
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =========================================
   CUSTOM SCROLLBAR LIGHT
   ========================================= */
::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Slow Pulse Utility */
.animate-pulse-slow {
    animation: pulseSlow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseSlow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.98);
    }
}

/* Mobile Menu Premium Links */
.mobile-nav-link {
    position: relative;
    display: inline-block;
    color: var(--text-main);
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 8px var(--primary);
}

/* =========================================
   CHATBOT RICH CONTENT LIGHT
   ========================================= */
#chatbotMessages::-webkit-scrollbar {
    width: 4px;
}

.chat-card {
    background: #ffffff;
    border: 1px solid var(--panel-border);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chat-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 114, 255, 0.12);
}

#chatSuggestions button {
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

#chatSuggestions button:hover {
    background: rgba(0, 114, 255, 0.08);
    transform: translateY(-1px);
}

@keyframes chatScaleIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.chat-msg-animate {
    animation: chatScaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* =========================================
   COMPETITOR OVERHAUL STYLES (HERO COLLAGE & BRANCHES)
   ========================================= */
.hero-banner-dark {
    background: linear-gradient(135deg, #090d16 0%, #0f172a 100%);
    border-radius: 2.5rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.hero-split-image {
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
}

.badge-red-accent {
    background: linear-gradient(135deg, #ff2e55 0%, #e61e43 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 46, 85, 0.4);
}

.branch-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1.5rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
}

.branch-card:hover {
    border-color: rgba(0, 114, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 114, 255, 0.1);
}

