/* ===========================
   Variables / Reset
   =========================== */
:root {
  /* Brand colors */
  --color-rojo-oscuro: #31070a;
  --color-naranja-intenso: #e94a28;
  --color-azul-oscuro: #171725;
  --color-naranja-claro: #fff6e7;
  --color-dorado: #fcd34d;

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    var(--color-naranja-intenso),
    #ff6b45
  );
  --gradient-dark: linear-gradient(
    180deg,
    var(--color-azul-oscuro),
    var(--color-rojo-oscuro)
  );

  /* Typography */
  --font-primary: "Poppins", sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(232, 74, 39, 0.3);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Motion */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background: var(--color-azul-oscuro);
  color: var(--color-naranja-claro);
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.3s ease;
}
body.is-loaded { opacity: 1; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===========================
   Layout
   =========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ===========================
   Navigation
   =========================== */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;

  background: rgba(23, 23, 37, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(232, 74, 39, 0.1);
  transition: var(--transition-smooth);
}

.nav-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.logo-link { cursor: pointer; }
.logo-link:focus-visible {
  outline: 2px solid rgba(232, 74, 39, 0.8);
  outline-offset: 6px;
  border-radius: 8px;
}

.logo { width: 45px; height: 45px; object-fit: contain; }

.logo-text { display: flex; flex-direction: column; line-height: 1; }

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.brand-accent { color: var(--color-naranja-intenso); }

.brand-subtitle {
  margin-top: 2px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 246, 231, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 246, 231, 0.7);
  transition: var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-naranja-intenso);
  transition: var(--transition-smooth);
}

.nav-link:hover { color: var(--color-naranja-claro); }
.nav-link:hover::after { width: 100%; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-naranja-claro);
  cursor: pointer;
  padding: var(--spacing-xs);
}

/* Mobile dropdown (cuando JS añade .active) */
.nav-links.active {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: rgba(23, 23, 37, 0.98);
  padding: 2rem;
  gap: 1.5rem;
  border-top: 1px solid rgba(232, 74, 39, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ===========================
   Buttons
   =========================== */
.btn-primary {
  background: var(--color-naranja-intenso);
  color: var(--color-naranja-claro);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  border-radius: 4px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-glow);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: #ff5a35;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232, 74, 39, 0.4);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  border-radius: 6px;
}

.btn-hero-primary {
  position: relative;
  background: var(--color-naranja-intenso);
  color: var(--color-naranja-claro);
  padding: 1.25rem 3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 1rem;
  border-radius: 4px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(232, 74, 39, 0.4);
}
.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(232, 74, 39, 0.6);
}

.btn-text { position: relative; z-index: 2; }

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}
.btn-hero-primary:hover .btn-shine { left: 100%; }

.btn-hero-secondary {
  background: transparent;
  color: var(--color-naranja-claro);
  padding: 1.25rem 3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 1rem;
  border: 2px solid rgba(255, 246, 231, 0.3);
  border-radius: 4px;
  transition: var(--transition-smooth);
}
.btn-hero-secondary:hover {
  background: rgba(255, 246, 231, 0.05);
  border-color: var(--color-naranja-claro);
}

/* ===========================
   Shared Section Header
   =========================== */
.section-header { margin-bottom: var(--spacing-lg); }
.section-header.centered { text-align: center; }

/* Tailwind-like util (porque usás mx-auto en HTML) */
.mx-auto { margin-left: auto; margin-right: auto; }

