/* ==========================================================================
   FUTFANTASY.ONLINE - Hoja de Estilos Maestra
   Arquitectura: 100% FLEXBOX (Cero CSS Grid)
   Adaptabilidad: Desde pantallas ultrawide hasta 300px sin desbordamiento
   Tema: Estadio Nocturno / Pizarra Táctica / Alta Competición
   ========================================================================== */

:root {
  /* Paleta Cromática Deportiva (Estilo Oficial LaLiga / UEFA) */
  --bg-deep: #090e1a;
  --bg-surface: #0e1726;
  --bg-card: #131e33;
  --bg-card-hover: #192742;
  --bg-input: #080d17;
  
  /* Acentos Deportivos */
  --mint: #10b981;
  --mint-dark: #059669;
  --cyan: #0284c7;
  --gold: #f59e0b;
  --danger: #ef4444;

  /* Césped y Líneas */
  --pitch-green: #114227;
  --pitch-line: rgba(255, 255, 255, 0.28);

  /* Tipografía */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;
  --text-inverse: #ffffff;

  /* Bordes */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-focus: #10b981;

  /* Sombras Sólidas y Elegantes (Cero neones) */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);

  /* Tipografía del Sistema */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Bordes Redondeados */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  /* Transiciones */
  --trans-fast: 0.18s ease;
  --trans-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reseteo Universal */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-deep);
  position: relative;
  width: 100%;
}

/* Enlace Accesible de Salto */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--mint);
  color: var(--text-inverse);
  padding: 10px 16px;
  font-weight: 700;
  border-radius: var(--radius-xs);
  z-index: 10000;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 20px;
}

/* Accesibilidad y Foco de Teclado (WCAG 2.1 AA) */
:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(0, 255, 135, 0.25);
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.img-responsive {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.img-card {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  margin-top: 14px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Contenedores Principales */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-narrow {
  max-width: 860px;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  word-break: break-word;
}

h1 { font-size: clamp(1.85rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.35rem; }

p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 1.1rem;
  word-break: break-word;
}

p.lead {
  font-size: 1.12rem;
  color: #cbd5e1;
  line-height: 1.7;
}

strong {
  color: var(--text-primary);
  font-weight: 700;
}

a {
  color: var(--mint);
  text-decoration: none;
  transition: color var(--trans-fast);
}

a:hover {
  color: #6effbd;
}

/* Iconos SVG Vectoriales */
.svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
}

.svg-icon svg {
  width: 100%;
  height: 100%;
}

/* Encabezado Principal */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #070b14;
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-icon svg {
  width: 100%;
  height: 100%;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  line-height: 1;
}

.brand-name .highlight {
  color: var(--mint);
}

.brand-tag {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(0, 255, 135, 0.12);
  color: var(--mint);
  padding: 2px 5px;
  border-radius: var(--radius-xs);
  margin-left: 6px;
  border: 1px solid rgba(0, 255, 135, 0.25);
  line-height: 1.1;
  letter-spacing: 0.04em;
}

/* Navegación Desktop (> 991px) */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  transition: all var(--trans-fast);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.nav-link:hover,
.nav-link.active {
  color: var(--mint);
  background: rgba(0, 255, 135, 0.08);
}

.nav-link.active {
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
}

.nav-actions .btn {
  font-size: 0.74rem;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}

/* Botón Hamburguesa */
.burger-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 8px 6px;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  transition: all var(--trans-fast);
  z-index: 1100;
}

.burger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--trans-normal);
}

.burger-btn:hover {
  border-color: var(--mint);
}

.burger-btn.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  background: var(--mint);
}
.burger-btn.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.burger-btn.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  background: var(--mint);
}

/* Cajón Móvil */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 15, 0.85);
  z-index: 1050;
  opacity: 0;
  transition: opacity var(--trans-normal);
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 86%;
  max-width: 310px;
  height: 100vh;
  height: 100dvh;
  background: #09101f;
  border-left: 1px solid var(--border-card);
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  z-index: 1060;
  transition: right 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.85);
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: #0b1324;
  flex-shrink: 0;
}

.mobile-nav-header span {
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-xs);
  transition: color 0.15s ease;
}

.mobile-nav-close:hover {
  color: #ffffff;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 12px;
  margin: 0;
}

.mobile-nav-links .nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  color: #cbd5e1;
}

.mobile-nav-links .nav-link:hover,
.mobile-nav-links .nav-link.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--mint);
}

.mobile-nav-footer {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--border-subtle);
  background: #0b1324;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-footer .btn {
  padding: 8px 14px;
  font-size: 0.84rem;
}

.mobile-nav-footer p {
  font-size: 0.72rem;
  color: #64748b;
  text-align: center;
  margin: 0;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all var(--trans-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--mint);
  color: #ffffff;
  border: 1px solid var(--mint);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  background: var(--mint-dark);
  border-color: var(--mint-dark);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-secondary {
  background: #1e293b;
  color: #f1f5f9;
  border: 1px solid #334155;
}

.btn-secondary:hover {
  background: #334155;
  color: #ffffff;
  border-color: #475569;
  transform: translateY(-1px);
}

.btn-outline-mint {
  background: transparent;
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.btn-outline-mint:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--mint);
  color: #ffffff;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.84rem;
  border-radius: var(--radius-xs);
}

