*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:       #09090f;
  --bg2:      #0d0e17;
  --bg3:      #12131e;
  --card:     #16182a;
  --card2:    #1c1f30;
  --borde:    #252840;
  --borde2:   #2e3152;
  --morado:   #6d28d9;
  --morado2:  #7c3aed;
  --morado3:  #8b5cf6;
  --neon:     #a78bfa;
  --cyan:     #22d3ee;
  --texto:    #e2e4f0;
  --texto2:   #7880a0;
  --texto3:   #4a5070;
  --blanco:   #ffffff;
  --rojo:     #ef4444;
  --verde:    #22c55e;
  --amarillo: #eab308;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--texto); line-height: 1.5; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
input, textarea, select, button { font-family: inherit; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--borde2); border-radius: 3px; }

.header { position: sticky; top: 0; background: rgba(9,9,15,0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--borde); z-index: 1000; }
.header-inner { max-width: 1300px; margin: 0 auto; padding: 0 2rem; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.3px; color: var(--blanco); }
.logo-icon { width: 32px; height: 32px; background: var(--morado); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: white; font-weight: 900; }
.logo span { color: var(--neon); }
.nav { display: flex; gap: 0.3rem; align-items: center; }
.nav a { padding: 0.4rem 0.8rem; font-size: 0.85rem; font-weight: 500; color: var(--texto2); border-radius: 6px; transition: all 0.15s; }
.nav a:hover { color: var(--texto); background: var(--card); }
.nav a.activo { color: var(--neon); }
.header-acciones { display: flex; align-items: center; gap: 0.8rem; }
.btn-carrito { display: flex; align-items: center; gap: 0.5rem; background: var(--card); border: 1px solid var(--borde); color: var(--texto); padding: 0.45rem 1rem; border-radius: 8px; font-size: 0.85rem; font-weight: 500; transition: all 0.15s; position: relative; cursor: pointer; }
.btn-carrito:hover { border-color: var(--morado3); color: var(--neon); }
.carrito-badge { background: var(--morado); color: white; font-size: 0.6rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.btn-usuario { display: flex; align-items: center; gap: 0.5rem; background: var(--card); border: 1px solid var(--borde); color: var(--texto); padding: 0.45rem 1rem; border-radius: 8px; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.15s; position: relative; }
.btn-usuario:hover { border-color: var(--morado3); }
.dropdown-usuario { display: none; position: absolute; top: calc(100% + 8px); right: 0; background: var(--card2); border: 1px solid var(--borde2); border-radius: 10px; min-width: 200px; z-index: 200; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,0.5); }
.dropdown-usuario.abierto { display: block; }
.dropdown-header-u { padding: 1rem; background: var(--bg3); border-bottom: 1px solid var(--borde); }
.dropdown-nombre { font-size: 0.88rem; font-weight: 600; color: var(--blanco); }
.dropdown-email-u { font-size: 0.72rem; color: var(--texto2); margin-top: 0.1rem; }
.dropdown-item-u { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 1rem; font-size: 0.85rem; color: var(--texto2); transition: all 0.15s; cursor: pointer; border: none; background: none; width: 100%; text-align: left; }
.dropdown-item-u:hover { background: var(--bg3); color: var(--texto); }
.dropdown-item-u.danger { color: var(--rojo); }
.dropdown-item-u.danger:hover { background: rgba(239,68,68,0.08); }
.hamburguesa { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 0.6rem; touch-action: manipulation; -webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-user-select: none; user-select: none; min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
.hamburguesa span { width: 22px; height: 2px; background: var(--texto); transition: 0.2s; }

.hero { min-height: 88vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; background: var(--bg2); }
.hero-glow-1 { position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(109,40,217,0.12) 0%, transparent 70%); top: 50%; left: 30%; transform: translate(-50%,-50%); pointer-events: none; }
.hero-glow-2 { position: absolute; width: 400px; height: 400px; background: radial-gradient(circle, rgba(34,211,238,0.06) 0%, transparent 70%); top: 30%; right: 20%; pointer-events: none; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--borde) 1px, transparent 1px), linear-gradient(90deg, var(--borde) 1px, transparent 1px); background-size: 60px 60px; opacity: 0.3; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; max-width: 800px; padding: 2rem; }
.hero-chip { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(109,40,217,0.15); border: 1px solid rgba(167,139,250,0.3); color: var(--neon); font-size: 0.72rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 0.35rem 1rem; border-radius: 40px; margin-bottom: 1.8rem; }
.hero-chip::before { content: ''; width: 6px; height: 6px; background: var(--verde); border-radius: 50%; }
.hero-h1 { font-size: 3.8rem; font-weight: 800; color: var(--blanco); line-height: 1.1; letter-spacing: -1px; margin-bottom: 1.2rem; }
.hero-h1 .acento { background: linear-gradient(135deg, var(--morado3), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 1rem; color: var(--texto2); font-weight: 300; line-height: 1.7; max-width: 560px; margin: 0 auto 2.5rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-stats { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.hero-stat .num { font-size: 1.6rem; font-weight: 800; color: var(--blanco); display: block; line-height: 1; }
.hero-stat .lbl { font-size: 0.72rem; color: var(--texto2); font-weight: 300; margin-top: 0.3rem; }

.btn-primario { background: var(--morado); color: white; padding: 0.8rem 2rem; border-radius: 8px; font-weight: 600; font-size: 0.9rem; border: none; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 20px rgba(109,40,217,0.35); }
.btn-primario:hover { background: var(--morado2); transform: translateY(-1px); }
.btn-secundario { background: transparent; color: var(--texto); padding: 0.8rem 2rem; border-radius: 8px; font-weight: 600; font-size: 0.9rem; border: 1px solid var(--borde2); cursor: pointer; transition: all 0.2s; }
.btn-secundario:hover { border-color: var(--morado3); color: var(--neon); }

.seccion { padding: 5rem 0; }
.seccion-alt { background: var(--bg2); }
.contenedor { max-width: 1300px; margin: 0 auto; padding: 0 2rem; }
.seccion-cab { margin-bottom: 3rem; }
.seccion-etq { font-size: 0.65rem; letter-spacing: 3px; text-transform: uppercase; color: var(--morado3); font-weight: 600; display: block; margin-bottom: 0.6rem; }
.seccion-h2 { font-size: 2rem; font-weight: 800; color: var(--blanco); letter-spacing: -0.5px; margin-bottom: 0.5rem; }
.seccion-sub { font-size: 0.88rem; color: var(--texto2); font-weight: 300; }

.grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px,1fr)); gap: 1.2rem; }

