/*
Theme Name: Astra Child
Template: astra
Version: 1.0
Description: Tema hijo de Bloxyfrutas — portal gaming de la comunidad de Bloxy
*/

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --bf-bg:         #0a0a0f;
  --bf-bg-card:    #111118;
  --bf-bg-alt:     #0d0d14;
  --bf-border:     #1e1e2e;
  --bf-blue:       #1a2744;
  --bf-gold:       #F5C518;
  --bf-gold-dim:   #c49a10;
  --bf-text:       #f0f0f5;
  --bf-text-muted: #8888aa;

  --bf-radius:     6px;
  --bf-radius-lg:  12px;

  --bf-font:       'Inter', system-ui, -apple-system, sans-serif;
  --bf-font-display: 'Inter', system-ui, -apple-system, sans-serif;

  --bf-transition: 180ms ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bf-bg);
  color: var(--bf-text);
  font-family: var(--bf-font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ============================================================
   ASTRA OVERRIDES — fondo oscuro y reset de espaciado
   ============================================================ */

/* Fondo oscuro en todos los wrappers */
html,
body,
#page,
.site,
.site-content,
#content,
#primary,
.ast-article-single,
.ast-article-post,
.entry-content,
.post-content,
.page-content,
.ast-container,
.ast-row,
.ast-grid-common-inner,
.ast-separate-container .ast-article-single,
.ast-plain-container .site-content,
.ast-page-builder-template .site-content,
.hfeed,
main.site-main {
  background-color: #0a0a0f !important;
  background: #0a0a0f !important;
  color: #f0f0f5 !important;
}

/* Reset de ancho en toda la cadena de contenedores */
#page,
.site,
.site-content,
#content,
#primary,
#primary.content-area,
.ast-container,
.ast-row,
.entry-content,
.ast-article-single,
.ast-article-post,
article.page,
article.post {
  max-width: 100% !important;
  width: 100% !important;
  float: none !important;
  box-sizing: border-box !important;
}

/* Elimina solo el padding, conserva margin:auto para que los bloques sigan centrados */
#content,
#primary,
#primary.content-area,
.entry-content,
.ast-article-single,
.ast-article-post,
article.page,
article.post {
  padding: 0 !important;
}

/* Elimina el padding lateral que Astra añade por layout */
.ast-separate-container .entry-content,
.ast-plain-container .entry-content,
.ast-page-builder-template .entry-content,
.single-post .entry-content,
.page .entry-content,
.ast-separate-container #primary,
.ast-plain-container #primary,
.ast-no-sidebar #primary {
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Variables internas de Astra que limitan el ancho del contenido */
:root {
  --ast-content-width: 100% !important;
  --ast-single-width: 100% !important;
}

/* Header de Astra — fondo oscuro */
.site-header,
#masthead,
.ast-masthead-custom-menu-items,
.main-header-bar,
.main-header-bar-wrap,
.ast-primary-header-bar {
  background-color: #0a0a0f !important;
  border-bottom: 1px solid #1e1e2e !important;
  box-shadow: none !important;
}

/* Padding lateral del logo en páginas interiores.
   En la home el wrapper del hero ya da margen visual; en /mercado/, /tienda/,
   /frutas/, /guias/, /tradeos/, /codigos/, /servidor/, /sorteos/ el logo
   queda pegado al borde porque sus templates fuerzan max-width:100% y
   padding:0 en toda la cadena de contenedores Astra (ver overrides arriba).
   Solución: padding solo en el branding del header, no afecta al contenido. */
body:not(.home) .ast-primary-header-bar,
body:not(.home) .main-header-bar-wrap,
body:not(.home) .main-header-bar {
  padding-inline: clamp(1.25rem, 5vw, 3rem) !important;
}

/* En home el bf-hero ya ocupa 100vw con su propio padding interno y no
   queremos doblar márgenes. Para móviles muy pequeños, garantía mínima. */
@media (max-width: 480px) {
  .ast-primary-header-bar,
  .main-header-bar-wrap {
    padding-inline: 1rem !important;
  }
}

/* Color de links y texto del header */
.main-header-bar a,
.main-header-bar .ast-search-icon,
.main-header-bar .menu-item a {
  color: #f0f0f5 !important;
}

/* ---- Logo: BLOXY(blanco) + FRUTAS(dorado) ---- */
.site-title a,
.site-title a:hover,
.site-title a:visited {
  font-size: 1.3rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  color: transparent !important;
  background: none !important;
  cursor: pointer !important;
  /* Ocultamos el texto real y lo reemplazamos con ::before/::after */
  font-size: 0 !important;
  line-height: 1 !important;
}

.site-title a::before {
  content: 'BLOXY';
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #f0f0f5;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.site-title a::after {
  content: 'FRUTAS';
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #F5C518;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Menú de navegación del header */
.main-header-bar .menu-item a {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  color: #f0f0f5 !important;
  transition: color 180ms ease !important;
  padding: 0.25rem 0 !important;
  margin-inline: 0.85rem !important;
  position: relative !important;
}

.main-header-bar .menu-item a::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #F5C518;
  transition: width 180ms ease;
}

.main-header-bar .menu-item a:hover {
  color: #F5C518 !important;
}

.main-header-bar .menu-item a:hover::after {
  width: 100%;
}

/* Footer de Astra */
.site-footer,
#colophon,
.footer-widget-area,
.ast-small-footer {
  background-color: #0a0a0f !important;
  border-top: 1px solid #1e1e2e !important;
  color: #8888aa !important;
}

/* Sidebar y wrappers flotantes */
.widget-area,
.secondary,
.ast-page-builder-template #content,
.ast-full-width-layout #content,
.ast-no-sidebar #content {
  background-color: #0a0a0f !important;
  padding: 0 !important;
}