.btn-lg {
  padding: 13px 24px;
  font-size: 0.98rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* Badges Deportivos */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-mint {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-cyan {
  background: rgba(2, 132, 199, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.badge-gold {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

/* Secciones */
.section {
  padding: 65px 0;
  position: relative;
  width: 100%;
}

.section-alt {
  background: rgba(12, 20, 36, 0.6);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.section-tag {
  color: var(--mint);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: block;
}

/* ==========================================================================
   SISTEMA DE COLUMNAS FLEXIBLES (REEMPLAZO TOTAL DE CSS GRID)
   ========================================================================== */
.flex-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
  row-gap: 24px;
}

.flex-col {
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
  min-width: 0;
}

.flex-col-12 { flex: 0 0 100%; max-width: 100%; }
.flex-col-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
.flex-col-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
.flex-col-6  { flex: 0 0 50%; max-width: 50%; }
.flex-col-5  { flex: 0 0 41.666667%; max-width: 41.666667%; }
.flex-col-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
.flex-col-3  { flex: 0 0 25%; max-width: 25%; }

/* Tarjetas (Flex-based Cards) */
.cards-flex-wrap {
  display: flex;
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
  row-gap: 24px;
  margin-top: 24px;
}

.card-flex-item {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding-left: 12px;
  padding-right: 12px;
  display: flex;
}

.card-flex-item-half {
  flex: 0 0 50%;
  max-width: 50%;
  padding-left: 12px;
  padding-right: 12px;
  display: flex;
}

.card-flex-item-fourth {
  flex: 0 0 25%;
  max-width: 25%;
  padding-left: 12px;
  padding-right: 12px;
  display: flex;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: all var(--trans-normal);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 255, 135, 0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0, 255, 135, 0.1);
  color: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid rgba(0, 255, 135, 0.2);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-title {
  font-size: 1.22rem;
  margin-bottom: 8px;
}

.card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   HERO SECTION (FLEXBOX)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 60px 0 50px;
  overflow: hidden;
}

.hero-flex-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-left: -16px;
  margin-right: -16px;
  row-gap: 36px;
}

.hero-main-col {
  flex: 0 0 58%;
  max-width: 58%;
  padding-left: 16px;
  padding-right: 16px;
}

.hero-side-col {
  flex: 0 0 42%;
  max-width: 42%;
  padding-left: 16px;
  padding-right: 16px;
}

.hero-title .glow-text {
  color: #34d399;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 28px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-stats-flex {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  margin-left: 0;
  margin-right: 0;
  gap: 12px;
}

.hero-stat-box {
  flex: 1 1 0;
  min-width: 0;
  background: rgba(14, 23, 42, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
  transition: border-color var(--trans-fast), transform var(--trans-fast);
}

.hero-stat-box:hover {
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-2px);
}

.hero-stat-box h3 {
  font-size: 1.55rem;
  color: var(--mint);
  margin-bottom: 3px;
  font-weight: 900;
  line-height: 1.15;
}

.hero-stat-box p {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0;
  color: var(--text-muted);
  line-height: 1.25;
}

.hero-widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-widget-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mint), var(--cyan), var(--gold));
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.widget-header-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.widget-league-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
}

.widget-player-card {
  background: rgba(9, 14, 26, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.widget-player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.widget-player-label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
}

.widget-player-pts {
  color: var(--mint);
  font-weight: 800;
  font-size: 0.82rem;
  white-space: nowrap;
}

.widget-player-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.widget-player-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--mint);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.widget-player-info {
  min-width: 0;
  flex: 1 1 auto;
}

.widget-player-name {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.widget-player-meta {
  margin: 0;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.3;
}

.widget-stats-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.widget-stat-item {
  flex: 1 1 0;
  min-width: 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 10px 8px;
  text-align: center;
}

.widget-stat-item .stat-label {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

.widget-stat-item .stat-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.widget-stat-item .stat-cyan {
  color: var(--blue);
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--danger);
  font-weight: 800;
  background: rgba(255, 71, 87, 0.12);
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.live-indicator-dot {
  width: 7px;
  height: 7px;
  background: var(--danger);
  border-radius: 50%;
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.4; }
  100% { transform: scale(0.9); opacity: 1; }
}

/* ==========================================================================
   PAGE HERO (INNER PAGES HEADER) - 100% FLEXBOX
   ========================================================================== */
.page-hero {
  position: relative;
  padding: 42px 0 30px;
  background: #0b111e;
  border-bottom: 1px solid var(--border-card);
  margin-bottom: 6px;
}

.page-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.page-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.page-breadcrumbs a {
  color: #94a3b8;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.page-breadcrumbs a:hover {
  color: var(--mint);
}

.page-breadcrumbs-sep {
  color: #475569;
  font-size: 0.72rem;
}

.page-breadcrumbs-current {
  color: var(--text-primary);
  font-weight: 600;
}

.page-hero-badge {
  margin-bottom: 12px;
}

.page-hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 12px;
}

