/* Reset y variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores principales - Esquema moderno dark */
    --primary-color: #0f0f23;
    --secondary-color: #1a1a2e;
    --accent-color: #16213e;
    --surface-color: #0e3460;
    
    /* Colores de texto */
    --text-light: #f8f9fa;
    --text-muted: #adb5bd;
    --text-secondary: #6c757d;
    
    /* Colores de borde y elementos */
    --border-color: #2c3e50;
    --border-light: #34495e;
    --hover-color: #2c3e50;
    
    /* Colores de estado - Esquema azul/morado */
    --success-color: #00d4aa;
    --warning-color: #ffb347;
    --error-color: #ff6b6b;
    --info-color: #4ecdc4;
    
    /* Colores de acento */
    --accent-primary: #007bff;
    --accent-secondary: #6f42c1;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-light);
    line-height: 1.6;
    padding-top: 80px; /* Compensar el header fijo */
}

/* Header */
.header {
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    height: 80px; /* Altura fija del header */
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%; /* Usar toda la altura del header */
    position: relative; /* Para posicionamiento absoluto del hamburguesa */
}

.nav-brand h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-light);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--success-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.cart-btn .cart-icon {
    font-size: 1.1rem;
    color: var(--text-light);
}

.cart-btn:hover {
    background-color: var(--hover-color);
    border-color: var(--accent-color);
}