.section-header.centered .section-description{
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-pretitle {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-dorado);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: var(--spacing-xs);
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.title-accent { color: var(--color-naranja-intenso); }

.title-accent-gold {
  background: linear-gradient(135deg, var(--color-dorado), #ffd966);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  font-size: 1rem;
  color: rgba(255, 246, 231, 0.7);
  max-width: 600px;
  margin-top: var(--spacing-sm);
}

/* Panel sutil detrás del título + pretitle (desktop) */
.section-header.centered{
  position: relative;
  z-index: 2;
}
.section-header.centered::before{
  content: "";
  position: absolute;
  inset: -16px 0;
  margin: 0 12px;
  background: rgba(10, 12, 18, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 246, 231, 0.08);
  border-radius: 18px;
  z-index: -1;
}

/* ===========================
   Hero
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.hero-background { position: absolute; inset: 0; z-index: 0; }

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(23, 23, 37, 0.7), var(--color-azul-oscuro));
}

.hero-container { position: relative; z-index: 10; }

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 0.5rem 1.5rem;
  background: rgba(232, 74, 39, 0.1);
  border: 1px solid rgba(232, 74, 39, 0.3);
  border-radius: 50px;
  margin-bottom: var(--spacing-md);
}

.pulse-dot {
  width: 8px; height: 8px;
  background: var(--color-naranja-intenso);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.badge-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-naranja-intenso);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--color-naranja-intenso), #ff8a6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(232, 74, 39, 0.3);
}

.hero-description {
  font-size: 1.125rem;
  max-width: 700px;
  color: rgba(255, 246, 231, 0.8);
  margin-bottom: var(--spacing-lg);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  background: rgba(23, 23, 37, 0.7);
  backdrop-filter: blur(10px);
  padding: var(--spacing-md);
  border-radius: 12px;
  border: 1px solid rgba(232, 74, 39, 0.1);
}

.stat-item { text-align: center; }

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-naranja-intenso);
  line-height: 1;
}

.stat-label {
  margin-top: var(--spacing-xs);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 246, 231, 0.5);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 246, 231, 0.1);
}

/* ===========================
   Tournament
   =========================== */
.tournament {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.tournament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.tournament-card {
  position: relative;
  background: rgba(49, 7, 10, 0.3);
  border: 1px solid rgba(232, 74, 39, 0.2);
  padding: var(--spacing-md);
  border-radius: 8px;
  transition: var(--transition-smooth);
  overflow: hidden;
}
.tournament-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--color-naranja-intenso), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}
.tournament-card:hover {
  background: rgba(49, 7, 10, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(232, 74, 39, 0.2);
}
.tournament-card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 60px; height: 60px;
  background: var(--color-azul-oscuro);
  border: 1px solid rgba(232, 74, 39, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  transition: var(--transition-smooth);
}
.tournament-card:hover .card-icon {
  transform: scale(1.1);
  background: rgba(232, 74, 39, 0.1);
}
.card-icon .material-icons { font-size: 2rem; color: var(--color-naranja-intenso); }

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-sm);
}
.card-description {
  font-size: 0.95rem;
  color: rgba(255, 246, 231, 0.7);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}
.card-phase {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-naranja-intenso);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-smooth);
}
.tournament-card:hover .card-phase {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Champions
   =========================== */
.champions {
  position: relative;
  padding: var(--spacing-xl) 0;
  background: linear-gradient(180deg, var(--color-azul-oscuro), var(--color-rojo-oscuro));
}

.champions-background {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(252, 211, 77, 0.05), transparent);
  pointer-events: none;
}

.champion-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  background: rgba(23, 23, 37, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(252, 211, 77, 0.2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(252, 211, 77, 0.1);
}

.champion-left {
  position: relative;
  background: linear-gradient(135deg, rgba(49, 7, 10, 0.8), rgba(23, 23, 37, 0.8));
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-right: 1px solid rgba(252, 211, 77, 0.1);
}
.champion-left::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--color-dorado), transparent);
}

.champion-trophy-container { position: relative; margin-bottom: var(--spacing-md); }

.trophy-glow {
  position: absolute;
  inset: 0;
  background: var(--color-dorado);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.2;
  transition: var(--transition-smooth);
}
.champion-left:hover .trophy-glow { opacity: 0.4; }

.trophy-icon {
  position: relative;
  width: 180px; height: 180px;
  background: rgba(0, 0, 0, 0.8);
  border: 4px solid var(--color-dorado);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(252, 211, 77, 0.3);
}
.trophy-icon .material-icons { font-size: 5rem; color: var(--color-dorado); }

.champion-badge {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-dorado);
  color: var(--color-rojo-oscuro);
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.champion-name {
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: var(--spacing-sm);
}

.champion-info {
  font-size: 0.875rem;
  color: rgba(255, 246, 231, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.champion-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-top: 1rem;
  opacity: 0.98;
  filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.35));
}

.champion-right {
  padding: var(--spacing-lg);
  background: rgba(30, 41, 59, 0.3);
}

