:root {
    --primary: #d50000;
    --primary-dark: #b71c1c;
    --secondary: #000000;
    --accent: #FFD700;
    --text-white: #ffffff;
    --text-black: #000000;
    --gray-light: #f9f9f9;
    --gray-border: #f0f0f0;
    --font-main: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    --shadow-card: 0 8px 20px rgba(0,0,0,0.15);
    --z-modal: 2000;
    --z-navbar: 1001;
}

body {
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    background: var(--text-white);
    color: var(--text-black);
}

.top-promo-bar {
    background: var(--secondary); 
    color: var(--text-white);
    text-align: center;
    padding: 10px;
    font-size: 14px;
    position: relative;
    z-index: var(--z-navbar);
    border-bottom: 2px solid var(--primary);
}

.top-promo-bar a {
    color: var(--accent); 
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer;
    margin-left: 5px;
}

.top-promo-bar a:hover {
    color: var(--text-white);
}

.logo-link {
    text-decoration: none;
}

.ssup {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: var(--text-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
    z-index: 10;
}

.icono-carrito {
    width: 25px;
    height: 25px;
}

.carrito {
    display: flex;
    align-items: center;
    gap: 5px; 
    background: none;
    border: none;
    cursor: pointer;
}

.contador {
    background: var(--secondary);
    color: var(--text-white);
    font-size: 12px;
    border-radius: 50%;
    padding: 2px 6px;
}

.logos { 
    color: var(--primary);
    font-weight: bold; 
    margin: 0; 
    transition: transform 0.2s;
}
.logos:hover {
    transform: scale(1.05);
}

.navegación a { 
    margin: 0 16px; 
    text-decoration: none; 
    color: var(--text-black);
    font-weight: bold;
    transition: color 0.3s;
}
.navegación a:hover {
    color: var(--primary);
}

.estilos {
    background: var(--primary);
    color: var(--text-white);
    padding: 11px 19px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(213, 0, 0, 0.3);
}

.estilos:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(213, 0, 0, 0.4);
}

.sprin {
    text-align: center;
    padding: 64px 32px;
    background: linear-gradient(135deg, #424242, var(--primary));
    color: var(--text-white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.sprin h2 { font-size: 40px; margin-bottom: 16px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.sprin p { font-size: 19px; margin-bottom: 24px; }

.productos { padding: 48px 32px; }
.productos h3 { text-align: center; margin-bottom: 32px; font-size: 32px; }

.filas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.tarjetas {
    background: var(--text-white);
    padding: 24px;
    border-radius: 15px;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--gray-border);
}

.tarjetas img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 10px;
}

.tarjetas:hover { 
    transform: scale(1.03); 
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.precios { color: var(--primary); font-weight: bold; margin-bottom: 16px; font-size: 1.2rem; }

.ventana {
    display: none;
    position: fixed;
    z-index: var(--z-modal);
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow-y: auto;
}

.ventana-content {
    background: var(--text-white);
    margin: 5% auto;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    animation: aparecer 0.3s;
}

.modal-grande { max-width: 1000px; }

.grid-productos-10 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.tarjeta-modal h4 { font-size: 16px; margin: 10px 0; }

.modal-promos-content {
    background: linear-gradient(to bottom, var(--text-white), #fff0f0);
    border: 2px solid var(--primary);
    max-width: 900px;
}

.titulo-oferta { color: var(--primary); font-size: 28px; }

.grid-promos-3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.tarjeta-promo {
    flex: 1 1 250px;
    border: 2px solid #ffcccc;
    position: relative;
}

.etiqueta-oferta {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary);
    color: var(--text-white);
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.precios-oferta { margin-bottom: 15px; }

.precio-viejo {
    text-decoration: line-through;
    color: #888;
    margin-right: 10px;
    font-size: 0.9rem;
}

.precio-nuevo {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.4rem;
}

#formContacto {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#formContacto input, #formContacto textarea {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-family: inherit;
    background: var(--gray-light);
}

#formContacto input:focus, #formContacto textarea:focus {
    border-color: var(--primary);
    outline: none;
    background: var(--text-white);
}

#formContacto textarea {
    resize: none;
    overflow-y: hidden;
    min-height: 80px;
}

@keyframes aparecer {
    from {transform: translateY(-30px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

.cerrar {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s;
}
.cerrar:hover { color: var(--primary); }

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px; 
}

.cart-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
}

.cart-precio {
    font-weight: bold;
    color: var(--primary);
}

.btn-eliminar {
    background: var(--primary);
    color: var(--text-white);
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}
.btn-eliminar:hover { background: var(--primary-dark); }

.btn2-comprar {
    background: green;
    color: var(--text-white);
    border: none;
    padding: 12px 15px;
    margin-top: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    font-weight: bold;
}
.btn2-comprar:hover { background: darkgreen; }

#carrito-items {
    max-height: 300px;
    overflow-y: auto;    
    margin-bottom: 10px;
    padding-right: 5px;  
}

.pdp {
    background: var(--secondary);
    color: var(--text-white);
    text-align: center;
    padding: 24px;
    margin-top: 40px;
}

.boton-menu-movil {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--primary);
}

.content-2x1 {
    text-align: center;
    border: 3px solid var(--accent);
    border-radius: 20px;
    max-width: 450px;
    background: var(--text-white);
}

.titulo-2x1 { color: var(--primary); text-transform: uppercase; }
.desc-2x1 { font-size: 18px; color: #555; }
.tarjeta-2x1 { box-shadow: none; border: none; margin: 20px auto; max-width: 300px; }
.tarjeta-2x1 img { height: 250px; object-fit: contain; }
.precio-grande { font-size: 2rem; }
.nota-precio { font-size: 14px; color: gray; }

@media (max-width: 768px) {
    .ssup { padding: 10px 20px; justify-content: space-between; }
    .boton-menu-movil { display: block; order: 2; }
    .carrito { order: 3; }

    .navegación {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--text-white);
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.15);
        border-top: 1px solid #eee;
        z-index: 999;
    }

    .navegación.activo { display: flex; }

    .navegación a {
        margin: 15px 0;
        font-size: 18px;
        border-bottom: 1px solid var(--gray-light);
        padding-bottom: 10px;
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
    .navegación a:last-child { border-bottom: none; }

    .sprin h2 { font-size: 28px; }
    .sprin p { font-size: 16px; }
    
    .ventana-content { width: 85%; padding: 20px; margin: 10% auto; }
    .grid-productos-10 { grid-template-columns: 1fr 1fr; }
}