/* El main wrapper de la home ocupa todo */
#bloxy-home {
  width: 100%;
  max-width: 100%;
  display: block;
  overflow: hidden;
}

/* ============================================================
   UTILIDADES
   ============================================================ */
.bf-accent {
  color: var(--bf-gold);
}

.bf-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* ============================================================
   BOTONES
   ============================================================ */
.bf-btn {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: var(--bf-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--bf-transition),
              color var(--bf-transition),
              border-color var(--bf-transition),
              transform var(--bf-transition);
  white-space: nowrap;
}

/* Variante grande — botones prominentes con forma de pill */
.bf-btn--lg {
  font-size: 1rem;
  padding: 1.05rem 2.4rem;
  border-radius: 50px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
}
.bf-btn--lg:hover,
.bf-btn--lg:focus-visible {
  transform: translateY(-2px);
}

/* Botón outline (borde blanco sutil, fondo transparente) */
.bf-btn--outline {
  background-color: transparent !important;
  color: var(--bf-text);
  border: 1px solid rgba(255,255,255,0.3);
}
.bf-btn--outline:hover,
.bf-btn--outline:focus-visible {
  border-color: var(--bf-text);
  background-color: rgba(255,255,255,0.05) !important;
  color: var(--bf-text);
}

.bf-btn--primary {
  background-color: var(--bf-gold);
  color: #0a0a0f;
  border-color: var(--bf-gold);
}

.bf-btn--primary:hover,
.bf-btn--primary:focus-visible {
  background-color: var(--bf-gold-dim);
  border-color: var(--bf-gold-dim);
}

.bf-btn--ghost {
  background-color: transparent;
  color: var(--bf-text);
  border-color: var(--bf-border);
}

.bf-btn--ghost:hover,
.bf-btn--ghost:focus-visible {
  border-color: var(--bf-gold);
  color: var(--bf-gold);
}

.bf-btn--card {
  background-color: transparent;
  color: var(--bf-gold);
  border-color: var(--bf-gold);
  font-size: 0.8rem;
  padding: 0.6rem 1.25rem;
}

.bf-btn--card:hover,
.bf-btn--card:focus-visible {
  background-color: var(--bf-gold);
  color: #0a0a0f;
}

/* ============================================================
   HERO — dos columnas, texto izquierda + arte derecha
   ============================================================ */
