/* ============================================
   DEADLOCK MÉXICO — Home Page
   ============================================ */

/* ── Hero ── */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 60px 0 50px;
}

/* Fondo hero con efecto hex-grid */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 35%, rgba(224, 160, 96, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 45% 45% at 18% 80%, rgba(192, 124, 58, 0.10) 0%, transparent 62%),
    radial-gradient(ellipse 50% 50% at 82% 25%, rgba(0, 212, 255, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 50% 95%, rgba(47, 232, 154, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-scan {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-scan::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(224,160,96,0.35), transparent);
  animation: scan-line 7s linear infinite;
  top: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
  padding: 6px 16px;
  border: 1px solid var(--cyan-border);
  border-radius: 20px;
  background: var(--cyan-glow);
  opacity: 1;
}

.hero-title {
  font-size: clamp(48px, 9vw, 90px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 1;
}
.hero-title .line-1 {
  display: block;
  font-family: var(--font-head);
  background: linear-gradient(180deg, #f6e0bd 0%, #e0a060 38%, #c07c3a 62%, #8a5a28 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 1px rgba(0,0,0,0.6)) drop-shadow(0 0 26px rgba(224,160,96,0.28));
}
.hero-title .line-2 {
  display: block;
  font-family: var(--font-head);
  letter-spacing: 0.16em;
  background: linear-gradient(180deg, #aef0ff 0%, #00d4ff 50%, #0a8fb0 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(0,212,255,0.45)) drop-shadow(0 2px 1px rgba(0,0,0,0.5));
}
.hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 6px auto 2px;
  max-width: 460px;
  opacity: 0.9;
}
.hero-ornament .deco-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--bronze), transparent);
}
.hero-ornament .deco-gem {
  width: 9px; height: 9px;
  transform: rotate(45deg);
  border: 1px solid var(--bronze-light);
  background: rgba(224,160,96,0.18);
  flex-shrink: 0;
}
.hero-ornament .deco-gem.soul-gem {
  border-color: var(--soul);
  background: rgba(47,232,154,0.25);
  box-shadow: 0 0 8px rgba(47,232,154,0.4);
}

.hero-subtitle {
  font-size: clamp(15px, 2.5vw, 19px);
  color: var(--text-muted);
  max-width: 520px;
  margin: 20px auto 36px;
  line-height: 1.7;
  opacity: 1;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 1;
}

/* Stats bar */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 56px;
  opacity: 1;
}
.hero-stat {
  text-align: center;
  padding: 0 32px;
  position: relative;
}
.hero-stat + .hero-stat::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--border-bronze);
}
.hero-stat-number {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 400;
  color: var(--cyan);
  line-height: 1;
}
.hero-stat-number.bronze { color: var(--bronze-light); }
.hero-stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 4px;
  font-family: var(--font-head);
}

/* ── Sección: Próximo torneo ── */
.next-tournament {
  padding: 60px 0;
}
.tournament-banner {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 212, 255, 0.03) 100%);
  border: 1px solid var(--cyan-border);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.tournament-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--cyan-glow) 0%, transparent 50%);
  pointer-events: none;
}
.tournament-banner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.tournament-info { position: relative; z-index: 1; }
.tournament-title {
  font-size: 26px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.tournament-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.tournament-meta span {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.tournament-prize {
  position: relative;
  z-index: 1;
  text-align: right;
  flex-shrink: 0;
}
.tournament-prize-amount {
  font-family: var(--font-mono);
  font-size: 32px;
  color: var(--bronze-light);
  line-height: 1;
  text-shadow: 0 0 20px rgba(192,124,58,0.4);
}
.tournament-prize-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 4px;
}
.tournament-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* ── Sección: Top 3 Ranking ── */
.ranking-section { padding: 60px 0; }

.podium {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 24px;
}
.podium-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.podium-card:hover { transform: translateY(-4px); }
.podium-card.place-1 {
  border-color: rgba(255, 215, 0, 0.35);
  background: linear-gradient(180deg, rgba(255,215,0,0.05) 0%, var(--bg-card) 60%);
  padding-top: 32px;
}
.podium-card.place-1::before {
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.3), transparent);
}
.podium-card.place-2 {
  border-color: rgba(170, 180, 196, 0.25);
}
.podium-card.place-3 {
  border-color: var(--border-bronze);
  background: linear-gradient(180deg, rgba(192,124,58,0.04) 0%, var(--bg-card) 60%);
}

