/* ============================================
   MundialistaOTC - Diseño profesional
   Mundial FIFA 2026 USA / Canadá / México
   ============================================ */

:root {
  /* Mundial 2026 - Identidad visual (USA • Canadá • México + trofeo) */
  --wc26-navy: #0c2340;
  --wc26-blue: #1e3a5f;
  --wc26-blue-light: #2d5a87;
  --wc26-red: #bf0a30;
  --wc26-red-soft: #e63946;
  --wc26-green: #006847;
  --wc26-green-light: #00843d;
  --wc26-gold: #c9a227;
  --wc26-gold-light: #e8c547;
  --wc26-gold-bg: rgba(201, 162, 39, 0.12);
  --wc26-white: #ffffff;
  --wc26-cream: #faf9f6;

  /* FIFA-style (compatibilidad) */
  --fifa-navy: var(--wc26-navy);
  --fifa-navy-light: #152238;
  --fifa-blue: var(--wc26-blue);
  --fifa-blue-bright: var(--wc26-blue-light);
  --fifa-white: var(--wc26-white);
  --fifa-gray-bg: #f8fafc;
  --fifa-border: #e2e8f0;

  /* Paleta principal */
  --green-900: #0a3d21;
  --green-700: #0d4d2b;
  --green-600: #116534;
  --green-500: #15803d;
  --green-400: #22c55e;
  --gold-600: #b8860b;
  --gold-500: var(--wc26-gold);
  --gold-400: #d4af37;
  --gold-300: #e8c547;
  --gold-100: #fef9e7;

  /* Neutros */
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-300: #d4d4d8;
  --gray-400: #a1a1aa;
  --gray-500: #71717a;
  --gray-600: #52525b;
  --gray-700: #3f3f46;
  --gray-800: #27272a;
  --gray-900: #18181b;

  /* Semánticos */
  --error: #dc2626;
  --error-bg: #fef2f2;
  --success: #16a34a;
  --success-bg: #f0fdf4;

  /* Sistema de diseño */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 0 1px rgba(13, 77, 43, 0.1), 0 4px 20px rgba(13, 77, 43, 0.15);

  --transition-fast: 150ms ease;
  --transition-base: 220ms ease;
  --transition-smooth: 280ms cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Responsive: tamaños fluidos */
  --pad-mobile: 16px;
  --pad-tablet: 24px;
  --pad-desktop: 32px;
  --container-max: 480px;
  --container-tablet: 720px;
  --container-desktop: 960px;
}

/* ========== Dispositivos muy estrechos (iPhone SE 320px, Galaxy Fold 280px) ========== */
@media (max-width: 320px) {
  :root {
    --pad-mobile: 12px;
    --radius-md: 12px;
    --radius-lg: 14px;
    --radius-xl: 18px;
  }
}

@media (max-width: 280px) {
  :root {
    --pad-mobile: 10px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
  }
}

/* Reset y base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: clamp(15px, 2.2vw, 17px);
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-800);
  /* Fondo: imagen oficial Mundial 2026 con overlay para legibilidad */
  background-image: linear-gradient(160deg, rgba(12, 35, 64, 0.82) 0%, rgba(30, 58, 95, 0.75) 40%, rgba(13, 61, 46, 0.78) 70%, rgba(0, 104, 71, 0.8) 100%),
    url("https://media.ambito.com/p/db4eca768329df74a3f259a548c33a05/adjuntos/239/imagenes/040/392/0040392533/mundial-2026jpg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  overflow-x: hidden;
}

/* Contenedor principal - Responsive */
.app-shell {
  width: 100%;
  max-width: var(--container-max);
  min-width: 0; /* Evitar overflow en viewports estrechos */
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--wc26-cream);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 24px 80px rgba(0, 0, 0, 0.2);
  position: relative;
}
@media (min-width: 600px) {
  .app-shell { max-width: var(--container-tablet); }
}
@media (min-width: 960px) {
  .app-shell { max-width: var(--container-desktop); }
}

.screen {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  padding-bottom: 88px;
  padding-bottom: max(88px, env(safe-area-inset-bottom) + 72px);
}
.screen.active {
  display: flex;
  animation: fadeIn 0.35s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Cuando la landing está activa */
.app-shell:has(#screen-landing.active) {
  max-width: 100%;
  box-shadow: none;
  background: var(--wc26-cream);
  overflow-x: hidden;
}
body:has(#screen-landing.active) {
  overflow-x: hidden;
  background-image: linear-gradient(160deg, rgba(12, 35, 64, 0.78) 0%, rgba(30, 58, 95, 0.72) 50%, rgba(13, 61, 46, 0.75) 100%),
    url("https://media.ambito.com/p/db4eca768329df74a3f259a548c33a05/adjuntos/239/imagenes/040/392/0040392533/mundial-2026jpg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ========== Landing - Estilo Polla Mundial ========== */
.screen-landing {
  padding-bottom: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--white);
}
/* Mundial 2026: barra superior */
.landing-nav {
  background: linear-gradient(180deg, var(--wc26-navy) 0%, var(--wc26-blue) 100%);
  border-bottom: 2px solid var(--wc26-gold);
  padding: clamp(12px, 3vw, 18px) var(--pad-mobile);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
@media (min-width: 600px) {
  .landing-nav { padding-left: var(--pad-tablet); padding-right: var(--pad-tablet); }
}
.landing-nav-inner {
  max-width: var(--container-desktop);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.landing-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 800;
  color: var(--wc26-white);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo-app-nav {
  height: 44px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  object-position: left;
  border-radius: 8px;
  display: block;
}
.logo-main-hero {
  max-width: 180px;
  height: auto;
  margin: 0 auto 16px;
  display: block;
}
.logo-footer {
  max-width: 140px;
  height: auto;
  margin: 0 auto 12px;
  display: block;
}
.landing-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px;
  border-top: 1px solid var(--gray-200);
  text-align: center;
  background: var(--gray-50);
}
.logo-hero-form {
  max-width: 100px;
  height: auto;
  margin: 0 auto 12px;
  display: block;
}
.logo-hero-form.logo-main {
  max-width: 140px;
}
.logo-app-hero {
  max-width: 64px;
  height: auto;
  margin: 0 auto 8px;
  display: block;
}
.logo-admin-hero {
  max-width: 110px;
  height: auto;
  margin: 0 auto 8px;
  display: block;
}
.logo-dashboard-hero {
  max-width: 52px;
  height: auto;
  margin: 0 auto 6px;
  display: block;
}
.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.5vw, 12px);
  flex-shrink: 0;
}
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.95);
  font-weight: 600;
  padding: clamp(10px, 2.5vw, 14px) clamp(14px, 3vw, 20px);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  min-height: 44px;
  transition: background var(--transition-base), color var(--transition-base);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  color: var(--wc26-white);
}
.btn-landing-cta {
  background: linear-gradient(135deg, var(--wc26-gold) 0%, var(--wc26-gold-light) 100%);
  color: var(--wc26-navy);
  font-weight: 700;
  padding: clamp(10px, 2.5vw, 14px) clamp(18px, 4vw, 28px);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.4);
  min-height: 44px;
  transition: box-shadow var(--transition-base), transform var(--transition-fast), filter var(--transition-base);
}
.btn-landing-cta:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.5);
}
.btn-landing-cta.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}
.btn-text-light {
  color: var(--gray-500);
  font-size: 0.875rem;
}