.bf-hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.5rem, 1.5vw, 1.25rem) clamp(1.25rem, 5vw, 3rem) clamp(3rem, 5vw, 4rem);
  overflow: hidden;
  /* Ocupa 100% del viewport lateral aunque el padre tenga max-width */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  /* Fondo con gradiente suave animado entre 3 tonos oscuros.
     Sin formas ni círculos — solo colores que se funden y recorren
     el viewport en un ciclo lento (16s). */
  background:
    linear-gradient(135deg,
      #0a0a0f 0%,
      #1a1a0f 25%,
      #0a0a0f 50%,
      #0d0d1a 75%,
      #0a0a0f 100%);
  background-size: 300% 300%;
  background-repeat: no-repeat;
  animation: bf-hero-bg 16s ease-in-out infinite;
}
@keyframes bf-hero-bg {
  0%       { background-position:   0%   0%; }
  25%      { background-position: 100%  50%; }
  50%      { background-position:  50% 100%; }
  75%      { background-position:   0%  50%; }
  100%     { background-position:   0%   0%; }
}
@media (prefers-reduced-motion: reduce) {
  .bf-hero { animation: none; }
}

/* Cuadrícula sutil superpuesta — líneas blancas muy tenues, se funden
   en los bordes con una máscara radial para no distraer. */
.bf-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right,  rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, #000 40%, transparent 90%);
          mask-image: radial-gradient(ellipse 70% 70% at center, #000 40%, transparent 90%);
}

.bf-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  width: 100%;
  max-width: 1480px;
  /* Pegado más al lado izquierdo del viewport */
  padding-left: clamp(0.5rem, 3vw, 3rem);
  padding-right: clamp(0.5rem, 2vw, 1.5rem);
}

/* ── Columna izquierda: texto ─────────────────────────── */
.bf-hero__text {
  text-align: left;
  min-width: 0;
}
.bf-hero__title {
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--bf-text);
  margin: 0 0 1.1rem;
}
.bf-hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--bf-text-muted);
  line-height: 1.5;
  margin: 0 0 2rem;
  max-width: 480px;
}
.bf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ── Columna derecha: imagen + cards flotantes ────────── */
.bf-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}
/* El wrap ahora se ajusta a la altura natural de la imagen (sin aspect-ratio),
   para que las cards flotantes queden en las esquinas REALES de la imagen
   y no en un cuadrado vacío. */
.bf-hero__visual-wrap {
  position: relative;
  width: 100%;
  max-width: 620px;
  display: inline-block;
  line-height: 0;
}
.bf-hero__visual-frame {
  width: 100%;
  background: transparent;
  border: 0;
  overflow: visible;
  line-height: 0;
}
/* Imagen grande, esquinas redondeadas, halo dorado */
.bf-hero__visual-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  filter:
    drop-shadow(0 0 70px rgba(245,197,24,0.18))
    drop-shadow(0 20px 40px rgba(0,0,0,0.55));
}

/* Cards flotantes */
.bf-hero__float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.15rem;
  background: rgba(13,13,22,0.88);
  border: 1px solid var(--bf-border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-width: 180px;
  z-index: 2;
  animation: bf-float 4s ease-in-out infinite;
}
/* Cards "pinchadas" en las esquinas de la imagen: medio dentro, medio fuera */
.bf-hero__float--tr {
  top: -28px;
  right: -40px;
  animation-delay: 0s;
}
.bf-hero__float--bl {
  bottom: -28px;
  left: -40px;
  animation-delay: 2s;
}
.bf-hero__float-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}
.bf-hero__float-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--bf-text);
  line-height: 1.1;
  margin-bottom: 2px;
}
.bf-hero__float-sub {
  font-size: 0.72rem;
  color: var(--bf-text-muted);
  line-height: 1.1;
}

@keyframes bf-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .bf-hero__float { animation: none; }
}

/* ── Responsive: stack vertical en <900px ─────────────── */
@media (max-width: 900px) {
  .bf-hero__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .bf-hero__text { text-align: center; order: 2; }
  .bf-hero__sub { margin-inline: auto; }
  .bf-hero__actions { justify-content: center; }
  .bf-hero__visual { order: 1; }
  .bf-hero__visual-wrap { max-width: 320px; }
  .bf-hero__float { min-width: 160px; padding: 0.7rem 0.95rem; }
  .bf-hero__float--tr { top: -14px; right: -14px; }
  .bf-hero__float--bl { bottom: -14px; left: -14px; }
}

