/* ==========================================
   1. VARIABLES GLOBALES (Paleta Dark Minimalista)
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Montserrat:wght@400;700&display=swap');

:root {
    --bg-color: #050505;       /* Negro profundo base */
    --text-color: #E0E0E0;     /* Gris muy claro, no blanco puro (reduce fatiga) */
    --text-muted: #888888;     /* Gris medio para subtítulos o secundarios */
    --accent-color: #FFFFFF;   /* Blanco puro solo para destacar (botones, hovers) */
    --card-bg: #111111;        /* Fondo sutil para tarjetas de productos */
    --border-color: #2A2A2A;   /* Bordes oscuros y suaves */
}

/* ==========================================
   2. ESTILOS BASE COMPLEMENTARIOS
   ========================================== */
html { 
    scroll-behavior: smooth; 
}

body {
    font-family: 'Montserrat', sans-serif; /* Mantenemos Montserrat para el cuerpo */
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Tipografía Inter para Títulos - Más moderna y menos agresiva que Anton */
h1, h2, h3, .logo-texto, .btn-pagar, button {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px; /* Menos espaciado que antes */
    color: var(--text-color); /* Aplicamos el gris claro */
}

/* Botones con estilo moderno/urbano */
button, .btn-wa {
    border-radius: 4px !important; /* Bordes ligeramente redondeados, más elegantes que los cuadrados puros */
    font-family: 'Inter', sans-serif;
}

/* ==========================================
   3. CLASES PARA ANIMACIONES AL HACER SCROLL
   ========================================== */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   4. NOTIFICACIONES (TOAST)
   ========================================== */
.toast-container { 
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    z-index: 9999; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
}

.toast { 
    background-color: #1A1A1A; /* Un poco más claro que el fondo para que destaque */
    color: var(--text-color); 
    padding: 15px 25px; 
    border-left: 4px solid #ff4444; /* Rojo más suave */
    border-radius: 4px; 
    font-family: 'Inter', sans-serif;
    font-weight: 400; 
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); 
    animation: entrarToast 0.4s ease-out forwards; 
}

.toast.exito { 
    border-left-color: var(--accent-color); 
}

@keyframes entrarToast { 
    from { opacity: 0; transform: translateX(100%); } 
    to { opacity: 1; transform: translateX(0); } 
}

@keyframes salirToast { 
    from { opacity: 1; transform: translateX(0); } 
    to { opacity: 0; transform: translateX(100%); } 
}

/* ==========================================
   5. WHATSAPP FLOTANTE
   ========================================== */
.whatsapp-flotante { 
    position: fixed; 
    width: 55px; /* Ligeramente más pequeño y elegante */
    height: 55px; 
    bottom: 30px; 
    right: 30px; 
    background-color: #25D366; 
    color: #FFF; 
    border-radius: 50%; 
    font-size: 30px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); 
    z-index: 9999; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    text-decoration: none; 
    animation: latido-wa 2.5s infinite; /* Latido más lento */
}

.whatsapp-flotante:hover {
    background-color: #1ebe57;
    transform: scale(1.05);
}

/* Evita que tape el botón "Proceder al pago" cuando el carrito está abierto */
.carrito-panel.abierto ~ .whatsapp-flotante {
    display: none;
}

@keyframes latido-wa { 
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); } 
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } 
}