/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

/* --- BARRA DE NAVEGACIÓN --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    padding: 5px 0;
    z-index: 1000;
    border-bottom: 2px solid #dc2626;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 15px;
    width: auto;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: #dc2626;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 20px;
    height: 2px;
    margin: 3px auto;
    transition: all 0.3s ease-in-out;
    background-color: #ffffff;
    border-radius: 2px;
}

/* --- SECCIÓN HERO --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: -3;
}

.video-fondo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%; 
    min-height: 100%; 
    width: auto; 
    height: auto; 
    object-fit: cover;
    z-index: -2;
    transition: opacity 1s ease-in-out; 
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.contenido-hero {
    position: relative;
    z-index: 1;
    color: white;
    padding: 20px 80px;
    max-width: 650px;
    text-align: left;
}

.contenido-hero h1 {
    font-size: 4rem;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ffffff;
    font-style: italic;
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.8), 0 0 40px rgba(220, 38, 38, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(220, 38, 38, 0.8), 0 0 40px rgba(220, 38, 38, 0.5); }
    to { text-shadow: 0 0 30px rgba(220, 38, 38, 1), 0 0 60px rgba(220, 38, 38, 0.8); }
}

.contenido-hero .tagline {
    font-size: 1.3rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    font-weight: 500;
}

.contenido-hero .subtitulo {
    font-size: 0.95rem;
    color: #e5e7eb;
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.btn-prueba {
    padding: 14px 40px;
    font-size: 1rem;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin: 0 auto 15px auto;
}

.btn-prueba:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.7);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.btn-secundario {
    padding: 12px 35px;
    font-size: 0.9rem;
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin: 0 auto 10px auto;
}

.btn-secundario:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #dc2626;
    transform: translateY(-2px);
}

/* --- SECCIÓN QUÉ ES V RACING --- */
.que-es-vracing {
    position: relative;
    padding: 100px 20px;
    overflow: hidden;
}

.slider-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    transform: scale(1);
    animation: zoomEffect 10s ease-in-out infinite;
}

.slide.active {
    opacity: 1;
}

@keyframes zoomEffect {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: -1;
}

.que-es-vracing .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.que-es-vracing h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: #dc2626;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    text-shadow: 
        3px 3px 6px rgba(0,0,0,0.9),
        -1px -1px 2px rgba(0,0,0,0.8),
        0 0 20px rgba(0,0,0,0.7),
        0 0 40px rgba(220, 38, 38, 0.4);
    position: relative;
    display: inline-block;
    width: 100%;
}

.que-es-vracing h2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 120%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.section-intro {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 60px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
    font-weight: 500;
    line-height: 1.6;
}

.tarjetas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.tarjeta-foto {
    position: relative;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.tarjeta-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tarjeta-foto:hover img {
    transform: scale(1.1);
}

.tarjeta-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.7), transparent);
    padding: 40px 20px 25px;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.tarjeta-foto:hover .tarjeta-overlay {
    transform: translateY(0);
}

.tarjeta-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #dc2626;
    font-weight: 700;
    text-shadow: 
        2px 2px 6px rgba(0,0,0,0.95),
        0 0 15px rgba(0,0,0,0.9),
        -1px -1px 3px rgba(0,0,0,0.9);
}

.tarjeta-overlay p {
    font-size: 1rem;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
    font-weight: 500;
}

/* --- SECCIÓN QUIÉNES SOMOS --- */
.quienes-somos {
    position: relative;
    padding: 100px 20px;
    overflow: hidden;
    background: #0f172a;
    min-height: 800px;
}

.qs-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.qs-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: translateX(100%) scale(1.1);
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.qs-slide.active {
    opacity: 0.7;
    transform: translateX(0) scale(1);
}

.qs-slide.prev {
    opacity: 0;
    transform: translateX(-100%) scale(0.95);
}

.qs-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    z-index: -1;
}

.quienes-somos .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.quienes-somos h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #dc2626;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    text-shadow: 
        3px 3px 8px rgba(0,0,0,0.9),
        0 0 30px rgba(220, 38, 38, 0.5);
}