.page-hero-title .highlight-mint {
  color: var(--mint);
}

.page-hero-title .highlight-blue {
  color: var(--blue);
}

.page-hero-title .highlight-gold {
  color: var(--gold);
}

.page-hero-lead {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 18px;
  max-width: 720px;
}

.page-hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.page-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  color: #cbd5e1;
}

.page-hero-pill svg {
  color: var(--mint);
  flex-shrink: 0;
}

.page-hero-pill.pill-blue svg {
  color: var(--blue);
}

.page-hero-pill.pill-gold svg {
  color: var(--gold);
}

@media (max-width: 768px) {
  .page-hero {
    padding: 32px 0 22px;
  }
  .page-hero-title {
    font-size: 1.65rem;
  }
  .page-hero-lead {
    font-size: 0.92rem;
  }
  .page-hero-pills {
    gap: 7px;
  }
  .page-hero-pill {
    padding: 4px 10px;
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   CONSTRUCTOR DE PLANTILLA (SQUAD BUILDER) - 100% FLEXBOX
   ========================================================================== */
.squad-builder-flex {
  display: flex;
  flex-wrap: wrap;
  margin-left: -14px;
  margin-right: -14px;
  row-gap: 24px;
}

.squad-pitch-col {
  flex: 0 0 62%;
  max-width: 62%;
  padding-left: 14px;
  padding-right: 14px;
}

.squad-market-col {
  flex: 0 0 38%;
  max-width: 38%;
  padding-left: 14px;
  padding-right: 14px;
}

.pitch-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.pitch-controls-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.formation-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.formation-select {
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.formation-select:focus {
  border-color: var(--mint);
}

.budget-meter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.budget-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.budget-val {
  font-weight: 800;
  color: var(--mint);
  font-size: 1.05rem;
}

/* El Terreno de Juego */
.tactical-pitch {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 600px;
  background: 
    repeating-linear-gradient(
      0deg,
      #092617,
      #092617 38px,
      #0b2f1d 38px,
      #0b2f1d 76px
    );
  border: 2px solid var(--pitch-line);
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pitch-half-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--pitch-line);
  transform: translateY(-50%);
}

.pitch-center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  border: 2px solid var(--pitch-line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pitch-center-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--pitch-line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pitch-box-top, .pitch-box-bottom {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  border: 2px solid var(--pitch-line);
}

.pitch-box-top {
  top: 0;
  height: 60px;
  border-top: none;
}

.pitch-box-bottom {
  bottom: 0;
  height: 60px;
  border-bottom: none;
}

.pitch-row {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
}

.player-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform var(--trans-fast);
  width: 74px;
  position: relative;
}

.player-slot:hover {
  transform: scale(1.06);
}

.player-jersey {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  position: relative;
  transition: all var(--trans-fast);
}

.player-slot.filled .player-jersey {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-color: #38bdf8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.player-slot.is-captain .player-jersey {
  border-color: #f59e0b;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.captain-tag {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold);
  color: #000000;
  font-size: 0.62rem;
  font-weight: 900;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff;
}

.player-remove-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  background: #ef4444;
  color: #ffffff;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform var(--trans-fast);
  z-index: 5;
}

.player-remove-badge:hover {
  transform: scale(1.2);
  background: #dc2626;
}

.player-name-tag {
  margin-top: 5px;
  background: rgba(7, 11, 20, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2px 4px;
  text-align: center;
  width: 100%;
  overflow: hidden;
}

.player-name-tag .p-name {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-name-tag .p-val {
  display: block;
  font-size: 0.63rem;
  font-weight: 700;
  color: var(--mint);
}

/* Panel Lateral de Mercado */
.market-selector-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  max-height: 690px;
}

.market-header {
  margin-bottom: 14px;
}

.position-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.pos-tab {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 8px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  text-align: center;
  transition: all var(--trans-fast);
  white-space: nowrap;
}

.pos-tab:hover,
.pos-tab.active {
  background: var(--mint);
  color: var(--text-inverse);
  border-color: var(--mint);
}

.market-search-box {
  width: 100%;
  margin-bottom: 12px;
}

.market-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xs);
  padding: 9px 12px;
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
}

.market-input:focus {
  border-color: var(--mint);
}

.player-list-scroll {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.player-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  transition: all var(--trans-fast);
}

.player-item-row:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 255, 135, 0.3);
}

.p-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.p-club-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}

.p-info-text {
  min-width: 0;
}

.p-info-text .p-item-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-info-text .p-item-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.p-price-tag {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--mint);
}

.btn-add-player {
  background: rgba(0, 255, 135, 0.15);
  color: var(--mint);
  border: 1px solid rgba(0, 255, 135, 0.3);
  padding: 5px 9px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all var(--trans-fast);
}

.btn-add-player:hover {
  background: var(--mint);
  color: var(--text-inverse);
}

/* ==========================================================================
   SIMULADOR DE PARTIDO EN DIRECTO (MATCH SIMULATOR)
   ========================================================================== */
.simulator-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  width: 100%;
}