.landing-main {
  max-width: var(--container-desktop);
  margin: 0 auto;
  padding: 0 var(--pad-mobile) 48px;
  overflow-x: hidden;
  width: 100%;
}
@media (min-width: 600px) {
  .landing-main { padding-left: var(--pad-tablet); padding-right: var(--pad-tablet); }
}
@media (min-width: 960px) {
  .landing-main { padding-left: var(--pad-desktop); padding-right: var(--pad-desktop); }
}

/* Mundial 2026: hero con identidad */
.landing-hero {
  text-align: center;
  padding: clamp(36px, 8vw, 56px) var(--pad-mobile) clamp(44px, 10vw, 64px);
  position: relative;
  overflow: hidden;
}
.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    transparent,
    transparent 0px,
    rgba(0, 104, 71, 0.03) 1px,
    rgba(0, 104, 71, 0.03) 2px
  );
  pointer-events: none;
}
.landing-hero-title {
  font-size: clamp(1.85rem, 5vw, 2.5rem);
  font-weight: 800;
  color: var(--wc26-navy);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  position: relative;
}
.landing-hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--wc26-navy), var(--wc26-blue));
  color: var(--wc26-gold-light);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 8px 20px;
  border-radius: var(--radius-md);
  margin: 12px 0 16px;
  box-shadow: 0 4px 20px rgba(12, 35, 64, 0.35);
  border: 2px solid var(--wc26-gold);
}
.landing-hero-subtitle {
  font-size: clamp(0.7rem, 1.8vw, 0.8rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--wc26-blue);
  margin-bottom: 10px;
}
.landing-hero-location {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 700;
  color: var(--wc26-green);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.landing-hero-date {
  font-size: 0.9rem;
  color: var(--gray-500);
}
.pwa-install-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wc26-navy);
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--wc26-gold);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
.pwa-install-btn:hover {
  background: var(--wc26-gold-light);
  border-color: var(--wc26-gold);
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.3);
}
.pwa-install-btn:active {
  transform: scale(0.98);
}

/* ========== Landing Slider ========== */
.landing-slider-section {
  margin: 0;
  padding: 0 0 24px;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.landing-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-sizing: border-box;
}
.landing-slider-viewport {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  position: relative;
}
.landing-slider-track {
  display: flex;
  transition: transform 0.4s ease-out;
  will-change: transform;
}
.landing-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  position: relative;
  aspect-ratio: 16/9;
  min-height: 200px;
  max-height: 300px;
  flex-shrink: 0;
  overflow: hidden;
  box-sizing: border-box;
}
@media (min-width: 600px) {
  .landing-slide { max-height: 380px; }
}
.landing-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  min-height: 100%;
}
.landing-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(12, 35, 64, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px var(--pad-mobile);
  color: var(--white);
}
@media (min-width: 600px) {
  .landing-slide-overlay { padding: 28px var(--pad-tablet); }
}
.landing-slide-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--wc26-gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.landing-slide-title {
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  font-weight: 800;
  margin: 0 0 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.landing-slide-desc {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.95;
  line-height: 1.4;
}
.landing-slide-result-card,
.landing-slide-news-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px var(--pad-mobile);
  background: linear-gradient(135deg, var(--wc26-navy) 0%, var(--wc26-blue) 100%);
  color: var(--white);
}
.landing-slide-result-tournament,
.landing-slide-news-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--wc26-gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.landing-slide-result-match {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
}
.landing-slide-result-match .team {
  font-weight: 700;
  text-align: center;
  max-width: 120px;
}
.landing-slide-result-match .score {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--wc26-gold);
  min-width: 60px;
}
.landing-slide-result-date,
.landing-slide-news-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
}
.landing-slide-news-title {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 700;
  margin: 0 0 8px;
  text-align: center;
  line-height: 1.35;
}
.landing-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wc26-navy);
  box-shadow: var(--shadow-md);
  z-index: 10;
  transition: background var(--transition-base), transform var(--transition-base);
}
.landing-slider-btn:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.08);
}
.landing-slider-btn:active {
  transform: translateY(-50%) scale(0.96);
}
.landing-slider-prev { left: 12px; }
.landing-slider-next { right: 12px; }
@media (max-width: 480px) {
  .landing-slider-btn { width: 38px; height: 38px; }
  .landing-slider-prev { left: 8px; }
  .landing-slider-next { right: 8px; }
}
.landing-slider-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}
.landing-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-base), transform var(--transition-base);
}
.landing-slider-dot:hover {
  background: rgba(255,255,255,0.8);
}
.landing-slider-dot.active {
  background: var(--wc26-gold);
  transform: scale(1.2);
}
.landing-slider-loading {
  padding: 40px 20px;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.95rem;
}
.landing-slider-loading.hidden {
  display: none;
}
#landing-slider-section:not(:has(.landing-slide)) .landing-slider-btn,
#landing-slider-section:not(:has(.landing-slide)) .landing-slider-dots {
  display: none;
}
#landing-slider-section.slider-empty {
  display: none;
}

.landing-section {
  padding: clamp(32px, 6vw, 48px) 0 clamp(40px, 8vw, 56px);
  border-top: 1px solid var(--fifa-border);
}
.landing-section--alt {
  background: linear-gradient(180deg, var(--wc26-cream) 0%, #f0f4f0 100%);
  margin: 0 calc(-1 * var(--pad-mobile));
  padding: clamp(32px, 6vw, 48px) var(--pad-mobile);
}
@media (min-width: 600px) {
  .landing-section--alt { margin: 0 calc(-1 * var(--pad-tablet)); padding-left: var(--pad-tablet); padding-right: var(--pad-tablet); }
}
.landing-section-title {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--wc26-green);
  text-align: center;
  margin-bottom: 12px;
}
.landing-section-lead {
  text-align: center;
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.landing-cards {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .landing-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
.landing-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}
.landing-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}
.landing-card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 8vw, 44px);
  height: clamp(36px, 8vw, 44px);
  background: linear-gradient(135deg, var(--wc26-green), var(--wc26-green-light));
  color: var(--wc26-white);
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 50%;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 104, 71, 0.35);
}
.landing-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 10px;
}
.landing-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.55;
}

