/* ===================================================
   WICION STREAMING STORE - Estilos Principales
   =================================================== */
:root {
  --bg-main:    #0e0823;
  --bg-card:    #251b3c;
  --accent:     #df5cef;
  --accent-dark:#b83dcf;
  --text:       #ffffff;
  --text-muted: #a89bc2;
  --border:     rgba(223,92,239,0.2);
  --shadow:     0 4px 20px rgba(0,0,0,0.4);
  --radius:     12px;
  --transition: 0.3s ease;
  --font:       'Poppins', sans-serif;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg-main); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.6; min-height: 100vh; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }
input, textarea, select { font-family: var(--font); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ===== TOPBAR ===== */
#topbar { background: linear-gradient(90deg, var(--accent-dark), var(--accent)); color: #fff; text-align: center; padding: 8px 16px; font-size: 13px; font-weight: 500; letter-spacing: 0.3px; position: relative; z-index: 1000; }
#topbar .topbar-close { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); cursor: pointer; opacity: 0.7; transition: opacity var(--transition); }
#topbar .topbar-close:hover { opacity: 1; }

/* ===== NAVBAR ===== */
#navbar { background: rgba(14,8,35,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 999; padding: 0 24px; }
.nav-inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; gap: 24px; height: 64px; }
.nav-logo { font-size: 22px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; }
.nav-logo span { color: var(--accent); }
.nav-menu { display: flex; list-style: none; gap: 4px; flex: 1; }
.nav-menu > li { position: relative; }
.nav-menu > li > a { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; color: var(--text-muted); font-size: 14px; font-weight: 500; transition: all var(--transition); }
.nav-menu > li > a:hover, .nav-menu > li > a.active { color: #fff; background: rgba(223,92,239,0.12); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-search { position: relative; }
.nav-search input { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 8px 16px 8px 36px; color: #fff; font-size: 13px; width: 200px; transition: all var(--transition); }
.nav-search input:focus { outline: none; border-color: var(--accent); width: 260px; }
.nav-search .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 13px; }
.nav-icon-btn { background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; padding: 8px; border-radius: 8px; transition: all var(--transition); position: relative; }
.nav-icon-btn:hover { color: var(--accent); background: rgba(223,92,239,0.1); }
.nav-icon-btn .badge { position: absolute; top: 2px; right: 2px; background: var(--accent); color: #fff; font-size: 10px; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.btn-login { background: transparent; border: 1px solid var(--accent); color: var(--accent); padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all var(--transition); }
.btn-login:hover { background: var(--accent); color: #fff; }
.btn-register { background: var(--accent); border: none; color: #fff; padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all var(--transition); }
.btn-register:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* Dropdown menu */
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown { position: absolute; top: calc(100% + 8px); left: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); min-width: 220px; padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all var(--transition); box-shadow: var(--shadow); z-index: 1000; }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--text-muted); font-size: 13px; transition: all var(--transition); }
.dropdown a:hover { color: #fff; background: rgba(223,92,239,0.1); }
.dropdown a i { width: 18px; color: var(--accent); }

/* ===== HERO ===== */
#hero { position: relative; min-height: 85vh; display: flex; align-items: center; overflow: hidden; padding: 80px 24px; background: linear-gradient(135deg, #0e0823 0%, #1a0f35 50%, #0e0823 100%); }
#hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 60% 50%, rgba(223,92,239,0.15) 0%, transparent 70%); }
.hero-inner { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; width: 100%; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(223,92,239,0.15); border: 1px solid rgba(223,92,239,0.3); border-radius: 20px; padding: 6px 14px; font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.hero-title { font-size: clamp(32px, 5vw, 58px); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero-title .gradient-text { background: linear-gradient(135deg, #fff 0%, var(--accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 16px; color: var(--text-muted); margin-bottom: 36px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary { background: var(--accent); color: #fff; border: none; padding: 14px 28px; border-radius: 25px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(223,92,239,0.4); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); padding: 14px 28px; border-radius: 25px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(223,92,239,0.08); }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 28px; font-weight: 800; color: var(--accent); }
.hero-stat .label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-glow { position: absolute; width: 350px; height: 350px; background: radial-gradient(circle, rgba(223,92,239,0.3) 0%, transparent 70%); border-radius: 50%; animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.1); opacity: 1; } }
.hero-mockup { width: 100%; max-width: 500px; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(223,92,239,0.2); position: relative; z-index: 1; }

/* ===== SECCIÓN CATEGORÍAS ===== */
.section { padding: 80px 24px; }
.section-inner { max-width: 1400px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag { display: inline-block; background: rgba(223,92,239,0.12); border: 1px solid var(--border); color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; padding: 5px 14px; border-radius: 20px; margin-bottom: 12px; }
.section-title { font-size: clamp(24px, 3vw, 38px); font-weight: 800; margin-bottom: 12px; }
.section-subtitle { color: var(--text-muted); font-size: 15px; max-width: 560px; margin: 0 auto; }

/* Categorías grid */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.category-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 16px; text-align: center; cursor: pointer; transition: all var(--transition); text-decoration: none; color: var(--text); }
.category-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(223,92,239,0.2); color: #fff; }
.category-card i { font-size: 28px; color: var(--accent); margin-bottom: 10px; display: block; }
.category-card span { font-size: 13px; font-weight: 600; display: block; }

/* ===== PRODUCT CARD ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); position: relative; }
.product-card:hover { border-color: var(--accent); transform: translateY(-6px); box-shadow: 0 16px 40px rgba(223,92,239,0.2); }
.product-card-media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: rgba(0,0,0,0.3); }
.product-card-media img, .product-card-media video { width: 100%; height: 100%; object-fit: cover; transition: all var(--transition); }
.product-card-media .img-hover { position: absolute; inset: 0; opacity: 0; transition: opacity var(--transition); }
.product-card:hover .img-hover { opacity: 1; }
.product-card:hover .img-main { opacity: 0; }
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-featured { background: var(--accent); color: #fff; }
.badge-new { background: #22c55e; color: #fff; }
.badge-sale { background: #ef4444; color: #fff; }
.card-actions-overlay { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; opacity: 0; transform: translateX(8px); transition: all var(--transition); }
.product-card:hover .card-actions-overlay { opacity: 1; transform: translateX(0); }
.card-action-btn { width: 34px; height: 34px; border-radius: 50%; background: rgba(14,8,35,0.85); border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 13px; transition: all var(--transition); backdrop-filter: blur(4px); }
.card-action-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.1); }
.card-action-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.product-card-body { padding: 16px; }
.card-category { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; line-height: 1.4; color: #fff; transition: color var(--transition); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card:hover .card-title { color: var(--accent); }
.card-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.stars { display: flex; gap: 2px; }
.stars i { font-size: 11px; color: var(--accent); }
.stars i.empty { color: var(--text-muted); }
.rating-count { font-size: 12px; color: var(--text-muted); }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-price { display: flex; align-items: baseline; gap: 8px; }
.price-current { font-size: 20px; font-weight: 800; color: var(--accent); }
.price-old { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
.btn-add-cart { background: var(--accent); border: none; color: #fff; padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all var(--transition); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn-add-cart:hover { background: var(--accent-dark); transform: scale(1.04); }

/* ===== CART SIDEBAR ===== */
#cart-sidebar { position: fixed; right: -420px; top: 0; width: 420px; height: 100vh; background: var(--bg-card); border-left: 1px solid var(--border); z-index: 9999; transition: right 0.4s cubic-bezier(0.4,0,0.2,1); display: flex; flex-direction: column; box-shadow: -8px 0 40px rgba(0,0,0,0.5); }
#cart-sidebar.open { right: 0; }
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 9998; opacity: 0; pointer-events: none; transition: opacity var(--transition); backdrop-filter: blur(4px); }
.cart-overlay.show { opacity: 1; pointer-events: all; }
.cart-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.cart-header h3 { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.cart-header h3 span { background: var(--accent); color: #fff; font-size: 12px; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.cart-close { background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; padding: 4px; transition: color var(--transition); }
.cart-close:hover { color: #fff; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.cart-empty i { font-size: 48px; margin-bottom: 12px; display: block; color: var(--border); }
.cart-item { display: flex; gap: 14px; background: rgba(255,255,255,0.04); border-radius: 10px; padding: 12px; align-items: center; }
.cart-item-img { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: rgba(0,0,0,0.3); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.cart-item-price { font-size: 15px; font-weight: 700; color: var(--accent); }
.cart-item-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; padding: 4px; transition: color var(--transition); }
.cart-item-remove:hover { color: #ef4444; }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 18px; font-weight: 700; }
.cart-total span:last-child { color: var(--accent); }
.cart-coupon { display: flex; gap: 8px; margin-bottom: 16px; }
.cart-coupon input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; color: #fff; font-size: 13px; }
.cart-coupon input:focus { outline: none; border-color: var(--accent); }
.cart-coupon button { background: var(--accent); border: none; color: #fff; padding: 8px 14px; border-radius: 8px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.btn-checkout { display: block; width: 100%; background: var(--accent); border: none; color: #fff; padding: 14px; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all var(--transition); text-align: center; }
.btn-checkout:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(223,92,239,0.4); }

/* ===== MODAL PREVIEW ===== */
#modal-preview { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
#modal-preview.show { opacity: 1; pointer-events: all; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); cursor: pointer; }
.modal-content { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; max-width: 800px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 25px 80px rgba(0,0,0,0.7); animation: modalIn 0.3s ease; }
@keyframes modalIn { from { transform: scale(0.9) translateY(20px); } to { transform: scale(1) translateY(0); } }
.modal-close { position: absolute; top: 16px; right: 16px; background: rgba(0,0,0,0.5); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 1; transition: background var(--transition); }
.modal-close:hover { background: var(--accent); }
.modal-media { border-radius: 16px 16px 0 0; overflow: hidden; max-height: 400px; }
.modal-media img, .modal-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-body { padding: 24px; }
.modal-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.modal-price { font-size: 28px; font-weight: 800; color: var(--accent); margin-bottom: 16px; }
.modal-desc { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 12px; }

/* ===== RATING ===== */
.rating-display { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.rating-big { font-size: 48px; font-weight: 800; color: var(--accent); line-height: 1; }
.stars-big i { font-size: 18px; color: var(--accent); }
.rating-meta { color: var(--text-muted); font-size: 14px; }
.review-form { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.review-form h4 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.star-selector { display: flex; gap: 8px; margin-bottom: 16px; cursor: pointer; }
.star-selector i { font-size: 24px; color: var(--text-muted); transition: all var(--transition); }
.star-selector i.active, .star-selector i:hover ~ i { }
.star-selector i.active, .star-selector:has(i:hover) i:not(:hover ~ i) { color: var(--accent); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.form-control { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; color: #fff; font-size: 14px; font-family: var(--font); resize: vertical; }
.form-control:focus { outline: none; border-color: var(--accent); background: rgba(223,92,239,0.06); }

/* ===== FOOTER ===== */
#footer { background: #070414; border-top: 1px solid var(--border); padding: 60px 24px 24px; margin-top: 80px; }
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-brand .logo span { color: var(--accent); }
.footer-brand p { color: var(--text-muted); font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.social-btn { width: 38px; height: 38px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 15px; transition: all var(--transition); }
.social-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { color: var(--text-muted); font-size: 14px; transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 13px; }

/* ===== UTILITIES ===== */
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; } .align-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-2 { gap: 16px; }
.text-center { text-align: center; }
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; border: 1px solid; }
.alert-success { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); color: #4ade80; }
.alert-error { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: #f87171; }
.alert-warning { background: rgba(234,179,8,0.1); border-color: rgba(234,179,8,0.3); color: #facc15; }
.loader { display: inline-block; width: 20px; height: 20px; border: 2px solid rgba(223,92,239,0.3); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255,255,255,0.05) 50%, var(--bg-card) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== ADMIN PANEL ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 260px; background: #080520; border-right: 1px solid var(--border); position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto; z-index: 100; display: flex; flex-direction: column; transition: transform var(--transition); }
.admin-sidebar-logo { padding: 24px 20px; border-bottom: 1px solid var(--border); }
.admin-sidebar-logo .logo { font-size: 18px; font-weight: 700; color: #fff; }
.admin-sidebar-logo .logo span { color: var(--accent); }
.admin-sidebar-logo .version { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.admin-nav { flex: 1; padding: 16px 0; }
.admin-nav-section { padding: 8px 20px 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: rgba(168,155,194,0.5); }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 20px; color: var(--text-muted); font-size: 14px; font-weight: 500; transition: all var(--transition); position: relative; }
.admin-nav a i { width: 20px; font-size: 15px; flex-shrink: 0; }
.admin-nav a:hover, .admin-nav a.active { color: #fff; background: rgba(223,92,239,0.1); }
.admin-nav a.active::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; background: var(--accent); border-radius: 0 3px 3px 0; }
.admin-main { margin-left: 260px; flex: 1; min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar { background: rgba(14,8,35,0.95); border-bottom: 1px solid var(--border); padding: 0 32px; height: 64px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); }
.admin-topbar-left h2 { font-size: 18px; font-weight: 700; }
.admin-topbar-left p { font-size: 12px; color: var(--text-muted); }
.admin-content { flex: 1; padding: 32px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; align-items: center; gap: 20px; transition: border-color var(--transition); }
.stat-card:hover { border-color: var(--accent); }
.stat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.stat-icon.purple { background: rgba(223,92,239,0.15); color: var(--accent); }
.stat-icon.green { background: rgba(34,197,94,0.15); color: #4ade80; }
.stat-icon.blue { background: rgba(59,130,246,0.15); color: #60a5fa; }
.stat-icon.orange { background: rgba(249,115,22,0.15); color: #fb923c; }
.stat-info .label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.stat-info .value { font-size: 28px; font-weight: 800; }
.stat-info .change { font-size: 12px; margin-top: 2px; }
.change.up { color: #4ade80; } .change.down { color: #f87171; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-header h3 { font-size: 16px; font-weight: 700; }
.card-body { padding: 24px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); padding: 12px 16px; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 14px; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pagado { background: rgba(34,197,94,0.12); color: #4ade80; }
.status-pendiente { background: rgba(234,179,8,0.12); color: #facc15; }
.status-fallido { background: rgba(239,68,68,0.12); color: #f87171; }
.btn-sm { padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; border: none; transition: all var(--transition); display: inline-flex; align-items: center; gap: 5px; }
.btn-sm-primary { background: var(--accent); color: #fff; }
.btn-sm-primary:hover { background: var(--accent-dark); }
.btn-sm-outline { background: transparent; border: 1px solid var(--border) !important; color: var(--text-muted); }
.btn-sm-outline:hover { border-color: var(--accent) !important; color: var(--accent); }
.btn-sm-danger { background: rgba(239,68,68,0.15); color: #f87171; }
.btn-sm-danger:hover { background: #ef4444; color: #fff; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.form-input { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; color: #fff; font-size: 14px; font-family: var(--font); transition: border-color var(--transition); }
.form-input:focus { outline: none; border-color: var(--accent); }
.form-select { width: 100%; background: var(--bg-main); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; color: #fff; font-size: 14px; font-family: var(--font); cursor: pointer; }
.form-select:focus { outline: none; border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.toggle { position: relative; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: rgba(255,255,255,0.1); border-radius: 12px; cursor: pointer; transition: all var(--transition); }
.toggle-slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: all var(--transition); }
.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Upload area */
.upload-area { border: 2px dashed var(--border); border-radius: var(--radius); padding: 40px; text-align: center; cursor: pointer; transition: all var(--transition); }
.upload-area:hover, .upload-area.dragover { border-color: var(--accent); background: rgba(223,92,239,0.05); }
.upload-area i { font-size: 36px; color: var(--text-muted); margin-bottom: 12px; display: block; }
.upload-area p { color: var(--text-muted); font-size: 14px; }
.upload-area span { color: var(--accent); font-weight: 600; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  #cart-sidebar { width: 100%; right: -100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
}