@media (max-width: 520px) {
  .bf-hero__actions .bf-btn { width: 100%; max-width: 320px; }
  .bf-hero__float { min-width: 0; }
  .bf-hero__float-sub { display: none; }
}

/* Indicador de scroll: flecha dorada animada abajo del hero */
.bf-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bf-gold);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity var(--bf-transition);
  z-index: 2;
}
.bf-hero__scroll:hover { opacity: 1; }
.bf-hero__scroll-arrow {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  animation: bf-scroll-bounce 2s ease-in-out infinite;
}
@keyframes bf-scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%      { transform: translateY(8px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .bf-hero__scroll-arrow { animation: none; }
}

/* ============================================================
   SECCIONES
   ============================================================ */
.bf-section {
  padding: clamp(120px, 12vw, 180px) 0;
  border-bottom: 1px solid var(--bf-border);
  width: 100%;
  box-sizing: border-box;
}

.bf-section--alt {
  background-color: var(--bf-bg-alt);
}

.bf-section__header {
  text-align: center;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.bf-section__title {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  color: var(--bf-text);
}

.bf-section__title::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  background-color: var(--bf-gold);
  margin: 1.2rem auto 0;
}

.bf-section__desc {
  color: var(--bf-text-muted);
  font-size: 1.1rem;
  line-height: 1.5;
  max-width: 600px;
  margin: 1.25rem auto 0;
}

.bf-section__cta {
  margin-top: 3rem;
  text-align: center;
}

/* ============================================================
   HERRAMIENTAS — GRID DE CARDS
   ============================================================ */
.bf-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

/* 3 columnas en desktop (6 cards → 3×2 equilibrado) */
.bf-tools-grid--4 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .bf-tools-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .bf-tools-grid--4 { grid-template-columns: 1fr; }
}

/* Card = anchor clickeable completa. Sin botón interno. */
.bf-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background-color: var(--bf-bg-card);
  border: 1px solid var(--bf-border);
  border-radius: var(--bf-radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 2.5vw, 2rem);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--bf-transition),
              transform var(--bf-transition),
              background-color var(--bf-transition),
              box-shadow var(--bf-transition);
}

.bf-card:hover,
.bf-card:focus-visible {
  border-color: var(--bf-gold);
  transform: translateY(-4px);
  background-color: var(--bf-bg-alt);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3),
              0 0 0 1px rgba(245,197,24,0.08);
  outline: none;
}

.bf-card__icon {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--bf-gold);
  margin-bottom: 0.25rem;
}

.bf-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bf-text);
  letter-spacing: -0.01em;
  margin: 0;
}

.bf-card__desc {
  color: var(--bf-text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

/* ============================================================
   VÍDEOS — GRID DE EMBEDS
   ============================================================ */
.bf-videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.bf-video-card {
  background-color: var(--bf-bg-card);
  border: 1px solid var(--bf-border);
  border-radius: var(--bf-radius-lg);
  overflow: hidden;
  transition: border-color var(--bf-transition), transform var(--bf-transition);
}

.bf-video-card:hover {
  border-color: var(--bf-gold);
  transform: translateY(-3px);
}

.bf-video-card__embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

.bf-video-card__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.bf-video-card__title {
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bf-text-muted);
  line-height: 1.4;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- Tablet: 481px – 768px --------------------------------- */
@media (max-width: 768px) {
  .bf-hero__title {
    font-size: clamp(2.5rem, 10vw, 3.75rem);
  }

  .bf-hero__sub {
    font-size: 1rem;
  }

  .bf-hero__nav {
    gap: 0.65rem;
  }

  .bf-tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .bf-videos-grid {
    grid-template-columns: 1fr;
  }

  .bf-section__header {
    text-align: center;
  }

  .bf-section__title::after {
    margin-inline: auto;
  }
}

/* --- Móvil: ≤ 480px ---------------------------------------- */
@media (max-width: 480px) {
  .bf-hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
    min-height: 60vh;
  }

  .bf-hero__inner {
    align-items: center;
  }

  .bf-hero__title {
    font-size: clamp(2.25rem, 14vw, 3rem);
    word-break: break-word;
  }

  .bf-hero__sub {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .bf-hero__nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
  }

  .bf-btn {
    width: 100%;
    text-align: center;
    display: block;
    white-space: normal;
  }

  .bf-tools-grid,
  .bf-videos-grid {
    grid-template-columns: 1fr;
  }

  .bf-card {
    padding: 1.5rem 1.25rem;
  }

  .bf-section__header {
    text-align: center;
  }

  .bf-section__title::after {
    margin-inline: auto;
  }

  .bf-section__cta .bf-btn {
    width: 100%;
    max-width: 320px;
  }
}

/* ============================================================
   MIRAGE ISLAND STOCK
   ============================================================ */
.bf-mirage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.bf-mirage-card {
  background-color: var(--bf-bg-card);
  border: 1px solid var(--bf-border);
  border-radius: var(--bf-radius-lg);
  padding: 1.1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  transition: transform var(--bf-transition),
              border-color var(--bf-transition),
              box-shadow var(--bf-transition);
}
.bf-mirage-card:hover {
  transform: translateY(-3px);
  border-color: var(--bf-gold);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

.bf-mirage-card__img-wrap {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(245,197,24,0.08), transparent 70%);
  border-radius: 12px;
}
.bf-mirage-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.45));
}
.bf-mirage-card__placeholder {
  font-size: 2.2rem;
  opacity: 0.45;
}

