/*
 * Enhanced Styles - Electric Motorsport
 * Modern, vibrant design with animations and 3D effects
 */

/* ============================================
   VARIABLES & ANIMATIONS
   ============================================ */

:root {
    --primary-red: #ff0844;
    --primary-orange: #ffb700;
    --electric-blue: #00d9ff;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #b0b0b0;
    --glow-color: #ff0844;
}

/* Gradiente animado de fondo */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Efecto glow pulsante */
@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 8, 68, 0.5),
            0 0 40px rgba(255, 8, 68, 0.3),
            0 0 60px rgba(255, 8, 68, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 8, 68, 0.8),
            0 0 60px rgba(255, 8, 68, 0.5),
            0 0 90px rgba(255, 8, 68, 0.3);
    }
}

/* Animación de flotación */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Partículas de fondo */
@keyframes particles {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(50px) scale(0);
        opacity: 0;
    }
}

/* Efecto de brillo en texto */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

body {
    background: var(--dark-bg);
    color: var(--text-light);
    font-family: 'Quicksand', sans-serif;
    overflow-x: hidden;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-red), var(--primary-orange));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-orange), var(--primary-red));
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar-enhanced {
    background: rgba(10, 10, 10, 0.8) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar-enhanced.scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.navbar-enhanced .nav-link {
    color: var(--text-light) !important;
    font-weight: 600;
    position: relative;
    padding: 8px 15px !important;
    transition: all 0.3s ease;
}

.navbar-enhanced .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-orange));
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar-enhanced .nav-link:hover::before,
.navbar-enhanced .nav-link.active::before {
    width: 80%;
}

.navbar-enhanced .nav-link:hover {
    transform: translateY(-2px);
}

/* ============================================
   BOTONES MEJORADOS
   ============================================ */

.btn-glow {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-orange));
    border: none;
    color: white;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(255, 8, 68, 0.4);
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-glow:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 40px rgba(255, 8, 68, 0.6);
    color: white;
}

.btn-glow-outline {
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    padding: 10px 33px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-glow-outline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-orange));
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
    z-index: -1;
}

.btn-glow-outline:hover::before {
    width: 300px;
    height: 300px;
}

.btn-glow-outline:hover {
    color: white;
    border-color: var(--primary-orange);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 183, 0, 0.4);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-enhanced {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0a 50%, #0a0a1a 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    overflow: hidden;
}

.hero-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 8, 68, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 183, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 217, 255, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.hero-enhanced .container {
    position: relative;
    z-index: 2;
}

.hero-title-enhanced {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-orange) 50%, var(--primary-red) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease infinite;
    text-shadow: 0 0 40px rgba(255, 8, 68, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 8, 68, 0.2);
    border: 2px solid var(--primary-red);
    border-radius: 50px;
    color: var(--primary-red);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    animation: glow 2s ease-in-out infinite;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Video container con glassmorphism */
.video-container-enhanced {
    position: relative;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.video-container-enhanced:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(255, 8, 68, 0.3);
}

.live-badge {
    position: absolute;
    top: 30px;
    left: 30px;
    padding: 8px 15px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 20px;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-pulse {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: glow 1.5s ease-in-out infinite;
}

/* ============================================
   CARDS 3D
   ============================================ */

.card-3d {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 8, 68, 0.1) 0%, rgba(255, 183, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.card-3d:hover::before {
    opacity: 1;
}

.card-3d:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 25px 60px rgba(255, 8, 68, 0.4);
    border-color: var(--primary-red);
}

.card-3d .card-img-top {
    transition: transform 0.6s ease;
    height: 220px;
    object-fit: cover;
}

.card-3d:hover .card-img-top {
    transform: scale(1.1);
}

.card-3d .card-body {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
}

.card-3d .card-title {
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.card-3d .card-text {
    color: var(--text-muted);
    line-height: 1.6;
}

.badge-enhanced {
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-racing {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-orange));
    color: white;
    animation: glow 3s ease-in-out infinite;
}

/* ============================================
   SIMULADORES SECTION
   ============================================ */

.simulator-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.simulator-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 8, 68, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.simulator-card:hover::before {
    left: 100%;
}

.simulator-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--primary-red);
    box-shadow: 0 20px 50px rgba(255, 8, 68, 0.3);
}

.simulator-card img {
    filter: grayscale(100%) brightness(1.5);
    transition: all 0.4s ease;
    max-height: 80px;
}

.simulator-card:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

/* ============================================
   FOOTER
   ============================================ */

.footer-enhanced {
    background: linear-gradient(180deg, var(--dark-bg) 0%, #000000 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 0 2rem;
}

.footer-enhanced h5 {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-enhanced h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-orange));
}

.footer-enhanced a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-enhanced a:hover {
    color: var(--primary-red);
    transform: translateX(5px);
}

.social-icons-enhanced a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons-enhanced a:hover {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-orange));
    border-color: var(--primary-orange);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 30px rgba(255, 8, 68, 0.4);
}

/* ============================================
   SECTION TITLES
   ============================================ */

.section-title-enhanced {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-light), var(--primary-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 8, 68, 0.1);
    border: 1px solid var(--primary-red);
    border-radius: 20px;
    color: var(--primary-red);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-gradient {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-dark-enhanced {
    background: var(--dark-bg);
}

.bg-gradient-enhanced {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0a 100%);
}

/* Responsive ajustes */
@media (max-width: 768px) {
    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .card-3d:hover {
        transform: translateY(-10px);
    }
}