:root {
    --bg-deep: #050505;
    --glass-surface: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-gradient: linear-gradient(135deg, #c084fc, #ec4899);
    --neon-blue: #60a5fa;
    --font-body: 'Outfit', sans-serif;
    --font-display: 'Syne', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- ESTILOS DEL CARRUSEL (Copia esto tal cual) --- */
.reviews-carousel-window {
    width: 100% !important;
    overflow: hidden !important;
    padding: 40px 0 !important;
    position: relative !important;
    display: block !important;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.reviews-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: max-content !important; 
    gap: 30px !important;
    animation: scrollReviews 40s linear infinite !important;
}

.reviews-track:hover {
    animation-play-state: paused !important;
}

.review-card {
    flex: 0 0 350px !important;
    background: var(--glass-surface) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 28px !important;
    padding: 30px !important;
    text-align: left !important;
}

@keyframes scrollReviews {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


.review-avatar {
    width: 45px;
    height: 45px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.1rem;
    overflow: hidden; /* Corta la imagen si es más grande que el círculo */
    border: 1px solid rgba(255,255,255,0.1);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene la proporción de la cara del cliente */
    border-radius: 50%;
}

/* Estilos de la tarjeta */
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.review-avatar { 
    width: 45px; height: 45px; background: var(--accent-gradient); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-weight: bold; color: white;
}
.review-info h4 { margin: 0; color: white; font-size: 1rem; }
.review-stars { color: #fbbf24; font-size: 0.8rem; }
.review-body { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; min-height: 70px; }
.review-footer { display: flex; justify-content: space-between; align-items: center; opacity: 0.5; font-size: 0.75rem; }

@media (max-width: 768px) {
    .review-card { flex: 0 0 280px !important; }
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Se sitúa detrás del contenido (z-index 1+) pero delante del fondo aurora (z-index -2) */
    pointer-events: none; /* ¡IMPORTANTE! Permite que los clics pasen a través del canvas */
    background: transparent;
}


* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}




/* --- LOGIN 3D REFILLS STYLE --- */


/* Asegúrate de que el modal esté oculto y centrado */
#auth-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Fondo oscuro */
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none; /* <--- CRUCIAL: Oculto por defecto */
    align-items: center;
    justify-content: center;
}

.auth-3d-perspective {
    perspective: 1500px;
    width: 400px;
    height: 600px;
    max-width: 90%;
}

.auth-3d-card {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.auth-3d-card.flipped {
    transform: rotateY(180deg);
}

.auth-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.auth-back {
    transform: rotateY(180deg);
}

/* Elementos internos */
.auth-logo {
    display: block;      /* Necesario para que margin: auto funcione */
    margin: 0 auto 15px auto; /* Centra horizontalmente y da espacio abajo */
    width: 100px;
    filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.3));
}

.auth-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 25px;
}

.auth-input-group {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.auth-input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-blue);
    font-size: 0.9rem;
}

.auth-input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    color: white;
    outline: none;
    transition: 0.3s;
}

.auth-input-group input:focus {
    border-color: var(--neon-blue);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.2);
}

.auth-btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 15px;
    color: white;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 1px;
    transition: 0.3s;
    margin-top: 10px;
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(192, 132, 252, 0.4);
}

/* Botón Google elegante y compacto */
.auth-btn-google {
    width: 80%; /* No ocupa todo el ancho, se ve más centrado y elegante */
    max-width: 280px; /* Evita que en pantallas grandes se vea gigante */
    margin: 15px auto; /* Lo centra horizontalmente */
    padding: 10px 15px; /* Reducimos un poco el padding */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px; /* Bordes un poco más finos */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem; /* Fuente ligeramente más pequeña */
    font-weight: 500;
}

/* IMPORTANTE: Esto controla el tamaño del logo */
.auth-btn-google img {
    width: 18px !important; 
    height: 18px !important;
    object-fit: contain;
}

.auth-btn-google:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--neon-blue);
}

.auth-divider {
    width: 100%;
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%; left: 0; width: 100%; height: 1px;
    background: rgba(255,255,255,0.1);
}

.auth-divider span {
    position: relative;
    background: #0f0f0f;
    padding: 0 10px;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.close-auth {
    position: absolute;
    top: 15px; right: 20px;
    background: none; border: none;
    color: white; font-size: 1.5rem; cursor: pointer; opacity: 0.5;
}

.auth-switch {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: bold;
}


/* Fondo Aurora */
body::before {
    content: '';
    position: fixed;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(120, 40, 200, 0.15), transparent 40%),
                radial-gradient(circle at 80% 20%, rgba(255, 0, 128, 0.1), transparent 30%);
    z-index: -2;
    animation: aurora-move 20s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes aurora-move {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-5%, -5%) rotate(5deg); }
}