.champion-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.champion-stat {
  background: rgba(23, 23, 37, 0.6);
  border: 1px solid rgba(255, 246, 231, 0.1);
  padding: var(--spacing-md);
  border-radius: 8px;
  text-align: center;
  transition: var(--transition-smooth);
}
.champion-stat:hover {
  transform: translateY(-5px);
  border-color: var(--color-dorado);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-dorado);
  line-height: 1;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
  display: inline-block;
}

.stat-text {
  margin-top: var(--spacing-xs);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 246, 231, 0.5);
  font-weight: 600;
}

.champion-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.roster-title,
.highlight-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-sm);
  border-left: 3px solid var(--color-naranja-intenso);
}

.roster-list { display: flex; flex-direction: column; gap: var(--spacing-sm); }

.roster-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--spacing-xs);
  border-bottom: 1px solid rgba(255, 246, 231, 0.1);
  font-size: 0.95rem;
}

.role {
  color: rgba(255, 246, 231, 0.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.player { font-weight: 800; }
.player.mvp { color: var(--color-dorado); }

.mvp-badge {
  display: inline-block;
  background: rgba(252, 211, 77, 0.2);
  color: var(--color-dorado);
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  border-radius: 4px;
  margin-left: var(--spacing-xs);
}

/* Champion Gallery */
.champion-gallery {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.champion-gallery-item {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 246, 231, 0.08);
  background: rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
}
.champion-gallery-item:hover {
  transform: translateY(-3px);
  border-color: rgba(252, 211, 77, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.champion-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video Thumbnail */
.video-thumbnail {
  position: relative;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 246, 231, 0.1);
  transition: var(--transition-smooth);

  background-image:
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.65)),
    url("/assets/season1/Mivideo-Miniatura.svg");
  background-size: cover;
  background-position: center;
}
.video-thumbnail:hover {
  border-color: var(--color-naranja-intenso);
  transform: scale(1.02);
}
.video-thumbnail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  z-index: 2;
}
.video-thumbnail:hover .play-button {
  transform: translate(-50%, -50%) scale(1.15);
  background: rgba(255, 255, 255, 0.25);
}
.play-button .material-icons { font-size: 2rem; }

.video-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--spacing-md);
  z-index: 2;
}

.video-title { font-weight: 700; font-size: 0.95rem; }
.video-label {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--color-dorado);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.champion-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 246, 231, 0.6);
  line-height: 1.5;
}

/* ===========================
   Schedule / Timeline
   =========================== */
.schedule {
  padding: var(--spacing-xl) 0;
  background: var(--color-azul-oscuro);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--color-naranja-intenso),
    rgba(232, 74, 39, 0.3),
    var(--color-dorado)
  );
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--spacing-md);
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.timeline-content { padding: var(--spacing-md); }
.timeline-content.left { text-align: right; }
.timeline-content.right { text-align: left; }

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  transition: var(--transition-fast);
}
.timeline-item:hover .timeline-title { color: var(--color-naranja-intenso); }

.timeline-description {
  font-size: 0.95rem;
  color: rgba(255, 246, 231, 0.7);
}

.timeline-dot {
  position: relative;
  width: 16px; height: 16px;
  background: var(--color-azul-oscuro);
  border: 3px solid rgba(232, 74, 39, 0.5);
  border-radius: 50%;
  z-index: 10;
  transition: var(--transition-smooth);
}

.timeline-dot.active {
  border-color: var(--color-naranja-intenso);
  box-shadow: 0 0 20px rgba(232, 74, 39, 0.5);
}

.timeline-dot.gold {
  border-color: var(--color-dorado);
  box-shadow: 0 0 20px rgba(252, 211, 77, 0.5);
}

.timeline-item:hover .timeline-dot { transform: scale(1.5); }

.timeline-date {
  display: inline-block;
  background: rgba(49, 7, 10, 0.5);
  border: 1px solid rgba(255, 246, 231, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 1.125rem;
}
.timeline-date.gold {
  color: var(--color-dorado);
  border-color: var(--color-dorado);
}

/* ===========================
   Registration
   =========================== */
.registration {
  position: relative;
  padding: var(--spacing-xl) 0;
  background: var(--color-rojo-oscuro);
}

.registration-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--color-azul-oscuro),
    rgba(23, 23, 37, 0.9),
    transparent
  );
}

