/* ==================== ROOT & VARIABLES ==================== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #222240;
    --bg-glass: rgba(26, 26, 46, 0.8);
    --bg-glass-light: rgba(255, 255, 255, 0.05);

    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;

    --accent-primary: #7c3aed;
    --accent-secondary: #a855f7;
    --accent-tertiary: #c084fc;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-orange: #f59e0b;

    --gradient-primary: linear-gradient(135deg, #7c3aed, #3b82f6);
    --gradient-secondary: linear-gradient(135deg, #a855f7, #06b6d4);
    --gradient-warm: linear-gradient(135deg, #f59e0b, #ef4444);
    --gradient-hero: linear-gradient(135deg, #7c3aed 0%, #3b82f6 50%, #06b6d4 100%);

    --border-color: rgba(124, 58, 237, 0.2);
    --border-light: rgba(255, 255, 255, 0.08);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.3);
    --shadow-glow-lg: 0 0 60px rgba(124, 58, 237, 0.2);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --header-height: 70px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* ==================== PARTICLES CANVAS ==================== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ==================== HEADER ==================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.main-header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform var(--transition-normal);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    box-shadow: var(--shadow-glow);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(5deg); }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-xl);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: inherit;
}

.nav-link:hover, .nav-link.active {
    color: white;
}

.nav-link:hover::before, .nav-link.active::before {
    opacity: 1;
}

.nav-link i, .nav-link span {
    position: relative;
    z-index: 1;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-icon {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 1rem;
}

.cart-icon:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-red);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
    transition: transform var(--transition-fast);
}

.cart-count.bump {
    animation: cartBump 0.4s ease;
}

@keyframes cartBump {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); }
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-xl);
    background: var(--gradient-primary);
    color: white;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all var(--transition-normal);
    border: none;
    box-shadow: var(--shadow-glow);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-lg);
}

.user-logged {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.user-avatar:hover {
    border-color: var(--accent-secondary);
    transform: scale(1.1);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a, .user-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    width: 100%;
    text-align: left;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}

.user-dropdown a:hover, .user-dropdown button:hover {
    background: var(--bg-glass-light);
    color: var(--text-primary);
}

.user-dropdown .dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 6px 0;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    z-index: 999;
    padding: 16px;
    transform: translateY(-100%);
    transition: transform var(--transition-normal);
}

.mobile-menu.show {
    transform: translateY(0);
}

.mobile-menu .nav-link {
    display: block;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
    background: var(--bg-glass-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent-secondary);
    border: 1px solid var(--accent-primary);
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-glow {
    animation: btnGlow 2s ease-in-out infinite alternate;
}

@keyframes btnGlow {
    from { box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3); }
    to { box-shadow: 0 4px 30px rgba(124, 58, 237, 0.6); }
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

/* ==================== GRADIENT TEXT ==================== */
.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding-top: var(--header-height);
}

/* Pages */
.page {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.page.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    padding: 80px 24px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(5%, -5%); }
    50% { transform: translate(-3%, 3%); }
    75% { transform: translate(-5%, -3%); }
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 20px;
}

.hero-title .line1 {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-title .line2 {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h2 i {
    color: var(--accent-secondary);
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    width: 100%;
}

/* ==================== INICIO GRID ==================== */
.inicio-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
}

.section-calendar,
.section-gallery,
.section-youtube,
.section-featured,
.section-newsletter {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition-normal);
}

.section-calendar:hover,
.section-gallery:hover,
.section-youtube:hover {
    border-color: var(--border-color);
    box-shadow: var(--shadow-glow);
}

/* ==================== FEATURED PRODUCTS ==================== */
.section-featured {
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.section-featured {
    margin-left: 24px;
    margin-right: 24px;
}

.featured-carousel {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
}

.featured-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    padding: 10px 0;
}

.featured-card {
    min-width: 260px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.featured-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.featured-card .product-image-placeholder {
    height: 180px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.featured-card .product-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(30px);
    opacity: 0.3;
}

.featured-card .product-image-placeholder i {
    position: relative;
    z-index: 1;
}

.featured-card h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.featured-card .product-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-secondary);
}

.featured-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    z-index: 10;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.featured-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.featured-prev { left: 0; }
.featured-next { right: 0; }

