:root {
  --bg-color: #0b0c10;
  --panel-bg: rgba(31, 33, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --accent-primary: #ffd700; /* Gold */
  --accent-secondary: #ffb300;
  --text-main: #ffffff;
  --text-muted: #c5c6c7;
  --error: #ff4b4b;
  --success: #3be25c;
  --glow-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  --font-main: 'Inter', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  background-image: url('../bg_desktop.jpg');
  background-size: 100vw 100vh;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.text-accent {
  color: var(--accent-primary);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--text-main);
  text-shadow: var(--glow-shadow);
}

/* Layout */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: rgba(11, 12, 16, 0.8);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.container {
  flex: 1;
  width: 90%;
  max-width: 1200px;
  margin: 2rem auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-family: var(--font-main);
}

.btn-primary {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.btn-primary:hover {
  background: var(--accent-primary);
  color: var(--bg-color);
  box-shadow: var(--glow-shadow);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
  border-radius: 8px;
  color: white;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}

.product-card {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  backdrop-filter: blur(12px);
  padding: 15px;
  transition: 0.4s;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 215, 0, 0.3), transparent);
  top: -100%;
  left: 0;
  transition: 0.5s;
  z-index: 0;
  pointer-events: none;
}

.product-card > * {
  position: relative;
  z-index: 1;
}

.product-card:hover::before {
  top: 100%;
}

.product-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 0 30px #ffb300;
  border-color: transparent;
}

.product-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  background: #2a2a35;
}

