:root {
    --rojo: #d90429;
    --amarillo: #ffb703;
    --negro: #0b090a;
    --gris: #161a1d;
    --blanco: #f8f9fa;
    --trans-negro: rgba(0, 0, 0, 0.85);
}

/* --- RESET & BASE --- */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: var(--negro);
    color: var(--blanco);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* --- SPLASH SCREEN --- */
#splash-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--negro); z-index: 9999; display: flex; 
    flex-direction: column; justify-content: center; align-items: center;
    transition: 0.8s;
}

.splash-logo { 
    font-family: 'Permanent Marker'; 
    font-size: clamp(2.5rem, 8vw, 4rem); 
    color: var(--amarillo); 
    animation: pulse 1s infinite alternate; 
}

.loader {
    width: 40px; height: 40px; border: 4px solid var(--rojo);
    border-top: 4px solid transparent; border-radius: 50%;
    animation: spin 1s linear infinite; margin-top: 20px;
}

/* --- NAVBAR --- */
.navbar { 
    background: rgba(217, 4, 41, 0.95); 
    backdrop-filter: blur(10px); 
    position: sticky; top: 0; z-index: 1000; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); 
}

.navbar ul { 
    display: flex; justify-content: center; 
    padding: 15px; list-style: none; margin: 0; 
    flex-wrap: wrap; gap: 10px;
}

.navbar a { 
    color: white; text-decoration: none; margin: 0 10px; 
    font-weight: 700; text-transform: uppercase; 
    font-size: clamp(0.75rem, 2vw, 0.9rem); 
    transition: 0.3s; 
}

.navbar a:hover { color: var(--amarillo); }

/* --- HERO --- */
.hero {
    height: 70vh; position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.5)), 
                url('https://images.unsplash.com/photo-1573082818143-304bc847ad7b?q=80&w=1200') center/cover;
    text-align: center;
    padding: 20px;
}

.main-logo { 
    font-family: 'Permanent Marker'; 
    font-size: clamp(3rem, 12vw, 6rem); 
    color: var(--amarillo); 
    text-shadow: 0 0 25px var(--rojo); 
    z-index: 10; 
    line-height: 1.1;
}

.tagline { 
    font-weight: bold; 
    font-size: clamp(1rem, 3vw, 1.4rem); 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    margin-top: 10px;
}

/* --- SECCIONES & CONTENEDORES --- */
.container { 
    padding: 60px 5%; 
    max-width: 1200px; 
    margin: auto; 
}

.section-title { 
    font-family: 'Permanent Marker'; 
    font-size: clamp(2rem, 8vw, 3.5rem); 
    color: var(--amarillo); 
    text-align: center; 
    margin-bottom: 40px; 
}

/* --- INFO SECTION (Historia) --- */
.info-layout { 
    display: flex; flex-wrap: wrap; gap: 40px; 
    align-items: center; background: #111; 
    padding: clamp(20px, 5vw, 40px); 
    border-radius: 25px; border-left: 8px solid var(--rojo); 
}

.info-text { flex: 1; min-width: 300px; }

.sub-title { 
    color: var(--rojo); font-weight: bold; 
    text-transform: uppercase; letter-spacing: 1px; 
}

.info-img { flex: 1; min-width: 280px; display: flex; justify-content: center; }

.info-img img { 
    width: 100%; max-width: 400px; 
    border-radius: 15px; 
    box-shadow: 15px 15px var(--rojo); 
    transition: 0.5s; 
    object-fit: cover;
}

.info-img img:hover { transform: scale(1.03) rotate(1deg); }

/* --- GRID PRODUCTOS --- */
.grid-productos { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
}

.card { 
    background: var(--gris); border-radius: 20px; overflow: hidden; 
    cursor: pointer; transition: 0.4s; position: relative; 
    border: 1px solid rgba(255,255,255,0.05);
    height: 350px; /* Altura uniforme */
}

.card:hover { 
    transform: translateY(-12px); 
    border-color: var(--amarillo); 
    box-shadow: 0 10px 30px rgba(217, 4, 41, 0.3); 
}

.card img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }

.card:hover img { transform: scale(1.1); }

.card-info { 
    padding: 20px; 
    background: linear-gradient(transparent, rgba(0,0,0,0.95)); 
    position: absolute; bottom: 0; width: 100%; 
    text-align: center; 
}

.card-badge {
    position: absolute; top: 15px; left: 15px;
    background: var(--rojo); color: white;
    padding: 5px 15px; border-radius: 20px;
    font-weight: bold; font-size: 0.8rem; z-index: 5;
}

/* --- MODAL RESPONSIVO --- */
.modal { 
    display: none; position: fixed; inset: 0; 
    background: rgba(0,0,0,0.95); z-index: 2000; 
    backdrop-filter: blur(10px); 
    padding: 20px;
}

.modal-content { 
    background: var(--gris); margin: auto; 
    width: 100%; max-width: 900px; 
    border-radius: 25px; position: relative; 
    overflow: hidden; border: 2px solid var(--rojo);
    max-height: 90vh; overflow-y: auto;
}

.detalle-container { display: flex; flex-wrap: wrap; }

.detalle-izq { flex: 1 1 400px; height: 400px; }
#img-detalle { width: 100%; height: 100%; object-fit: cover; }

.detalle-der { 
    flex: 1 1 350px; padding: 40px; 
    display: flex; flex-direction: column; justify-content: center; 
}

/* --- BOTONES --- */
.btn-comprar { 
    background: var(--amarillo); color: var(--negro); 
    border: none; padding: 18px; font-weight: 800; 
    cursor: pointer; border-radius: 12px; font-size: 1.1rem; 
    transition: 0.3s; width: 100%; margin-top: 20px;
}

.btn-comprar:hover { background: var(--blanco); transform: translateY(-3px); }

/* --- ANIMATIONS & MEDIA QUERIES --- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { from {transform: scale(1);} to {transform: scale(1.05);} }

@media (max-width: 768px) {
    .container { padding: 40px 20px; }
    
    .info-layout { 
        flex-direction: column-reverse; 
        text-align: center; 
    }
    
    .info-img img { max-width: 220px; box-shadow: 10px 10px var(--rojo); }

    .detalle-izq { height: 250px; }
    
    .detalle-der { padding: 25px; text-align: center; }
}

.footer-credits { 
    text-align: center; padding: 40px; 
    background: #000; border-top: 3px solid var(--rojo); 
    margin-top: 50px; font-size: 0.9rem;
}