/* Barra de Configuración de Equipos y Opciones */
.sim-config-bar {
  background: rgba(7, 11, 20, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 24px;
}

.sim-config-row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 16px;
  width: 100%;
}

.sim-config-col {
  flex: 1 1 0;
  min-width: 0;
}

.sim-config-col .form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.sim-config-col .form-select {
  width: 100%;
}

.sim-config-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn-sim-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sim-scoreboard {
  background: linear-gradient(135deg, #09101f 0%, #050811 100%);
  border: 1px solid rgba(0, 255, 135, 0.25);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}

.sim-teams-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sim-team-block {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.sim-team-block.team-away {
  flex-direction: row-reverse;
  text-align: right;
}

.sim-team-crest {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sim-team-crest svg {
  width: 30px;
  height: 30px;
}

.sim-team-info h4 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-team-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sim-score-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  flex-shrink: 0;
}

.sim-score-numbers {
  font-size: 2.8rem;
  font-weight: 900;
  color: #34d399;
  letter-spacing: 0.05em;
  line-height: 1;
}

.sim-clock-badge {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.1);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-top: 6px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  font-variant-numeric: tabular-nums;
}

/* Barra de Posesión Dinámica */
.sim-possession-bar-wrap {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.sim-possession-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.sim-possession-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}

.sim-possession-fill-home {
  height: 100%;
  background: var(--mint);
  width: 54%;
  transition: width 0.2s ease;
}

.sim-possession-fill-away {
  height: 100%;
  background: var(--cyan);
  width: 46%;
  transition: width 0.2s ease;
}

/* Feed de Eventos del Partido */
.sim-events-feed {
  background: rgba(7, 11, 20, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.sim-event-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--border-card);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-size: 0.88rem;
}

.sim-event-item.event-goal {
  border-left-color: var(--mint);
  background: rgba(0, 255, 135, 0.05);
}

.sim-event-item.event-card {
  border-left-color: var(--gold);
  background: rgba(255, 190, 11, 0.05);
}

.sim-event-item.event-save {
  border-left-color: var(--cyan);
  background: rgba(0, 229, 255, 0.05);
}

.sim-event-minute {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--text-primary);
  flex-shrink: 0;
  min-width: 32px;
}

.sim-event-desc {
  color: var(--text-secondary);
  flex: 1;
}

.sim-event-desc strong {
  color: #ffffff;
}

/* ==========================================================================
   CALCULADORA DE PUNTOS (FLEXBOX)
   ========================================================================== */
.calc-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.calc-flex-container {
  display: flex;
  flex-wrap: wrap;
  margin-left: -16px;
  margin-right: -16px;
  row-gap: 28px;
}

.calc-controls-col {
  flex: 0 0 60%;
  max-width: 60%;
  padding-left: 16px;
  padding-right: 16px;
}

.calc-result-col {
  flex: 0 0 40%;
  max-width: 40%;
  padding-left: 16px;
  padding-right: 16px;
}

.calc-controls-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calc-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(7, 11, 20, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  gap: 12px;
}

.calc-item-desc {
  flex: 1;
  min-width: 0;
}

.calc-item-desc h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.calc-item-desc span {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: block;
}

.calc-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.stepper-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans-fast);
}

.stepper-btn:hover {
  background: var(--mint);
  color: var(--text-inverse);
  border-color: var(--mint);
}

.stepper-val {
  min-width: 30px;
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: #ffffff;
}

.calc-result-box {
  background: linear-gradient(145deg, #0e182c 0%, #080f1c 100%);
  border: 1px solid rgba(0, 255, 135, 0.3);
  border-radius: var(--radius-md);
  padding: 26px;
  text-align: center;
  position: sticky;
  top: 74px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 255, 135, 0.1);
}

.result-total-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.result-points-display {
  font-size: 3.6rem;
  font-weight: 900;
  color: #34d399;
  line-height: 1;
  margin-bottom: 10px;
}

.result-tier-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.result-breakdown-list {
  text-align: left;
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.85rem;
}

.result-breakdown-list li {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
}

.result-breakdown-list li span:last-child {
  font-weight: 700;
  color: #ffffff;
}

/* ==========================================================================
   FORMULARIO Y CONTACTO (FLEXBOX)
   ========================================================================== */
.contact-flex-wrap {
  display: flex;
  flex-wrap: wrap;
  margin-left: -16px;
  margin-right: -16px;
  row-gap: 28px;
}

.contact-dept-col {
  flex: 0 0 45%;
  max-width: 45%;
  padding-left: 16px;
  padding-right: 16px;
}

.contact-form-col {
  flex: 0 0 55%;
  max-width: 55%;
  padding-left: 16px;
  padding-right: 16px;
}

.contact-dept-card, .contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
}

.dept-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.dept-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: rgba(7, 11, 20, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--trans-fast);
}

.dept-item:hover {
  border-color: var(--mint);
  background: rgba(0, 255, 135, 0.04);
}

.dept-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  background: rgba(0, 255, 135, 0.1);
  color: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dept-icon svg {
  width: 20px;
  height: 20px;
}

.dept-info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.dept-info p {
  font-size: 0.82rem;
  margin-bottom: 3px;
  color: var(--text-muted);
}

