:root {
    /* PALETA CLARA - "Orgullo Tricolor" (Default) */
    --bg-color: #FFFFFF;
    --header-bg: #FCD116; /* Amarillo Colombia */
    --header-text: #0033A0; /* Azul Profundo */
    --text-color: #0033A0;
    --text-secondary: #333333;
    --card-bg: #F5F5F5;
    --btn-primary: #CE1126; /* Rojo Intenso */
    --btn-text: #FFFFFF;
    --accent-color: #0033A0;
    --shadow: 0 4px 12px rgba(0, 51, 160, 0.15);
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

[data-theme="dark"] {
    /* PALETA OSCURA - "La Hinchada" */
    --bg-color: #0F0F0F; /* Negro Carbón */
    --header-bg: #1A1A1A;
    --header-text: #FCD116; /* Amarillo Oro */
    --text-color: #EDEDED; /* Blanco Suave */
    --text-secondary: #BBBBBB;
    --card-bg: #2A2A2A; /* Gris Grafito */
    --btn-primary: #9E1B32; /* Rojo Oscuro */
    --btn-text: #FCD116;
    --accent-color: #FCD116;
    --shadow: 0 4px 15px rgba(252, 209, 22, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    transition: background 0.4s ease, color 0.4s ease;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Asegura que el footer se vaya al fondo */
}

h1, h2, h3 { font-family: var(--font-title); }

a { text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* HEADER */
.main-header {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background 0.4s ease;
}

.logo-container img { height: 60px; margin-bottom: 10px; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.back-link { color: var(--header-text); font-weight: bold; }

/* HERO (Inicio) - CORREGIDO */
.hero-section { 
    text-align: center; 
    padding: 4rem 1rem; 
    flex: 1; /* Ocupa el espacio disponible para empujar el footer */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-title { font-size: 2.5rem; margin-bottom: 1rem; color: var(--accent-color); }
.hero-desc { margin-bottom: 2rem; color: var(--text-secondary); max-width: 600px; margin-left: auto; margin-right: auto; }

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* BOTONES - CORREGIDO */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 5px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.btn-primary, .btn-buy { background-color: var(--btn-primary); color: var(--btn-text); }
.btn-secondary { background-color: var(--accent-color); color: #FFF; }

.btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
[data-theme="dark"] .btn:hover { box-shadow: 0 0 15px var(--accent-color); }

/* CARDS (Tienda) */
.catalog-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 20px; padding-bottom: 40px; }

.product-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}
.product-card:hover { transform: translateY(-5px); }

.product-img { position: relative; height: 300px; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.discount-badge {
    position: absolute; top: 10px; right: 10px;
    background: #CE1126; color: white; padding: 5px 10px;
    border-radius: 5px; font-weight: bold; font-size: 0.9rem;
}

.product-info { padding: 20px; text-align: center; }
.product-info h3 { font-size: 1.2rem; margin-bottom: 10px; }
.price { font-size: 1.3rem; font-weight: 700; color: var(--accent-color); margin-bottom: 10px; }
.old-price { text-decoration: line-through; color: #888; font-size: 0.9rem; margin-right: 10px; }
.desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 15px; }
.flame-icon { color: #FF4500; }

/* REDES */
.social-grid { display: flex; flex-direction: column; gap: 20px; max-width: 400px; margin: 50px auto; }
.social-card {
    display: flex; align-items: center; justify-content: center; gap: 15px;
    padding: 20px; border-radius: 15px;
    font-size: 1.2rem; font-weight: bold; color: white;
    transition: transform 0.2s;
}
.social-card:hover { transform: scale(1.05); }
.tiktok { background: #000; border: 1px solid #333; }
.whatsapp { background: #25D366; }
.gmail { background: #EA4335; }

/* THEME TOGGLE */
.theme-btn {
    position: fixed; bottom: 20px; right: 20px;
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--btn-primary); color: var(--btn-text);
    border: none; cursor: pointer; z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    font-size: 1.5rem;
}

/* FOOTER - AÑADIDO */
footer {
    text-align: center;
    padding: 20px;
    background-color: var(--header-bg);
    color: var(--header-text);
    font-weight: bold;
    width: 100%;
    margin-top: auto;
}