.podium-crown {
  position: absolute;
  top: -2px; left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
  line-height: 1;
}
.podium-rank {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 8px;
}
.place-1 .podium-rank { color: #ffd700; text-shadow: 0 0 20px rgba(255,215,0,0.5); }
.place-2 .podium-rank { color: #aab4c4; }
.place-3 .podium-rank { color: var(--bronze-light); }

.podium-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: var(--bg-surface);
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  position: relative;
}
.place-1 .podium-avatar { border-color: #ffd700; color: #ffd700; box-shadow: 0 0 20px rgba(255,215,0,0.3); }
.place-2 .podium-avatar { border-color: #aab4c4; color: #aab4c4; }
.place-3 .podium-avatar { border-color: var(--bronze-light); color: var(--bronze-light); }

.podium-name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}
.podium-animas {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}
.podium-animas span { color: var(--cyan); }

.podium-badges {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* ── Sección: Noticias ── */
.news-section { padding: 60px 0; }

.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.news-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  transition: background var(--transition);
}
.news-card:hover { border-color: var(--cyan-border); transform: translateY(-2px); }
.news-card:hover::before { background: linear-gradient(90deg, transparent, var(--cyan-border), transparent); }
.news-card.featured { grid-row: span 2; }

.news-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.news-title {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}
.news-card.featured .news-title { font-size: 22px; }
.news-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.news-meta a {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
}
.news-meta a:hover { color: var(--cyan); }

/* ── Sección: Foro preview ── */
.forum-preview { padding: 60px 0; }
.forum-threads {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.forum-thread {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}
.forum-thread:hover {
  border-color: var(--cyan-border);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}
.forum-thread-cat {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.thread-general { background: rgba(0,212,255,0.1); }
.thread-torneo  { background: rgba(255,215,0,0.1); }
.thread-meta    { background: rgba(192,124,58,0.1); }
.thread-ayuda   { background: rgba(0,232,120,0.1); }

.forum-thread-info { flex: 1; min-width: 0; }
.forum-thread-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}
.forum-thread-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.forum-thread-stats {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  flex-shrink: 0;
}

/* ── Sección: CTA final ── */
.cta-section {
  padding: 80px 0;
  text-align: center;
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(0,212,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-size: clamp(32px, 6vw, 52px);
  margin-bottom: 16px;
  position: relative;
}
.cta-subtitle {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 36px;
  font-size: 16px;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
  background: var(--bg-card);
  padding: 48px 0 24px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0,212,255,0.04) 10%,
    rgba(0,212,255,0.22) 40%,
    rgba(192,124,58,0.18) 60%,
    rgba(0,212,255,0.04) 90%,
    transparent 100%
  );
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.footer-brand { }
.footer-logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.footer-logo span { color: var(--cyan); }
.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 240px;
}
.footer-col-title {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--cyan); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ── Responsive Home ── */
@media (max-width: 768px) {
  .hero { padding: 60px 0 40px; min-height: auto; padding-top: 100px; }
  .hero-stats { gap: 0; flex-wrap: wrap; }
  .hero-stat { padding: 12px 20px; }
  .tournament-banner { flex-direction: column; text-align: center; padding: 24px; }
  .tournament-prize { text-align: center; }
  .tournament-actions { flex-direction: row; }
  .podium { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto 24px; }
  .podium-card.place-1 { order: -1; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card.featured { grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ════════════════════════════════════════════════════════════
   HERO — Logo de agua Deadlock + Velas + Humo + Uncial Antiqua
   ════════════════════════════════════════════════════════════ */

/* Tipografía vintage/grabada para DEADLOCK */
.hero-title .line-1 {
  font-family: 'Cinzel Decorative', var(--font-head), serif;
  letter-spacing: 0.06em;
  /* Efecto grabado en metal: luz arriba, sombra abajo, halo cálido */
  filter:
    drop-shadow(0 -1px 0 rgba(255,240,200,0.4))
    drop-shadow(0 3px 2px rgba(0,0,0,0.8))
    drop-shadow(0 0 30px rgba(224,160,96,0.32));
}

/* Logo Deadlock (rueda+ojo) como marca de agua centrada detrás del hero */
.hero-logo-watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 85vw);
  height: min(520px, 85vw);
  opacity: 0.055;
  pointer-events: none;
  z-index: 1;
}
.hero-logo-watermark svg {
  width: 100%;
  height: 100%;
  animation: watermark-pulse 8s ease-in-out infinite;
}
@keyframes watermark-pulse {
  0%, 100% { opacity: 0.85; }
  50%       { opacity: 1; }
}

/* Velas: posicionadas en las esquinas del hero */
.hero-candles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-candle {
  position: absolute;
  bottom: 0;
}
.hero-candle svg { overflow: visible; }
.candle-l1 { left: 4%;  bottom: 0; width: 28px; }
.candle-l2 { left: 10%; bottom: 0; width: 20px; }
.candle-r1 { right: 4%; bottom: 0; width: 28px; }
.candle-r2 { right: 10%;bottom: 0; width: 20px; }

/* Humo difuso en la base del hero */
.hero-smoke {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-smoke-l {
  position: absolute;
  left: -20px; bottom: -20px;
  width: 280px; height: 180px;
  background: radial-gradient(ellipse at 30% 85%, rgba(20,55,40,0.42), transparent 65%);
  filter: blur(22px);
}
.hero-smoke-r {
  position: absolute;
  right: -20px; bottom: -20px;
  width: 280px; height: 180px;
  background: radial-gradient(ellipse at 70% 85%, rgba(20,55,40,0.38), transparent 65%);
  filter: blur(22px);
}
.hero-smoke-c {
  position: absolute;
  left: 50%; bottom: -30px;
  transform: translateX(-50%);
  width: 420px; height: 120px;
  background: radial-gradient(ellipse at 50% 90%, rgba(10,30,20,0.28), transparent 70%);
  filter: blur(28px);
}

/* Asegurar que el contenido del hero quede por encima de los elementos decorativos */
.hero-content { position: relative; z-index: 2; }

/* Móvil: ocultar velas laterales en pantallas muy estrechas */
@media (max-width: 480px) {
  .candle-l2, .candle-r2 { display: none; }
  .candle-l1 { left: 2%; }
  .candle-r1 { right: 2%; }
  .hero-logo-watermark { opacity: 0.04; }
}

/* ── Velas verdes fosforescentes con llama animada ── */

/* Animación de llama: oscila, se elonga y se aplana sutilmente */
@keyframes flame-sway {
  0%   { transform: scaleX(1)    scaleY(1)    skewX(0deg);   }
  20%  { transform: scaleX(0.88) scaleY(1.08) skewX(-4deg);  }
  40%  { transform: scaleX(1.06) scaleY(0.96) skewX(3deg);   }
  60%  { transform: scaleX(0.92) scaleY(1.06) skewX(-2deg);  }
  80%  { transform: scaleX(1.04) scaleY(0.98) skewX(4deg);   }
  100% { transform: scaleX(1)    scaleY(1)    skewX(0deg);   }
}
@keyframes flame-flicker {
  0%,100% { opacity: 0.78; }
  25%     { opacity: 0.62; }
  50%     { opacity: 0.85; }
  75%     { opacity: 0.70; }
}
/* glow de la vela parpadea con la llama */
@keyframes candle-glow {
  0%,100% { opacity: 0.22; }
  50%     { opacity: 0.38; }
}

/* contenedor de llama: solo la llama rota, no la cera */
.hero-candle .c-flame {
  transform-origin: bottom center;
  animation: flame-sway 2.4s ease-in-out infinite, flame-flicker 1.8s ease-in-out infinite;
}
.candle-l2 .c-flame { animation-delay: 0.4s, 0.7s; }
.candle-r1 .c-flame { animation-delay: 0.9s, 0.3s; }
.candle-r2 .c-flame { animation-delay: 1.4s, 1.1s; }
.hero-candle .c-glow { animation: candle-glow 1.8s ease-in-out infinite; }
.candle-l2 .c-glow { animation-delay: 0.4s; }
.candle-r1 .c-glow { animation-delay: 0.9s; }
.candle-r2 .c-glow { animation-delay: 1.4s; }

@media (prefers-reduced-motion: reduce) {
  .hero-candle .c-flame { animation: none; }
  .hero-candle .c-glow  { animation: none; }
}

/* ════════════════════════════════════════════════════════════
   RENDIMIENTO MÓVIL — desactiva animaciones/efectos pesados del
   hero en pantallas chicas (mejora LCP/Speed Index en celular).
   Reversible: borra este bloque para volver al estado anterior.
   ════════════════════════════════════════════════════════════ */
@media (max-width: 820px) {
  .hero-scan, .hero-scan::after { animation: none !important; }
  .hero-logo-watermark { animation: none !important; }
  .hero-candle .c-flame { animation: none !important; }
  .hero-candle .c-glow  { animation: none !important; }
  /* el blur grande del humo es lo más caro de repintar en GPU móvil */
  .hero-smoke-l, .hero-smoke-r { filter: blur(10px) !important; opacity: 0.5; }
  .hero-smoke-c { filter: blur(12px) !important; opacity: 0.5; }
}