.dept-info .email-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cyan);
}

.sla-indicator-box {
  margin-top: 20px;
  padding: 14px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sla-indicator-box svg {
  color: var(--cyan);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.sla-text {
  font-size: 0.82rem;
  color: #cbd5e1;
}

.sla-time {
  font-weight: 800;
  color: var(--cyan);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xs);
  padding: 11px 14px;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: all var(--trans-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(0, 255, 135, 0.15);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.form-row-flex {
  display: flex;
  flex-wrap: wrap;
  margin-left: -8px;
  margin-right: -8px;
}

.form-col-half {
  flex: 0 0 50%;
  max-width: 50%;
  padding-left: 8px;
  padding-right: 8px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--mint);
  cursor: pointer;
  flex-shrink: 0;
}

.form-check-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Modales y Diálogos de Selección */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 15, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 12000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #0d1527;
  border: 1px solid rgba(0, 255, 135, 0.4);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-content-picker {
  max-width: 560px;
  text-align: left;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

@keyframes modalPop {
  0% { transform: scale(0.94); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-icon {
  width: 54px;
  height: 54px;
  background: rgba(0, 255, 135, 0.15);
  border-radius: 50%;
  color: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 1px solid rgba(0, 255, 135, 0.3);
}

.modal-icon.icon-warning {
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold);
  border-color: rgba(255, 215, 0, 0.35);
}

.modal-icon.icon-danger {
  background: rgba(255, 59, 48, 0.15);
  color: var(--danger);
  border-color: rgba(255, 59, 48, 0.35);
}

.modal-close-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  transition: all var(--trans-fast);
}

.modal-close-icon:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.modal-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding-right: 32px;
}

.modal-picker-title h3 {
  font-size: 1.15rem;
  margin: 0 0 4px 0;
  color: #ffffff;
}

.modal-picker-title p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}

.modal-picker-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.modal-picker-search {
  margin-bottom: 12px;
}

.modal-player-list {
  flex: 1;
  overflow-y: auto;
  max-height: 380px;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  transition: all var(--trans-fast);
}

.modal-player-row:hover {
  background: rgba(0, 255, 135, 0.05);
  border-color: rgba(0, 255, 135, 0.25);
}

.modal-player-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.modal-player-jersey {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #14223d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mint);
  flex-shrink: 0;
}

.modal-player-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.modal-player-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-player-meta {
  font-size: 0.74rem;
  color: #94a3b8;
  display: flex;
  gap: 6px;
}

.modal-player-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.modal-player-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--mint);
}

/* ==========================================================================
   PÁGINAS LEGALES (FLEXBOX)
   ========================================================================== */
.legal-flex-layout {
  display: flex;
  flex-wrap: wrap;
  margin-left: -16px;
  margin-right: -16px;
  row-gap: 28px;
  align-items: flex-start;
}

.legal-sidebar-col {
  flex: 0 0 280px;
  max-width: 280px;
  padding-left: 16px;
  padding-right: 16px;
}

.legal-content-col {
  flex: 1;
  min-width: 0;
  padding-left: 16px;
  padding-right: 16px;
}

.legal-sidebar {
  position: sticky;
  top: 74px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px;
  width: 100%;
}

.legal-sidebar-title {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.legal-nav-link {
  display: block;
  padding: 7px 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  transition: all var(--trans-fast);
}

.legal-nav-link:hover,
.legal-nav-link.active {
  color: var(--mint);
  background: rgba(0, 255, 135, 0.08);
}

.legal-content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
}

.legal-meta-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 11px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.legal-article {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.legal-article:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.legal-article h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-num {
  color: var(--mint);
  font-weight: 900;
}

.legal-list {
  padding-left: 20px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.legal-list li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.legal-table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0;
  -webkit-overflow-scrolling: touch;
  background: rgba(10, 16, 28, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.legal-table-responsive::-webkit-scrollbar {
  height: 6px;
}

.legal-table-responsive::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

.legal-table-responsive::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 135, 0.35);
  border-radius: 4px;
}

.legal-table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--mint);
}

.legal-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.85rem;
  min-width: 520px;
}

.legal-table th, .legal-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-top: none;
  border-left: none;
  border-right: none;
  vertical-align: middle;
}

.legal-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--mint);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid rgba(0, 255, 135, 0.3);
  white-space: nowrap;
}

.legal-table td {
  color: var(--text-secondary);
  transition: background 0.15s ease;
}

.legal-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

.legal-table tbody tr:hover td {
  background: rgba(0, 255, 135, 0.04);
}

.legal-table tbody tr:last-child td {
  border-bottom: none;
}

.info-callout {
  padding: 16px 20px;
  background: rgba(0, 255, 135, 0.05);
  border: 1px solid rgba(0, 255, 135, 0.25);
  border-radius: var(--radius-sm);
  margin: 18px 0;
}

.info-callout p {
  margin-bottom: 0;
  color: #d1fae5;
  font-size: 0.92rem;
}

/* ==========================================================================
   ACORDEÓN FAQ
   ========================================================================== */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.faq-accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all var(--trans-fast);
}