.prod-card { background: var(--card); border: 1px solid var(--borde); border-radius: 12px; overflow: hidden; transition: all 0.2s; cursor: pointer; }
.prod-card:hover { border-color: var(--borde2); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
.prod-foto { height: 180px; background: var(--card2); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.prod-foto img { width: 100%; height: 100%; object-fit: cover; }
.prod-foto-placeholder { font-size: 3rem; color: var(--borde2); font-weight: 900; letter-spacing: 2px; }
.prod-badge { position: absolute; top: 10px; left: 10px; font-size: 0.58rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 4px; }
.badge-top { background: var(--rojo); color: white; }
.badge-nuevo { background: var(--morado); color: white; }
.badge-oferta { background: var(--amarillo); color: var(--bg); }
.prod-tipo-badge { position: absolute; top: 10px; right: 10px; font-size: 0.55rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 4px; background: rgba(9,9,15,0.8); border: 1px solid var(--borde2); color: var(--texto2); }
.prod-body { padding: 1.2rem; }
.prod-cat { font-size: 0.6rem; letter-spacing: 2px; text-transform: uppercase; color: var(--morado3); font-weight: 600; margin-bottom: 0.3rem; }
.prod-nombre { font-size: 0.98rem; font-weight: 700; color: var(--blanco); margin-bottom: 0.4rem; line-height: 1.3; }
.prod-desc { font-size: 0.75rem; color: var(--texto2); font-weight: 300; line-height: 1.5; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-pie { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.prod-precio { font-size: 1.1rem; font-weight: 800; color: var(--neon); }
.prod-precio small { font-size: 0.65rem; color: var(--texto2); font-weight: 300; margin-left: 0.2rem; }
.prod-stock { font-size: 0.65rem; color: var(--texto3); margin-top: 0.2rem; }
.btn-add { background: var(--morado); color: white; border: none; padding: 0.45rem 0.9rem; border-radius: 6px; font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: all 0.15s; white-space: nowrap; flex-shrink: 0; }
.btn-add:hover { background: var(--morado2); }
.btn-add.ok { background: var(--verde); }
.btn-add:disabled { background: var(--texto3); cursor: not-allowed; }

.calc-moneda { background: var(--bg3); border: 1px solid var(--borde); border-radius: 8px; padding: 0.8rem; margin-bottom: 0.8rem; }
.calc-moneda label { font-size: 0.72rem; color: var(--texto2); display: block; margin-bottom: 0.4rem; }
.calc-row { display: flex; gap: 0.5rem; align-items: center; }
.calc-input { flex: 1; background: var(--card2); border: 1px solid var(--borde2); color: var(--texto); padding: 0.5rem 0.7rem; border-radius: 6px; font-size: 0.88rem; outline: none; }
.calc-input:focus { border-color: var(--morado3); }
.calc-resultado { font-size: 0.88rem; font-weight: 700; color: var(--neon); white-space: nowrap; }

.pasos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1.5rem; }
.paso { background: var(--card); border: 1px solid var(--borde); border-radius: 12px; padding: 1.8rem 1.5rem; }
.paso-num { font-size: 2rem; font-weight: 900; color: var(--borde2); line-height: 1; margin-bottom: 1rem; }
.paso-titulo { font-size: 0.95rem; font-weight: 700; color: var(--blanco); margin-bottom: 0.5rem; }
.paso-desc { font-size: 0.78rem; color: var(--texto2); font-weight: 300; line-height: 1.6; }

.garantias { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 1.2rem; }
.garantia { background: var(--card); border: 1px solid var(--borde); border-radius: 10px; padding: 1.5rem; text-align: center; }
.garantia-ic { width: 42px; height: 42px; border-radius: 10px; background: rgba(109,40,217,0.12); border: 1px solid rgba(167,139,250,0.2); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1rem; color: var(--neon); }
.garantia h3 { font-size: 0.9rem; font-weight: 700; color: var(--blanco); margin-bottom: 0.4rem; }
.garantia p { font-size: 0.75rem; color: var(--texto2); font-weight: 300; line-height: 1.5; }

.pagina-inner { max-width: 1000px; margin: 3rem auto; padding: 0 2rem; }
.pagina-inner h1 { font-size: 1.8rem; font-weight: 800; color: var(--blanco); margin-bottom: 0.3rem; letter-spacing: -0.5px; }
.pagina-inner .sub { font-size: 0.85rem; color: var(--texto2); margin-bottom: 2rem; }

.auth-wrap { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--bg2); }
.auth-box { background: var(--card); border: 1px solid var(--borde); border-radius: 16px; padding: 2.5rem; width: 100%; max-width: 420px; }
.auth-h2 { font-size: 1.4rem; font-weight: 800; color: var(--blanco); text-align: center; margin-bottom: 0.4rem; }
.auth-sub { text-align: center; font-size: 0.82rem; color: var(--texto2); margin-bottom: 2rem; }
.auth-tabs { display: flex; background: var(--bg3); border-radius: 8px; padding: 3px; margin-bottom: 1.8rem; }
.auth-tab { flex: 1; padding: 0.55rem; border: none; background: none; border-radius: 6px; cursor: pointer; font-size: 0.85rem; font-weight: 500; color: var(--texto2); transition: all 0.15s; }
.auth-tab.activo { background: var(--card2); color: var(--blanco); }

.campo { margin-bottom: 1.1rem; }
.campo label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--texto2); margin-bottom: 0.4rem; }
.campo input, .campo select, .campo textarea { width: 100%; background: var(--bg3); border: 1px solid var(--borde2); color: var(--texto); padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.9rem; outline: none; transition: border-color 0.15s; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--morado3); }
.campo textarea { resize: vertical; min-height: 100px; }
.btn-full { width: 100%; background: var(--morado); color: white; border: none; padding: 0.85rem; border-radius: 8px; font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: all 0.15s; margin-top: 0.5rem; }
.btn-full:hover { background: var(--morado2); }
.btn-full:disabled { background: var(--texto3); cursor: not-allowed; }
.aviso { border-radius: 8px; padding: 0.8rem 1rem; font-size: 0.82rem; margin-top: 1rem; text-align: center; border: 1px solid transparent; display: none; }
.aviso.ok { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); color: var(--verde); display: block; }
.aviso.error { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: var(--rojo); display: block; }
.aviso.cargando { background: rgba(109,40,217,0.1); border-color: rgba(167,139,250,0.3); color: var(--neon); display: block; }