/* ==================== GALLERY CAROUSEL ==================== */
.gallery-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.gallery-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.gallery-slide {
    min-width: 100%;
}

.gallery-placeholder {
    height: 240px;
    background: linear-gradient(135deg,
        hsl(var(--hue), 70%, 20%),
        hsl(var(--hue), 70%, 10%));
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 3rem;
    color: hsl(var(--hue), 70%, 60%);
    position: relative;
    overflow: hidden;
}

.gallery-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.05) 50%, transparent 60%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.gallery-placeholder span {
    font-size: 1rem;
    font-weight: 600;
    z-index: 1;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 10;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.gallery-btn:hover {
    background: var(--accent-primary);
}

.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0 4px;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.gallery-dot.active {
    background: var(--accent-primary);
    transform: scale(1.3);
}

/* ==================== YOUTUBE ==================== */
.youtube-embed {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.youtube-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: var(--radius-md);
    border: 2px dashed var(--border-light);
}

.youtube-placeholder i {
    font-size: 3rem;
    color: #ff0000;
}

.youtube-placeholder p {
    font-weight: 600;
    font-size: 1.1rem;
}

.yt-sub-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.youtube-embed iframe {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-md);
    border: none;
}

/* ==================== NEWSLETTER ==================== */
.section-newsletter {
    max-width: 1400px;
    margin: 0 24px 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-newsletter::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.1), transparent 70%);
}

.newsletter-content {
    position: relative;
}

.newsletter-icon {
    font-size: 3rem;
    color: var(--accent-secondary);
    margin-bottom: 16px;
    display: block;
}

.newsletter-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.newsletter-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition-normal);
}

.newsletter-form input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

/* ==================== MODALS ==================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    z-index: 10;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.modal-close:hover {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

/* ==================== CART SIDEBAR ==================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.cart-sidebar.show {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.cart-header h3 {
    font-family: 'Cinzel', serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.cart-close:hover {
    background: var(--accent-red);
    color: white;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.cart-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 0.85rem;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cart-item-info .cart-item-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--accent-secondary);
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all var(--transition-fast);
}

.qty-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.cart-item-qty {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    margin-left: auto;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
    background: none;
    border: none;
    font-size: 0.85rem;
}

.cart-item-remove:hover {
    color: var(--accent-red);
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.cart-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    color: var(--text-muted);
}

.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cart-total span:last-child {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-secondary);
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
    position: fixed;
    top: calc(var(--header-height) + 16px);
    right: 16px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.4s ease;
    transition: all var(--transition-normal);
}

.toast.removing {
    animation: toastOut 0.3s ease forwards;
}

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

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

.toast-success { border-left: 3px solid var(--accent-green); }
.toast-error { border-left: 3px solid var(--accent-red); }
.toast-info { border-left: 3px solid var(--accent-blue); }
.toast-warning { border-left: 3px solid var(--accent-orange); }

.toast i {
    font-size: 1.2rem;
}

.toast-success i { color: var(--accent-green); }
.toast-error i { color: var(--accent-red); }
.toast-info i { color: var(--accent-blue); }
.toast-warning i { color: var(--accent-orange); }

.toast-message {
    flex: 1;
    font-size: 0.9rem;
}

.toast-close {
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    background: none;
    border: none;
}

.toast-close:hover {
    color: var(--text-primary);
}

/* ==================== FOOTER ==================== */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 24px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.footer-links h4 {
    font-family: 'Cinzel', serif;
    margin-bottom: 16px;
    font-size: 1rem;
    color: var(--text-primary);
}

.footer-links a, .footer-links p {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-secondary);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-bottom p + p {
    margin-top: 4px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .inicio-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-title .line2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .hero-title .line2 {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .cart-sidebar {
        width: 100%;
    }

    .btn-login span {
        display: none;
    }

    .section-featured {
        margin-left: 16px;
        margin-right: 16px;
    }

    .section-newsletter {
        margin-left: 16px;
        margin-right: 16px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 16px 40px;
    }

    .hero-title .line2 {
        font-size: 1.8rem;
    }

    .inicio-grid {
        padding: 0 16px 40px;
    }
}