.landing-cards--three {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .landing-cards--three {
    grid-template-columns: repeat(3, 1fr);
  }
}
.landing-feature {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition-base);
}
.landing-feature:hover {
  box-shadow: var(--shadow-sm);
}
.landing-feature-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
}
.landing-feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}
.landing-feature p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.landing-faq {
  max-width: 640px;
  margin: 0 auto;
}
.landing-faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
}
.landing-faq-item summary {
  padding: 18px 20px;
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.landing-faq-item summary::-webkit-details-marker {
  display: none;
}
.landing-faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--green-600);
  font-weight: 400;
}
.landing-faq-item[open] summary::after {
  content: '−';
}
.landing-faq-item p {
  padding: 0 20px 18px;
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
  border-top: 1px solid var(--gray-200);
  padding-top: 14px;
  margin-top: 0;
}

.landing-cta {
  text-align: center;
  padding: clamp(40px, 8vw, 56px) var(--pad-mobile);
  background: linear-gradient(180deg, var(--wc26-cream) 0%, #e8f0e8 100%);
  border-top: 2px solid var(--wc26-gold);
}
.landing-cta-text {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 800;
  color: var(--wc26-navy);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.landing-cta-desc {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: var(--gray-600);
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.landing-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
@media (min-width: 600px) {
  .landing-cta { padding-left: var(--pad-tablet); padding-right: var(--pad-tablet); }
}

/* Panel cuando no hay conexión al servidor */
.no-connection-panel {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px;
  background: var(--error-bg);
  border: 2px solid var(--error);
  border-radius: var(--radius-lg);
  margin-top: 20px;
  margin-left: 20px;
  margin-right: 20px;
}
.no-connection-panel.hidden {
  display: none !important;
}
.no-connection-panel h2 {
  font-size: 1.2rem;
  color: var(--gray-800);
  margin-bottom: 12px;
}
.no-connection-panel p {
  font-size: 0.95rem;
  color: var(--gray-700);
  margin-bottom: 12px;
  line-height: 1.5;
}
.no-connection-panel ol {
  margin: 12px 0 16px 20px;
  color: var(--gray-700);
  line-height: 1.7;
}
.no-connection-panel code {
  background: var(--gray-200);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
}
.no-connection-panel a {
  color: var(--green-700);
  font-weight: 600;
}
.no-connection-panel .btn {
  margin-top: 12px;
}

.landing-footer {
  padding: 24px 20px;
  border-top: 1px solid var(--gray-200);
  text-align: center;
  background: var(--gray-50);
}

/* ========== Hero / Banner - Mundial 2026 ========== */
.hero-banner {
  background: linear-gradient(180deg, var(--wc26-navy) 0%, var(--wc26-blue) 50%, var(--wc26-blue-light) 100%);
  color: var(--wc26-white);
  padding: clamp(20px, 5vw, 32px) var(--pad-mobile);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  text-align: center;
  box-shadow: 0 4px 24px rgba(12, 35, 64, 0.45);
  position: sticky;
  top: 0;
  z-index: 40;
  overflow: hidden;
  border-bottom: 3px solid var(--wc26-gold);
}
.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(201, 162, 39, 0.08), transparent);
  pointer-events: none;
}
.hero-banner .emoji {
  font-size: clamp(2.5rem, 6vw, 3.25rem);
  display: block;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}
.hero-banner h1 {
  font-size: clamp(1.25rem, 3.5vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
  position: relative;
}
.hero-banner .sub {
  font-size: clamp(0.7rem, 1.8vw, 0.85rem);
  font-weight: 700;
  opacity: 0.95;
  margin-top: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  color: var(--wc26-gold-light);
}

/* ========== Formularios - Responsive y touch ========== */
.form-card {
  padding: clamp(20px, 5vw, 32px) var(--pad-mobile);
  flex: 1;
}
@media (min-width: 600px) {
  .form-card { padding-left: var(--pad-tablet); padding-right: var(--pad-tablet); }
}
#screen-register .form-card {
  padding-right: calc(var(--pad-mobile) + 12px);
}
@media (min-width: 600px) {
  #screen-register .form-card { padding-right: calc(var(--pad-tablet) + 20px); }
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  min-height: 48px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--wc26-white);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
@media (max-width: 400px) {
  .form-group input, .form-group textarea { font-size: 16px; }
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}
.form-group input:hover {
  border-color: var(--gray-300);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--wc26-green);
  box-shadow: 0 0 0 4px rgba(0, 104, 71, 0.15);
}
.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Botones - Touch-friendly */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 24px;
  min-height: 48px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-base), background var(--transition-base);
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: linear-gradient(135deg, var(--wc26-green) 0%, var(--wc26-green-light) 100%);
  color: var(--wc26-white);
  box-shadow: 0 2px 12px rgba(0, 104, 71, 0.35);
  min-height: 48px;
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 4px 18px rgba(0, 104, 71, 0.45);
}
.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
.btn-secondary {
  background: var(--wc26-white);
  color: var(--wc26-navy);
  border: 2px solid var(--wc26-blue);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--wc26-gold-bg);
  border-color: var(--wc26-gold);
  color: var(--wc26-navy);
}
.btn-delete {
  background: var(--error-bg);
  color: var(--error);
  border: 2px solid var(--error);
  width: auto;
  min-width: 100px;
}
.btn-delete:hover {
  background: var(--error);
  color: var(--white);
}
.admin-match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
}
.admin-match-actions .btn {
  width: auto;
  flex: 0 1 auto;
  min-height: 44px;
  padding: 10px 16px;
}
@media (max-width: 400px) {
  .card-admin-match .admin-match-actions { flex-direction: column; }
  .card-admin-match .admin-match-actions .btn { width: 100%; }
}

/* Banner: acertaste el marcador */
.banner-exact-score {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--success-bg) 0%, #ecfdf5 100%);
  border: 2px solid var(--success);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(22, 163, 74, 0.2);
}
.banner-exact-score-icon {
  font-size: 2.25rem;
  line-height: 1;
  flex-shrink: 0;
}
.banner-exact-score-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.banner-exact-score-text strong {
  color: var(--green-700);
  font-size: 1.05rem;
}
.banner-exact-score-text span {
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.4;
}

.btn-text {
  background: transparent;
  color: var(--green-700);
  margin-top: 12px;
  font-weight: 500;
}
.btn-text:hover {
  color: var(--green-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.error-msg {
  color: var(--error);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--error-bg);
  border-radius: var(--radius-sm);
}

/* ========== Navegación inferior - Responsive ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--container-max);
  background: var(--wc26-white);
  border-top: 2px solid var(--wc26-gold);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 6px;
  padding-bottom: max(14px, env(safe-area-inset-bottom) + 10px);
  box-shadow: 0 -6px 28px rgba(12, 35, 64, 0.12);
  z-index: 100;
}
@media (min-width: 600px) {
  .bottom-nav {
    max-width: var(--container-tablet);
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (min-width: 960px) {
  .bottom-nav { max-width: var(--container-desktop); }
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: clamp(10px, 2vw, 14px) clamp(8px, 1.5vw, 14px);
  min-height: 56px;
  min-width: 48px;
  justify-content: center;
  color: var(--gray-500);
  text-decoration: none;
  font-size: clamp(0.65rem, 1.6vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-lg);
  transition: color var(--transition-base), background var(--transition-base);
}
.nav-item:hover {
  color: var(--wc26-green);
  background: var(--wc26-gold-bg);
}
.nav-item.active {
  color: var(--wc26-navy);
  background: var(--wc26-gold-bg);
  box-shadow: inset 0 0 0 2px var(--wc26-gold);
}
.nav-item .icon {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  line-height: 1;
}

/* ========== Contenido y cards - Responsive ========== */
.content-pad {
  padding: var(--pad-mobile);
}
@media (min-width: 600px) {
  .content-pad { padding: var(--pad-tablet); }
}
@media (min-width: 960px) {
  .content-pad { padding: var(--pad-desktop); }
}
.card {
  background: var(--wc26-white);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 4vw, 22px);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--fifa-border);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}
