/*
 * Enter any custom CSS here.
 * This file will not be overwritten by theme updates.
 *
 * ── Semantic class hooks (sa-*) ────────────────────────────────────────────
 * Every section, snippet and key element carries a stable `sa-` class you can
 * target with plain CSS — no Tailwind rebuild needed. These classes ship with
 * NO styles of their own; they exist purely as selectors for you to hook onto.
 *
 * Page scope   body.sa-tpl-<template>      e.g. .sa-tpl-product, .sa-tpl-shop
 *              body.sa-no-product-images / .sa-no-category-images when the
 *              matching theme setting is off
 * Chrome       .sa-header .sa-navbar .sa-footer
 *              .sa-navbar-link .sa-navbar-logo .sa-navbar-cart .sa-footer-link
 * Sections     .sa-<component>             e.g. .sa-hero, .sa-features, .sa-faq
 *   variant    .sa-<component>--<variant>  e.g. .sa-hero--split-media
 *   inner      .sa-<component>-title / -subtitle / -eyebrow / -media /
 *              -items / -item / -actions / -link / -price / -badge / -icon
 * Primitives   .sa-btn (+ .sa-btn--<variant>), .sa-section-header
 *              (.sa-section-title / -eyebrow / -subtitle),
 *              .sa-product-card (+ .sa-product-card--<style>,
 *              .sa-product-card-title / -price / -stock / -status / -badges),
 *              .sa-product-form + .sa-add-to-cart, .sa-product-gallery,
 *              .sa-cart-panel + .sa-cart-item, .sa-searchbar, .sa-pagination,
 *              .sa-breadcrumbs, .sa-toasts + .sa-toast, .sa-feedback-card
 *
 * Example — bigger hero heading only on the product page:
 *   .sa-tpl-product .sa-hero-title { font-size: 3rem; }
 * ───────────────────────────────────────────────────────────────────────────
*/

/* ============================================================
   HUNTERS — Fondo violeta neón, ligero y optimizado
   ============================================================
   El glow "ambient" nativo del tema usa filter: blur() animado
   sobre elementos grandes, lo cual es caro de repintar (sobre
   todo en móvil). Aquí lo apagamos desde settings.json
   (background_glow / background_pattern = "none") y lo
   sustituimos por esta capa:
     - Un solo elemento fijo (body::before), fuera del flujo,
       compuesto por 3 radial-gradient en una sola background-image.
     - CERO filter:blur (el desenfoque lo dan los propios "stops"
       del degradado, igual que hace la web de referencia).
     - Solo se anima "opacity" (barato, no dispara layout/paint
       en el resto de la página) y respeta prefers-reduced-motion.
     - contain + will-change para aislar la capa del resto del DOM.
   ============================================================ */

html {
  background: rgba(var(--cl-background), 1);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  contain: strict;
  will-change: opacity;
  background:
    radial-gradient(ellipse 60% 42% at 18% 0%,  rgba(var(--cl-accent), 0.24) 0%, transparent 68%),
    radial-gradient(ellipse 46% 36% at 88% 8%,  rgba(var(--cl-accent), 0.16) 0%, transparent 65%),
    radial-gradient(ellipse 70% 55% at 50% 0%,  rgba(var(--cl-accent), 0.14) 0%, transparent 72%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(var(--cl-accent), 0.10) 0%, transparent 70%);
  animation: hunters-glow-breathe 7s ease-in-out infinite;
}

/* Viñeta sutil para oscurecer bordes, sin filtros caros */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  contain: strict;
  background: radial-gradient(ellipse 130% 100% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.35) 100%);
}

@keyframes hunters-glow-breathe {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none !important; }
}

/* Móvil: menos superficie de glow y sin viñeta doble, para ahorrar repintado */
@media (max-width: 640px) {
  body::before {
    background:
      radial-gradient(ellipse 80% 30% at 50% 0%, rgba(var(--cl-accent), 0.20) 0%, transparent 70%);
  }
}

/* ============================================================
   Detalles de marca (violeta neón), sin duplicar lo que el
   tema ya resuelve de forma nativa vía ajustes del editor
   (card_hover_effect: border, button_hover_effect: shine).
   ============================================================ */

/* Resplandor de texto solo en el título del hero (estático, barato) */
.sa-hero-title {
  text-shadow: 0 0 24px rgba(var(--cl-accent), 0.3);
}

/* Halo sutil en botones sólidos al hover (una sola sombra, radio corto) */
.sa-btn--solid:hover,
.sa-btn.sa-btn--primary:hover {
  box-shadow: 0 4px 16px -4px rgba(var(--cl-accent), 0.45);
}

/* Logo del navbar con resplandor estático (no animado) */
.sa-navbar-logo img,
.sa-navbar-logo svg {
  filter: drop-shadow(0 0 8px rgba(var(--cl-accent), 0.4));
}