.carrito-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }
.carrito-lista { background: var(--card); border: 1px solid var(--borde); border-radius: 12px; overflow: hidden; }
.carrito-item { display: grid; grid-template-columns: 70px 1fr auto; gap: 1rem; padding: 1.2rem; border-bottom: 1px solid var(--borde); align-items: center; }
.carrito-item:last-child { border-bottom: none; }
.carrito-foto { width: 70px; height: 70px; background: var(--card2); border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.carrito-foto img { width: 100%; height: 100%; object-fit: cover; }
.carrito-foto-ph { font-size: 1.4rem; color: var(--borde2); font-weight: 900; }
.carrito-info h4 { font-size: 0.92rem; font-weight: 700; color: var(--blanco); margin-bottom: 0.2rem; }
.carrito-cat { font-size: 0.62rem; letter-spacing: 2px; text-transform: uppercase; color: var(--morado3); font-weight: 600; margin-bottom: 0.5rem; }
.controles { display: flex; align-items: center; gap: 0.5rem; }
.btn-ctrl { width: 26px; height: 26px; background: var(--card2); border: 1px solid var(--borde2); color: var(--texto); border-radius: 6px; cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.btn-ctrl:hover { border-color: var(--morado3); color: var(--neon); }
.ctrl-cant { font-weight: 700; color: var(--blanco); min-width: 24px; text-align: center; }
.carrito-precio { text-align: right; }
.carrito-monto { font-size: 1rem; font-weight: 800; color: var(--neon); display: block; }
.carrito-unit { font-size: 0.7rem; color: var(--texto2); }
.btn-eliminar { background: none; border: none; color: var(--texto3); cursor: pointer; font-size: 0.78rem; margin-top: 0.3rem; transition: color 0.15s; display: block; }
.btn-eliminar:hover { color: var(--rojo); }
.carrito-vacio { text-align: center; padding: 4rem 2rem; color: var(--texto2); }
.carrito-vacio p:first-child { font-size: 2.5rem; margin-bottom: 1rem; color: var(--borde2); font-weight: 900; }
.resumen { background: var(--card); border: 1px solid var(--borde); border-radius: 12px; padding: 1.5rem; position: sticky; top: 80px; }
.resumen h3 { font-size: 0.9rem; font-weight: 700; color: var(--blanco); margin-bottom: 1.2rem; letter-spacing: 0.5px; text-transform: uppercase; }
.resumen-linea { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--texto2); margin-bottom: 0.7rem; }
.resumen-linea.total { font-size: 1rem; font-weight: 800; color: var(--blanco); border-top: 1px solid var(--borde); padding-top: 0.8rem; margin-top: 0.5rem; }
.resumen-linea.total span:last-child { color: var(--neon); }

.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 1.5rem; align-items: start; }
.checkout-box { background: var(--card); border: 1px solid var(--borde); border-radius: 12px; padding: 1.8rem; margin-bottom: 1.2rem; }
.checkout-box h3 { font-size: 0.95rem; font-weight: 700; color: var(--blanco); margin-bottom: 1.2rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--borde); }
.metodos-pago { display: flex; flex-direction: column; gap: 0.7rem; }
.metodo-btn { display: flex; align-items: center; gap: 1rem; background: var(--bg3); border: 1.5px solid var(--borde); border-radius: 8px; padding: 0.9rem 1.1rem; cursor: pointer; transition: all 0.15s; text-align: left; }
.metodo-btn:hover { border-color: var(--morado3); }
.metodo-btn.seleccionado { border-color: var(--morado3); background: rgba(109,40,217,0.1); }
.metodo-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--borde2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.15s; }
.metodo-btn.seleccionado .metodo-radio { border-color: var(--morado3); }
.metodo-btn.seleccionado .metodo-radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--morado3); }
.metodo-info h4 { font-size: 0.88rem; font-weight: 600; color: var(--blanco); }
.metodo-info p { font-size: 0.72rem; color: var(--texto2); font-weight: 300; }
.fila-doble { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.orden-card { background: var(--card); border: 1px solid var(--borde); border-radius: 12px; overflow: hidden; margin-bottom: 1rem; }
.orden-header { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.5rem; background: var(--card2); border-bottom: 1px solid var(--borde); flex-wrap: wrap; gap: 0.8rem; }
.orden-id { font-size: 0.88rem; font-weight: 700; color: var(--neon); }
.orden-fecha { font-size: 0.75rem; color: var(--texto2); }
.estado-badge { font-size: 0.65rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 0.25rem 0.7rem; border-radius: 4px; }
.estado-pendiente { background: rgba(234,179,8,0.15); color: var(--amarillo); border: 1px solid rgba(234,179,8,0.3); }
.estado-verificando_pago { background: rgba(34,211,238,0.1); color: var(--cyan); border: 1px solid rgba(34,211,238,0.2); }
.estado-procesando { background: rgba(109,40,217,0.15); color: var(--neon); border: 1px solid rgba(167,139,250,0.3); }
.estado-completado { background: rgba(34,197,94,0.1); color: var(--verde); border: 1px solid rgba(34,197,94,0.25); }
.estado-cancelado { background: rgba(239,68,68,0.1); color: var(--rojo); border: 1px solid rgba(239,68,68,0.25); }
.orden-items { padding: 1rem 1.5rem; }
.orden-item-row { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--texto2); padding: 0.35rem 0; border-bottom: 1px solid var(--borde); }
.orden-item-row:last-child { border-bottom: none; }
.orden-item-row span:first-child { color: var(--texto); }
.orden-total { display: flex; justify-content: space-between; padding: 1rem 1.5rem; border-top: 1px solid var(--borde); font-size: 0.9rem; font-weight: 700; color: var(--blanco); }
.orden-total span:last-child { color: var(--neon); }