/* ========== Tarjetas de pronósticos - Responsive móvil ========== */
.pred-card {
  margin-left: max(0, env(safe-area-inset-left));
  margin-right: max(0, env(safe-area-inset-right));
}
.pred-teams-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin: 16px 0 0;
}
.pred-card .team-block-pred {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  background: linear-gradient(180deg, rgba(13, 77, 43, 0.04) 0%, transparent 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--fifa-border);
}
.pred-card .team-block-pred .team-shield-wrap,
.pred-card .team-block-pred .team-shield,
.pred-card .team-block-pred .team-flag {
  margin-bottom: 0;
}
.pred-card .team-block-pred .team-name {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  font-weight: 700;
  color: var(--wc26-navy);
  text-align: center;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}
.pred-card .vs-block {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--wc26-gold);
  flex-shrink: 0;
}
.pred-card .goals-input-pred {
  width: 56px;
  min-width: 52px;
  min-height: 48px;
  font-size: 1.25rem;
  padding: 10px;
}
.bonus-bets-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--wc26-gold-bg);
}
.bonus-bets-row .bonus-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--fifa-gray-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--fifa-border);
  min-height: 48px;
}
.bonus-bets-row .bonus-label span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
}
.bonus-bets-row .bonus-select {
  min-width: 72px;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}
.pred-card .btn.save-pred {
  margin-top: 16px;
  width: 100%;
}

/* Móvil: apuestas en una columna para más espacio táctil */
@media (max-width: 480px) {
  .pred-card {
    padding: 18px 16px;
    margin-bottom: 20px;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(12, 35, 64, 0.08);
    border: 2px solid var(--fifa-border);
  }
  .pred-card .match-meta {
    font-size: 0.8rem;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--wc26-navy) 0%, var(--wc26-blue) 100%);
    color: var(--wc26-white);
    border-radius: var(--radius-md);
    margin: 0 0 12px 0;
    font-weight: 600;
  }
  .pred-teams-row {
    gap: 12px;
    margin-top: 14px;
  }
  .pred-card .team-block-pred {
    padding: 14px 10px;
    border-radius: var(--radius-lg);
  }
  .pred-card .goals-input-pred {
    width: 60px;
    min-width: 56px;
    min-height: 52px;
    font-size: 1.35rem;
    border-width: 2px;
  }
  .bonus-bets-row {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
  }
  .bonus-bets-row .bonus-label {
    padding: 14px 16px;
    min-height: 52px;
  }
  .bonus-bets-row .bonus-select {
    min-width: 88px;
    min-height: 46px;
    padding: 12px 14px;
    font-size: 1rem;
  }
  .pred-card .btn.save-pred {
    margin-top: 18px;
    min-height: 52px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
  }
}
/* Pantallas muy estrechas: equipos apilados para mejor legibilidad */
@media (max-width: 360px) {
  .pred-teams-row {
    flex-direction: column;
    gap: 8px;
  }
  .pred-card .vs-block {
    font-size: 0.95rem;
  }
}
@media (min-width: 481px) and (max-width: 600px) {
  .bonus-bets-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 600px) {
  .bonus-bets-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

.pred-countdown-wrap {
  margin: 8px 0 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(12, 35, 64, 0.06) 0%, rgba(12, 35, 64, 0.03) 100%);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}
.pred-countdown-label { color: var(--gray-600); }
.pred-countdown-value { color: var(--wc26-green); font-weight: 700; }

.pred-card--closed {
  opacity: 0.85;
}
.pred-closed-msg {
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: 12px 0 0;
  font-size: 0.875rem;
  color: var(--error, #dc3545);
  font-weight: 500;
  line-height: 1.5;
}
@media (max-width: 480px) {
  .pred-closed-msg {
    padding: 14px 16px;
    font-size: 0.9rem;
    border-radius: var(--radius-lg);
  }
}

.match-search-wrapper {
  margin-bottom: 8px;
}
.match-search-spacer {
  height: 56px;
  flex-shrink: 0;
  /* Reserva espacio al final para que el último contenido no quede oculto tras el buscador fijo */
}
.match-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  position: fixed;
  bottom: max(88px, env(safe-area-inset-bottom) + 76px);
  left: 0;
  right: 0;
  z-index: 35;
  background: var(--wc26-white);
  padding-left: var(--pad-mobile);
  padding-right: var(--pad-mobile);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}