.cart-count {
    background-color: var(--success-color);
    color: var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-btn {
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.admin-btn:hover {
    background-color: var(--hover-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        var(--accent-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, 
        rgba(0, 123, 255, 0.1) 0%, 
        transparent 50%),
        radial-gradient(circle at 70% 80%, 
        rgba(111, 66, 193, 0.1) 0%, 
        transparent 50%);
    animation: hero-glow 8s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes hero-glow {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, 
        var(--text-light) 0%, 
        var(--accent-primary) 30%, 
        var(--accent-secondary) 70%, 
        var(--success-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 123, 255, 0.3);
    animation: hero-title-glow 3s ease-in-out infinite alternate;
}

/* Estilo 8-bit para la palabra "Byte" en el hero */
.pixel-8bit {
    position: relative;
    display: inline-block;
    padding: 0 0.35rem;
    font-family: 'Press Start 2P', cursive;
    letter-spacing: 0.02em;
    line-height: 1;
    font-size: 0.8em; /* igual escala que el resto del título */
    /* Aplicar el mismo degradado que .hero-title */
    background: linear-gradient(45deg, 
        var(--text-light) 0%, 
        var(--accent-primary) 30%, 
        var(--accent-secondary) 70%, 
        var(--success-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    image-rendering: pixelated; /* fuerza look retro */
    filter: none;

}
/* Estilo 8-bit para la palabra "Byte" en el hero */
.pixel-8bits {
    position: relative;
    display: inline-block;
    padding: 0 0.35rem;
    font-family: 'Press Start 2P', cursive;
    letter-spacing: 0.02em;
    line-height: 1;
    font-size: 0.8em; /* igual escala que el resto del título */
    /* Aplicar el mismo degradado que .hero-title */
    background: linear-gradient(45deg, 
        var(--text-light) 0%, 
        var(--accent-primary) 30%, 
        var(--accent-secondary) 70%, 
        var(--success-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    image-rendering: pixelated; /* fuerza look retro */
    filter: none;
    color: white;

}
.pixel-8bit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: none; /* sin brillo para 8-bit auténtico */
    pointer-events: none;
}

/* Título de la marca en la barra de navegación con degradado y contorno pixel */


@keyframes hero-title-glow {
    0% {
        text-shadow: 0 0 30px rgba(0, 123, 255, 0.3);
    }
    100% {
        text-shadow: 0 0 50px rgba(0, 123, 255, 0.6);
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    animation: hero-subtitle-fade 4s ease-in-out infinite alternate;
}

@keyframes hero-subtitle-fade {
    0% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}

.cta-btn {
    background-color: var(--success-color);
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Main Content */
.main {
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-light);
}

.products-section {
    margin-bottom: 6rem;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: linear-gradient(135deg, 
        rgba(22, 33, 62, 0.6) 0%, 
        rgba(26, 26, 46, 0.8) 100%);
    border: 2px solid var(--border-light);
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.tab-btn:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    background: linear-gradient(135deg, 
        rgba(0, 123, 255, 0.2) 0%, 
        rgba(111, 66, 193, 0.15) 100%);
}

.tab-btn.active {
    background: linear-gradient(135deg, 
        var(--accent-primary) 0%, 
        var(--accent-secondary) 100%);
    border-color: var(--accent-primary);
    color: #ffffff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.4);
    animation: active-glow 2s ease-in-out infinite alternate;
}

@keyframes active-glow {
    0% {
        box-shadow: 0 10px 30px rgba(0, 123, 255, 0.4);
    }
    100% {
        box-shadow: 0 15px 40px rgba(0, 123, 255, 0.6);
    }
}

/* Animación moderna para agregar al carrito */
.cart-animation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
        rgba(0, 123, 255, 0.1) 0%, 
        rgba(0, 0, 0, 0.8) 70%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.cart-animation-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-animation-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Partículas de fondo */
.cart-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: linear-gradient(45deg, 
        var(--accent-primary) 0%, 
        var(--accent-secondary) 100%);
    border-radius: 50%;
    animation: particle-float 3s ease-out infinite;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.6);
}

.particle:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { top: 20%; right: 15%; animation-delay: 0.3s; }
.particle:nth-child(3) { bottom: 30%; left: 10%; animation-delay: 0.6s; }
.particle:nth-child(4) { bottom: 20%; right: 25%; animation-delay: 0.9s; }
.particle:nth-child(5) { top: 50%; left: 5%; animation-delay: 1.2s; }
.particle:nth-child(6) { top: 60%; right: 5%; animation-delay: 1.5s; }
.particle:nth-child(7) { top: 15%; left: 50%; animation-delay: 1.8s; }
.particle:nth-child(8) { bottom: 15%; left: 50%; animation-delay: 2.1s; }
.particle:nth-child(9) { top: 40%; left: 30%; animation-delay: 2.4s; }
.particle:nth-child(10) { top: 70%; right: 30%; animation-delay: 2.7s; }

/* Círculo principal */
.cart-circle {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        var(--accent-primary) 0%, 
        var(--accent-secondary) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: cart-circle-bounce 2s ease-out;
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.5);
    z-index: 2;
}

.cart-circle-inner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    animation: cart-inner-pulse 2s ease-out;
}

.cart-icon {
    font-size: 2.5rem;
    color: white;
    animation: cart-icon-spin 2s ease-out;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* Ondas de expansión */
.cart-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: cart-ripple-expand 2s ease-out;
}

.cart-ripple:nth-child(2) { animation-delay: 0.2s; }
.cart-ripple:nth-child(3) { animation-delay: 0.4s; }

/* Texto flotante */
.cart-floating-text {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: cart-text-float 2s ease-out;
    z-index: 3;
}

.cart-text-main {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 20px rgba(0, 123, 255, 0.8);
    margin-bottom: 5px;
    animation: cart-text-glow 2s ease-out;
}

.cart-text-sub {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.6);
    animation: cart-text-fade 2s ease-out;
}

/* Confeti */
.cart-confetti {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, 
        var(--accent-primary) 0%, 
        var(--accent-secondary) 50%, 
        var(--success-color) 100%);
    animation: confetti-fall 2s ease-out;
    border-radius: 2px;
}

.confetti-piece:nth-child(1) { left: 10%; animation-delay: 0.5s; }
.confetti-piece:nth-child(2) { left: 20%; animation-delay: 0.7s; }
.confetti-piece:nth-child(3) { left: 30%; animation-delay: 0.9s; }
.confetti-piece:nth-child(4) { left: 40%; animation-delay: 1.1s; }
.confetti-piece:nth-child(5) { left: 60%; animation-delay: 1.3s; }
.confetti-piece:nth-child(6) { left: 70%; animation-delay: 1.5s; }
.confetti-piece:nth-child(7) { left: 80%; animation-delay: 1.7s; }
.confetti-piece:nth-child(8) { left: 90%; animation-delay: 1.9s; }

/* Animaciones keyframes modernas */
@keyframes particle-float {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
    20% {
        transform: translateY(-20px) scale(1);
        opacity: 1;
    }
    80% {
        transform: translateY(-40px) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-60px) scale(0);
        opacity: 0;
    }
}

@keyframes cart-circle-bounce {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    30% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
    50% {
        transform: scale(0.9) rotate(360deg);
    }
    70% {
        transform: scale(1.05) rotate(450deg);
    }
    100% {
        transform: scale(1) rotate(720deg);
        opacity: 1;
    }
}

@keyframes cart-inner-pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes cart-icon-spin {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    30% {
        transform: scale(1.3) rotate(180deg);
        opacity: 1;
    }
    60% {
        transform: scale(1) rotate(360deg);
    }
    100% {
        transform: scale(1) rotate(720deg);
        opacity: 1;
    }
}

@keyframes cart-ripple-expand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

@keyframes cart-text-float {
    0% {
        transform: translateX(-50%) translateY(30px);
        opacity: 0;
    }
    30% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes cart-text-glow {
    0% {
        text-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 30px rgba(0, 123, 255, 1);
    }
    100% {
        text-shadow: 0 0 20px rgba(0, 123, 255, 0.8);
    }
}

@keyframes cart-text-fade {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    50% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translateY(50px) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(200px) rotate(360deg);
        opacity: 0;
    }
}

/* Efecto de pulso en el botón del carrito */
.cart-btn-pulse {
    animation: cart-btn-pulse 0.6s ease-out;
}

@keyframes cart-btn-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    25% {
        transform: scale(1.08) rotate(3deg);
        box-shadow: 0 0 0 8px rgba(0, 123, 255, 0.5);
    }
    50% {
        transform: scale(1.15) rotate(-3deg);
        box-shadow: 0 0 0 15px rgba(0, 123, 255, 0.3);
    }
    75% {
        transform: scale(1.08) rotate(2deg);
        box-shadow: 0 0 0 8px rgba(0, 123, 255, 0.2);
    }
    100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Estilos específicos para diferentes cantidades de productos */
.products-grid:has(.product-card:only-child) {
    grid-template-columns: minmax(280px, 400px);
    justify-content: center;
}

/* Estilos para pantallas grandes */
@media (min-width: 1400px) {
    .products-grid {
        max-width: 1400px;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .products-grid:has(.product-card:only-child) {
        grid-template-columns: minmax(300px, 400px);
        justify-content: center;
    }
}

/* Estilos para pantallas muy grandes */
@media (min-width: 1600px) {
    .products-grid {
        max-width: 1600px;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
    
    .products-grid:has(.product-card:only-child) {
        grid-template-columns: minmax(320px, 450px);
        justify-content: center;
    }
}

.product-card {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.product-image {
    width: 100%;
    height: 200px;
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-muted);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.product-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.add-to-cart-btn {
    background-color: var(--accent-color);
    color: var(--text-light);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
    flex: 1;
}

.add-to-cart-btn:hover {
    background-color: var(--hover-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--secondary-color);
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 600;
}

.close {
    color: var(--text-muted);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-light);
}

.modal-body {
    padding: 1.5rem;
}

/* Cart Modal */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--success-color);
    font-weight: 500;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background-color: var(--accent-color);
    color: var(--text-light);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background-color: var(--hover-color);
}

.quantity {
    margin: 0 0.5rem;
    min-width: 30px;
    text-align: center;
}

.remove-btn {
    background-color: var(--error-color);
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.cart-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.cart-total h4 {
    font-size: 1.5rem;
    color: var(--success-color);
}

.checkout-btn {
    background-color: var(--success-color);
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.checkout-btn:hover {
    background-color: var(--accent-primary);
}

/* Product Modal */
.product-modal .modal-content {
    max-width: 800px;
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.product-details .product-image {
    height: 300px;
    border-radius: 8px;
}

.product-info h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.product-info p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.specs {
    margin-bottom: 1rem;
}

.specs h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.specs ul {
    list-style: none;
    padding-left: 0;
}

.specs li {
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.specs li strong {
    color: var(--text-light);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section li {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--text-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .product-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        min-height: 280px;
    }
    
    .category-tabs {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
        max-width: 150px;
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        border-radius: 8px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .container {
        padding: 0 1rem;
    }
    .product-details {
        grid-template-columns: 1fr;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        text-align: center;
        border-radius: 12px;
        background: linear-gradient(135deg, 
            rgba(22, 33, 62, 0.8) 0%, 
            rgba(26, 26, 46, 0.9) 100%);
        border: 2px solid var(--border-light);
        color: var(--text-light);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    
    .tab-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(255, 255, 255, 0.1) 50%, 
            transparent 100%);
        transition: left 0.6s ease;
    }
    
    .tab-btn:hover::before {
        left: 100%;
    }
    
    .tab-btn:hover {
        transform: translateY(-2px) scale(1.02);
        border-color: var(--accent-primary);
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
        background: linear-gradient(135deg, 
            rgba(0, 123, 255, 0.2) 0%, 
            rgba(111, 66, 193, 0.15) 100%);
    }
    
    .tab-btn.active {
        background: linear-gradient(135deg, 
            var(--accent-primary) 0%, 
            var(--accent-secondary) 100%);
        border-color: var(--accent-primary);
        color: #ffffff;
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 10px 30px rgba(0, 123, 255, 0.4);
    }
    
    .tab-btn.active::after {
        content: '●';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #ffffff;
        font-size: 1.2rem;
        animation: pulse-dot 2s infinite;
    }
    
    @keyframes pulse-dot {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.5; }
    }
    
    /* Diseño de acordeón para móviles muy pequeños */
    @media (max-width: 480px) {
        .category-tabs {
            gap: 0.25rem;
            margin-bottom: 1.5rem;
        }
        
        .tab-btn {
            max-width: 100%;
            padding: 0.875rem 1rem;
            font-size: 0.9rem;
            border-radius: 8px;
        }
        
    .tab-btn.active {
        transform: translateY(-2px) scale(1.02);
    }
}

/* Pantallas medianas - entre móviles y tablets */
@media (max-width: 768px) and (min-width: 481px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        padding: 0 1rem;
    }
    
    .product-card {
        min-height: 300px;
    }
    
    .product-image {
        height: 180px;
        font-size: 2.2rem;
    }
    
    .category-tabs {
        gap: 0.4rem;
        margin-bottom: 1.25rem;
    }
    
    .tab-btn {
        min-width: 110px;
        max-width: 140px;
        padding: 0.55rem 0.7rem;
        font-size: 0.82rem;
    }
}

/* Pantallas muy pequeñas - optimización para móviles pequeños */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.75rem;
    }
    
    .product-card {
        width: 100%;
        max-width: 100%;
        min-height: 320px;
    }
    
    .product-image {
        height: 160px;
        font-size: 2rem;
    }
    
    .category-tabs {
        gap: 0.25rem;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }
    
    .tab-btn {
        min-width: 100px;
        max-width: 120px;
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
}

/* ===== MEJORAS TÁCTILES PARA CARRUSELES ===== */

/* Carrusel principal - mejoras táctiles */
.carousel-container {
    touch-action: pan-x; /* Permitir solo scroll horizontal */
    user-select: none; /* Prevenir selección de texto */
}

/* Carrusel mini - mejoras táctiles */
.product-carousel-mini {
    touch-action: pan-x; /* Permitir solo scroll horizontal */
    user-select: none; /* Prevenir selección de texto */
    position: relative;
}

.carousel-container-mini {
    touch-action: pan-x; /* Permitir solo scroll horizontal */
    user-select: none; /* Prevenir selección de texto */
}

/* Indicador visual de swipe */
.product-carousel-mini::after {
    content: '👆 Desliza para ver más';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.6;
    pointer-events: none;
    animation: swipe-hint 3s ease-in-out infinite;
}

@keyframes swipe-hint {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.3; }
}

/* Ocultar indicador en desktop */
@media (min-width: 769px) {
    .product-carousel-mini::after {
        display: none;
    }
}

/* Mejorar feedback táctil */
.carousel-slide-mini:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.carousel-slide:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease-out;
}

/* Loading states */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: var(--text-muted);
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--success-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* About Preview Section */
.about-preview {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    color: var(--text-light);
}

.about-subtitle {
    font-size: 1.5rem;
    color: var(--success-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--accent-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.highlight-icon {
    font-size: 1.2rem;
}

.about-btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.about-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
}

.about-visual {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.visual-card {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.visual-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, var(--warning-color), var(--accent-primary));
}

.visual-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.visual-card h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.visual-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
}

/* ===== ESTILOS PARA MÚLTIPLES IMÁGENES ===== */

.images-upload-container {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    background-color: var(--bg-secondary);
    transition: all 0.3s ease;
}

.images-upload-container:hover {
    border-color: var(--accent-color);
    background-color: var(--bg-primary);
}

.images-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.image-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.image-preview-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image-preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.image-preview-item .remove-image-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--error-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.image-preview-item .remove-image-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.image-preview-item .image-order {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-item.primary {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.image-preview-item.primary::after {
    content: "Principal";
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: var(--accent-color);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
}

.images-info {
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.images-info small {
    color: var(--text-secondary);
}

/* ===== CARRUSEL DE IMÁGENES EN DETALLES ===== */

.product-carousel {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--bg-secondary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-controls:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-controls.prev {
    left: 10px;
}

.carousel-controls.next {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background-color: white;
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Responsive para carrusel */
@media (max-width: 768px) {
    .product-carousel {
        max-width: 100%;
        height: 300px;
    }
    
    .carousel-container {
        height: 300px;
    }
    
    .carousel-controls {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .carousel-controls.prev {
        left: 5px;
    }
    
    .carousel-controls.next {
        right: 5px;
    }
}

/* ===== CARRUSEL MINI PARA TARJETAS DE PRODUCTO ===== */

.product-carousel-mini {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-carousel-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.carousel-container-mini {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide-mini {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
}

.carousel-slide-mini.active {
    opacity: 1;
}

.carousel-slide-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.carousel-controls-mini {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
}

.product-carousel-mini:hover .carousel-controls-mini {
    opacity: 1;
}

.carousel-controls-mini:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-controls-mini.prev {
    left: 8px;
}

.carousel-controls-mini.next {
    right: 8px;
}

.carousel-indicators-mini {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-carousel-mini:hover .carousel-indicators-mini {
    opacity: 1;
}

.carousel-indicator-mini {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator-mini.active {
    background-color: white;
    transform: scale(1.2);
}

.carousel-indicator-mini:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Responsive para carrusel mini */
@media (max-width: 768px) {
    .product-carousel-mini {
        height: 200px;
    }
    
    .carousel-controls-mini {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .carousel-controls-mini.prev {
        left: 5px;
    }
    
    .carousel-controls-mini.next {
        right: 5px;
    }
    
    .carousel-indicator-mini {
        width: 6px;
        height: 6px;
    }
}

/* ===== MENÚ HAMBURGUESA PARA MÓVILES ===== */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 45px; /* Aumentado */
    height: 45px; /* Aumentado */
    background: var(--accent-gradient);
    border: 2px solid var(--border-light);
    border-radius: 12px; /* Más redondeado */
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: absolute; /* Posicionamiento absoluto */
    left: 1rem; /* Fijo a la izquierda */
    top: 50%; /* Centrado verticalmente */
    transform: translateY(-50%); /* Centrado verticalmente */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Animación suave */
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-lg);
}

.hamburger:hover {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-color: var(--accent-primary);
    transform: translateY(-50%) scale(1.08) rotate(5deg);
    box-shadow: var(--shadow-xl);
}

.hamburger:active {
    transform: translateY(-50%) scale(0.95) rotate(-2deg);
    transition: all 0.1s ease;
}

/* El botón hamburguesa solo se muestra en móviles */

.hamburger-line {
    width: 22px; /* Aumentado */
    height: 3px; /* Aumentado */
    background: linear-gradient(90deg, #ffffff 0%, #f8f9fa 100%);
    margin: 3px 0; /* Aumentado */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.hamburger-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 249, 250, 0.6) 100%);
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hamburger:hover .hamburger-line::before {
    opacity: 1;
}

/* Animación del botón hamburguesa */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
}

/* Efecto de pulso cuando está activo */
.hamburger.active {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

/* Responsive para tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.25rem;
        max-width: 1000px;
        padding: 0 1.5rem;
    }
    
    .products-grid:has(.product-card:only-child) {
        grid-template-columns: minmax(250px, 400px);
        justify-content: center;
    }
    
    .product-image {
        height: 190px;
        font-size: 2.3rem;
    }
    
    .category-tabs {
        gap: 0.75rem;
        margin-bottom: 2.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tab-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        max-width: 200px;
        border-radius: 10px;
    }
}

/* Responsive para navegación */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    /* Ajustar posición del logo en móviles */
    .nav-brand {
        margin-left: 70px; /* Espacio para el botón hamburguesa */
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        z-index: 1002; /* Asegurar que esté por encima del menú */
    }
    
    .nav-brand h1 {
        font-size: 1.6rem; /* Ligeramente más pequeño en móviles */
    }
    
    /* Ocultar menú normal en móviles */
    .nav-menu {
        display: none;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%; /* Oculto a la izquierda */
        width: 320px; /* Aumentado */
        height: 100vh;
        background: linear-gradient(135deg, 
            rgba(15, 15, 35, 0.95) 0%, 
            rgba(26, 26, 46, 0.95) 50%, 
            rgba(22, 33, 62, 0.95) 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 120px; /* Aumentado */
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Animación desde la izquierda */
        z-index: 1000;
        box-shadow: 15px 0 40px rgba(0, 0, 0, 0.6); /* Sombra hacia la derecha */
        border-right: 3px solid var(--accent-primary); /* Borde solo en el lado derecho */
        backdrop-filter: blur(25px);
        border-radius: 0 20px 20px 0; /* Bordes redondeados solo en el lado derecho */
    }
    
    .nav-menu.active {
        display: flex;
        left: 0; /* Cambiado de right a left */
    }
    
    /* Ajustar logo cuando el menú está abierto */
    .nav-menu.active ~ .nav-brand {
        margin-left: 85px; /* Más espacio cuando el menú está abierto */
        transform: translateX(5px); /* Ligero movimiento adicional */
    }
    
    /* Efecto de resplandor en el logo cuando el menú está abierto */
    .nav-menu.active ~ .nav-brand h1 {
        color: var(--accent-primary);
        text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
        animation: logo-glow 2s ease-in-out infinite alternate;
    }
    
    @keyframes logo-glow {
        0% {
            text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
        }
        100% {
            text-shadow: 0 0 20px rgba(0, 123, 255, 0.6);
        }
    }
    
    .nav-menu li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu .nav-link {
        display: block;
        padding: 18px 35px;
        margin: 8px 20px;
        border-radius: 15px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 1.3rem;
        font-weight: 600;
        color: #ffffff;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        border: 2px solid transparent;
        position: relative;
        overflow: hidden;
        width: calc(100% - 40px);
        text-align: center;
    }

    .nav-menu .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(255, 255, 255, 0.1) 50%, 
            transparent 100%);
        transition: left 0.6s ease;
    }

    .nav-menu .nav-link:hover::before {
        left: 100%;
    }
    
    .nav-menu .nav-link:hover {
        background: linear-gradient(135deg, 
            rgba(0, 123, 255, 0.25) 0%, 
            rgba(111, 66, 193, 0.15) 100%);
        color: #ffffff;
        transform: translateX(15px) scale(1.02);
        border-color: var(--accent-primary);
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    }
    
    .nav-menu .nav-link.active {
        background: linear-gradient(135deg, 
            rgba(0, 123, 255, 0.4) 0%, 
            rgba(111, 66, 193, 0.3) 100%);
        color: #ffffff;
        border-color: var(--accent-primary);
        box-shadow: 0 5px 20px rgba(0, 123, 255, 0.4);
        transform: translateX(10px);
    }

    .nav-menu .nav-link.active::after {
        content: '●';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--accent-primary);
        font-size: 1.2rem;
        animation: pulse-dot 2s infinite;
    }

    @keyframes pulse-dot {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.5; }
    }
    
    /* Overlay para cerrar menú */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, 
            rgba(0, 0, 0, 0.8) 0%, 
            rgba(15, 15, 35, 0.6) 50%, 
            rgba(0, 0, 0, 0.7) 100%);
        backdrop-filter: blur(8px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-overlay.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 20% 50%, 
            rgba(0, 123, 255, 0.1) 0%, 
            transparent 50%);
        animation: overlay-glow 3s ease-in-out infinite alternate;
    }

    @keyframes overlay-glow {
        0% { opacity: 0.3; }
        100% { opacity: 0.7; }
    }
    
    /* Ajustar acciones de navegación en móvil */
    .nav-actions {
        gap: 10px;
    }
    
    .cart-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .admin-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        width: 100%;
        right: -100%;
    }
    
    .nav-brand h1 {
        font-size: 1.5rem;
    }
    
    .hamburger {
        width: 25px;
        height: 25px;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2px;
    }
}

/* Asegurar que el menú normal se muestre en desktop */
@media (min-width: 769px) {
    .hamburger {
        display: none !important;
    }
    
    .nav-menu {
        display: flex !important;
    }
}

/* El botón hamburguesa solo se muestra en móviles (max-width: 768px) */
