:root {
  --green: #27d400;
  --green2: #1fb800;
  --green-glow: rgba(39, 212, 0, .35);
  --bg-deep: #050505;
  --bg-soft: #0c0c0c;
  --panel: rgba(255, 255, 255, .04);
  --panel2: rgba(255, 255, 255, .02);
  --border: rgba(255, 255, 255, .08);
  --white: #f5f5f5;
  --muted: #bdbdbd;
  --radius: 22px;
  --wrap: 1200px;
  --shadow: 0 30px 60px rgba(0, 0, 0, .6);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial;
  color: var(--white);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(39, 212, 0, .18), transparent 60%),
    radial-gradient(900px 500px at 80% 10%, rgba(255, 255, 255, .06), transparent 55%),
    linear-gradient(180deg, var(--bg-deep), var(--bg-soft));
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--wrap);
  margin: auto;
  padding: 0 20px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(5, 5, 5, .65);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.logo {
  height: 42px;
  cursor: pointer;
  transition: opacity .2s ease;
}

.logo:hover {
  opacity: 0.85;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
  padding: 8px 10px;
  border-radius: 999px;
}

.nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, .04);
}

.section {
  padding: 70px 0;
}

.section--soft {
  background: rgba(255, 255, 255, .03);
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.h2 {
  margin: 0 0 10px 0;
  font-size: 34px;
  text-align: center;
}

.h1 {
  margin: 0 0 10px 0;
  font-size: 56px;
}

.lead {
  font-size: 18px;
  line-height: 1.5;
  max-width: 720px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  user-select: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--green), var(--green2));
  color: #050505;
  box-shadow: 0 18px 40px rgba(39, 212, 0, .35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(39, 212, 0, .45);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, .2);
  color: var(--white);
  background: transparent;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .05);
}

.btn--outline {
  border-color: rgba(255, 255, 255, .25);
  color: var(--white);
  background: transparent;
}

.card {
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card-pad {
  padding: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 14px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green2));
  color: #050505;
  text-decoration: none;
  font-weight: 950;
  box-shadow: 0 16px 45px rgba(39, 212, 0, .45);
  z-index: 1000;
  transition: transform .3s ease, box-shadow .3s ease;
}

.wa-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 55px rgba(39, 212, 0, .55);
}

.footer {
  padding: 60px 0 40px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .3));
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
}

.footer-info {
  text-align: left;
}

.footer-logo {
  height: 50px;
  margin-bottom: 12px;
  display: block;
  cursor: pointer;
  transition: opacity .2s ease;
}

.footer-logo:hover {
  opacity: 0.85;
}

.footer-brand {
  font-size: 24px;
  font-weight: 900;
  color: var(--green);
  margin-bottom: 8px;
}

.footer-tagline {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 14px;
}

.footer-copyright {
  color: rgba(255, 255, 255, .4);
  font-size: 13px;
}

.footer-social {
  text-align: center;
}

.footer-social-title {
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--white);
  transition: all .3s ease;
}

.social-link:hover {
  background: var(--green);
  color: #050505;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(39, 212, 0, .3);
}

.footer-location {
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.footer-location .btn {
  transition: all .3s ease;
}

.footer-location .btn:hover {
  background: rgba(255, 255, 255, .1);
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(39, 212, 0, .2);
}

.subfooter {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  text-align: center;
}

.subfooter p {
  color: rgba(255, 255, 255, .5);
  font-size: 13px;
  margin: 0;
}

.subfooter a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
  transition: all .2s ease;
}

.subfooter a:hover {
  color: var(--white);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-info {
    text-align: center;
  }

  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-location {
    justify-content: center;
  }

  .h1 {
    font-size: 44px;
  }

  .nav {
    justify-content: center;
  }

  .header-grid {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .wa-float {
    right: 15px;
    bottom: 15px;
    padding: 12px 16px;
    font-size: 14px;
  }

  .h1 {
    font-size: 36px;
  }

  .h2 {
    font-size: 28px;
  }

  .lead {
    font-size: 16px;
  }

  .section {
    padding: 50px 0;
  }
}

/* Consoles section (SEO-safe) */
.store-consoles {
  padding: 80px 0;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.console-card {
  background: rgba(0, 0, 0, .35);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
}

.console-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  margin-bottom: 14px;
}

.console-price {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin: 10px 0 14px;
}

/* ========================================
   BOTTOM NAVIGATION (Mobile Only)
   ======================================== */

.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border-top: 1px solid var(--border);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .3);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, .6);
  transition: all .2s ease;
  flex: 1;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: var(--green);
}

.bottom-nav-icon {
  font-size: 24px;
  line-height: 1;
}

.bottom-nav-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile: Show bottom nav and hide floating WhatsApp button */
@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
  }

  /* Hide floating WhatsApp button on mobile */
  .wa-float {
    display: none !important;
  }

  /* Add padding to body to prevent content from being hidden behind bottom nav */
  body {
    padding-bottom: 70px;
  }
}

/* ================================================
   CUSTOM SCROLLBAR - Marca Verde
   ================================================ */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #27d400, #1a9e00);
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #2deb00, #1fb800);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #27d400 rgba(0, 0, 0, 0.2);
}

/* ================================================
   CUSTOM ALERTS SYSTEM
   ================================================ */
.custom-alert-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.custom-alert-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.custom-alert {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 28px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.2s ease;
  border: 1px solid var(--border);
}

.custom-alert-overlay.show .custom-alert {
  transform: scale(1);
}

.custom-alert-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 16px;
}

.custom-alert-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--white);
}

.custom-alert-message {
  font-size: 15px;
  text-align: center;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.custom-alert-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.custom-alert-btn {
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  min-width: 100px;
}

.custom-alert-btn.primary {
  background: var(--primary);
  color: var(--white);
}

.custom-alert-btn.primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.custom-alert-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid var(--border);
}

.custom-alert-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ================================================
   TICKET VERIFICATION SECTION
   ================================================ */

.verify-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
}

.verify-header h2 {
  margin-bottom: 8px;
}

.verify-form .input {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--white);
  transition: all 0.3s ease;
}

.verify-form .input:focus {
  outline: none;
  border-color: var(--green);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(39, 212, 0, 0.1);
}

.verify-form .btn {
  width: 100%;
  font-size: 16px;
  padding: 16px 24px;
}

.verify-participant-info {
  background: rgba(39, 212, 0, 0.08);
  border: 1px solid rgba(39, 212, 0, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.verify-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.verify-stats > div {
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  padding: 12px 16px;
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.order-id {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-warning {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.badge-success {
  background: rgba(39, 212, 0, 0.15);
  color: var(--green);
  border: 1px solid rgba(39, 212, 0, 0.3);
}

.badge-danger {
  background: rgba(244, 67, 54, 0.15);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.loader {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .verify-card {
    padding: 24px 16px;
  }

  .table-wrap {
    overflow-x: scroll;
  }

  .table {
    min-width: 600px;
  }

  .verify-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
