: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(255,255,255,0.05);
  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;
  }
}

/* Tutorial Modals */
.tutorial-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tutorial-modal-content {
  background: #1a1b26;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  position: relative;
}

.tutorial-modal-header {
  padding: 15px 20px 5px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tutorial-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin: 0;
  text-align: center;
  flex: 1;
}

.tutorial-modal-subtitle {
  font-size: 0.85rem;
  color: #a0a0a0;
  text-align: center;
  margin: 5px 20px 15px 20px;
}

.tutorial-btn-close {
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 20px;
  color: #ccc;
  padding: 5px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: absolute;
  right: 15px;
  top: 15px;
}

.tutorial-btn-close:hover {
  background: rgba(255,255,255,0.2);
  color: white;
}

.tutorial-video-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  border-radius: 12px;
  margin: 0 15px 15px 15px;
  overflow: hidden;
  position: relative;
  padding-top: 150%;
}
.tutorial-video-container iframe {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border: none;
}

.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%); }
}
