:root {
  --bg-color: #090d16;
  --card-bg: rgba(15, 23, 42, 0.75);
  --accent: #fbbf24;
  --accent-neon: #f59e0b;
  --neon-glow: 0 0 15px rgba(245, 158, 11, 0.4);
  --glass-border: rgba(255, 255, 255, 0.15);
  --text: #f8fafc;
  --text-muted: #94a3b8;
}

•⁠  ⁠{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: var(--bg-color);
  background-image: url('fondo-pagina.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  padding-bottom: 40px;
  min-height: 100vh;
}

/* Header Adaptado a toda la pantalla */
.header {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.90);
  backdrop-filter: blur(10px);
  padding: 10px 15px;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.logo-marquee-container {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  cursor: pointer;
  user-select: none;
}

.logo-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: marqueeFullSpeed 22s linear infinite;
}

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

.logo-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
}

.neon-text {
  color: #fff;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.9);
}

/* Oferta Relámpago */
.flash-offer-bar {
  display: none;
  background: linear-gradient(90deg, #dc2626, #ea580c);
  color: #fff;
  padding: 0.6rem 1rem;
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
  position: relative;
  z-index: 110;
}
.flash-offer-bar.active { display: block; }

.flash-offer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.flash-tag { background: #000; color: #fbbf24; padding: 0.2rem 0.6rem; border-radius: 6px; font-size: 0.75rem; }
.flash-price { color: #fef08a; font-size: 1.1rem; }

.btn-flash-claim {
  background: #fbbf24;
  color: #000;
  border: none;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 440px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--glass-border);
  background-color: #090d16;
}

.hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 13, 22, 0.35);
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.45rem 1.2rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

.bounce-glow-title {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff 20%, #fbbf24 80%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.9));
  animation: bounceIn 1.2s cubic-bezier(0.36, 0, 0.66, -0.56) 1;
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.15); opacity: 1; }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.glowing-desc {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 1.8rem;
  max-width: 620px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 1);
}

.btn-primary-neon {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
  border: 1px solid #34d399 !important;
  padding: 0.95rem 2.2rem;
  border-radius: 14px;
  font-weight: 900;
  font-size: 1.15rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
  transition: all 0.3s ease;
}

.aura-glow { animation: auraPulse 2s infinite ease-in-out; }
@keyframes auraPulse {
  0% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.5); }
  50% { box-shadow: 0 0 35px rgba(16, 185, 129, 0.9); }
  100% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.5); }
}

.categories {
  display: flex;
  gap: 0.6rem;
  padding: 1.2rem 1.5rem;
  overflow-x: auto;
}