/* ADMIN */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 64px); }
.admin-sidebar { background: var(--bg2); border-right: 1px solid var(--borde); padding: 1.5rem 0; position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; }
.admin-sidebar-titulo { font-size: 0.6rem; letter-spacing: 3px; text-transform: uppercase; color: var(--texto3); font-weight: 600; padding: 0 1.5rem; margin-bottom: 0.5rem; margin-top: 1rem; display: block; }
.admin-nav-btn { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 1.5rem; font-size: 0.85rem; font-weight: 500; color: var(--texto2); cursor: pointer; transition: all 0.15s; border: none; background: none; width: 100%; text-align: left; }
.admin-nav-btn:hover { background: var(--card); color: var(--texto); }
.admin-nav-btn.activo { background: rgba(109,40,217,0.15); color: var(--neon); border-right: 2px solid var(--morado3); }
.admin-contenido { padding: 2rem; overflow-y: auto; }
.admin-h1 { font-size: 1.5rem; font-weight: 800; color: var(--blanco); margin-bottom: 0.3rem; letter-spacing: -0.3px; }
.admin-sub { font-size: 0.82rem; color: var(--texto2); margin-bottom: 1.5rem; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-admin { background: var(--card); border: 1px solid var(--borde); border-radius: 10px; padding: 1.2rem; }
.stat-admin .n { font-size: 2rem; font-weight: 800; color: var(--neon); line-height: 1; display: block; }
.stat-admin .l { font-size: 0.72rem; color: var(--texto2); margin-top: 0.3rem; font-weight: 300; }
.tabla-wrap { background: var(--card); border: 1px solid var(--borde); border-radius: 12px; overflow: hidden; margin-bottom: 1.5rem; }
.tabla-cabecera { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid var(--borde); flex-wrap: wrap; gap: 0.8rem; }
.tabla-cabecera h3 { font-size: 0.9rem; font-weight: 700; color: var(--blanco); }
.tabla { width: 100%; border-collapse: collapse; }
.tabla th { text-align: left; padding: 0.8rem 1rem; font-size: 0.65rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--texto3); font-weight: 600; background: var(--bg3); border-bottom: 1px solid var(--borde); }
.tabla td { padding: 0.9rem 1rem; font-size: 0.84rem; color: var(--texto2); border-bottom: 1px solid var(--borde); vertical-align: middle; }
.tabla tr:last-child td { border-bottom: none; }
.tabla tr:hover td { background: var(--bg3); }
.tabla td strong { color: var(--texto); }
.select-estado { background: var(--bg3); border: 1px solid var(--borde2); color: var(--texto); padding: 0.3rem 0.6rem; border-radius: 6px; font-size: 0.78rem; cursor: pointer; outline: none; }
.admin-form { background: var(--card); border: 1px solid var(--borde); border-radius: 12px; padding: 1.8rem; margin-bottom: 1.5rem; }
.admin-form h3 { font-size: 0.95rem; font-weight: 700; color: var(--blanco); margin-bottom: 1.5rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--borde); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.campo-admin { margin-bottom: 1rem; }
.campo-admin label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--texto2); margin-bottom: 0.35rem; }
.campo-admin input, .campo-admin select, .campo-admin textarea { width: 100%; background: var(--bg3); border: 1px solid var(--borde2); color: var(--texto); padding: 0.7rem 0.9rem; border-radius: 8px; font-size: 0.88rem; outline: none; transition: border-color 0.15s; }
.campo-admin input:focus, .campo-admin select:focus, .campo-admin textarea:focus { border-color: var(--morado3); }
.campo-admin textarea { resize: vertical; min-height: 80px; }
.img-preview { width: 100%; height: 140px; background: var(--bg3); border: 1px dashed var(--borde2); border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-top: 0.5rem; cursor: pointer; transition: border-color 0.15s; }
.img-preview:hover { border-color: var(--morado3); }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-preview span { font-size: 0.75rem; color: var(--texto3); }
.form-btns { display: flex; gap: 0.8rem; margin-top: 1rem; flex-wrap: wrap; }
.btn-admin { background: var(--morado); color: white; border: none; padding: 0.7rem 1.5rem; border-radius: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.btn-admin:hover { background: var(--morado2); }
.btn-admin-sec { background: var(--bg3); color: var(--texto2); border: 1px solid var(--borde2); padding: 0.7rem 1.5rem; border-radius: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.btn-admin-sec:hover { border-color: var(--morado3); color: var(--texto); }
.btn-icon { background: none; border: 1px solid var(--borde); color: var(--texto2); padding: 0.3rem 0.7rem; border-radius: 6px; font-size: 0.75rem; cursor: pointer; transition: all 0.15s; }
.btn-icon:hover { border-color: var(--morado3); color: var(--neon); }
.btn-icon.del:hover { border-color: var(--rojo); color: var(--rojo); }

.footer { background: var(--bg2); border-top: 1px solid var(--borde); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-desc { font-size: 0.8rem; color: var(--texto2); font-weight: 300; margin-top: 0.8rem; line-height: 1.6; }
.footer-titulo { font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase; color: var(--texto3); font-weight: 600; margin-bottom: 1rem; }
.footer-link { display: block; font-size: 0.82rem; color: var(--texto2); font-weight: 300; margin-bottom: 0.5rem; transition: color 0.15s; }
.footer-link:hover { color: var(--neon); }
.footer-base { border-top: 1px solid var(--borde); padding-top: 1.5rem; text-align: center; }
.footer-base p { font-size: 0.72rem; color: var(--texto3); }

.toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--card2); border: 1px solid var(--borde2); color: var(--texto); padding: 0.8rem 1.5rem; border-radius: 8px; font-size: 0.85rem; font-weight: 500; transform: translateY(80px); opacity: 0; transition: all 0.25s; z-index: 999; box-shadow: 0 8px 30px rgba(0,0,0,0.5); max-width: 320px; }
.toast.visible { transform: translateY(0); opacity: 1; }

.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 300; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-overlay.visible { display: flex; }
.modal-caja { background: var(--card); border: 1px solid var(--borde2); border-radius: 16px; padding: 2rem; max-width: 560px; width: 90%; max-height: 85vh; overflow-y: auto; }
.modal-caja h3 { font-size: 1.1rem; font-weight: 700; color: var(--blanco); margin-bottom: 1.5rem; }
.modal-linea { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 0.6rem 0; border-bottom: 1px solid var(--borde); color: var(--texto2); }
.modal-linea span:first-child { font-weight: 500; }
.modal-linea span:last-child { color: var(--texto); }
.modal-total { display: flex; justify-content: space-between; font-size: 1rem; font-weight: 800; color: var(--blanco); margin-top: 1rem; padding-top: 0.8rem; border-top: 2px solid var(--borde2); }
.modal-total span:last-child { color: var(--neon); }
.btn-modal-cerrar { width: 100%; margin-top: 1.5rem; background: var(--bg3); color: var(--texto); border: 1px solid var(--borde2); padding: 0.8rem; border-radius: 8px; cursor: pointer; font-size: 0.88rem; font-weight: 600; }

.filtro-btn { background: var(--card); border: 1px solid var(--borde); color: var(--texto2); padding: 0.4rem 1rem; border-radius: 6px; font-size: 0.82rem; font-weight: 500; cursor: pointer; transition: all 0.15s; text-decoration: none; display: inline-block; }
.filtro-btn:hover { border-color: var(--morado3); color: var(--neon); }
.filtro-btn.activo { background: var(--morado); border-color: var(--morado); color: white; }

@media (max-width: 1024px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .carrito-layout, .checkout-layout { grid-template-columns: 1fr; }
  .resumen { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* HEADER - sin scroll horizontal */
  .header { overflow: hidden; }
  .header-inner { padding: 0 0.8rem; height: 56px; gap: 0.4rem; max-width: 100vw; }
  .logo { font-size: 0.88rem; flex-shrink: 0; }
  .logo-icon { width: 26px; height: 26px; font-size: 0.72rem; flex-shrink: 0; }
  .nav { display: none; }
  .hamburguesa { display: flex !important; flex-shrink: 0; order: 10; touch-action: manipulation; -webkit-tap-highlight-color: transparent; z-index: 300; position: relative; }
  .nav.abierto {
    display: flex; flex-direction: column;
    position: fixed; top: 56px; left: 0; right: 0; width: 100%;
    background: var(--bg2); border-bottom: 1px solid var(--borde);
    padding: 1rem 1.5rem; gap: 0.3rem; z-index: 200;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  }
  .nav.abierto a { padding: 0.7rem 1rem; font-size: 0.9rem; border-radius: 8px; display: block; }
  .header-acciones { gap: 0.3rem; flex-shrink: 0; }
  .btn-carrito { padding: 0.4rem 0.6rem; font-size: 0.75rem; flex-shrink: 0; min-width: 40px; }
  .btn-carrito span:not(.carrito-badge) { display: none; }
  .btn-usuario { padding: 0.4rem 0.5rem; flex-shrink: 0; font-size: 0; width: 36px; justify-content: center; }
  .btn-usuario #user-inicial { font-size: 0.8rem; }
  #link-login { padding: 0.4rem 0.6rem !important; font-size: 0.72rem !important; flex-shrink: 0; white-space: nowrap; }
  #link-registro { display: none !important; }
  .hamburguesa { display: flex !important; flex-shrink: 0; padding: 0.4rem; touch-action: manipulation; -webkit-tap-highlight-color: transparent; z-index: 300; position: relative; }

  /* HERO */
  .hero { min-height: 70vh; }
  .hero-h1 { font-size: 1.9rem; letter-spacing: -0.5px; }
  .hero-desc { font-size: 0.88rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns a, .hero-btns button { width: 100%; max-width: 300px; text-align: center; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat .num { font-size: 1.2rem; }

  /* GRILLA */
  .grilla { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.8rem; }
  .prod-foto { height: 140px; }
  .prod-body { padding: 0.9rem; }
  .prod-nombre { font-size: 0.88rem; }

  /* CARRITO - resumen abajo */
  .carrito-layout { display: flex !important; flex-direction: column !important; gap: 1rem; }
  .resumen { position: static !important; width: 100%; order: 2; }
  .carrito-lista { order: 1; }
  .carrito-item { grid-template-columns: 55px 1fr auto; gap: 0.7rem; padding: 0.9rem; }
  .carrito-foto { width: 55px; height: 55px; }

  /* CHECKOUT */
  .checkout-layout { grid-template-columns: 1fr; }
  .fila-doble { grid-template-columns: 1fr; }

  /* SECCION */
  .seccion { padding: 3rem 0; }
  .contenedor { padding: 0 1rem; }
  .seccion-h2 { font-size: 1.5rem; }
  .pasos { grid-template-columns: 1fr; }
  .garantias { grid-template-columns: 1fr 1fr; }

  /* FOOTER */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer { padding: 2rem 0 1rem; }

  /* FORMS */
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .admin-h1 { font-size: 1.2rem; }
  .stats-row { grid-template-columns: 1fr 1fr; }

  /* MODAL */
  .modal-caja { padding: 1.5rem; margin: 1rem; width: calc(100% - 2rem); }
}

@media (max-width: 400px) {
  .hero-h1 { font-size: 1.6rem; }
  .grilla { grid-template-columns: 1fr; }
  .garantias { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
}

/* ── CHAT ── */
.chat-burbuja {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
}

.chat-btn {
  width: 56px;
  height: 56px;
  background: var(--morado);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  box-shadow: 0 4px 20px rgba(109,40,217,0.5);
  transition: all 0.2s;
}

.chat-btn:hover { background: var(--morado2); transform: scale(1.05); }

.chat-badge-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: var(--rojo);
  border-radius: 50%;
  border: 2px solid var(--bg);
  display: none;
}

.chat-ventana {
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  width: 340px;
  height: 480px;
  background: var(--card);
  border: 1px solid var(--borde2);
  border-radius: 16px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  z-index: 500;
}

.chat-ventana.abierta { display: flex; }

.chat-header {
  background: var(--morado);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h4 { font-size: 0.9rem; font-weight: 700; color: white; }
.chat-header p { font-size: 0.72rem; color: rgba(255,255,255,0.7); margin-top: 0.1rem; }

.chat-cerrar-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.7;
  line-height: 1;
}

.chat-mensajes {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.chat-msg {
  max-width: 80%;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.chat-msg.cliente {
  background: var(--morado);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.chat-msg.admin {
  background: var(--card2);
  border: 1px solid var(--borde);
  color: var(--texto);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.chat-msg .chat-msg-nombre {
  font-size: 0.65rem;
  opacity: 0.7;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.chat-input-area {
  padding: 0.8rem;
  border-top: 1px solid var(--borde);
  display: flex;
  gap: 0.5rem;
}

.chat-input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--borde2);
  color: var(--texto);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  outline: none;
  resize: none;
  height: 38px;
}

.chat-input:focus { border-color: var(--morado3); }

.chat-enviar {
  background: var(--morado);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.15s;
}

.chat-enviar:hover { background: var(--morado2); }

.chat-inicio {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.chat-inicio p { font-size: 0.85rem; color: var(--texto2); }

/* CHAT ADMIN */
.chats-lista { display: flex; flex-direction: column; gap: 0.5rem; }

.chat-item {
  background: var(--card2);
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.15s;
}

.chat-item:hover { border-color: var(--morado3); }
.chat-item.activo { border-color: var(--morado3); background: rgba(109,40,217,0.08); }

.chat-item-nombre { font-size: 0.9rem; font-weight: 600; color: var(--blanco); }
.chat-item-info { font-size: 0.72rem; color: var(--texto2); margin-top: 0.2rem; }
.chat-item-estado { font-size: 0.62rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }

.admin-chat-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
  height: 600px;
}

.admin-chat-mensajes {
  background: var(--card);
  border: 1px solid var(--borde);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .chat-ventana { width: calc(100vw - 2rem); right: 1rem; }
  .admin-chat-panel { grid-template-columns: 1fr; height: auto; }
}