.registration-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.registration-logo {
  width: 80px;
  height: 80px;
  opacity: 0.8;
  margin-bottom: var(--spacing-md);
}

.registration-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
}

.registration-description {
  font-size: 1.125rem;
  color: rgba(255, 246, 231, 0.8);
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
  max-width: 500px;
}

.registration-benefits {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: rgba(255, 246, 231, 0.9);
}
.benefit-item .material-icons { color: var(--color-naranja-intenso); font-size: 1.5rem; }

.registration-form-container {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 246, 231, 0.1);
  padding: var(--spacing-lg);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: visible;
}

.registration-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.registration-cta-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--spacing-md);
  opacity: 0.95;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.35));
}

.registration-cta-text {
  font-size: 1rem;
  color: rgba(255, 246, 231, 0.75);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

.form-title { font-size: 1.5rem; font-weight: 700; margin-bottom: var(--spacing-md); }

.btn-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  width: 100%;
  max-width: 360px;

  background: var(--color-naranja-intenso);
  color: var(--color-naranja-claro);
  padding: 1.125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(232, 74, 39, 0.4);

  white-space: normal;
  line-height: 1.2;
  word-break: break-word;
}
.btn-form-submit:hover {
  background: #ff5a35;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 74, 39, 0.6);
}

.form-disclaimer {
  margin-top: var(--spacing-sm);
  font-size: 0.75rem;
  color: rgba(255, 246, 231, 0.5);
  text-align: center;
}

/* ===========================
   Footer
   =========================== */
.footer {
  background: var(--color-azul-oscuro);
  border-top: 1px solid rgba(232, 74, 39, 0.1);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.footer-logo {
  width: 50px;
  height: 50px;
  opacity: 0.5;
  filter: grayscale(100%);
}

.footer-brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.footer-brand-subtitle {
  font-size: 0.7rem;
  color: rgba(255, 246, 231, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.footer-social { display: flex; gap: var(--spacing-md); }

.social-link {
  font-size: 1.5rem;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 246, 231, 0.5);
  transition: var(--transition-fast);
}
.social-link:hover {
  color: var(--color-naranja-intenso);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 246, 231, 0.05);
  text-align: center;
}

.footer-copyright {
  font-size: 0.875rem;
  color: rgba(255, 246, 231, 0.6);
  margin-bottom: var(--spacing-sm);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255, 246, 231, 0.4);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===========================
   EXTRA SECTIONS
   Highlights / Road / Community
   =========================== */
/* Highlights */
.highlights{
  padding: var(--spacing-xl) 0;
  background: linear-gradient(180deg, var(--color-azul-oscuro), rgba(49,7,10,0.35));
}
.highlights-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: var(--spacing-md);
}
.highlight-card{
  background: rgba(23, 23, 37, 0.65);
  border: 1px solid rgba(232, 74, 39, 0.18);
  border-radius: 14px;
  padding: var(--spacing-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  transition: var(--transition-smooth);
  position: relative;
  overflow:hidden;
}
.highlight-card::before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(circle at top, rgba(232,74,39,0.12), transparent 55%);
  pointer-events:none;
}
.highlight-card:hover{
  transform: translateY(-6px);
  border-color: rgba(232, 74, 39, 0.45);
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.highlight-card.featured{
  border-color: rgba(252,211,77,0.35);
  box-shadow: 0 0 40px rgba(252,211,77,0.12);
}
.highlight-top{
  display:flex;
  align-items:center;
  gap:0.6rem;
  margin-bottom: 0.75rem;
}
.highlight-top .material-icons{
  color: var(--color-naranja-intenso);
  background: rgba(232,74,39,0.10);
  border: 1px solid rgba(232,74,39,0.25);
  border-radius: 10px;
  padding: 0.45rem;
}
.highlight-label{
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(255,246,231,0.75);
}
.highlight-title{
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.highlight-sub{
  color: rgba(255,246,231,0.65);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0.9rem;
}
.highlight-link{
  color: var(--color-dorado);
  font-weight: 800;
  letter-spacing: 0.06em;
}
.highlight-card-cta{
  border-color: rgba(252, 211, 77, 0.25);
}

/* Road */
.road{
  padding: var(--spacing-xl) 0;
  background: linear-gradient(180deg, rgba(49,7,10,0.25), var(--color-azul-oscuro));
}
.road-card{
  background: rgba(23, 23, 37, 0.65);
  border: 1px solid rgba(255, 246, 231, 0.10);
  border-radius: 16px;
  padding: var(--spacing-lg);
  box-shadow: 0 30px 90px rgba(0,0,0,0.35);
}
.road-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: var(--spacing-md);
  text-align: center;
}
.road-round{
  border: 1px solid rgba(232,74,39,0.15);
  border-radius: 14px;
  padding: var(--spacing-md);
  background: linear-gradient(135deg, rgba(49,7,10,0.35), rgba(23,23,37,0.45));
}
.road-round-title{
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,246,231,0.70);
  margin-bottom: 0.75rem;
}
.road-match{
  display:flex;
  align-items:center;
  gap: 0.6rem;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,246,231,0.07);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  width: fit-content;
  margin: 0 auto;
  justify-content: center;
}