.faq-accordion-item:hover {
  border-color: rgba(0, 255, 135, 0.3);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  gap: 14px;
}

.faq-icon-arrow {
  width: 18px;
  height: 18px;
  color: var(--mint);
  transition: transform var(--trans-normal);
  flex-shrink: 0;
}

.faq-accordion-item.active .faq-icon-arrow {
  transform: rotate(180deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, padding 0.3s ease;
  background: rgba(7, 11, 20, 0.4);
}

.faq-accordion-item.active .faq-panel {
  max-height: 500px;
  padding: 0 20px 18px;
}

.faq-panel p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================================
   PIE DE PÁGINA (FLEXBOX)
   ========================================================================== */
.site-footer {
  background: #050811;
  border-top: 1px solid var(--border-subtle);
  padding: 55px 0 24px;
  margin-top: auto;
  position: relative;
  width: 100%;
}

.footer-top-flex {
  display: flex;
  flex-wrap: wrap;
  margin-left: -14px;
  margin-right: -14px;
  row-gap: 32px;
  margin-bottom: 45px;
}

.footer-brand-col {
  flex: 0 0 34%;
  max-width: 34%;
  padding-left: 14px;
  padding-right: 14px;
}

.footer-brand .brand-icon {
  width: 26px;
  height: 26px;
}

.footer-brand .brand-name {
  font-size: 1.05rem;
}

.footer-col {
  flex: 0 0 22%;
  max-width: 22%;
  padding-left: 14px;
  padding-right: 14px;
}

.footer-brand p {
  font-size: 0.88rem;
  margin-top: 12px;
  margin-bottom: 16px;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-compliance-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--mint);
  background: rgba(0, 255, 135, 0.08);
  padding: 5px 11px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 255, 135, 0.2);
}

.footer-compliance-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.footer-col h4 {
  font-size: 0.98rem;
  color: #ffffff;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: all var(--trans-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--mint);
  transform: translateX(2px);
}