/* --- SOLUCIÓN AL ESPACIO SUPERIOR --- */
.main-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem 6rem;
    position: relative;
    z-index: 1;
}

header {
    padding-top: 40px; /* Controla aquí la distancia exacta al borde superior */
    text-align: center;
}

#store-name {
    margin-top: 0;
    margin-bottom: 5px;
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(to bottom, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

/* Puedes ajustar el código hexadecimal al tono de naranja que más te guste */
.text-orange {
    color: #C76E00; /* Un naranja intenso */
     font-family: var(--font-display);
}

header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 90%;
    margin: 0 auto;
    line-height: 1.5;
    font-weight: 300;
}


h3 {
    text-align: center;
}
 
.product-price {
    text-align: center;
}


/* 2. Forzar que el botón de ingresar no empuje el contenido */
#user-menu {
    position: absolute; /* Esto lo hace flotar */
    top: 15px;         /* Ajusta la altura a tu gusto */
    right: 15px;       /* Lo pega a la derecha */
    z-index: 100;      /* Se asegura que esté por encima de todo */
}


#store-name {
    margin-top: 0;
    padding-top: 0;
    /* ... el resto de tu código igual ... */
}



/* --- CONTROLS SECTION --- */
.controls-section {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    /* Forzamos el redondeado total en cualquier pantalla */
    border-radius: 100px !important; 
    padding: 0.6rem 1.5rem;
    margin: 0 auto 2.5rem;
    display: flex;
    flex-direction: row; /* En PC se ve en fila */
    align-items: center;
    gap: 1rem;
    width: fit-content; /* Se ajusta al contenido */
    max-width: 95%;
}

.search-container {
    background: rgba(255,255,255,0.05);
    border-radius: 50px !important; /* Redondeado total */
    padding: 0 1.2rem;
    display: flex;
    align-items: center;
    min-width: 250px;
}

.search-icon { color: var(--text-secondary); margin-right: 0.5rem; }

.search-input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    padding: 0.8rem 0;
    font-family: var(--font-body);
    font-size: 16px;
    outline: none;
    
}

#filter-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
#filter-container::-webkit-scrollbar { display: none; }

.filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 50px !important; /* Redondeado total */
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn.active { background: white; color: black; border-color: white; font-weight: 600; }

/* --- PRODUCT GRID & CARDS --- */
#product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.product-card {
    background: var(--glass-surface);
    border-radius: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0.8rem;
    overflow: hidden;
}

.image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.8rem;
    aspect-ratio: 4/5;
    background: #111;
}

.product-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    border-radius: 10px;
}

.product-card:hover img { transform: scale(1.2); }

.product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    margin-top: 0.3rem;
}