.road-team.only-logo{
  flex: 0 0 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Score pill */
.road-score{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,246,231,0.12);
  background: rgba(0,0,0,0.22);
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
  min-width: 64px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: rgba(255,246,231,0.75);
}
.road-score.road-score-gold{
  border-color: rgba(252,211,77,0.22);
  color: var(--color-dorado);
}

.road-win{ color: var(--color-naranja-intenso); }
.road-final{ border-color: rgba(252, 211, 77, 0.20); }

.road-note{
  margin-top: 0.7rem;
  color: rgba(255,246,231,0.65);
  font-size: 0.9rem;
  line-height: 1.5;
}

.road-actions{
  margin-top: var(--spacing-md);
  display:flex;
  justify-content:center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.road-actions a{
  min-width: 180px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0 1.1rem !important;
}
.road-actions .btn-hero-secondary{
  border-width: 1px;
  background: rgba(0,0,0,0.15);
}

/* Road logos (desktop/base) */
.road-logo{
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 6px;
}

/* Community */
.community{
  padding: var(--spacing-xl) 0;
  background: linear-gradient(180deg, var(--color-azul-oscuro), rgba(49,7,10,0.55));
}
.community-card{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--spacing-lg);
  background: rgba(23, 23, 37, 0.70);
  border: 1px solid rgba(232,74,39,0.18);
  border-radius: 18px;
  padding: var(--spacing-lg);
  box-shadow: 0 30px 90px rgba(0,0,0,0.35);
}
.community-title{
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  font-weight: 900;
  margin: 0.35rem 0 0.75rem;
}
.community-text{
  color: rgba(255,246,231,0.75);
  max-width: 620px;
  line-height: 1.8;
}
.community-points{
  margin-top: 1rem;
  display:grid;
  gap: 0.65rem;
}
.community-points li{
  display:flex;
  gap: 0.6rem;
  align-items:center;
  color: rgba(255,246,231,0.85);
}
.community-points .material-icons{ color: var(--color-naranja-intenso); }

.community-right{
  display:flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

.community-btn{
  display:flex;
  align-items:center;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,246,231,0.12);
  background: rgba(0,0,0,0.22);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: var(--transition-smooth);
}
.community-btn i{
  font-size: 1.25rem;
  color: var(--color-naranja-intenso);
}
.community-btn:hover{
  transform: translateY(-3px);
  border-color: rgba(232,74,39,0.45);
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
}

.community-btn-outline{ border-color: rgba(252,211,77,0.20); }
.community-btn-outline i{ color: var(--color-dorado); }