.footer-disclaimer-box {
  background: rgba(12, 20, 36, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 30px;
}

.footer-disclaimer-box h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-disclaimer-box h5 svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.footer-disclaimer-box p {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: var(--text-muted);
}

.footer-bottom-links a:hover {
  color: var(--mint);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 560px;
  background: rgba(13, 22, 40, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 255, 135, 0.35);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: none;
  animation: slideUp 0.32s ease;
}

.cookie-banner.show {
  display: block;
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner h4 {
  font-size: 1rem;
  margin-bottom: 5px;
  color: #ffffff;
}

.cookie-banner p {
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 14px;
  color: var(--text-secondary);
}

.cookie-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ==========================================================================
   ADAPTABILIDAD RESPONSIVE MINUCIOSA (MEDIA QUERIES)
   Mención estricta: Burgher en <= 991px | Flexible hasta 300px mínimo
   ========================================================================== */

/* 1. Transición Pantallas Medianas / Laptop (992px a 1199px) */
@media (max-width: 1199px) {
  .header-inner {
    height: 52px;
  }

  .brand-logo {
    gap: 6px;
  }

  .brand-icon {
    width: 24px;
    height: 24px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .brand-tag {
    display: none;
  }

  .nav-desktop {
    gap: 2px;
  }

  .nav-links {
    gap: 1px;
  }

  .nav-link {
    font-size: 0.72rem;
    padding: 4px 6px;
  }

  .nav-actions {
    margin-left: 4px;
  }

  .nav-actions .btn {
    font-size: 0.70rem;
    padding: 4px 8px;
  }

  .hero-main-col { flex: 0 0 54%; max-width: 54%; }
  .hero-side-col { flex: 0 0 46%; max-width: 46%; }
  .squad-pitch-col { flex: 0 0 58%; max-width: 58%; }
  .squad-market-col { flex: 0 0 42%; max-width: 42%; }
  .calc-controls-col { flex: 0 0 55%; max-width: 55%; }
  .calc-result-col { flex: 0 0 45%; max-width: 45%; }
}

/* 2. Breakpoint Móvil & Tablet (<= 991px) - Activación del Menú Hamburguesa */
@media (max-width: 991px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    height: 52px;
  }

  .nav-desktop {
    display: none;
  }

  .burger-btn {
    display: flex;
    width: 36px;
    height: 36px;
    padding: 8px 6px;
  }

  .burger-btn span {
    width: 20px;
    height: 2px;
  }

  .brand-tag {
    display: none;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .brand-icon {
    width: 24px;
    height: 24px;
  }

  .hero-main-col, .hero-side-col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .squad-pitch-col, .squad-market-col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .calc-controls-col, .calc-result-col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .calc-result-box {
    position: static;
  }

  .contact-dept-col, .contact-form-col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .legal-sidebar-col, .legal-content-col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .flex-col-6,
  .flex-col-8,
  .flex-col-7,
  .flex-col-5,
  .flex-col-4,
  .flex-col-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .card-flex-item-half,
  .card-flex-item,
  .card-flex-item-fourth {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .card {
    padding: 22px 18px;
  }

  .legal-sidebar {
    position: static;
  }

  .card-flex-item {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .footer-brand-col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .footer-col {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

/* 3. Breakpoint Intermedio Móvil (<= 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .header-inner {
    height: 50px;
  }

  .brand-icon {
    width: 22px;
    height: 22px;
  }

  .brand-name {
    font-size: 0.94rem;
  }

  .burger-btn {
    width: 34px;
    height: 34px;
    padding: 7px 5px;
  }

  .section {
    padding: 45px 0;
  }

  .hero-section {
    padding: 35px 0 40px;
  }

  .hero-stats-flex {
    gap: 8px;
    padding-top: 16px;
  }

  .hero-stat-box {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    padding: 10px 6px;
    background: rgba(15, 23, 42, 0.75);
  }

  .hero-stat-box h3 {
    font-size: 1.22rem;
    margin-bottom: 2px;
  }

  .hero-stat-box p {
    font-size: 0.68rem;
    letter-spacing: 0.02em;
    line-height: 1.2;
  }

  .hero-widget-card {
    padding: 16px 14px;
    border-radius: var(--radius-md);
  }

  .widget-header {
    gap: 6px;
    margin-bottom: 12px;
  }

  .widget-player-card {
    padding: 12px;
    margin-bottom: 12px;
  }

  .widget-player-avatar {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }

  .widget-player-name {
    font-size: 0.94rem;
  }

  .widget-player-meta {
    font-size: 0.74rem;
  }

  .widget-stats-row {
    gap: 8px;
    margin-bottom: 12px;
  }

  .widget-stat-item {
    padding: 8px 6px;
  }

  .widget-stat-item .stat-val {
    font-size: 1rem;
  }

  .card-flex-item, .card-flex-item-half, .card-flex-item-fourth {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .form-col-half {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .footer-col {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .sim-scoreboard {
    padding: 18px 12px;
    margin-bottom: 20px;
  }

  .sim-teams-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }

  .sim-team-block {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    min-width: 0;
  }

  .sim-team-block.team-away {
    flex-direction: column;
    text-align: center;
    justify-content: flex-start;
  }

  .sim-team-crest {
    width: 44px;
    height: 44px;
  }

  .sim-team-crest svg {
    width: 24px;
    height: 24px;
  }

  .sim-team-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
  }

  .sim-team-info h4 {
    font-size: 0.94rem;
    line-height: 1.25;
    margin-bottom: 2px;
    text-align: center;
    white-space: normal;
    word-break: break-word;
  }

  .sim-team-info span {
    font-size: 0.72rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
  }

  .sim-score-center {
    flex: 0 0 auto;
    padding: 0 6px;
  }

  .sim-score-numbers {
    font-size: 2.1rem;
  }

  .sim-clock-badge {
    font-size: 0.74rem;
    padding: 2px 8px;
  }

  .sim-possession-bar-wrap {
    margin-top: 16px;
    padding-top: 14px;
  }

  .sim-possession-labels {
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.78rem;
  }

  .sim-possession-labels span:nth-child(2) {
    order: -1;
    width: 100%;
    text-align: center;
    font-size: 0.78rem;
    padding-bottom: 4px;
    color: var(--text-muted);
  }

  .sim-config-bar {
    padding: 16px 14px;
    margin-bottom: 20px;
  }

  .sim-config-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: 100%;
  }

  .sim-config-col {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .sim-config-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 16px;
  }

  .btn-sim-action {
    width: 100%;
    justify-content: center;
    padding: 13px 16px;
    font-size: 0.95rem;
  }

  .legal-table-responsive {
    margin: 14px 0;
    border-radius: var(--radius-sm);
  }

  .legal-table {
    min-width: 480px;
    font-size: 0.8rem;
  }

  .legal-table th,
  .legal-table td {
    padding: 10px 10px;
    font-size: 0.78rem;
  }

  /* Comparativa Free vs Pro (Se adapta 100% a la pantalla sin tapar datos) */
  .legal-table.table-comparison {
    min-width: 100%;
    width: 100%;
    font-size: 0.8rem;
  }

  .legal-table.table-comparison th,
  .legal-table.table-comparison td {
    padding: 10px 8px;
    white-space: normal;
  }

  .legal-table.table-comparison th:first-child,
  .legal-table.table-comparison td:first-child {
    width: 44%;
    font-weight: 600;
  }

  .legal-table.table-comparison th:nth-child(2),
  .legal-table.table-comparison td:nth-child(2) {
    width: 28%;
    text-align: center;
  }

  .legal-table.table-comparison th:nth-child(3),
  .legal-table.table-comparison td:nth-child(3) {
    width: 28%;
    text-align: center;
  }

  .card {
    padding: 18px 16px;
  }
}

/* 4. Pantallas Estrechas y Móvil Compacto (<= 480px hasta 300px) */
@media (max-width: 480px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .header-inner {
    height: 48px;
  }

  .brand-logo {
    gap: 5px;
  }

  .brand-icon {
    width: 20px;
    height: 20px;
  }

  .brand-name {
    font-size: 0.88rem;
  }

  .brand-tag {
    display: none;
  }

  .burger-btn {
    width: 32px;
    height: 32px;
    padding: 6px 5px;
  }

  .burger-btn span {
    width: 17px;
    height: 2px;
  }

  .burger-btn.is-active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }
  .burger-btn.is-active span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .mobile-nav-drawer {
    width: 88%;
    max-width: 280px;
    padding: 0;
  }

  .mobile-nav-links .nav-link {
    padding: 7px 10px;
    font-size: 0.82rem;
  }

  .hero-stats-flex {
    gap: 6px;
    padding-top: 14px;
  }

  .hero-stat-box {
    padding: 8px 4px;
  }

  .hero-stat-box h3 {
    font-size: 1.1rem;
    margin-bottom: 1px;
  }

  .hero-stat-box p {
    font-size: 0.62rem;
    letter-spacing: 0;
    line-height: 1.15;
  }

  .hero-widget-card {
    padding: 14px 10px;
  }

  .widget-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
  }

  .live-indicator {
    padding: 2px 7px;
    font-size: 0.68rem;
  }

  .widget-league-title {
    font-size: 0.74rem;
  }

  .widget-player-card {
    padding: 10px 8px;
  }

  .widget-player-header {
    margin-bottom: 8px;
  }

  .widget-player-label {
    font-size: 0.72rem;
  }

  .widget-player-pts {
    font-size: 0.76rem;
  }

  .widget-player-body {
    gap: 8px;
  }

  .widget-player-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

  .widget-player-name {
    font-size: 0.88rem;
  }

  .widget-player-meta {
    font-size: 0.7rem;
  }

  .widget-stats-row {
    gap: 6px;
  }

  .widget-stat-item {
    padding: 7px 4px;
  }

  .widget-stat-item .stat-label {
    font-size: 0.64rem;
  }

  .widget-stat-item .stat-val {
    font-size: 0.94rem;
  }

  .hero-widget-card .btn {
    padding: 9px 12px;
    font-size: 0.82rem;
  }

  h1 {
    font-size: 1.65rem;
  }

  .btn {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .pitch-controls-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .player-slot {
    width: 60px;
  }

  .player-jersey {
    width: 34px;
    height: 34px;
  }

  .player-jersey svg {
    width: 18px;
    height: 18px;
  }

  .player-name-tag .p-name {
    font-size: 0.62rem;
  }

  .calc-wrapper, .legal-content-card, .contact-form-card, .simulator-box {
    padding: 18px 12px;
  }

  .calc-row-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .calc-stepper {
    width: 100%;
    justify-content: flex-end;
  }

  .result-points-display {
    font-size: 2.8rem;
  }

  .footer-col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .cookie-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 14px;
  }

  .cookie-btn-group .btn {
    width: 100%;
  }

  .sim-config-bar {
    padding: 12px 10px;
    margin-bottom: 16px;
  }

  .sim-config-row {
    gap: 10px;
  }

  .sim-config-col .form-label {
    font-size: 0.78rem;
    margin-bottom: 4px;
  }

  .sim-config-col .form-select {
    font-size: 0.82rem;
    padding: 9px 10px;
  }

  .sim-config-actions {
    gap: 8px;
    margin-top: 12px;
  }

  .btn-sim-action {
    font-size: 0.88rem;
    padding: 11px 12px;
  }

  .sim-scoreboard {
    padding: 14px 8px;
    margin-bottom: 16px;
  }

  .sim-teams-row {
    gap: 4px;
  }

  .sim-team-block {
    gap: 6px;
  }

  .sim-team-crest {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .sim-team-crest svg {
    width: 18px;
    height: 18px;
  }

  .sim-team-info h4 {
    font-size: 0.82rem;
    line-height: 1.2;
    margin-bottom: 2px;
  }

  .sim-team-info span {
    font-size: 0.65rem;
  }

  .sim-score-center {
    padding: 0 4px;
  }

  .sim-score-numbers {
    font-size: 1.7rem;
    letter-spacing: 0.02em;
  }

  .sim-clock-badge {
    font-size: 0.66rem;
    padding: 2px 6px;
    margin-top: 3px;
  }

  .sim-possession-bar-wrap {
    margin-top: 12px;
    padding-top: 10px;
  }

  .sim-possession-labels span {
    font-size: 0.72rem;
  }

  .sim-possession-labels span:nth-child(2) {
    font-size: 0.72rem;
    padding-bottom: 2px;
  }

  .legal-table-responsive {
    margin: 12px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  }

  .legal-table {
    min-width: 420px;
  }

  .legal-table th,
  .legal-table td {
    padding: 8px 8px;
    font-size: 0.74rem;
  }

  .legal-table th {
    font-size: 0.7rem;
    padding: 9px 8px;
  }

  .legal-table.table-comparison {
    min-width: 100%;
    font-size: 0.74rem;
  }

  .legal-table.table-comparison th,
  .legal-table.table-comparison td {
    padding: 8px 5px;
    font-size: 0.72rem;
  }

  .legal-table.table-comparison th:first-child,
  .legal-table.table-comparison td:first-child {
    font-size: 0.73rem;
  }

  .card {
    padding: 16px 14px;
  }
}