/* Scrollbar temática (navegadores WebKit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(var(--cl-background), 1); }
::-webkit-scrollbar-thumb {
  background: rgba(var(--cl-accent), 0.5);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(var(--cl-accent), 0.75); }

/* Selección de texto con tinte violeta */
::selection {
  background: rgba(var(--cl-accent), 0.35);
  color: rgba(var(--cl-t-primary), 1);
}

/* ── Footer más bonito ─────────────────────────────────────────
   Línea de luz violeta arriba del footer (gradiente estático,
   sin animación) + enlaces/iconos sociales con halo al hover. */
.sa-footer {
  position: relative;
  border-top: 1px solid rgba(var(--cl-accent), 0.18);
  background: rgba(var(--cl-surface), 0.4);
}
.sa-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: min(560px, 70%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(var(--cl-accent), 0.9), transparent);
}
.sa-footer a:hover {
  color: rgba(var(--cl-accent), 1);
}
.sa-footer svg:hover {
  filter: drop-shadow(0 0 6px rgba(var(--cl-accent), 0.5));
}

/* ── Pestañas legales (FAQ + Términos/Privacidad/Reembolsos) ──── */
.sa-legal-tabs-btn[aria-selected="true"] {
  color: rgba(var(--cl-accent), 1);
  border-color: rgba(var(--cl-accent), 1);
}
.sa-legal-tabs-panel {
  border-color: var(--cl-border);
}

/* ============================================================
   FOOTER — ft (importado desde el footer nuevo)
============================================================ */

.ft {
  position: relative;
  margin-top: 4rem;
  width: 100%;
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}

/* Glow line at very top */
.ft-topline {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,0,0,0.6) 30%,
    rgba(255,80,80,0.9) 50%,
    rgba(255,0,0,0.6) 70%,
    transparent 100%
  );
  box-shadow: 0 0 12px rgba(255,0,0,0.4), 0 0 30px rgba(255,0,0,0.15);
}

/* Subtle background glow */
.ft::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 70%; height: 250px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,0,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.ft-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 3.5rem 4rem 0;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

@media (max-width: 1200px) { .ft-inner { padding: 3rem 3rem 0; } }
@media (max-width: 900px)  { .ft-inner { padding: 2.5rem 2rem 0; } }
@media (max-width: 640px)  { .ft-inner { padding: 2rem 1.25rem 0; } }

/* ── Main grid: brand left, columns right ── */
.ft-grid {
  display: grid;
  grid-template-columns: 1.8fr 2fr;
  gap: 5rem;
  padding-bottom: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .ft-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ── Brand block ── */
.ft-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ft-logo-link { display: inline-block; width: fit-content; }

.ft-logo-img {
  max-height: 80px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255,0,0,0.2));
  transition: filter 0.3s ease;
}
.ft-logo-link:hover .ft-logo-img {
  filter: drop-shadow(0 0 18px rgba(255,0,0,0.45));
}

.ft-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.75;
  max-width: 300px;
  font-family: 'Poppins', sans-serif;
}

/* Social icons row */
.ft-socials {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ft-social {
  width: 36px; height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}
.ft-social:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
  transform: translateY(-3px);
}
.ft-social--discord:hover {
  background: rgba(88,101,242,0.15);
  border-color: rgba(88,101,242,0.4);
  color: #7289da;
  box-shadow: 0 4px 20px rgba(88,101,242,0.2);
}
.ft-social--tiktok:hover {
  background: rgba(255,0,80,0.12);
  border-color: rgba(255,0,80,0.3);
  color: #ff0050;
  box-shadow: 0 4px 20px rgba(255,0,80,0.15);
}
.ft-social--telegram:hover {
  background: rgba(42,171,238,0.15);
  border-color: rgba(42,171,238,0.4);
  color: #2aabee;
  box-shadow: 0 4px 20px rgba(42,171,238,0.2);
}
.ft-social--youtube:hover {
  background: rgba(255,0,0,0.12);
  border-color: rgba(255,0,0,0.3);
  color: #ff2020;
  box-shadow: 0 4px 20px rgba(255,0,0,0.15);
}

/* ── Column group ── */
.ft-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 500px) {
  .ft-cols { grid-template-columns: repeat(2, 1fr); }
}

.ft-col {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.ft-col-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.4rem;
  font-family: 'Poppins', sans-serif;
  position: relative;
  padding-bottom: 0.6rem;
}
.ft-col-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 20px; height: 1px;
  background: #ff0000;
  box-shadow: 0 0 6px rgba(255,0,0,0.5);
}

.ft-link {
  font-size: 0.855rem;
  color: rgba(255,255,255,0.32);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  transition: color 0.18s ease, transform 0.18s ease;
  display: inline-block;
}
.ft-link:hover {
  color: rgba(255,255,255,0.85);
  transform: translateX(5px);
}

/* ── Divider ── */
.ft-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.07) 20%,
    rgba(255,0,0,0.12) 50%,
    rgba(255,255,255,0.07) 80%,
    transparent 100%
  );
  margin-bottom: 1.25rem;
}