.qs-intro {
    font-size: 1.3rem;
    color: #e2e8f0;
    margin-bottom: 60px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
}

.qs-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}

.qs-images {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.qs-img-container {
    position: relative;
    height: 280px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    transition: transform 0.4s ease;
}

.qs-img-container:hover {
    transform: translateY(-5px);
}

.qs-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.qs-img-container:hover img {
    transform: scale(1.15);
}

.qs-texto {
    padding: 20px;
}

.qs-texto h3 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    position: relative;
    padding-bottom: 15px;
}

.qs-texto h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    border-radius: 2px;
}

.qs-texto p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #cbd5e1;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    margin-bottom: 20px;
}

.qs-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.qs-stat {
    text-align: center;
}

.qs-stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #dc2626;
    display: block;
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.6);
}

.qs-stat-label {
    font-size: 0.95rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- SECCIÓN DE MERCHANDISING --- */
.merchandising {
    padding: 80px 20px;
    text-align: center;
    background: #ffffff;
    color: #1e3a8a;
}

.merchandising h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: #dc2626;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.merchandising > p {
    font-size: 1.1rem;
    margin-bottom: 50px;
    color: #3b82f6;
}

.productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.producto {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    padding: 30px 20px;
    border-radius: 15px;
    transition: all 0.3s;
    border: 2px solid #dbeafe;
    position: relative;
    overflow: hidden;
}

.producto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #dc2626, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.producto:hover::before {
    transform: scaleX(1);
}

.producto:hover {
    transform: translateY(-8px);
    border-color: #3b82f6;
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.2);
}

.producto img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #ffffff;
}

.producto h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #1e40af;
    font-weight: 600;
}

.producto p {
    color: #64748b;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.precio {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 15px;
}

.btn-comprar {
    padding: 10px 30px;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-comprar:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

/* --- FOOTER / CONTACTO --- */
footer {
    background: linear-gradient(180deg, #000000 0%, #0f172a 100%);
    color: #94a3b8;
    padding: 60px 20px 30px;
    border-top: 3px solid #dc2626;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #dc2626;
}

.footer-section p {
    margin: 10px 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-section strong {
    color: #dc2626;
}

.email-link {
    color: #dc2626;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px dotted #dc2626;
}

.email-link:hover {
    color: #ef4444;
    border-bottom-color: #ef4444;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: #dc2626;
}

.social-link.youtube:hover {
    background: #ff0000;
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.5);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.5);
}

.social-link.twitter {
    background: #ffffff;
}

.social-link.twitter:hover {
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.5);
}

.social-link.twitter svg {
    fill: #000000;
}

.social-link.twitter:hover svg {
    fill: #000000;
}

.social-link svg {
    fill: white;
    width: 24px;
    height: 24px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.footer-bottom p:first-child {
    color: #ffffff;
    font-weight: 600;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 968px) {
    .qs-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .qs-images {
        order: 2;
    }
    
    .qs-texto {
        order: 1;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 40px;
        gap: 0;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        border-bottom: 2px solid #dc2626;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 12px 0;
    }

    .nav-link {
        font-size: 1rem;
        display: block;
        padding: 8px;
    }

    .logo img {
        height: 12px;
    }

    .contenido-hero {
        padding: 20px 30px;
    }

    .contenido-hero h1 {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .contenido-hero .tagline {
        font-size: 1rem;
    }
    
    .contenido-hero .subtitulo {
        font-size: 0.85rem;
    }
    
    .btn-prueba,
    .btn-secundario {
        padding: 12px 30px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 300px;
    }
    
    .que-es-vracing h2,
    .quienes-somos h2,
    .merchandising h2 {
        font-size: 1.8rem;
    }

    .que-es-vracing,
    .quienes-somos,
    .merchandising {
        padding: 60px 20px;
    }

    .tarjeta-foto {
        height: 300px;
    }

    .qs-texto h3 {
        font-size: 1.8rem;
    }
    
    .qs-stat-number {
        font-size: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}