/* --- STOCK TAGS --- */
.stock-tag {
    position: absolute;
    top: 0.6rem; left: 0.6rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.stock-tag.available { background: #10b981; color: white; border: 1px solid #34d399; }
.stock-tag.sold-out { background: #ef4444; color: white; border: 1px solid #f87171; }

.buy-link {
    position: absolute;
    bottom: 0.8rem; right: 0.8rem;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}


/* --- LOADER --- */
.loader-overlay {
    position: fixed; inset: 0; background: var(--bg-deep); z-index: 9999;
    display: flex; justify-content: center; align-items: center; transition: opacity 0.5s;
}

.loader-hidden { opacity: 0; pointer-events: none; }

.loader-spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(255,255,255,0.1); border-top-color: white;
    border-radius: 50%; animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --- ESTILO GENERAL --- */
.footer-dispositivos {
    background-color: #000;
    color: #fff;
    font-family: sans-serif;
    padding: 60px 20px;
    text-align: center;
    border-radius: 35px;
}

.footer-title {
    font-size: 24px;
    margin-bottom: 50px;
    font-weight: 600;
}

/* --- VERSION PC (HORIZONTAL CON LÍNEAS) --- */
.container-devices {
    display: flex; /* Flexbox para la fila horizontal */
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.device-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    position: relative; /* Necesario para posicionar las líneas */
}

/* Las líneas verticales sutiles */
.device-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%; /* La línea no llega hasta arriba */
    height: 70%; /* La línea no llega hasta abajo */
    width: 1px;
    background-color: #333; /* Color gris oscuro como el original */
}

.icon-wrapper {
    width: 70px;
    height: 60px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.icon-wrapper svg {
    width: 100%;
    height: 100%;
}

.device-item p {
    font-size: 14px;
    margin: 0;
}

/* --- VERSIÓN MÓVIL (2x2) --- */
@media (max-width: 768px) {
    .container-devices {
        display: grid; /* Cambiamos a Grid */
        grid-template-columns: 1fr 1fr; /* Forzamos 2 columnas */
        gap: 30px 0; /* Espacio entre filas */
    }

    /* Quitamos las líneas verticales en móvil para que luzca como tu foto */
    .device-item:not(:last-child)::after {
        display: none;
    }
    
    .icon-wrapper {
        width: 60px;
        height: 50px;
    }
}
/* --- SECCIÓN CONTACTO --- */
.contacto-footer {
    background-color: #000;
    color: #fff;
    padding: 60px 20px;
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
}

/* Título con líneas a los lados */
.titulo-separador {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.titulo-separador::before, .titulo-separador::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #333; /* Color de la línea */
    max-width: 400px;
}

.titulo-separador span {
    padding:20px 10px;
    font-weight: bold;
    letter-spacing: 2px;
}


/* --- FOOTER FINAL --- */
.footer-final {
    background: rgba(5, 5, 5, 0.8);
    border-top: 1px solid var(--glass-border);
    padding: 60px 20px 20px;
    text-align: center;
}

.container-devices-mini {
    margin-bottom: 50px;
}

.mini-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 1.5rem;
    margin-top: 15px;
    color: var(--text-secondary);
}

.social-links-container h3 {
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.social-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    border-radius: 15px;
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 160px;
    justify-content: center;
}

/* Colores de marca en hover */
.social-card.wa:hover { border-color: #25d366; box-shadow: 0 0 15px rgba(37, 211, 102, 0.3); color: #25d366; }
.social-card.ig:hover { border-color: #e1306c; box-shadow: 0 0 15px rgba(225, 48, 108, 0.3); color: #e1306c; }
.social-card.tk:hover { border-color: #00f2ea; box-shadow: 0 0 15px rgba(0, 242, 234, 0.3); color: #00f2ea; }
.social-card.tg:hover { border-color: #0088cc; box-shadow: 0 0 15px rgba(0, 136, 204, 0.3); color: #0088cc; }

.social-card i {
    font-size: 1.4rem;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.8rem;
    color: #444;
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .social-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .social-card {
        min-width: auto;
    }
}


/* Responsivo para móvil */
@media (max-width: 768px) {
    .container-contacto {
        flex-direction: column;
        gap: 50px;
    }
    .contacto-item:first-child {
        border-right: none;
        border-bottom: 1px solid #444;
        padding-bottom: 50px;
    }
}

/* --- NUEVO BOTÓN FLOTANTE PROFESIONAL --- */
/* --- NUEVO BOTÓN FLOTANTE PROFESIONAL --- */
.btn-flotante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 12px 25px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-decoration: none;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.btn-flotante:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--neon-blue);
    box-shadow: 0 15px 40px rgba(96, 165, 250, 0.2);
}

.contador-carrito {
    background: var(--accent-gradient);
    font-size: 11px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: absolute;
    top: -5px;
    left: 15px;
    border: 2px solid #050505;
}

/* --- SELECTOR DE CANTIDADES --- */
.quantity-controls {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 2px;
    margin-top: 8px;
    width: fit-content;
}

.btn-qty {
    background: transparent;
    border: none;
    color: white;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-weight: bold;
}

.qty-number {
    padding: 0 10px;
    color: var(--neon-blue);
    font-weight: bold;
    font-size: 0.9rem;
}

/* --- GRID MÓVIL 2 COLUMNAS (MANTENIENDO TU ESTILO) --- */
@media (max-width: 768px) {
    #product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        padding: 0.5rem;
    }
    .btn-flotante {
        bottom: 20px;
        right: 20px;
        padding: 10px 20px;
    }
    .texto-carrito { display: none; } /* Oculta texto en móvil para que sea pill pequeño */
}

/* --- DESKTOP TWEAKS & RESPONSIVE --- */
@media (min-width: 768px) {
    header { padding: 6rem 0 4rem; }
    .main-wrapper { padding: 0 2rem 6rem; }
    .controls-section {
        flex-direction: row; align-items: center;
        border-radius: var(--radius-pill);
        padding: 0.8rem 2rem; width: fit-content; margin: 0 auto 2rem;
    }
    .search-container { width: auto; flex-grow: 1; background: transparent; padding: 0; }
    .divider { display: block; width: 1px; height: 24px; background: var(--glass-border); margin: 0 1rem; }
    #product-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 3rem 2rem; }
    .product-card { padding: 1.2rem; border-radius: 24px; }
    .buy-link {
        width: 45px; height: 45px; background: white; color: black;
        opacity: 0; transform: translateY(20px); transition: all 0.3s;
    }
    .product-card:hover .buy-link { opacity: 1; transform: translateY(0); }
    .modal-overlay { align-items: center; }
    .modal-content { border-radius: 1.5rem; max-width: 350px; border: 1px solid rgba(255,255,255,0.1); }
}

@media (max-width: 768px) {
    .footer-main-content { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .footer-column { align-items: center; }
    .contact-item, .social-links { justify-content: center; }
    .newsletter-form { max-width: 300px; margin: 0 auto; width: 100%; }
}

@media (max-width: 600px) {
    .texto-carrito { display: none; }
    .btn-flotante { padding: 15px; }
    .icono-carrito { margin-right: 0; }
}


/* ... (tus otros estilos se mantienen igual) ... */

/* --- AJUSTE PARA MÓVILES --- */
@media (max-width: 768px) {
    #product-grid {
        /* Forzamos exactamente 2 columnas */
        grid-template-columns: repeat(2, 1fr) !important;
        /* Mantenemos el gap original que tenías de 1rem */
        gap: 1rem !important; 
        padding: 0.5rem;
    }

    /* Aseguramos que las tarjetas no se deformen y mantengan su estilo */
    .product-card {
        display: flex;
        flex-direction: column;
        height: 100%; /* Para que todas midan lo mismo en la misma fila */
    }
}


/* Efecto de brillo suave a las tarjetas */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--glass-border);
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-blue);
    box-shadow: 0 10px 30px -10px rgba(96, 165, 250, 0.3);
}