.product-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.product-card .btn-primary {
  background: linear-gradient(90deg, #ffd700, #ff8c00);
  color: white;
  border: none;
  border-radius: 10px;
  transition: 0.3s;
}

.product-card .btn-primary:hover {
  box-shadow: 0 0 20px #ffd700;
  background: linear-gradient(90deg, #ffb300, #ff6a00);
  color: white;
  transform: translateY(-2px);
}

.hero {
  text-align: center;
  padding: 40px 20px 20px;
}

.hero h1 {
  font-size: 60px;
  color: #ffd700;
  text-shadow: 0 0 30px #ffb300;
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 10px #ffb300; }
  to { text-shadow: 0 0 40px #ffd700, 0 0 60px #ff8c00; }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 35px;
  }
}

.product-price {
  font-size: 1.5rem;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: auto;
}

/* Flash Messages */
.flash {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  text-align: center;
}
.flash.success { background: rgba(59, 226, 92, 0.2); border: 1px solid var(--success); color: var(--success); }
.flash.danger { background: rgba(255, 75, 75, 0.2); border: 1px solid var(--error); color: var(--error); }

/* Payment Info Box */
.payment-info {
  background: rgba(0,0,0,0.4);
  border-left: 4px solid var(--accent-primary);
  padding: 15px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
}

.payment-info p {
  margin-bottom: 5px;
}

/* Tables (Admin) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #333;
}

th {
  color: var(--text-muted);
  font-weight: 600;
}

/* Badges */
.badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
}
.badge-pending { background: rgba(255, 193, 7, 0.2); color: #ffc107; border: 1px solid #ffc107; }
.badge-completed { background: rgba(40, 167, 69, 0.2); color: #28a745; border: 1px solid #28a745; }
.badge-rejected { background: rgba(220, 53, 69, 0.2); color: #dc3545; border: 1px solid #dc3545; }

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }

footer {
  text-align: center;
  padding: 2rem;
  margin-top: auto;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border);
}

@media (max-width: 768px) {
  body {
    background-image: url('../bg_mobile.jpg');
    background-position: center top;
  }
  .hero-section {
    display: none !important;
  }
  .mobile-spacer {
    display: block !important;
  }
  .navbar {
    flex-direction: column;
    padding: 15px;
    gap: 15px;
  }
  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.95rem;
  }
  
  /* Mobile Product Grid */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-card {
    padding: 10px;
  }
  .product-image {
    height: 100px;
    margin-bottom: 0.5rem;
  }
  .product-title {
    font-size: 0.9rem !important; /* Override inline styles if any */
  }
  .product-card .btn-primary {
    padding: 6px 10px;
    font-size: 0.75rem;
    margin-top: 0.5rem !important;
  }
}

/* Tutorial Modals - User RGB Neon Design */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&display=swap');

.tutorial-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 15px;
  animation: fadeInOverlay 0.3s ease-out;
  overflow-y: auto;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tutorial-modal-content {
  background: rgba(2, 6, 23, 0.95);
  border-radius: 20px;
  padding: 30px 20px 20px 20px;
  text-align: center;
  color: white;
  box-shadow: 0 0 40px rgba(0,255,255,0.15);
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: auto;
  font-family: 'Orbitron', sans-serif;
  animation: slideUpModal 0.4s ease-out;
}

.tutorial-modal-content::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: linear-gradient(90deg, #00f7ff, #00ff88, #ff00c8);
  z-index: -1;
  filter: blur(10px);
}

@keyframes slideUpModal {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.tutorial-btn-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff4b4b;
  color: white;
  border: 2px solid #020617;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255, 75, 75, 0.4);
  z-index: 100;
  font-family: Arial, sans-serif;
}

.tutorial-badge {
  background: linear-gradient(90deg, #00ff88, #00f7ff);
  color: black;
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
  font-weight: bold;
}

.tutorial-modal-header {
  margin-bottom: 5px;
}

.tutorial-title {
  font-size: 16px;
  margin-bottom: 5px;
  background: linear-gradient(90deg, #00f7ff, #00ff88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(0,0,0,0.8);
  font-weight: 700;
  line-height: 1.3;
}

.tutorial-subtitle {
  font-size: 12px;
  color: #cbd5f5;
  margin-bottom: 15px;
  font-family: var(--font-main);
  line-height: 1.4;
}

.tutorial-video {
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  width: 100%;
  padding-top: 177.77%; /* Proporción exacta de YouTube Shorts (9:16) */
  background: #000;
}

.tutorial-video iframe {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border: none;
}

.tutorial-btn {
  display: block;
  background: linear-gradient(90deg, #25D366, #00ff88);
  color: black;
  text-decoration: none;
  padding: 15px;
  border-radius: 12px;
  font-weight: bold;
  margin-bottom: 10px;
  box-shadow: 0 0 20px #25D366;
  transition: 0.3s;
  font-family: var(--font-main);
}

.tutorial-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 35px #25D366;
  color: black;
}

.tutorial-urgency {
  font-size: 11px;
  color: #f87171;
  margin-top: 5px;
  font-family: var(--font-main);
}

.tutorial-icons {
  margin-top: 10px;
  font-size: 12px;
  color: #94a3b8;
  font-family: var(--font-main);
}

.warning-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 10px;
}

.warning-text {
  text-align: center;
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.4;
  margin-bottom: 20px;
}

.warning-text span {
  color: #ffaa00;
  font-weight: bold;
}

.btn-green {
  background: #20b26c;
  color: #fff;
  border: none;
}
.btn-green:hover {
  background: #1c9b5d;
}

.btn-dark {
  background: #2b2e3e;
  color: #fff;
  border: 1px solid #444;
}
.btn-dark:hover {
  background: #393c4d;
}

/* Marquee / Ticker CSS */
.marquee-container {
  width: 100%;
  overflow: hidden;
  background-color: #1a1a2e; /* Fondo oscuro */
  border-bottom: 1px solid #333;
  padding: 8px 0;
  display: flex;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marquee 35s linear infinite;
}

.marquee-item {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-right: 40px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.marquee-item span {
  color: #66fcf1;
}

.marquee-item .product-highlight {
  color: #ffaa00;
}

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

/* Chat de Soporte Interno Flotante */
.chat-widget-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}

.chat-toggle-button {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-toggle-button:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 6px 20px rgba(155, 89, 182, 0.6);
}

.chat-unread-badge {
  background-color: #ff4b4b;
  color: white;
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 0.75rem;
  font-weight: bold;
  position: absolute;
  top: -8px;
  right: -5px;
  border: 2px solid #1a1a2e;
}

.chat-window-box {
  position: fixed;
  bottom: 85px;
  right: 20px;
  width: 350px;
  height: 480px;
  background: rgba(26, 26, 46, 0.98);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chatSlideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes chatSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.chat-header {
  background: linear-gradient(90deg, #9b59b6, #8e44ad);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header-title {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.online-indicator {
  width: 10px;
  height: 10px;
  background-color: #25D366;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #25D366;
}

.chat-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 5px;
  transition: color 0.2s;
}

.chat-close-btn:hover {
  color: white;
}

.chat-screen {
  padding: 15px;
  overflow-y: auto;
  flex: 1;
}

.chat-welcome-text {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin-bottom: 20px;
  text-align: center;
}

.chat-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 10px 5px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble-row {
  display: flex;
  width: 100%;
}

.chat-row-user {
  justify-content: flex-end;
}

.chat-row-admin {
  justify-content: flex-start;
}

.chat-message-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 15px;
  font-size: 0.85rem;
  line-height: 1.4;
  position: relative;
  word-break: break-word;
}

.chat-row-user .chat-message-bubble {
  background: #8e44ad;
  color: white;
  border-bottom-right-radius: 3px;
}

.chat-row-admin .chat-message-bubble {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border-bottom-left-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-message-time {
  font-size: 0.65rem;
  margin-top: 4px;
  text-align: right;
  opacity: 0.7;
}

.chat-system-message {
  text-align: center;
  font-size: 0.75rem;
  color: #888;
  margin: 10px 0;
  font-style: italic;
}

.chat-footer-input {
  display: flex;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.chat-footer-input input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 8px 15px;
  color: white;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.chat-footer-input input:focus {
  border-color: #9b59b6;
}

.chat-footer-input button {
  background: #9b59b6;
  border: none;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  transition: all 0.2s;
}

.chat-footer-input button:hover {
  background: #8e44ad;
  transform: scale(1.05);
}

/* Scrollbar for chat messages */
.chat-messages-area::-webkit-scrollbar,
.chat-screen::-webkit-scrollbar {
  width: 4px;
}

.chat-messages-area::-webkit-scrollbar-track,
.chat-screen::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages-area::-webkit-scrollbar-thumb,
.chat-screen::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

/* Mobile responsive chat */
@media (max-width: 480px) {
  .chat-window-box {
    width: calc(100% - 30px);
    height: 420px;
    bottom: 80px;
    right: 15px;
    left: 15px;
  }
}

/* Chat Image and Exit Controls Styles */
.chat-bubble-img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 10px;
  object-fit: contain;
  cursor: pointer;
  display: block;
  transition: transform 0.2s ease;
}

.chat-bubble-img:hover {
  transform: scale(1.02);
}

.chat-bubble-image-only {
  padding: 6px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.chat-row-user .chat-bubble-image-only {
  background: rgba(142, 68, 173, 0.4) !important;
  border-color: rgba(142, 68, 173, 0.8) !important;
}

.chat-end-btn {
  background: rgba(255, 75, 75, 0.2);
  color: #ff4b4b;
  border: 1px solid #ff4b4b;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-end-btn:hover {
  background: #ff4b4b;
  color: white;
}

/* Emoji Picker Styles */
.chat-emoji-picker-popover {
  position: absolute;
  bottom: 50px;
  left: 10px;
  background: #15181f;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  z-index: 10000;
  width: 160px;
}

.chat-emoji-item {
  font-size: 1.25rem;
  cursor: pointer;
  text-align: center;
  transition: transform 0.1s ease;
  user-select: none;
}

.chat-emoji-item:hover {
  transform: scale(1.2);
}

/* Promo Popup Modal Styles */
.promo-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  animation: fadeInOverlay 0.3s ease-out;
}

.promo-modal-content {
  position: relative;
  background: transparent;
  border-radius: 12px;
  box-shadow: 0 0 35px rgba(255, 170, 0, 0.35);
  max-width: 500px;
  width: 100%;
  animation: scaleUpPromo 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes scaleUpPromo {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.promo-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 2px solid var(--accent-primary);
  display: block;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s;
}

.promo-img:hover {
  transform: scale(1.015);
  border-color: white;
}

.promo-btn-close {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #ff4b4b;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  z-index: 100000;
  transition: background 0.2s, transform 0.2s;
  font-family: 'Inter', sans-serif;
  line-height: 1;
}

.promo-btn-close:hover {
  background: #d32f2f;
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .promo-modal-content {
    max-width: 90%;
  }
  .promo-btn-close {
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }
}