/* ── Sponsors row (sin CSS en el zip original; estilo mínimo añadido para que no se vea roto) ── */
.ft-sponsors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.ft-sponsor-card {
  display: flex;
  align-items: center;
}

.ft-sponsor-link img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}
.ft-sponsor-link:hover img {
  opacity: 1;
}

.ft-discord-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(88,101,242,0.3);
  background: rgba(88,101,242,0.08);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.ft-discord-banner:hover {
  background: rgba(88,101,242,0.16);
  border-color: rgba(88,101,242,0.5);
  transform: translateY(-2px);
}
.ft-discord-banner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7289da;
  flex-shrink: 0;
}
.ft-discord-banner-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.ft-discord-banner-text strong {
  font-size: 0.8rem;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}
.ft-discord-banner-text small {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
}
.ft-discord-banner-cta {
  margin-left: 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7289da;
  flex-shrink: 0;
}

/* ── Bottom bar ── */
.ft-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.ft-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
  font-family: 'Poppins', sans-serif;
}

.ft-bottom-badges {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.ft-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.2);
  font-family: 'Poppins', sans-serif;
}
.ft-badge svg { color: rgba(255,0,0,0.5); flex-shrink: 0; }

@media (max-width: 640px) {
  .ft-bottom { flex-direction: column; align-items: flex-start; }
  .ft-bottom-badges { display: none; }
}

/* ============================================================
   STATS VIDEO SHOWCASE
   ============================================================ */
.stats-video-wrap {
  position: relative;
  max-width: 860px;
  margin: 3.5rem auto 1rem;
  padding: 0 1.5rem;
}

/* Ambient glow behind video */
.stats-video-glow {
  position: absolute;
  inset: -60px;
  background: radial-gradient(ellipse at center, rgba(var(--cl-accent), 0.18) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
  animation: svglow 6s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes svglow {
  0%   { opacity: 0.6; transform: scale(0.95); }
  100% { opacity: 1;   transform: scale(1.05); }
}

/* Animated border frame */
.stats-video-border {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  padding: 3px;
  background: linear-gradient(
    135deg,
    rgba(var(--cl-accent), 0.8) 0%,
    rgba(var(--cl-accent), 0.3) 25%,
    rgba(255,255,255,0.05) 50%,
    rgba(var(--cl-accent), 0.3) 75%,
    rgba(var(--cl-accent), 0.8) 100%
  );
  background-size: 300% 300%;
  animation: svborder 4s linear infinite;
  box-shadow:
    0 0 25px rgba(var(--cl-accent), 0.25),
    0 0 60px rgba(var(--cl-accent), 0.1),
    inset 0 0 30px rgba(var(--cl-accent), 0.05);
}
@keyframes svborder {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Video container — 16:9 */
.stats-video-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}
.stats-video-inner iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border-radius: 18px;
  display: block;
}

/* Subtle scanline overlay */
.stats-video-scanline {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.04) 2px,
    rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
  z-index: 2;
}

/* Corner accent dots */
.stats-video-border::before,
.stats-video-border::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgb(var(--cl-accent));
  box-shadow: 0 0 10px rgba(var(--cl-accent),0.8), 0 0 20px rgba(var(--cl-accent),0.4);
  animation: svdot 2s ease-in-out infinite alternate;
  z-index: 3;
}
.stats-video-border::before { top: -6px; left: -6px; }
.stats-video-border::after  { bottom: -6px; right: -6px; animation-delay: 1s; }
@keyframes svdot {
  0%   { opacity: 0.5; transform: scale(0.8); }
  100% { opacity: 1;   transform: scale(1.2); }
}

/* ============================================================
   STATS — REDISEÑO (números abiertos, sin tarjetas)
   ============================================================ */

.stats-new-wrap {
  padding: 2.5rem 1.5rem 0;
  max-width: 84rem;
  margin: 0 auto;
}

.stats-new-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 1rem;
}

.stat-new-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.5rem 3rem;
  position: relative;
  text-align: center;
}

.stat-new-sep {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, transparent, rgba(var(--cl-accent), 0.4) 50%, transparent);
  flex-shrink: 0;
  align-self: center;
}
@media (max-width: 640px) {
  .stat-new-sep { display: none; }
  .stat-new-item { padding: 1rem 1.5rem; width: 50%; }
  .stats-new-grid { row-gap: 0.5rem; }
}

.stat-new-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(var(--cl-accent));
  margin-bottom: 0.2rem;
}

.stat-new-number {
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: rgb(var(--cl-t-primary));
  background: linear-gradient(135deg, rgb(var(--cl-t-primary)) 30%, rgba(var(--cl-accent), 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(var(--cl-accent), 0.35));
}

.stat-new-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgb(var(--cl-t-muted));
  margin-top: 0.1rem;
}