.cat-btn {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.cat-btn.active, .cat-btn:hover {
  background: rgba(16, 185, 129, 0.85);
  color: #000000;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
  border-color: #6ee7b7;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.2rem;
  padding: 0 1.5rem;
}

.product-card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

.product-img-container {
  width: 100%;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.product-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.product-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.product-card .price {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.btn-add {
  background: rgba(16, 185, 129, 0.45) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff !important;
  border: 1px solid rgba(52, 211, 153, 0.6) !important;
  padding: 0.6rem;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.btn-add:hover {
  background: rgba(16, 185, 129, 0.85) !important;
  color: #000000 !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.8);
}

.plus-one-float {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-weight: 900;
  padding: 0.6rem 1.1rem;
  border-radius: 25px;
  font-size: 1.35rem;
  border: 2px solid #fff;
  pointer-events: none;
  animation: floatUp 0.85s forwards ease-out;
  box-shadow: 0 0 20px rgba(16, 185, 129, 1);
  z-index: 10;
}

@keyframes floatUp {
  0% { opacity: 1; transform: translate(-50%, 0) scale(0.7); }
  50% { transform: translate(-50%, -30px) scale(1.25); }
  100% { opacity: 0; transform: translate(-50%, -60px) scale(1.4); }
}

.cart-drawer {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 92%;
  max-width: 440px;
  max-height: 90vh;
  background: #ffffff !important;
  color: #0f172a !important;
  z-index: 200;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  border: 2px solid #0284c7;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.cart-drawer.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.cart-header {
  padding: 1.2rem;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #38bdf8;
}

.cart-title-white {
  color: #ffffff !important;
  font-weight: 900;
  font-size: 1.35rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: 0.5px;
}

.close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem;
  background: #ffffff;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
}

.cart-item strong { color: #0f172a !important; }
.cart-item small { color: #475569 !important; }
.cart-item button {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.cart-checkout-form {
  padding: 1.2rem;
  border-top: 2px solid #e2e8f0;
  background: #f8fafc;
  overflow-y: auto;
  max-height: 55vh;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #0f172a;
}

.summary-line strong { color: #0284c7 !important; font-weight: 900; }

.form-group {
  margin-bottom: 0.8rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  color: #1e293b;
  margin-bottom: 0.3rem;
  font-weight: 800;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  font-weight: 600;
}

.form-group input:focus, .form-group select:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.btn-gps {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.calc-box {
  background: #f1f5f9;
  padding: 0.8rem;
  border-radius: 10px;
  margin-bottom: 0.8rem;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

.calc-input input {
  width: 100%;
  padding: 0.5rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 6px;
  font-weight: 700;
}

.change-result {
  margin-top: 0.4rem;
  font-weight: 800;
  color: #0284c7;
  font-size: 0.95rem;
}

.btn-order {
  width: 100%;
  padding: 0.95rem;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 900;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.upsell-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 280;
  align-items: center;
  justify-content: center;
}

.upsell-modal.active { display: flex; }

.upsell-card {
  background: #0f172a;
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 1.8rem;
  width: 90%;
  max-width: 360px;
  text-align: center;
}

.upsell-icon { font-size: 3rem; color: #38bdf8; margin-bottom: 0.5rem; }
.upsell-card h3 { color: #fff; font-size: 1.2rem; font-weight: 900; margin-bottom: 0.5rem; }
.upsell-card p { color: #cbd5e1; font-size: 0.9rem; margin-bottom: 1rem; }
.upsell-price-tag { font-size: 1.5rem; font-weight: 900; color: var(--accent); margin-bottom: 1.2rem; }

.upsell-actions { display: flex; gap: 0.8rem; }
.btn-upsell-no { flex: 1; padding: 0.75rem; background: #334155; color: #fff; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; }
.btn-upsell-yes { flex: 1.2; padding: 0.75rem; background: linear-gradient(135deg, #10b981, #059669); color: #fff; border: none; border-radius: 10px; font-weight: 800; cursor: pointer; }

.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 150;
}
.overlay.active { display: block; }

.admin-login-modal { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.85); z-index: 300; align-items: center; justify-content: center; }
.admin-login-modal.active { display: flex; }
.admin-login-card { background: #0f172a; border: 1px solid var(--accent); border-radius: 16px; padding: 2rem; width: 90%; max-width: 340px; text-align: center; }
.admin-login-header { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; color: var(--accent); }
.admin-login-card input { width: 100%; padding: 0.8rem; font-size: 1.5rem; text-align: center; letter-spacing: 0.5rem; border-radius: 8px; border: 1px solid var(--glass-border); background: rgba(30, 41, 59, 0.8); color: #fff; margin: 1rem 0; }
.admin-login-actions { display: flex; gap: 0.8rem; }
.admin-login-actions button { flex: 1; padding: 0.7rem; border-radius: 8px; border: none; font-weight: 700; cursor: pointer; }
.btn-cancel { background: #334155; color: #fff; }
.btn-submit { background: var(--accent-neon); color: #000; }

.admin-dashboard-modal { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(9, 13, 22, 0.98); z-index: 350; overflow-y: auto; }
.admin-dashboard-modal.active { display: block; }
.admin-dashboard-container { max-width: 1000px; margin: 0 auto; padding: 1.5rem; }

.admin-topbar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--glass-border); }
.admin-title { display: flex; align-items: center; gap: 0.6rem; color: var(--accent); }
.btn-close-admin { background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; }

.admin-tabs { display: flex; gap: 0.8rem; margin: 1.5rem 0; flex-wrap: wrap; }
.admin-tab-btn { background: rgba(30, 41, 59, 0.6); border: 1px solid var(--glass-border); color: var(--text-muted); padding: 0.7rem 1.2rem; border-radius: 10px; cursor: pointer; font-weight: 700; }
.admin-tab-btn.active { background: var(--accent-neon); color: #000; }

.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

.admin-metrics-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.metric-card { background: rgba(30, 41, 59, 0.5); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1rem; text-align: center; }
.m-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.m-value { font-size: 1.8rem; font-weight: 900; color: #fff; }
.text-green { color: #22c55e; }

.marketing-panel-box { display: flex; flex-direction: column; gap: 1.5rem; }
.admin-section-card { background: rgba(30, 41, 59, 0.5); border: 1px solid var(--glass-border); border-radius: 14px; padding: 1.5rem; text-align: left; }
.section-title { font-size: 1.1rem; color: var(--accent); font-weight: 900; margin-bottom: 0.3rem; display: flex; align-items: center; gap: 0.5rem; }
.section-subtitle { font-size: 0.85rem; color: #94a3b8; margin-bottom: 1.2rem; }

.admin-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.admin-category-grid label {
  background: rgba(15, 23, 42, 0.8);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group-admin { margin-bottom: 1rem; text-align: left; }
.form-group-admin label { display: block; font-size: 0.85rem; color: #fff; font-weight: 700; margin-bottom: 0.3rem; }
.form-group-admin input[type="text"], .form-group-admin input[type="number"] { width: 100%; padding: 0.7rem; border-radius: 8px; border: 1px solid var(--glass-border); background: rgba(15, 23, 42, 0.8); color: #fff; }

.inventory-table-container { overflow-x: auto; }
.inventory-table { width: 100%; border-collapse: collapse; text-align: left; }
.inventory-table th, .inventory-table td { padding: 0.8rem; border-bottom: 1px solid var(--glass-border); }
.inventory-table th { background: rgba(30, 41, 59, 0.8); color: var(--accent); }

.reports-box { background: rgba(30, 41, 59, 0.4); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--glass-border); }
.reports-filter-bar { display: flex; gap: 0.6rem; margin: 1rem 0; }
.btn-range { background: rgba(15, 23, 42, 0.8); border: 1px solid var(--glass-border); color: #fff; padding: 0.5rem 1rem; border-radius: 8px; cursor: pointer; font-weight: 600; }
.btn-range.active { background: var(--accent-neon); color: #000; }

.report-preview-container { overflow-x: auto; margin: 1rem 0; max-height: 320px; border: 1px solid var(--glass-border); border-radius: 10px; }
.report-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; text-align: left; }
.report-table th, .report-table td { padding: 0.8rem; border-bottom: 1px solid var(--glass-border); }
.report-table th { background: rgba(15, 23, 42, 0.9); color: var(--accent); position: sticky; top: 0; }

.reports-actions-row { display: flex; gap: 1rem; margin-top: 1rem; }
.btn-export-excel { flex: 1; background: #10b981; color: #fff; border: none; padding: 0.9rem; border-radius: 8px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.btn-export-pdf { flex: 1; background: #3b82f6; color: #fff; border: none; padding: 0.9rem; border-radius: 8px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }

.bounce-6s-title {
  animation: bounce6s 6s ease-in-out 1;
}

@keyframes bounce6s {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-10px); }
}

.status-online-badge {
  background: rgba(34, 197, 94, 0.15) !important;
  border: 1px solid #22c55e !important;
  color: #4ade80 !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-offline-badge {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid #ef4444 !important;
  color: #f87171 !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.green-dot {
  background-color: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulseGreen 1.5s infinite;
}

.red-dot {
  background-color: #ef4444;
  box-shadow: 0 0 10px #ef4444;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 10px !important;
  }

  .product-card {
    padding: 10px !important;
    border-radius: 12px !important;
  }

  .product-img-container {
    height: 110px !important;
  }

  .product-card h3 {
    font-size: 0.82rem !important;
    line-height: 1.2 !important;
    height: 2.4em !important;
    overflow: hidden !important;
  }

  .product-card .price {
    font-size: 0.95rem !important;
    margin-bottom: 6px !important;
  }

  .btn-add {
    padding: 0.45rem !important;
    font-size: 0.78rem !important;
  }
}