.bf-mirage-card__name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--bf-text);
  text-align: center;
  line-height: 1.25;
}
.bf-mirage-card__price {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--bf-gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.bf-mirage-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--bf-text-muted);
  background: var(--bf-bg-card);
  border: 1px dashed var(--bf-border);
  border-radius: var(--bf-radius-lg);
  font-size: 0.95rem;
}

/* ============================================================
   TIENDA — preview compacto en la home (Mirage + Normal)
   ============================================================ */
.bf-shop-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 720px) {
  .bf-shop-cols { grid-template-columns: 1fr; }
}

.bf-shop-col {
  background-color: var(--bf-bg-card);
  border: 1px solid var(--bf-border);
  border-radius: var(--bf-radius-lg);
  padding: 1.4rem 1.25rem;
}
.bf-shop-col__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--bf-border);
  color: var(--bf-text);
}
.bf-shop-col__title span { font-size: 1.15rem; line-height: 1; }

.bf-shop-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.bf-shop-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  transition: background-color 0.18s ease;
}
.bf-shop-item:hover { background: var(--bf-bg-alt); }
.bf-shop-item__img {
  width: 28px; height: 28px; object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.bf-shop-item__img--placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; opacity: 0.5;
}
.bf-shop-item__name {
  font-size: 0.92rem;
  color: var(--bf-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bf-shop-item__price {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--bf-gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.bf-shop-empty {
  color: var(--bf-text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem 0.5rem;
  font-style: italic;
}

/* ============================================================
   PÁGINAS SIMPLES (Servidor, Sorteos) — hero + info cards
   ============================================================ */

/* Astra overrides para páginas fullwidth simples */
body.page-template-page-servidor,
body.page-template-page-servidor #page,
body.page-template-page-servidor .site,
body.page-template-page-servidor .site-content,
body.page-template-page-servidor #content,
body.page-template-page-servidor #primary,
body.page-template-page-servidor .ast-container,
body.page-template-page-servidor .ast-row,
body.page-template-page-servidor .entry-content,
body.page-template-page-servidor article,
body.page-template-page-servidor main,
body.page-template-page-sorteos,
body.page-template-page-sorteos #page,
body.page-template-page-sorteos .site,
body.page-template-page-sorteos .site-content,
body.page-template-page-sorteos #content,
body.page-template-page-sorteos #primary,
body.page-template-page-sorteos .ast-container,
body.page-template-page-sorteos .ast-row,
body.page-template-page-sorteos .entry-content,
body.page-template-page-sorteos article,
body.page-template-page-sorteos main {
  background-color: #0a0a0f !important;
  color: #f0f0f5 !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  overflow: visible !important;
}

.bf-simple-page, .bf-simple-page * { box-sizing: border-box; }

.bf-simple-page {
  min-height: 100vh;
  background-color: var(--bf-bg);
  background-image: radial-gradient(rgba(245,197,24,0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--bf-text);
  font-family: var(--bf-font);
  padding-bottom: 4rem;
}

.bf-simple-page__hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem) clamp(2rem, 4vw, 3rem);
}
.bf-simple-page__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
  color: var(--bf-text);
}
.bf-simple-page__title span { color: var(--bf-gold); }
.bf-simple-page__sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--bf-text-muted);
  line-height: 1.55;
  margin: 0 auto 2.2rem;
  max-width: 640px;
}