.community-note{
  margin-top: 0.25rem;
  color: rgba(255,246,231,0.55);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===========================
   Animaciones de entrada
   =========================== */
.tournament-card,
.champion-card,
.timeline-item,
.registration-form-container,
.highlight-card,
.road-card,
.community-card{
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Navbar scrolled */
.navbar.navbar--scrolled{
  background: rgba(23, 23, 37, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Notification animations */
@keyframes notificationIn { from { transform: translateX(10px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes notificationOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(10px); opacity: 0; } }

/* ===========================
   Responsive (unificado)
   =========================== */
@media (max-width: 1024px) {
  .champion-card { grid-template-columns: 1fr; }
  .champion-left {
    border-right: none;
    border-bottom: 1px solid rgba(252, 211, 77, 0.1);
  }
  .registration-grid { grid-template-columns: 1fr; }

  .highlights-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .road-grid { grid-template-columns: 1fr; }
  .community-card { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* OJO: este va DESPUÉS de la definición ::before, para que realmente lo apague */
  .section-header.centered::before { content: none !important; }

  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }

  .hero-title { font-size: 3rem; }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    text-align: center;
  }

  .hero-stats { flex-wrap: wrap; }
  .tournament-grid { grid-template-columns: 1fr; }

  .champion-stats { grid-template-columns: 1fr; }
  .champion-details { grid-template-columns: 1fr; }

  .champion-gallery { grid-template-columns: 1fr; }
  .champion-gallery-item img { height: 220px; }

  .timeline-line { left: 18px; }

  .timeline-item {
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
    gap: 0.75rem 1rem;
    align-items: start;
    margin-left: 0;
  }

  .timeline-dot {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-top: 6px;
  }

  .timeline-content {
    grid-column: 2;
    padding: 0;
    text-align: left;
  }

  .footer-content {
    flex-direction: column;
    gap: var(--spacing-lg);
    text-align: center;
  }

  /* Champions mobile */
  .champion-card{ overflow: hidden; }
  .trophy-icon{ width: 140px; height: 140px; }
  .champion-badge{ white-space: normal; text-align: center; }
}

/* ROAD MOBILE: esta es la ÚNICA fuente de verdad para <=520px */
@media (max-width: 520px) {
  .highlights-grid { grid-template-columns: 1fr; }

  .road-round{
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .road-match{
    width: 100%;
    max-width: 100%;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 56px 1fr 56px;
    align-items: center;
    justify-items: center;

    gap: 12px;
    padding: 12px;
  }

  .road-team.only-logo{
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
  }

  .road-logo{
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    border-radius: 14px;
  }

  .road-score{
    min-width: 0;
    width: max-content;
    padding: 10px 14px;
    font-size: 1rem;
  }

  .road-round-title{
    font-size: 0.95rem;
    letter-spacing: 0.08em;
  }

  .road-note{
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 521px) and (max-width: 820px) {
  .road-match{
    display: grid;
    grid-template-columns: 60px 1fr 60px;
    justify-items: center;
  }
  .road-team.only-logo{ width: 60px; height: 60px; flex: 0 0 auto; }
  .road-logo{ width: 100%; height: 100%; padding: 7px; }
  .road-score{ font-size: 0.95rem; padding: 9px 12px; min-width: 60px; }
}

@media (max-width: 480px) {
  :root {
    --spacing-sm: 0.75rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
  }

  .logo { width: 35px; height: 35px; }
  .brand-name { font-size: 1.25rem; }

  .hero-title { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }

  .btn-form-submit {
    max-width: 100%;
    padding: 0.95rem 1rem;
    font-size: 0.95rem;
  }
}

/* === PATCH FINAL: eliminar overflow interno en mobile === */
@media (max-width: 520px) {
  /* Compactar un poco el match para que no desborde (iPhone SE es el peor caso) */
  .road-match{
    grid-template-columns: 52px 1fr 52px; /* antes 56 */
    gap: 8px;                              /* antes 12 */
    padding: 10px;                         /* antes 12 */
  }

  .road-team.only-logo{
    width: 52px;
    height: 52px;
  }

  .road-logo{
    padding: 7px;                          /* antes 8 */
  }

  .road-score{
    padding: 8px 10px;                      /* antes 10px 14px */
    font-size: 0.95rem;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  /* Champion: el padding grande hace que el contenido “pida” más ancho */
  .champion-left,
  .champion-right{
    padding: var(--spacing-md);            /* baja desde --spacing-lg */
  }

  .champion-name{
    font-size: 2rem;                       /* evita texto grande */
  }

  .champion-logo{
    width: 120px;
    height: 120px;
  }

  .champion-stats{
    gap: var(--spacing-sm);
  }
}