@media (min-width: 600px) {
  .match-search-bar {
    left: 50%;
    right: auto;
    width: 100%;
    max-width: var(--container-tablet);
    transform: translateX(-50%);
    padding-left: var(--pad-tablet);
    padding-right: var(--pad-tablet);
  }
}
@media (min-width: 960px) {
  .match-search-bar {
    max-width: var(--container-desktop);
    padding-left: var(--pad-desktop);
    padding-right: var(--pad-desktop);
  }
}
.match-search-input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--gray-400);
  border-radius: 8px;
  font-size: 1rem;
}
.match-search-input:focus {
  outline: none;
  border-color: var(--wc26-green);
}
.match-search-clear {
  padding: 8px 12px;
  border: 2px solid var(--gray-400);
  border-radius: 8px;
  background: var(--wc26-white);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--gray-600);
}
.match-search-clear:hover {
  background: var(--fifa-gray-bg);
  color: var(--gray-800);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.ranking-row-clickable:hover td { background: var(--fifa-gray-bg); cursor: pointer; }
.ranking-detail-panel { margin-top: 16px; }
.ranking-detail-card { background: var(--wc26-white); border-radius: 12px; padding: 20px; border: 1px solid var(--fifa-border); }
.ranking-detail-title { margin: 0 0 12px 0; font-size: 1.2rem; color: var(--wc26-navy); }
.ranking-detail-total { font-weight: 700; color: var(--wc26-green); }
.ranking-breakdown-table { margin-top: 12px; }
.ranking-breakdown-table td { padding: 10px 12px; vertical-align: top; }
.ranking-breakdown-cell { max-width: 280px; font-size: 0.9rem; }
.ranking-breakdown-list { margin: 0; padding-left: 18px; list-style: disc; }
.ranking-breakdown-list li { margin: 4px 0; line-height: 1.35; }
.ranking-breakdown-pts { font-weight: 600; color: var(--wc26-green); margin-right: 4px; }
.resumen-mydesglose { margin-bottom: 24px; }

.card.match-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.card.match-card .match-meta {
  grid-column: 1 / -1;
}

.team-block {
  text-align: center;
}
.team-shield-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-right: 6px;
}
.team-shield {
  width: 40px;
  height: 30px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--fifa-border);
  display: inline-block;
  vertical-align: middle;
}
.fifa-match-card .team-shield {
  width: 48px;
  height: 36px;
  display: block;
  margin: 0 auto 6px;
}
.team-flag,
.team-flag-fallback {
  font-size: 2.25rem;
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}
.team-shield-wrap .team-flag-fallback {
  display: none;
  margin-bottom: 0;
}
.team-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.3;
}
.vs-block {
  text-align: center;
  font-weight: 800;
  color: var(--green-600);
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.match-meta {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.match-meta .phase {
  background: linear-gradient(135deg, var(--wc26-green), var(--wc26-green-light));
  color: var(--wc26-white);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
}

.result-score {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--fifa-blue);
  letter-spacing: -0.02em;
}
/* FIFA-style match result card - Responsive */
.fifa-match-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(8px, 2vw, 16px);
  padding: clamp(14px, 3vw, 20px);
  background: var(--wc26-white);
  border: 1px solid var(--fifa-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: box-shadow var(--transition-base);
}
/* iPhone SE 320px, Galaxy Fold 280px: equipos apilados */
@media (max-width: 360px) {
  .fifa-match-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .fifa-match-card .fifa-score { order: -1; }
}
.fifa-match-card:hover {
  box-shadow: 0 4px 16px rgba(12, 35, 64, 0.1);
}
.fifa-match-card .fifa-team {
  text-align: center;
  font-weight: 600;
  color: var(--gray-800);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}
.fifa-match-card .fifa-score {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 800;
  color: var(--wc26-navy);
  min-width: 50px;
  text-align: center;
}
.fifa-match-card .fifa-meta {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 4px;
}
.fifa-match-card .fifa-phase {
  display: inline-block;
  background: var(--wc26-navy);
  color: var(--wc26-white);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  margin-right: 8px;
}

/* ========== FIFA-style standings table - Responsive ========== */
.fifa-standings-wrap {
  background: var(--fifa-gray-bg);
  border-radius: var(--radius-lg);
  overflow: auto;
  border: 1px solid var(--fifa-border);
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}
.fifa-standings-table {
  width: 100%;
  min-width: 260px;
  border-collapse: collapse;
  font-size: clamp(0.85rem, 2vw, 0.9rem);
}
.fifa-standings-table th {
  background: var(--wc26-navy);
  color: var(--wc26-white);
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  letter-spacing: 0.02em;
}
.fifa-standings-table th:first-child { border-radius: 0; }
.fifa-standings-table td {
  padding: 14px;
  border-bottom: 1px solid var(--fifa-border);
  background: var(--white);
}
.fifa-standings-table tr:last-child td { border-bottom: none; }
.fifa-standings-table tr:hover td { background: var(--fifa-gray-bg); }
.fifa-standings-table .col-pos { width: 44px; text-align: center; font-weight: 800; color: var(--gray-600); }
.fifa-standings-table .col-name { font-weight: 600; color: var(--gray-800); }
.fifa-standings-table .col-pts { font-weight: 800; color: var(--wc26-green); text-align: center; min-width: 72px; white-space: nowrap; }
.fifa-standings-table .col-pts .pts-label { font-weight: 600; font-size: 0.85em; color: var(--gray-600); margin-left: 2px; }

/* ========== Clasificatoria por grupos (FIFA-style) ========== */
.standings-intro {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 20px;
  line-height: 1.5;
}
.standings-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.standings-group-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--fifa-border);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.standings-group-title {
  margin: 0;
  padding: 12px 16px;
  background: var(--wc26-navy);
  color: var(--wc26-white);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.group-standings-table {
  font-size: clamp(0.75rem, 1.5vw, 0.85rem);
  min-width: 420px;
}
.group-standings-table .col-pos { width: 28px; text-align: center; }
.group-standings-table .col-team { min-width: 120px; }
.group-standings-table .col-stat { width: 32px; text-align: center; font-weight: 600; color: var(--gray-700); }
.group-standings-table .col-dg { font-weight: 700; color: var(--wc26-green); }
.team-shield-inline { display: inline-flex; align-items: center; margin-right: 6px; vertical-align: middle; }
.team-shield-inline .team-shield { width: 24px; height: 24px; object-fit: contain; }
.team-name-cell { vertical-align: middle; }
.qual-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.qual-badge.qual-1 { background: var(--wc26-green); color: var(--white); }
.qual-badge.qual-2 { background: var(--wc26-green); color: var(--white); }
.qual-badge.qual-3 { background: var(--gold-400); color: var(--wc26-navy); }
.standings-row.standings-qualified td { background: linear-gradient(90deg, rgba(0, 166, 81, 0.08) 0%, var(--white) 30%); }

.last-update-text {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.last-update-text::before {
  content: '🕐';
  font-size: 0.9rem;
}

/* ========== Ranking ========== */
.ranking-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition-base), transform var(--transition-fast);
}
.ranking-row:hover {
  box-shadow: var(--shadow-sm);
}
.ranking-row.rank-1 {
  border-left: 4px solid var(--gold-500);
  background: linear-gradient(90deg, var(--gold-100) 0%, var(--white) 20%);
}
.ranking-row.rank-2 {
  border-left: 4px solid #94a3b8;
  background: linear-gradient(90deg, #f1f5f9 0%, var(--white) 20%);
}
.ranking-row.rank-3 {
  border-left: 4px solid #b45309;
  background: linear-gradient(90deg, #fff7ed 0%, var(--white) 20%);
}
.rank-pos {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-300);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.rank-1 .rank-pos {
  background: linear-gradient(145deg, var(--gold-500), var(--gold-400));
  color: var(--white);
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.4);
}
.rank-2 .rank-pos {
  background: linear-gradient(145deg, #64748b, #94a3b8);
  color: var(--white);
}
.rank-3 .rank-pos {
  background: linear-gradient(145deg, #b45309, #ea580c);
  color: var(--white);
}
.rank-info {
  flex: 1;
  min-width: 0;
}
.rank-name {
  font-weight: 700;
  color: var(--gray-800);
  font-size: 0.95rem;
}
.rank-code {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 2px;
}
.rank-pts {
  font-weight: 800;
  color: var(--wc26-navy);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

/* ========== Pronósticos - inputs goles ========== */
.goals-input {
  width: 72px;
  min-width: 64px;
  min-height: 48px;
  padding: 12px;
  text-align: center;
  font-size: clamp(1.2rem, 3vw, 1.35rem);
  font-weight: 700;
  font-family: var(--font-sans);
  border: 2px solid var(--wc26-gold);
  border-radius: var(--radius-md);
  margin: 10px auto;
  display: block;
  background: var(--wc26-gold-bg);
  color: var(--gray-800);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  box-sizing: border-box;
}
.goals-input:focus {
  outline: none;
  border-color: var(--wc26-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.25);
}
.goals-input:disabled {
  background: var(--gray-100);
  border-color: var(--gray-300);
  color: var(--gray-500);
}
.goals-input-inline {
  display: inline-block;
  width: 72px;
  min-width: 64px;
  margin: 0 4px;
  vertical-align: middle;
}
/* Pronósticos del usuario: casillas más anchas y que no se compriman */
.team-block-pred {
  min-width: 0;
  flex: 0 1 auto;
}
.team-block-pred .goals-input-pred,
.goals-input-pred {
  width: 72px;
  min-width: 72px;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: auto;
}

/* Apuestas bonus */
.bonus-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--gray-600);
}
.bonus-label span { white-space: nowrap; }
.bonus-select {
  padding: 6px 10px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  font-family: var(--font-sans);
  background: var(--white);
  min-width: 64px;
}
.bonus-select:focus {
  outline: none;
  border-color: var(--wc26-gold);
}

/* ========== Admin ========== */
.admin-nav-wrap {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  overflow-x: auto;
  gap: 8px;
  padding: 14px 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar {
  display: none;
}
.admin-tab {
  padding: 12px 20px;
  white-space: nowrap;
  border: none;
  background: var(--gray-100);
  color: var(--gray-600);
  font-weight: 600;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base);
}
.admin-tab:hover {
  background: var(--gray-200);
  color: var(--gray-800);
}
.admin-tab.active {
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.admin-panel {
  padding: var(--pad-mobile);
  background: var(--gray-50);
}
@media (min-width: 600px) {
  .admin-panel { padding: var(--pad-tablet); }
}
@media (min-width: 960px) {
  .admin-panel { padding: var(--pad-desktop); }
}
.user-card-admin {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition-base);
}
.user-card-admin:hover {
  box-shadow: var(--shadow-sm);
}
.user-card-admin.inactive {
  opacity: 0.8;
  background: var(--gray-100);
}

.admin-ranking-table .admin-ranking-row:hover td { background: var(--fifa-gray-bg); }
.admin-ranking-table .col-status { font-size: 0.9rem; }
.admin-profile-panel { padding: 16px 0; }
.admin-profile-back { margin-bottom: 16px; }
.admin-profile-card {
  background: var(--white);
  border: 2px solid var(--fifa-border);
  border-radius: 12px;
  padding: 24px;
  max-width: 480px;
}
.admin-profile-name { margin: 0 0 16px; font-size: 1.25rem; color: var(--wc26-navy); }
.admin-profile-pts { font-weight: 800; color: var(--wc26-green); }
.admin-ranking-empty { padding: 24px; text-align: center; color: var(--gray-600); background: var(--fifa-gray-bg); border-radius: 12px; }

.btn-sm { padding: 6px 12px; font-size: 0.85rem; }
.admin-slider-list { display: flex; flex-direction: column; gap: 12px; }
.admin-slider-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--fifa-gray-bg); border-radius: var(--radius-md); border: 1px solid var(--fifa-border);
}
.admin-slider-item-type {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--wc26-green);
  background: rgba(0, 104, 71, 0.1); padding: 4px 8px; border-radius: 6px;
}
.admin-slider-item-label { flex: 1; font-weight: 500; }
.slide-type-fields.hidden { display: none !important; }