/* Grid de 3 info cards */
.bf-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}
@media (max-width: 720px) {
  .bf-info-grid { grid-template-columns: 1fr; }
}

.bf-info-card {
  background: var(--bf-bg-card);
  border: 1px solid var(--bf-border);
  border-radius: var(--bf-radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: border-color var(--bf-transition), transform var(--bf-transition);
}
.bf-info-card:hover {
  border-color: var(--bf-gold);
  transform: translateY(-3px);
}
.bf-info-card__icon {
  font-size: 1.9rem;
  line-height: 1;
  margin-bottom: 0.8rem;
}
.bf-info-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  color: var(--bf-text);
  letter-spacing: -0.005em;
}
.bf-info-card__desc {
  color: var(--bf-text-muted);
  font-size: 0.93rem;
  line-height: 1.55;
  margin: 0;
}
.bf-info-card__desc b { color: var(--bf-text); font-weight: 600; }

/* Badge "EN VIVO" parpadeante */
.bf-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #ef4444;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}
.bf-live-badge__dot {
  width: 8px; height: 8px;
  background: #ef4444;
  border-radius: 50%;
  animation: bf-live-pulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(239,68,68,0.7);
}
@keyframes bf-live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.6); opacity: 1; }
  50%      { box-shadow: 0 0 0 8px rgba(239,68,68,0);  opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .bf-live-badge__dot { animation: none; }
}

/* ============================================================
   REGLAS DEL SERVIDOR + AVISO DESTACADO
   ============================================================ */