/* Mejora de visibilidad de las imágenes */
.image-wrapper img {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animación para el contador del carrito */
@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}
.cart-pop { animation: pop 0.3s ease-out; }



/* CARRITO LATERAL */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%; /* Escondido por defecto */
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--glass-border);
}

.cart-drawer.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 9999;
}

.cart-overlay.show {
    display: block;
}

/* Cabecera del Carrito */
.cart-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Lista de Productos */
.cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--glass-surface);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.item-info {
    flex-grow: 1;
}

.item-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.item-price {
    color: var(--neon-blue);
    font-weight: 700;
}

.remove-item {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Footer del Carrito */
.cart-footer {
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(20, 20, 20, 0.5);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

#cart-total-amount {
    color: var(--neon-blue);
}

.btn-whatsapp-final {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-pill);
    background: #25d366;
    color: black;
    font-weight: 800;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s;
}

.btn-whatsapp-final:hover {
    transform: scale(1.02);
}

.cart-note {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 1rem;
}



/* Estados del pedido en el historial */
.status-pill.pendiente { background: rgba(255, 193, 7, 0.2); color: #ffc107; border-color: rgba(255, 193, 7, 0.3); }
.status-pill.entregado { background: rgba(40, 167, 69, 0.2); color: #28a745; border-color: rgba(40, 167, 69, 0.3); }

/* Arreglo para que el drawer no se solape con el botón flotante si está abierto */
.cart-drawer.open {
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}


/* --- BOTÓN INGRESAR (HEADER) --- */
#user-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
}

#btn-login-open {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 10px 22px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#btn-login-open i {
    color: var(--neon-blue);
    font-size: 0.9rem;
}

#btn-login-open:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--neon-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(96, 165, 250, 0.2);
}



.btn-remove-item {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-item:hover {
    transform: scale(1.2);
}

/* Mejora el contenedor de cantidad para que no se vea pegado */
.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-qty {
    transition: background 0.2s;
    border-radius: 4px;
}

.btn-qty:hover {
    background: rgba(255,255,255,0.1);
}

/* Menú Lateral Usuario */
.side-drawer.left {
    position: fixed;
    top: 0;
    left: -100%; /* Escondido a la izquierda */
    width: 300px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 10001;
    transition: left 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-right: 1px solid var(--glass-border);
}

.side-drawer.left.open {
    left: 0;
}

.drawer-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px 20px;
}

.close-btn-round {
    background: rgba(255,255,255,0.05);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    margin-bottom: 20px;
}

.user-profile-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--neon-blue);
}

#user-welcome-name {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-display);
}

/* Items del menú */
.user-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item i {
    font-size: 1.2rem;
    width: 25px;
}

.nav-item.active {
    background: #C76E00; /* Color similar a tu imagen */
    color: white;
}

.nav-item:hover:not(.active) {
    background: rgba(255,255,255,0.05);
    color: white;
}

/* Footer y Logout */
.drawer-footer-user {
    margin-top: auto;
    padding-bottom: 20px;
}

.divider-dashed {
    border-top: 1px dashed rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

.btn-logout {
    width: 100%;
    padding: 12px;
    border-radius: 50px;
    background: white;
    color: #6366f1;
    border: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-logout:hover {
    transform: scale(1.02);
    background: #f0f0f0;
}