/* ========== Admin Slider - Formulario profesional ========== */
.admin-slider-form-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(12, 35, 64, 0.06);
}
.admin-slider-form-card .form-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.admin-slider-form-card .form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-slider-form-card .form-row .form-group { flex: 1; min-width: 200px; }
.admin-slider-form-card .form-row .btn { flex-shrink: 0; }
.admin-slider-form-card .form-control {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}
.admin-slider-form-card .form-control:focus {
  outline: none;
  border-color: var(--wc26-green);
  box-shadow: 0 0 0 3px rgba(0, 104, 71, 0.15);
}
.admin-slider-form-card .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 500px) {
  .admin-slider-form-card .form-row-2 { grid-template-columns: 1fr; }
}
.admin-slider-image-specs,
.slide-validate-specs {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin: 8px 0 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.8);
  border-radius: 8px;
  border-left: 3px solid var(--wc26-green);
}
.slide-image-preview-wrap,
.admin-slider-preview-wrap {
  margin-top: 16px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.slide-image-preview-wrap.hidden,
.admin-slider-preview-wrap.hidden { display: none !important; }
.admin-slider-preview-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-slider-preview-img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--gray-100);
}
.admin-slider-status {
  font-size: 0.9rem;
  line-height: 1.5;
}
.admin-slider-form-card .form-control {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}
.admin-slider-form-card .form-control:focus {
  outline: none;
  border-color: var(--wc26-green);
  box-shadow: 0 0 0 3px rgba(0, 104, 71, 0.15);
}
.admin-slider-url-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.admin-slider-url-row input { flex: 1; min-width: 0; }
.admin-slider-url-row .btn { flex-shrink: 0; }
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 500px) {
  .form-row-2 { grid-template-columns: 1fr; }
}
.slide-image-preview-box {
  aspect-ratio: 16/9;
  max-height: 200px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--gray-100);
  margin-bottom: 12px;
}
.slide-image-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide-image-preview-box img[src=""],
.slide-image-preview-box img:not([src]) { display: none; }
.slide-validate-loading {
  color: var(--gray-600);
  font-style: italic;
}
.slide-validate-ok {
  color: var(--success);
  font-weight: 600;
  font-size: 0.9rem;
}
.slide-validate-warning {
  color: #b45309;
  font-weight: 500;
  font-size: 0.9rem;
}
.slide-validate-error {
  color: var(--error);
  font-weight: 500;
  font-size: 0.9rem;
}

/* ========== Policy / Waiting ========== */
.policy-text,
.waiting-text {
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  margin: 24px;
  line-height: 1.75;
  color: var(--gray-700);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.waiting-text {
  border-left: 4px solid var(--gold-500);
  margin-bottom: 16px;
}
.policy-text p,
.waiting-text p {
  margin-bottom: 0.75em;
}
.policy-text p:last-child,
.waiting-text p:last-child {
  margin-bottom: 0;
}

/* ========== Logout ========== */
.logout-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-sans);
  padding: 10px 16px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-base), border-color var(--transition-base);
  pointer-events: auto;
}
.logout-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ========== Selector competencia ========== */
.comp-selector {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.comp-selector button {
  flex: 1;
  padding: 12px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition-base);
}
.comp-selector button:hover {
  border-color: var(--gray-400);
  color: var(--gray-800);
}
.comp-selector button.active {
  border-color: var(--green-600);
  background: var(--green-700);
  color: var(--white);
}