.bf-rules {
  max-width: 1000px;
  margin: clamp(3rem, 5vw, 4rem) auto 0;
  padding: 0 clamp(1rem, 4vw, 2rem);
  text-align: center;
}
.bf-rules__title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
  color: var(--bf-text);
}
.bf-rules__sub {
  color: var(--bf-text-muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto 2.2rem;
}

/* Lista de reglas — 2 columnas en desktop, 1 en móvil */
.bf-rules__list {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  text-align: left;
}
@media (max-width: 720px) {
  .bf-rules__list { grid-template-columns: 1fr; }
}

.bf-rule {
  display: grid;
  grid-template-columns: 28px 36px 1fr;
  align-items: start;
  gap: 0.6rem;
  background: var(--bf-bg-card);
  border: 1px solid var(--bf-border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  transition: border-color var(--bf-transition), transform var(--bf-transition);
}
.bf-rule:hover {
  border-color: var(--bf-gold);
  transform: translateY(-2px);
}
.bf-rule__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(245,197,24,0.12);
  border: 1px solid var(--bf-gold);
  color: var(--bf-gold);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}
.bf-rule__number {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--bf-gold);
  letter-spacing: 0.05em;
  background: var(--bf-bg-alt);
  border: 1px solid var(--bf-border);
  border-radius: 6px;
  padding: 3px 7px;
  align-self: start;
  margin-top: 1px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.bf-rule__text {
  color: var(--bf-text);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* Caja de aviso destacada (rojo/naranja) */
.bf-warning {
  background:
    linear-gradient(135deg, rgba(239,68,68,0.08), rgba(249,115,22,0.06));
  border: 2px solid rgba(239,68,68,0.55);
  border-radius: 14px;
  padding: 1.75rem clamp(1.25rem, 3vw, 2rem);
  text-align: left;
  box-shadow: 0 0 0 4px rgba(239,68,68,0.08);
}
.bf-warning__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}
.bf-warning__icon { font-size: 1.4rem; line-height: 1; }
.bf-warning__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ef4444;
  margin: 0;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bf-warning__text {
  color: var(--bf-text);
  line-height: 1.6;
  font-size: 0.96rem;
  margin: 0 0 1.3rem;
}
.bf-warning__text b { color: #ef4444; font-weight: 700; }

/* Variante del botón — rojo/naranja para el CTA del aviso */
.bf-btn--danger {
  background-color: #ef4444;
  color: #fff;
  border-color: #ef4444;
  text-transform: none;
  font-weight: 600;
}
.bf-btn--danger:hover,
.bf-btn--danger:focus-visible {
  background-color: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

/* ============================================================
   MOBILE DRAWER (Astra Header Footer Builder)
   ────────────────────────────────────────────
   Selectores reales verificados en DevTools sobre /
     body.ast-main-header-nav-open  (clase añadida al abrir el drawer)
     .ast-builder-menu-mobile        (contenedor de la barra mobile)
     .ast-mobile-popup-content       (panel del drawer)
     nav.site-navigation.ast-mobile-site-navigation
       └─ ul#menu-principal-1.main-header-menu.main-navigation.nav-menu
            └─ li.menu-item > a.menu-link
   ============================================================ */

/* Fondo y color base del drawer + sus contenedores. Se aplica solo cuando
   el drawer está abierto (body.ast-main-header-nav-open) o en breakpoints
   móviles para que el header off-canvas no herede blancos del tema padre. */
body.ast-main-header-nav-open .ast-builder-menu-mobile,
body.ast-main-header-nav-open .ast-mobile-popup-content,
body.ast-main-header-nav-open .ast-mobile-site-navigation,
body.ast-main-header-nav-open .main-header-menu {
  background-color: var(--bf-bg) !important;
  color: var(--bf-text) !important;
}

/* Items del menú principal dentro del drawer */
body.ast-main-header-nav-open .main-header-menu li.menu-item > a.menu-link {
  color: var(--bf-text) !important;
  background-color: transparent !important;
  border-bottom: 1px solid var(--bf-border);
  padding: 1rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: color var(--bf-transition), background-color var(--bf-transition);
}

body.ast-main-header-nav-open .main-header-menu li.menu-item > a.menu-link:hover,
body.ast-main-header-nav-open .main-header-menu li.menu-item > a.menu-link:focus,
body.ast-main-header-nav-open .main-header-menu li.menu-item.current-menu-item > a.menu-link {
  color: var(--bf-gold) !important;
  background-color: rgba(245, 197, 24, 0.08) !important;
}

/* Submenús */
body.ast-main-header-nav-open .main-header-menu .sub-menu {
  background-color: var(--bf-bg-alt) !important;
}
body.ast-main-header-nav-open .main-header-menu .sub-menu li > a.menu-link {
  color: var(--bf-text-muted) !important;
  padding-left: 2.25rem;
}
body.ast-main-header-nav-open .main-header-menu .sub-menu li > a.menu-link:hover {
  color: var(--bf-gold) !important;
}

/* X de cerrar el menú + caret del trigger */
body.ast-main-header-nav-open .menu-toggle-close,
body.ast-main-header-nav-open .menu-toggle .ast-icon,
body.ast-main-header-nav-open .ast-mobile-svg {
  color: var(--bf-text) !important;
  fill: var(--bf-text) !important;
}
body.ast-main-header-nav-open .menu-toggle-close:hover,
body.ast-main-header-nav-open .menu-toggle .ast-icon:hover {
  color: var(--bf-gold) !important;
  fill: var(--bf-gold) !important;
}

/* Trigger del hamburger (cuando el drawer NO está abierto, en móvil) */
@media (max-width: 921px) {
  .menu-toggle,
  .ast-button-wrap .menu-toggle,
  .ast-mobile-menu-trigger-minimal,
  .ast-mobile-menu-trigger-fill {
    background-color: transparent !important;
    color: var(--bf-text) !important;
    border-color: var(--bf-border) !important;
  }
  .menu-toggle:hover,
  .ast-mobile-menu-trigger-minimal:hover,
  .ast-mobile-menu-trigger-fill:hover {
    color: var(--bf-gold) !important;
  }
  .menu-toggle .ast-mobile-svg,
  .menu-toggle svg {
    fill: currentColor !important;
  }

  /* Header móvil oscuro tanto con drawer cerrado como abierto */
  .ast-mobile-header-content,
  .main-header-bar.ast-builder-grid-row-container,
  .ast-builder-grid-row-container.site-header-focus-item {
    background-color: var(--bf-bg) !important;
  }
}