/* ========== Loading ========== */
.loading {
  text-align: center;
  padding: 48px 24px;
  color: var(--gray-500);
  font-weight: 500;
}
.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--green-600);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== Home - Info cards ========== */
.info-cards {
  padding: 0 0 24px;
}
@media (min-width: 600px) {
  .info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.info-card {
  background: var(--wc26-white);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 4vw, 24px);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--fifa-border);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: box-shadow var(--transition-base), transform var(--transition-fast), border-color var(--transition-base);
}
.info-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
  transform: translateY(-2px);
}
.info-card .icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(13, 77, 43, 0.1) 0%, rgba(21, 128, 61, 0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 6px;
}
.info-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ========== Títulos de sección ========== */
.section-title {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 700;
  color: var(--wc26-navy);
  margin-bottom: 14px;
  padding: 0;
  letter-spacing: -0.01em;
}
@media (min-width: 600px) {
  .section-title { padding: 0 8px; }
}
.intro-text {
  padding: 0 24px 20px;
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Admin textareas inline */
.admin-panel .form-group textarea {
  border-radius: var(--radius-md);
  border: 2px solid var(--gray-200);
  padding: 14px 16px;
}
.admin-panel .form-group textarea:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(13, 77, 43, 0.1);
}
.admin-panel input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--green-600);
  cursor: pointer;
}

/* ========== Notificaciones Toast ========== */
/* ========== Reloj Mundialista - Cuenta regresiva (Bogotá) ========== */
.mundial-countdown {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  flex-wrap: wrap;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--wc26-navy) 0%, #0f2d52 100%);
  color: var(--wc26-white);
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border-bottom: 2px solid var(--gold-500);
}
.mundial-countdown-label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mundial-countdown-tz {
  font-size: 0.7em;
  opacity: 0.9;
  font-weight: 500;
}
.mundial-countdown-value {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--gold-400);
  min-width: 180px;
  text-align: center;
}
.mundial-countdown-value.mundial-ended {
  color: var(--wc26-green);
}
@media (max-width: 360px) {
  .mundial-countdown {
    padding: 6px 12px;
    gap: 6px 10px;
    font-size: 0.7rem;
  }
  .mundial-countdown-value { min-width: 140px; font-size: 0.8em; }
}

.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(340px, calc(100vw - 24px));
  width: min(340px, calc(100vw - 24px));
  pointer-events: none;
}
.toast {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.35s ease;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.toast.toast-success {
  background: var(--success);
  color: var(--white);
}
.toast.toast-warning {
  background: var(--gold-500);
  color: var(--gray-900);
}
.toast.toast-error {
  background: var(--error);
  color: var(--white);
}
.toast-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Estructura páginas: Ingreso y Registro ========== */
.page-section {
  margin-bottom: 24px;
}
.page-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.page-section-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.5;
}
.form-block {
  margin-bottom: 20px;
}
.form-fieldset {
  border: none;
  margin: 0 0 24px 0;
  padding: 0;
}
.fieldset-legend {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-700);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gray-200);
  display: block;
}
.form-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 20px;
}

/* ========== Hero pequeño (apuestas) ========== */
.hero-banner-sm {
  padding: 18px 24px !important;
}
.hero-title-sm {
  font-size: 1.25rem !important;
  margin-bottom: 2px;
}

/* ========== Sugerencias de apuestas ========== */
.suggestions-card,
.bet-guide {
  background: linear-gradient(155deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  border: 2px solid var(--wc26-gold);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 0 0 1px rgba(201,162,39,0.2);
}
.bet-guide .suggestions-title {
  color: var(--wc26-gold-light);
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.bet-guide .suggestions-intro {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
}
.bet-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (min-width: 560px) {
  .bet-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .bet-cards { grid-template-columns: repeat(3, 1fr); }
}
.bet-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  border: 2px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}
.bet-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gray-300);
}
.bet-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-color: var(--wc26-gold);
}
.bet-card--gold::before { background: linear-gradient(90deg, #d4af37, #f4d03f); }
.bet-card--silver::before { background: linear-gradient(90deg, #95a5a6, #bdc3c7); }
.bet-card--bronze::before { background: linear-gradient(90deg, #cd7f32, #e67e22); }
.bet-card--bonus::before { background: linear-gradient(90deg, var(--wc26-green), var(--wc26-green-light)); }
.bet-card-icon {
  font-size: 2.25rem;
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}
.bet-card-pts {
  display: inline-block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--wc26-navy);
  background: var(--wc26-gold-bg);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}
.bet-card-ref {
  display: block;
  font-size: 0.7rem;
  color: var(--wc26-green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  padding: 6px 10px;
  background: rgba(0,104,71,0.08);
  border-radius: var(--radius-xs);
  border-left: 3px solid var(--wc26-green);
}
.bet-card p {
  font-size: 0.8rem;
  color: var(--gray-600);
  line-height: 1.45;
  margin: 0;
}
.suggestions-card:not(.bet-guide) { background: linear-gradient(135deg, var(--gold-100) 0%, rgba(255,255,255,0.95) 100%); border: 1px solid var(--gold-300); }
.suggestions-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 12px;
}
.suggestions-intro {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.5;
  margin-bottom: 16px;
}
.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.suggestion-item {
  text-align: left;
  padding: 14px 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
}
.suggestion-item p {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 8px;
  line-height: 1.4;
}
.suggestion-point {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green-700);
}
.suggestions-tips {
  font-size: 0.85rem;
  color: var(--gray-600);
  padding-left: 20px;
  margin: 0;
  line-height: 1.6;
}
.bet-guide .suggestions-tips {
  color: rgba(255,255,255,0.9);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
}
.bet-guide .suggestions-tips li {
  color: rgba(255,255,255,0.85);
}
.suggestions-tips li {
  margin-bottom: 6px;
}
.suggestions-tips li:last-child {
  margin-bottom: 0;
}

/* ========== Dashboard - KPIs y gráficos ========== */
.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media (min-width: 500px) {
  .dashboard-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 760px) {
  .dashboard-kpi-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
.dashboard-kpi-card {
  background: linear-gradient(145deg, var(--wc26-navy) 0%, var(--wc26-blue) 100%);
  color: var(--wc26-white);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform var(--transition-fast), box-shadow var(--transition-base);
}
.dashboard-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(12, 35, 64, 0.35);
}
.dashboard-kpi-card--admin {
  background: linear-gradient(145deg, var(--wc26-green) 0%, var(--wc26-green-light) 100%);
}
.dashboard-kpi-value {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.dashboard-kpi-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.95;
  margin-top: 4px;
}
.dashboard-mystats {
  margin-bottom: 24px;
  border-left: 4px solid var(--wc26-gold);
}
.dashboard-chart {
  background: var(--wc26-white);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 24px;
  border: 1px solid var(--fifa-border);
  box-shadow: var(--shadow-sm);
}
.dashboard-chart-row {
  display: grid;
  grid-template-columns: 36px 1fr minmax(80px, 140px) 64px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9rem;
}
.dashboard-chart-row:last-child {
  border-bottom: none;
}
.dashboard-chart-row.rank-1 .dashboard-chart-bar { background: linear-gradient(90deg, var(--gold-500), var(--gold-400)); }
.dashboard-chart-row.rank-2 .dashboard-chart-bar { background: linear-gradient(90deg, #64748b, #94a3b8); }
.dashboard-chart-row.rank-3 .dashboard-chart-bar { background: linear-gradient(90deg, #b45309, #ea580c); }
.dashboard-chart-pos {
  font-weight: 800;
  color: var(--gray-600);
}
.dashboard-chart-name {
  font-weight: 600;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dashboard-chart-bar-wrap {
  height: 20px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.dashboard-chart-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--wc26-green), var(--wc26-green-light));
  border-radius: var(--radius-full);
  min-width: 4px;
  transition: width var(--transition-smooth);
}
.dashboard-chart-pts {
  font-weight: 700;
  color: var(--wc26-green);
  text-align: right;
}

.hidden {
  display: none !important;
}

/* ========== Banner de anuncios corporativos ========== */
.app-announcement-banner {
  margin: 0 var(--pad-mobile) 16px;
  background: linear-gradient(135deg, var(--wc26-gold-bg) 0%, rgba(201, 162, 39, 0.15) 100%);
  border: 2px solid var(--wc26-gold);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}
.app-announcement-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.app-announcement-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.app-announcement-reason {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-top: 4px;
  display: block;
}
@media (min-width: 600px) {
  .app-announcement-banner { margin-left: var(--pad-tablet); margin-right: var(--pad-tablet); }
}
@media (min-width: 960px) {
  .app-announcement-banner { margin-left: var(--pad-desktop); margin-right: var(--pad-desktop); }
}

/* ========== Modal editar partido ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
}
.modal-overlay.hidden {
  display: none !important;
}
.modal-card {
  background: var(--wc26-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--fifa-border);
}
.modal-title {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--wc26-navy);
}
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}
.modal-actions .btn { min-width: 100px; }

/* ========== Responsive ultra-estrecho: iPhone SE (320px) y Galaxy Fold (280px) ========== */
@media (max-width: 320px) {
  html { font-size: 14px; }
  /* Evitar zoom en iOS: inputs y selects mínimo 16px */
  .goals-input, .goals-input-pred, .bonus-select, .form-group input, .match-search-input {
    font-size: 16px !important;
  }
  .landing-nav { padding-left: var(--pad-mobile); padding-right: var(--pad-mobile); }
  .landing-nav-inner { gap: 8px; min-width: 0; }
  .landing-nav-actions { gap: 6px; flex-shrink: 0; }
  .btn-ghost, .btn-landing-cta { padding: 8px 10px; font-size: 0.8rem; }
  .logo-app-nav { height: 32px; max-width: 90px; }
  .hero-banner h1 { font-size: 1.1rem; }
  .hero-banner .sub { font-size: 0.65rem; }
  .content-pad { padding: var(--pad-mobile); }
  .card { padding: 14px 12px; margin-bottom: 12px; }
  .fifa-match-card { padding: 12px 10px; gap: 8px; }
  .fifa-match-card .fifa-team { font-size: 0.8rem; }
  .fifa-match-card .fifa-score { font-size: 1.1rem; min-width: 44px; }
  .ranking-row { padding: 12px 14px; gap: 12px; }
  .rank-pos { width: 36px; height: 36px; font-size: 0.9rem; }
  .rank-name { font-size: 0.875rem; }
  .rank-pts { font-size: 1rem; }
  .pred-card { padding: 14px 12px; }
  .pred-card .goals-input-pred { width: 52px; min-width: 48px; min-height: 48px; font-size: 1.2rem; }
  .bonus-bets-row .bonus-label { padding: 10px 12px; min-height: 46px; font-size: 0.8rem; }
  .bonus-bets-row .bonus-select { min-width: 70px; min-height: 42px; padding: 8px 10px; }
  .dashboard-kpi-card { padding: 14px 10px; }
  .dashboard-kpi-value { font-size: 1.25rem; }
  .dashboard-kpi-label { font-size: 0.65rem; }
  .dashboard-chart-row {
    grid-template-columns: 28px 1fr minmax(56px, 80px) 48px;
    gap: 8px;
    font-size: 0.8rem;
    padding: 8px 0;
  }
  .dashboard-chart-pts { font-size: 0.85rem; }
  .bottom-nav { padding: 8px 4px; padding-bottom: max(12px, env(safe-area-inset-bottom) + 8px); }
  .nav-item { padding: 8px 6px; min-width: 44px; font-size: 0.6rem; }
  .nav-item .icon { font-size: 1.15rem; }
  .match-search-bar { padding-left: var(--pad-mobile); padding-right: var(--pad-mobile); }
  .toast { padding: 12px 16px; font-size: 0.875rem; }
  .modal-overlay { padding: 12px; }
  .modal-card { padding: 18px; }
  .fifa-standings-table { min-width: 220px; font-size: 0.8rem; }
  .fifa-standings-table th, .fifa-standings-table td { padding: 10px 8px; }
  .fifa-standings-table .col-pts { min-width: 56px; }
  .group-standings-table { min-width: 320px; font-size: 0.7rem; }
  .group-standings-table .col-stat { width: 26px; }
  .standings-groups { grid-template-columns: 1fr; }
  .qual-badge { font-size: 0.55rem; padding: 1px 4px; }
}

@media (max-width: 280px) {
  html { font-size: 13px; }
  .goals-input, .goals-input-pred, .bonus-select, .form-group input, .match-search-input {
    font-size: 16px !important;
  }
  .landing-nav-inner { gap: 6px; }
  .btn-ghost, .btn-landing-cta { padding: 6px 8px; font-size: 0.75rem; }
  .logo-app-nav { height: 28px; max-width: 72px; }
  .landing-hero-title { font-size: 1.5rem; }
  .landing-hero-badge { font-size: 2rem; padding: 6px 14px; }
  .pred-teams-row { flex-direction: column; gap: 6px; }
  .pred-card .team-block-pred { padding: 10px 8px; }
  .pred-card .goals-input-pred { width: 48px; min-width: 44px; min-height: 44px; font-size: 1.1rem; }
  .bonus-bets-row .bonus-label span { font-size: 0.75rem; }
  .bonus-bets-row .bonus-select { min-width: 64px; min-height: 40px; }
  .dashboard-kpi-grid { gap: 8px; }
  .dashboard-kpi-card { padding: 12px 8px; }
  .dashboard-kpi-value { font-size: 1.1rem; }
  .dashboard-chart-row {
    grid-template-columns: 24px 1fr minmax(48px, 70px) 44px;
    gap: 6px;
    font-size: 0.75rem;
  }
  .fifa-standings-table { min-width: 200px; font-size: 0.75rem; }
  .fifa-standings-table th, .fifa-standings-table td { padding: 8px 6px; }
  .fifa-standings-table .col-pos { width: 36px; }
  .fifa-standings-table .col-pts { min-width: 48px; }
  .nav-item { padding: 6px 4px; font-size: 0.55rem; }
  .rank-pos { width: 32px; height: 32px; font-size: 0.8rem; }
}
