/**
 * La Timba Web App — shell estilo homepage (sin Free Hub).
 */
body.web-app {
  background: var(--home-bg, #f0f2f5);
  /* style.css redefine --primary (#00ff88) y --text (#e6edf3); restaurar marca web en el shell */
  --home-brand: #6fbd88;
  --home-brand-hover: #57a872;
  --home-brand-bright: #78d79d;
  --home-brand-soft: rgba(111, 189, 136, 0.14);
  --home-brand-link: #57a872;
  --home-blue: #6fbd88;
  --home-blue-hover: #57a872;
  --home-blue-soft: rgba(111, 189, 136, 0.14);
  --home-text: #111827;
  --home-muted: #64748b;
}
body.web-app .main {
  background: transparent;
  padding: 0;
  max-width: none;
}
body.web-app .home-wrap--app {
  max-width: var(--home-max, 1200px);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

body.web-app.user-logged-in .home-wrap--app {
  padding-top: 1.75rem;
}
body.web-app .section {
  display: none;
}
body.web-app .section.active {
  display: block;
}

/* Barra visitante */
.home-guest-notice {
  display: none;
  max-width: var(--home-max, 1200px);
  margin: 0 auto 1rem;
  padding: 0.65rem 1.25rem;
  background: #ecfdf5;
  border: 1px solid #86efac;
  border-radius: 10px;
  font-size: 0.84rem;
  color: #14532d;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.home-guest-notice.is-visible {
  display: flex;
}
.home-guest-notice a { color: #15803d; font-weight: 600; }
.home-guest-notice__actions {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.home-btn--sm {
  padding: 0.4rem 0.85rem !important;
  font-size: 0.8rem !important;
}

/* Toolbar provincia / juego */
.home-app-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--home-card, #fff);
  border-radius: var(--home-radius, 12px);
  box-shadow: var(--home-shadow, 0 1px 3px rgba(0,0,0,0.08));
  color: #111827;
}
.home-app-toolbar #provinciaSelector,
.home-app-toolbar #freeHubHeaderJuegoWrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.home-app-toolbar label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--home-muted, #64748b);
  margin: 0;
  line-height: 1;
}
.home-app-toolbar select {
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.88rem;
  min-width: 10rem;
}
.home-app-toolbar__user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
body.web-app .home-app-toolbar #headerUserEmail {
  color: #111827;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Header — controles en barra oscura cuando hay sesión */
body.web-app.user-logged-in .home-header__inner {
  flex-wrap: wrap;
  row-gap: 0.45rem;
  padding-top: 0.35rem;
  padding-bottom: 0.45rem;
}

body.web-app.user-logged-in .home-nav {
  flex: 0 1 auto;
  justify-content: flex-start;
}

body.web-app .home-header__app-controls {
  display: none;
  align-items: center;
  gap: 0.55rem 0.75rem;
  flex: 1 1 auto;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-width: 0;
  margin-left: auto;
}

body.web-app.user-logged-in .home-header__app-controls {
  display: flex;
}

body.web-app.user-logged-in .home-app-toolbar {
  display: none !important;
}

body.web-app .home-header__app-controls #provinciaSelector,
body.web-app .home-header__app-controls #freeHubHeaderJuegoWrap,
body.web-app .home-header__app-controls .user-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.web-app .home-header__app-controls label {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

body.web-app .home-header__app-controls select {
  padding: 0.38rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.82rem;
  min-width: 8.5rem;
  max-width: 11rem;
}

body.web-app .home-header__app-controls select option {
  color: #111827;
  background: #fff;
}

body.web-app .home-header__app-controls .user-actions {
  gap: 0.5rem;
  margin-left: 0.15rem;
}

body.web-app .home-header__app-controls #headerUserEmail {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 500;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.web-app .home-header__app-controls .home-app-badge-premium {
  background: rgba(111, 189, 136, 0.22);
  color: #bbf7d0;
  border: 1px solid rgba(111, 189, 136, 0.45);
}

body.web-app .home-header__app-controls .home-app-btn-logout {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
}

body.web-app .home-header__app-controls .home-app-btn-logout:hover {
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 900px) {
  body.web-app.user-logged-in .home-header__app-controls {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  body.web-app .home-header__app-controls #headerUserEmail {
    max-width: 100%;
  }
}

.home-app-badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 700;
}
.home-app-btn-logout {
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--home-navy, #0f172a);
}
.home-app-btn-logout:hover { background: #f8fafc; }

/* Bienvenida premium */
.home-app-welcome {
  position: relative;
  background: linear-gradient(135deg, #052E2B, #0A4E45);
  color: #fff;
  border-radius: 28px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--home-shadow);
  overflow: hidden;
}
.home-app-welcome::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--primary);
  filter: blur(120px);
  opacity: 0.16;
  top: -80px;
  right: -40px;
  pointer-events: none;
}
.home-app-welcome__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}
.home-app-welcome h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
}
.home-app-welcome p { margin: 0; opacity: 0.88; font-size: 0.92rem; }
.home-app-welcome__plan {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  min-width: 200px;
  font-size: 0.82rem;
}
.home-app-welcome__plan strong { display: block; font-size: 0.95rem; margin-bottom: 0.25rem; }
.home-app-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.home-app-quick a,
.home-app-quick button {
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.home-app-quick a:hover,
.home-app-quick button:hover { background: rgba(255,255,255,0.2); }

/* Resultados en dashboard */
.home-app-results {
  margin-bottom: 1.25rem;
}

/* Pro landing dentro de cards blancas */
body.web-app .pro-landing-section {
  background: var(--home-card, #fff);
  border-radius: var(--home-radius, 12px);
  box-shadow: var(--home-shadow);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
body.web-app .pro-landing-title {
  color: var(--home-navy, #0f172a);
  font-size: 1.15rem;
}
body.web-app .pro-landing-estad-hint,
body.web-app .results-official-disclaimer {
  color: var(--home-muted, #64748b);
}
body.web-app .game-tabs button {
  background: #f1f5f9;
  color: var(--home-navy);
  border: 1px solid #e2e8f0;
}
body.web-app .game-tabs button.active {
  background: var(--home-brand);
  color: #fff;
  border-color: var(--home-brand);
}

/* Dashboard / laboratorio — tema claro + verde de marca (style.css pisa tokens) */
body.web-app .main,
body.web-app .pro-landing {
  --primary: #6fbd88;
  --primary-dark: #57a872;
  --pro: #6fbd88;
  --text: #111827;
  --text-muted: #64748b;
  --text-secondary: #475569;
  --border: #e5e7eb;
  --bg-panel: #f8fafc;
  --bg-panel-alt: #ffffff;
  --bg: #ffffff;
}

body.web-app .stats-card,
body.web-app .quiniela-lab-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  backdrop-filter: none;
  color: #111827;
}

body.web-app .stats-card-title {
  color: #111827;
}

body.web-app .stats-card-title .stats-card-icon {
  color: #64748b;
}

body.web-app .stats-card-sub {
  color: #64748b;
}

body.web-app .quiniela-alerta-estadistica {
  background: #fef9c3;
  border-color: #fde047;
}

body.web-app .quiniela-alerta-estadistica p {
  color: #422006;
}

body.web-app .quiniela-alerta-icon {
  color: #d97706;
}

body.web-app .quiniela-signo-item {
  background: #f8fafc;
  border-color: #e5e7eb;
}

body.web-app .quiniela-suenos-input {
  background: #fff;
  color: #111827;
  border-color: #d1d5db;
}

body.web-app .quiniela-suenos-chip {
  background: rgba(111, 189, 136, 0.12);
  border-color: rgba(111, 189, 136, 0.28);
  color: #111827;
}

body.web-app .quiniela-mis-numeros-wrap .quiniela-fav-ball {
  background: #fff;
  border-color: #6fbd88;
  color: #57a872;
}

body.web-app .quiniela-fav-add {
  border-color: #d1d5db;
  color: #64748b;
}

body.web-app .quiniela-fav-add:hover {
  border-color: #6fbd88;
  color: #6fbd88;
}

body.web-app .quiniela-lab-card .btn-outline {
  border-color: #6fbd88;
  color: #57a872;
}

body.web-app .quiniela-lab-card .btn-outline:hover:not(:disabled) {
  border-color: #57a872;
  color: #57a872;
  background: rgba(111, 189, 136, 0.1);
}

body.web-app .historial-quiniela-fecha-bar {
  background: #f8fafc;
  border-color: #e5e7eb;
  justify-content: flex-start;
}

body.web-app .historial-quiniela-fecha-label {
  color: #374151;
}

body.web-app .historial-quiniela-fecha-select {
  background: #fff;
  color: #111827;
  border: 1px solid #d1d5db;
}

body.web-app .historial-quiniela-fecha-select:focus {
  outline: 2px solid rgba(111, 189, 136, 0.45);
  outline-offset: 2px;
  border-color: #6fbd88;
}

body.web-app .lab-pro-section {
  background: #fff;
  border-color: rgba(111, 189, 136, 0.22);
}

body.web-app .lab-metric-chip {
  background: rgba(111, 189, 136, 0.12);
  color: #57a872;
}

/* Gate membresía (visitante / sin pago) */
.home-app-gate {
  max-width: 900px;
  margin: 0 auto;
}
.home-app-gate__hero {
  text-align: center;
  margin-bottom: 1.5rem;
}
.home-app-gate__hero h1 {
  margin: 0.5rem 0;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: var(--home-navy);
}
.home-app-gate__hero p {
  margin: 0;
  color: var(--home-muted);
  line-height: 1.55;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.home-app-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.25rem;
}
.home-app-gate__free-link {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--home-muted);
}
.home-app-gate__free-link a { color: var(--home-brand-link, #15803d); font-weight: 600; }

body.web-app .config-section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

body.web-app .config-section-head h2 {
  margin: 0;
}

body.web-app .config-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

body.web-app .config-back-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Modal Ajustar estrategia — interfaz clara web app */
body.web-app .web-ajustar-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

body.web-app .web-ajustar-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

body.web-app .web-ajustar-panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: min(90vh, 640px);
  overflow-y: auto;
  background: #fff;
  color: var(--home-text, #0f172a);
  border-radius: 16px;
  padding: 1.5rem 1.35rem 1.25rem;
  border: 1px solid var(--home-border, #e2e8f0);
  box-shadow: 0 24px 60px rgba(15, 28, 51, 0.18);
  animation: web-ajustar-slideUp 0.22s ease;
}

@keyframes web-ajustar-slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

body.web-app .web-ajustar-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

body.web-app .web-ajustar-close:hover {
  background: #e2e8f0;
  color: #334155;
}

body.web-app .web-ajustar-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 2rem 0.35rem 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--home-navy, #0f1c33);
}

body.web-app .web-ajustar-title .ph-thin {
  color: var(--home-brand-link, #48a872);
  font-size: 1.2rem;
}

body.web-app .web-ajustar-sub {
  margin: 0 0 1rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--home-muted, #64748b);
}

body.web-app .web-ajustar-sub strong {
  color: #334155;
  font-weight: 600;
}

body.web-app .web-ajustar-panel .lab-ajustar-group {
  margin-bottom: 0.85rem;
}

body.web-app .web-ajustar-panel .lab-ajustar-group-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin: 0 0 0.45rem;
}

body.web-app .web-ajustar-panel .lab-ajustar-modos,
body.web-app .web-ajustar-cantidad {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

body.web-app .web-ajustar-chip {
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

body.web-app .web-ajustar-chip:hover {
  background: #fff;
  border-color: #cbd5e1;
  color: #0f172a;
}

body.web-app .web-ajustar-chip.active {
  background: rgba(111, 189, 136, 0.14);
  border-color: var(--home-brand, #6fbd88);
  color: var(--home-brand-link, #48a872);
}

body.web-app .web-ajustar-section-title {
  margin: 0.85rem 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

body.web-app .web-ajustar-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 1rem 0 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: #475569;
  cursor: pointer;
}

body.web-app .web-ajustar-check input {
  margin-top: 0.15rem;
  accent-color: var(--home-brand, #6fbd88);
}

body.web-app .web-ajustar-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

body.web-app .web-ajustar-actions .home-btn {
  flex: 1;
  justify-content: center;
}

body.web-app .web-ajustar-actions .home-btn--ghost {
  background: #fff;
  color: #334155;
  border: 1px solid #cbd5e1;
}

body.web-app .web-ajustar-actions .home-btn--ghost:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

/* Sección membresía (#pro) */
body.web-app .pro-section-inner {
  max-width: 520px;
  margin: 0 auto;
}
body.web-app .pro-card,
body.web-app .pro-benefits-card {
  background: var(--home-card);
  border-radius: var(--home-radius);
  box-shadow: var(--home-shadow);
  color: var(--home-navy);
}
body.web-app .pro-card-inner { color: inherit; }
body.web-app .pro-card-slogan,
body.web-app .pro-benefits-list li { color: var(--home-muted); }

body.web-app .pro-card-badge {
  background: var(--home-brand);
  color: #fff;
}
body.web-app .pro-card-title {
  color: var(--home-navy);
}
body.web-app .pro-card-price {
  color: var(--home-brand-link);
}
body.web-app .pro-btn-activar {
  background: var(--home-brand);
  color: #fff;
  box-shadow: 0 8px 22px rgba(111, 189, 136, 0.35);
}
body.web-app .pro-btn-activar:hover {
  background: var(--home-brand-hover);
}
body.web-app .pro-benefits-title {
  color: var(--home-navy);
}
body.web-app .pro-benefits-title .ph-thin,
body.web-app .pro-benefits-icon {
  color: var(--home-brand);
}
body.web-app .pro-panel-pago .pro-btn-activar {
  background: var(--home-brand);
}
body.web-app .pro-panel-pago .pro-btn-activar:hover {
  background: var(--home-brand-hover);
}

/* Login overlay — paleta homepage (legible sobre blanco) */
body.web-app .login-page {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
body.web-app .login-page-inner.login-card {
  max-width: 420px;
  width: 100%;
  background: #fff;
  color: var(--home-text, #0f172a);
  border-radius: 16px;
  padding: 2rem 1.75rem 1.5rem;
  border: 1px solid var(--home-border, #e2e8f0);
  box-shadow: 0 24px 60px rgba(15, 28, 51, 0.18);
}
body.web-app .login-card__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin: 0 0 0.35rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--home-brand-link, #48a872);
}
body.web-app .login-card__eyebrow-icon {
  background: var(--home-brand-soft, rgba(111, 189, 136, 0.14));
  color: var(--home-brand-link, #48a872);
}
body.web-app .login-page h1 {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--home-navy, #0f1c33);
  text-align: center;
  line-height: 1.25;
}
body.web-app .login-page-sub {
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--home-muted, #64748b);
}
body.web-app .login-page-aviso {
  margin: 0 0 0.85rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--home-muted, #64748b);
}
body.web-app .login-page-pro-hint {
  margin: 0 0 1.25rem;
  padding: 0.75rem 0.9rem;
  background: var(--home-brand-soft, #e3f6ea);
  border-radius: 10px;
  border: 1px solid rgba(72, 168, 114, 0.25);
  font-size: 0.88rem;
  line-height: 1.55;
  text-align: left;
  color: var(--home-navy, #0f1c33);
  max-width: none;
  opacity: 1;
}
body.web-app .login-page-pro-hint strong {
  color: var(--home-brand-link, #48a872);
}
body.web-app .login-divider {
  margin: 1rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--home-muted, #64748b);
}
body.web-app .login-form .form-group {
  margin-bottom: 0.75rem;
}
body.web-app .login-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--home-muted, #64748b);
}
body.web-app .login-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--home-border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  color: var(--home-text, #0f172a);
  font-size: 1rem;
  box-sizing: border-box;
}
body.web-app .login-input::placeholder {
  color: #94a3b8;
}
body.web-app .login-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(24, 195, 140, 0.22);
}
body.web-app .login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: filter 0.15s, background 0.15s;
}
body.web-app .login-btn--google {
  background: #fff;
  color: var(--home-text, #0f172a);
  border: 1px solid var(--home-border, #e2e8f0);
}
body.web-app .login-btn--google:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
body.web-app .login-btn--primary {
  background: var(--home-brand);
  color: #fff;
  box-shadow: 0 8px 22px rgba(111, 189, 136, 0.35);
  margin-top: 0.25rem;
}
body.web-app .login-btn--primary:hover {
  background: var(--home-brand-hover);
  filter: none;
}
body.web-app .login-form__link-row {
  margin: 0.5rem 0 0;
  text-align: center;
}
body.web-app .login-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  color: var(--home-brand-link, #48a872);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
body.web-app .login-message {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  text-align: center;
  color: var(--home-brand-link, #48a872);
  line-height: 1.45;
}
body.web-app .login-error {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  text-align: center;
  color: #dc2626;
  line-height: 1.45;
}
body.web-app .login-card__footer {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.85rem;
}
body.web-app .login-card__footer a {
  color: var(--home-muted, #64748b);
  font-weight: 500;
}
body.web-app .login-card__footer a:hover {
  color: var(--home-brand-link, #48a872);
}

/* Selector provincia (post-login) */
body.web-app .provincia-selector-page {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
body.web-app .provincia-selector-inner {
  max-width: 400px;
  width: 100%;
  background: #fff;
  color: var(--home-text);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  border: 1px solid var(--home-border);
  box-shadow: 0 24px 60px rgba(15, 28, 51, 0.18);
}
body.web-app .provincia-selector-inner h2 {
  margin: 0 0 0.35rem;
  color: var(--home-navy);
  text-align: center;
}
body.web-app .provincia-selector-sub {
  color: var(--home-muted);
  text-align: center;
  margin-bottom: 1rem;
}
body.web-app .provincia-selector-inner select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--home-border);
  border-radius: 10px;
  background: #fff;
  color: var(--home-text);
  margin-bottom: 0.75rem;
}
body.web-app .provincia-selector-inner .btn-primary {
  background: var(--home-brand);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.8rem;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(111, 189, 136, 0.35);
}
body.web-app .provincia-selector-inner .error {
  color: #dc2626;
  text-align: center;
  font-size: 0.88rem;
}

body.web-app .auth-loading {
  background: var(--home-bg);
  color: var(--home-muted);
}

/* Mis números — tarjetas visuales */
#quinielaMisNumerosCard .quiniela-mis-numeros-sub {
  font-size: 0.9rem;
  max-width: none;
  margin-bottom: 1rem;
}

.mi-numeros-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mi-num-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 1.35rem;
  color: #111827;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.mi-num-empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: #64748b;
}

.mi-num-hero-v2 {
  display: grid;
  grid-template-columns: auto 1fr minmax(140px, 200px);
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.15rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid #eef2f6;
}

.mi-num-hero-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #78d79d 0%, #6fbd88 55%, #57a872 100%);
  box-shadow: 0 8px 24px rgba(111, 189, 136, 0.35);
  letter-spacing: 0.04em;
}

.mi-num-hero-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.mi-num-pill {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mi-num-pill--activo { background: #dcfce7; color: #166534; }
.mi-num-pill--frio { background: #dbeafe; color: #1e40af; }
.mi-num-pill--atrasado { background: #fef3c7; color: #92400e; }
.mi-num-pill--normal, .mi-num-pill--neutral { background: #f1f5f9; color: #475569; }

.mi-num-hero-line {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mi-num-hero-line .ph-thin { color: #6fbd88; font-size: 1rem; }
.mi-num-hero-line strong { color: #111827; }

.mi-num-hero-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.65rem; }

.mi-num-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
}

.mi-num-btn:hover { background: #f8fafc; }
.mi-num-btn--danger { color: #dc2626; border-color: #fecaca; }
.mi-num-btn--danger:hover { background: #fef2f2; }

.mi-num-hero-chart-v2 {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.55rem 0.65rem 0.35rem;
  min-height: 88px;
}

.mi-num-chart-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.mi-num-line-svg {
  width: 100%;
  height: 56px;
  display: block;
}

.mi-num-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.mi-num-kpi {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 0.75rem 0.65rem;
  text-align: center;
}

.mi-num-kpi-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.mi-num-kpi-value {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.1;
}

.mi-num-kpi-value small { font-size: 0.75rem; font-weight: 600; color: #94a3b8; }

.mi-num-kpi--index {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border-color: rgba(111, 189, 136, 0.35);
}

.mi-num-kpi-stars {
  display: block;
  color: #f59e0b;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin-top: 0.15rem;
}

.mi-num-kpi-tag {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #6fbd88;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
}

.mi-num-block-title {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mi-num-block-title .ph-thin { color: #6fbd88; }

.mi-num-lectura { margin-bottom: 1.15rem; }

.mi-num-lectura-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.mi-num-lectura-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.75rem;
}

.mi-num-lectura-kicker {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.mi-num-lectura-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}

.mi-num-lectura-badge--activo { background: #dcfce7; color: #166534; }
.mi-num-lectura-badge--frio { background: #dbeafe; color: #1d4ed8; }
.mi-num-lectura-badge--atrasado { background: #fef3c7; color: #b45309; }
.mi-num-lectura-badge--alta { background: #ede9fe; color: #6d28d9; }
.mi-num-lectura-badge--mod { background: #f1f5f9; color: #475569; }
.mi-num-lectura-badge--baja { background: #fee2e2; color: #b91c1c; }

.mi-num-lectura-num {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.25rem;
}

.mi-num-lectura-card p {
  margin: 0;
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.35;
}

.mi-num-bottom-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mi-num-panel {
  grid-column: span 2;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 0.85rem;
}

.mi-num-panel--ia {
  grid-column: span 2;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border-color: rgba(111, 189, 136, 0.3);
}

.mi-num-panel--metodos { grid-column: span 2; }

.mi-num-ia-lead {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #14532d;
}

.mi-num-ia-combo { margin: 0.5rem 0 0; font-size: 0.85rem; color: #166534; }
.mi-num-ia-note { margin: 0.35rem 0 0; font-size: 0.78rem; color: #64748b; }

.mi-num-hist-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mi-num-hist-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.85rem;
}

.mi-num-hist-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.mi-num-hist-fecha {
  font-weight: 700;
  color: #111827;
}

.mi-num-hist-mod {
  font-size: 0.76rem;
  font-weight: 600;
  color: #6fbd88;
  text-transform: capitalize;
}

.mi-num-hist-list li:last-child { border-bottom: none; }
.mi-num-hist-list em { font-style: normal; color: #94a3b8; font-size: 0.78rem; white-space: nowrap; }

.mi-num-details {
  margin-bottom: 0;
  font-size: 0.85rem;
  color: #475569;
}

.mi-num-details summary {
  cursor: pointer;
  font-weight: 600;
  color: #6fbd88;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mi-num-details-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  line-height: 1.45;
}

.mi-num-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  color: #475569;
}

.mi-num-detail-icon {
  flex-shrink: 0;
  color: #6fbd88;
  font-size: 1rem;
  margin-top: 0.1rem;
}

.mi-num-evol-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 64px;
  padding: 0.35rem 0;
}

.mi-num-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.15rem 0.45rem;
  margin: 0 0.15rem;
  border-radius: 6px;
  background: #fff;
  border: 1px solid rgba(111, 189, 136, 0.4);
  font-weight: 700;
  color: #57a872;
}

.mi-num-partner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
}

.mi-num-partner-ball {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.88rem;
  background: #fff;
  border: 2px solid #6fbd88;
  color: #57a872;
}

.mi-num-partner-track {
  height: 6px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.mi-num-partner-fill {
  display: block;
  height: 100%;
  background: #6fbd88;
  border-radius: 999px;
}

.mi-num-partner-pct {
  font-size: 0.82rem;
  font-weight: 700;
  color: #57a872;
  min-width: 2.5rem;
  text-align: right;
}

.mi-num-empty {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.mi-num-evol-bars span {
  flex: 1;
  min-width: 4px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #78d79d 0%, #6fbd88 100%);
}

.mi-num-hist-date {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.mi-num-metodos {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mi-num-metodo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.mi-num-metodo-name {
  font-weight: 600;
  color: #475569;
}

.mi-num-metodo-stars {
  color: #f59e0b;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}

.mi-num-partners {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mi-num-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e5e7eb;
}

.mi-num-foot-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  font-family: inherit;
}

.mi-num-foot-btn:hover:not(:disabled) {
  background: #f8fafc;
  color: #111827;
  text-decoration: none;
}

.mi-num-foot-btn--active {
  background: rgba(111, 189, 136, 0.12);
  border-color: rgba(111, 189, 136, 0.35);
  color: #166534;
}

.mi-num-foot-btn--muted:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mi-num-add-row {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}

.mi-num-add {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 2px dashed #6fbd88;
  background: rgba(111, 189, 136, 0.06);
  color: #57a872;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
}

.mi-num-add:hover { background: rgba(111, 189, 136, 0.12); }

body.web-app .quiniela-fav-picker-overlay {
  background: rgba(15, 23, 42, 0.45);
}

body.web-app .quiniela-fav-picker {
  background: #fff;
  color: #111827;
  border: 1px solid #e5e7eb;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
}

body.web-app .quiniela-fav-picker h4 { color: #111827; }

body.web-app .quiniela-fav-picker-num {
  background: #fff;
  color: #111827;
  border-color: #d1d5db;
}

body.web-app .quiniela-fav-picker-num:hover:not(.disabled) {
  border-color: #6fbd88;
  background: rgba(111, 189, 136, 0.08);
}

body.web-app .quiniela-fav-picker .quiniela-fav-picker-cancel,
body.web-app .quiniela-fav-picker .btn-outline {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.7rem 1rem;
  border: 2px solid #374151 !important;
  border-radius: 10px;
  background: #fff !important;
  color: #111827 !important;
  font-weight: 700;
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
}

body.web-app .quiniela-fav-picker .quiniela-fav-picker-cancel:hover,
body.web-app .quiniela-fav-picker .btn-outline:hover:not(:disabled) {
  background: #f3f4f6 !important;
  border-color: #111827 !important;
  color: #111827 !important;
}

body.web-app .quiniela-fav-picker-grid {
  scrollbar-color: #94a3b8 #f1f5f9;
}

body.web-app .quiniela-fav-picker-grid::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body.web-app .quiniela-fav-picker-grid::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

body.web-app .quiniela-fav-picker-grid::-webkit-scrollbar-track {
  background: #f1f5f9;
}

body.web-app .quiniela-lab-card--loading {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.web-app .quiniela-lab-empty {
  margin: 0;
  padding: 1rem;
  color: #64748b;
  font-size: 0.88rem;
}

/* ── Centro de Inteligencia / Dashboard PRO ── */
body.web-app .quiniela-lab-dashboard {
  width: 100%;
  display: block;
  margin-top: 0.25rem;
}

body.web-app .quiniela-lab-dashboard > .ci-grid-dashboard {
  width: 100%;
  max-width: none;
}

body.web-app .ci-loading-wrap {
  width: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

body.web-app .ci-grid-dashboard {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.1rem;
  width: 100%;
  grid-auto-rows: minmax(min-content, auto);
}

body.web-app .ci-area-jugada { grid-column: 1 / span 6; grid-row: 1; }
body.web-app .ci-area-radar { grid-column: 7 / span 3; grid-row: 1; }
body.web-app .ci-area-alert { grid-column: 10 / span 3; grid-row: 1; }
body.web-app .ci-grid-dashboard--no-alert .ci-area-radar { grid-column: 7 / span 6; }
body.web-app .ci-area-ia { grid-column: 1 / span 4; grid-row: 2; }
body.web-app .ci-area-combos { grid-column: 5 / span 4; grid-row: 2; }
body.web-app .ci-area-signo { grid-column: 9 / span 4; grid-row: 2; }
body.web-app .ci-area-suenos { grid-column: 1 / -1; grid-row: 3; }
body.web-app .ci-area-conf { grid-column: 1 / span 3; grid-row: 4; }
body.web-app .ci-area-tend { grid-column: 4 / span 3; grid-row: 4; }
body.web-app .ci-area-metodos { grid-column: 7 / span 3; grid-row: 4; }
body.web-app .ci-area-sorteos { grid-column: 10 / span 3; grid-row: 4; }
body.web-app .ci-area-disclaimer { grid-column: 1 / -1; grid-row: 5; }

body.web-app .ci-grid-dashboard--no-alert .ci-area-jugada { grid-column: 1 / span 6; }

body.web-app .ci-card {
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 16px;
  padding: 1.15rem 1.25rem 1rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

body.web-app .ci-card-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

body.web-app .ci-card-head-left {
  min-width: 0;
}

body.web-app .ci-card-kicker--inline {
  margin: 0.15rem 0 0;
}

body.web-app .ci-badge-hoy {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(111, 189, 136, 0.14);
  color: #166534;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

body.web-app .ci-card-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
}

body.web-app .ci-card-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body.web-app .ci-card-title .ph-thin {
  color: #6fbd88;
  font-size: 1.15rem;
  flex-shrink: 0;
}

body.web-app .ci-card-title--hero {
  font-size: 0.88rem;
  text-transform: none;
  letter-spacing: 0;
}

body.web-app .ci-card--hero {
  background: #fff;
  border-color: #e8ecf0;
  text-align: center;
}

body.web-app .ci-card-foot {
  margin-top: auto;
  padding-top: 0.75rem;
  text-align: center;
}

body.web-app .ci-regenerar-row {
  margin-top: 0.65rem;
  text-align: center;
}

body.web-app .ci-btn-regenerar {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
}

body.web-app .ci-btn-regenerar:hover:not(:disabled) {
  border-color: #6fbd88;
  color: #166534;
}

body.web-app .ci-btn-regenerar:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

body.web-app .ci-conf-line-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

body.web-app .ci-jugada-nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

body.web-app .ci-jugada-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

body.web-app .ci-jugada-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 96px;
  min-height: 72px;
  padding: 0.65rem 0.4rem;
  border-radius: 14px;
  border: 2px solid rgba(111, 189, 136, 0.55);
  background: #f0fdf4;
  font-size: 2.35rem;
  font-weight: 800;
  color: #15803d;
  line-height: 1;
}

body.web-app .ci-jugada-score {
  font-size: 0.76rem;
  font-weight: 700;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

body.web-app .ci-jugada-score .ph-thin { color: #f59e0b; }

body.web-app .ci-jugada-metodo {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
}

body.web-app .ci-jugada-metodo--cazador { background: rgba(111, 189, 136, 0.15); color: #166534; }
body.web-app .ci-jugada-metodo--rebote { background: #ede9fe; color: #6d28d9; }
body.web-app .ci-jugada-metodo--caliente { background: #fef3c7; color: #b45309; }

body.web-app .ci-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: none;
  color: #166534;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
}

body.web-app .ci-link-btn:hover { text-decoration: underline; }

body.web-app .ci-explain-all {
  margin-top: 0.85rem;
  text-align: left;
  border-top: 1px solid #e5e7eb;
  padding-top: 0.75rem;
}

body.web-app .ci-explain-block {
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
  color: #475569;
}

body.web-app .ci-explain-block ul {
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

body.web-app .ci-explain-block li {
  display: flex;
  gap: 0.35rem;
  padding: 0.15rem 0;
}

body.web-app .ci-explain-block .ph-thin { color: #6fbd88; }

body.web-app .ci-conf-donut-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

body.web-app .ci-donut {
  width: 108px;
  height: 108px;
  flex-shrink: 0;
}

body.web-app .ci-donut-bg {
  stroke: #e5e7eb;
}

body.web-app .ci-donut-fill {
  stroke: #6fbd88;
  stroke-linecap: round;
}

body.web-app .ci-donut-text {
  font-size: 1.35rem;
  font-weight: 800;
  fill: #111827;
}

body.web-app .ci-conf-copy .ci-conf-pct {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.1;
}

body.web-app .ci-conf-label {
  display: block;
  font-size: 0.88rem;
  color: #166534;
  font-weight: 700;
  margin-top: 0.15rem;
}

body.web-app .ci-conf-note {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.4;
}

body.web-app .ci-tend-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.web-app .ci-tend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
}

body.web-app .ci-tend-row-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.web-app .ci-tend-count {
  min-width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
}

body.web-app .ci-tend-row--caliente .ci-tend-count { background: #ef4444; }
body.web-app .ci-tend-row--frio .ci-tend-count { background: #64748b; }
body.web-app .ci-tend-row--atrasado .ci-tend-count { background: #6fbd88; }
body.web-app .ci-tend-row--rebote .ci-tend-count { background: #8b5cf6; }
body.web-app .ci-tend-row--rep .ci-tend-count { background: #3b82f6; }
body.web-app .ci-tend-row--opp .ci-tend-count { background: #f59e0b; }

body.web-app .ci-card-title--compact {
  font-size: 0.76rem;
  line-height: 1.25;
}

body.web-app .ci-card--sorteos {
  padding: 1rem 1rem 0.85rem;
}

body.web-app .ci-card--metodos {
  padding: 1rem 1.05rem 0.85rem;
}

body.web-app .ci-card-foot--tight {
  padding-top: 0.5rem;
}

body.web-app .ci-link-btn--sm {
  font-size: 0.78rem;
}

body.web-app .ci-metodos-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

body.web-app .ci-metodo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
}

body.web-app .ci-metodo-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.web-app .ci-metodo-stars {
  display: inline-flex;
  gap: 0.1rem;
}

body.web-app .ci-star {
  color: #d1d5db;
  font-size: 0.85rem;
}

body.web-app .ci-star--on { color: #f59e0b; }

body.web-app .ci-ia-body {
  position: relative;
  overflow: visible;
  margin-bottom: 0.75rem;
  z-index: 1;
}

body.web-app .ci-ia-watermark {
  position: absolute;
  right: -0.25rem;
  top: -0.5rem;
  font-size: 4.5rem;
  color: rgba(111, 189, 136, 0.12);
  pointer-events: none;
  z-index: 0;
}

body.web-app .ci-ia-bullets {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #166534;
  font-weight: 500;
  list-style: disc;
}

body.web-app .ci-ia-bullets li {
  display: list-item;
  margin-bottom: 0.35rem;
  color: #166534;
}

body.web-app .ci-ia-bullets li::marker {
  color: #6fbd88;
}

body.web-app .ci-card--ia {
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 70%);
  border-color: rgba(111, 189, 136, 0.25);
}

body.web-app .ci-ia-conf-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.web-app .ci-ia-conf-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: #111827;
}

body.web-app .ci-ia-conf-bar {
  height: 6px;
  background: rgba(111, 189, 136, 0.2);
  border-radius: 999px;
  margin-top: 0.35rem;
  overflow: hidden;
}

body.web-app .ci-ia-conf-bar span {
  display: block;
  height: 100%;
  background: #6fbd88;
  border-radius: 999px;
}

body.web-app .ci-radar-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

body.web-app .ci-radar-extra {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed #e5e7eb;
}

body.web-app .ci-radar-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 0.65rem;
  align-items: center;
}

body.web-app .ci-radar-mid {
  min-width: 0;
}

body.web-app .ci-radar-side {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  text-align: right;
  line-height: 1.25;
  max-width: 118px;
}

body.web-app .ci-radar-side strong {
  color: #111827;
  font-size: 0.85rem;
}

body.web-app .ci-radar-num {
  font-weight: 800;
  font-size: 0.95rem;
  color: #111827;
}

body.web-app .ci-radar-bar-wrap {
  height: 10px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

body.web-app .ci-radar-bar {
  height: 100%;
  border-radius: 999px;
  min-width: 4px;
}

body.web-app .ci-bar--excellent { background: linear-gradient(90deg, #22c55e, #16a34a); }
body.web-app .ci-bar--high { background: linear-gradient(90deg, #6fbd88, #57a872); }
body.web-app .ci-bar--mid { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
body.web-app .ci-bar--low { background: linear-gradient(90deg, #94a3b8, #64748b); }

body.web-app .ci-radar-score {
  font-weight: 800;
  font-size: 0.82rem;
  color: #111827;
  text-align: right;
}

body.web-app .ci-radar-tag {
  display: none;
}

body.web-app .ci-signo-nums-block {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  flex-wrap: wrap;
}

body.web-app .ci-signo-principal-wrap,
body.web-app .ci-signo-comp-wrap {
  flex: 1;
  min-width: 100px;
}

body.web-app .ci-signo-principal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, #78d79d, #57a872);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
}

body.web-app .ci-conf-donut-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

body.web-app .ci-conf-copy .ci-conf-label {
  display: block;
  font-size: 1rem;
  color: #166534;
  font-weight: 800;
  margin-top: 0;
  line-height: 1.25;
}

body.web-app .ci-card--alert {
  background: #fffbeb;
  border-color: #fde68a;
}

body.web-app .ci-signo-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

body.web-app .ci-signo-icon {
  font-size: 1.75rem;
  line-height: 1;
}

body.web-app .ci-signo-name {
  display: block;
  font-size: 1rem;
  color: #111827;
}

body.web-app .ci-signo-range {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
}

body.web-app .ci-signo-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

body.web-app .ci-signo-comp {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

body.web-app .ci-signo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(111, 189, 136, 0.12);
  border: 1px solid rgba(111, 189, 136, 0.35);
  font-weight: 800;
  font-size: 0.82rem;
  color: #166534;
}

body.web-app .ci-signos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

body.web-app .ci-signo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.45rem 0.35rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  text-align: center;
}

body.web-app .ci-signo-item-icon {
  font-size: 0.95rem;
  line-height: 1;
}

body.web-app .ci-signo-item-num {
  font-size: 1rem;
  font-weight: 800;
  color: #166534;
  line-height: 1.2;
}

body.web-app .ci-signo-item-name {
  font-size: 0.65rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.2;
}

body.web-app .ci-card--suenos {
  padding-bottom: 1.15rem;
}

body.web-app .ci-suenos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.25rem;
  align-items: start;
}

body.web-app .ci-suenos-form {
  min-width: 0;
}

body.web-app .ci-suenos-side {
  min-width: 0;
}

body.web-app .ci-suenos-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
}

body.web-app .ci-suenos-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.88rem;
  color: #111827;
  background: #fff;
  resize: vertical;
  min-height: 88px;
}

body.web-app .ci-suenos-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 10px;
  background: #6fbd88;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}

body.web-app .ci-suenos-btn--wide { width: 100%; }

body.web-app .ci-suenos-btn:hover { background: #57a872; }

body.web-app .ci-suenos-result { margin-top: 0.75rem; }

body.web-app .ci-suenos-result-title {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

body.web-app .ci-suenos-rows {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body.web-app .ci-suenos-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.88rem;
}

body.web-app .ci-suenos-ej-title {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

body.web-app .ci-suenos-ejemplos {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body.web-app .ci-sueno-ejemplo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.84rem;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

body.web-app .ci-sueno-ejemplo:hover { border-color: rgba(111, 189, 136, 0.5); background: #f0fdf4; }

body.web-app .ci-suenos-word {
  flex: 1;
  font-weight: 600;
  color: #374151;
}

body.web-app .ci-suenos-arrow { color: #94a3b8; }

body.web-app .ci-suenos-num {
  font-weight: 800;
  color: #166534;
  min-width: 2rem;
  text-align: right;
}

body.web-app .ci-combo-table-wrap {
  overflow-x: auto;
}

body.web-app .ci-combo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

body.web-app .ci-combo-table th,
body.web-app .ci-combo-table td {
  padding: 0.55rem 0.65rem;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
}

body.web-app .ci-combo-table th {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

body.web-app .ci-combo-table td {
  font-weight: 700;
  color: #111827;
}

body.web-app .ci-combo-base {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #78d79d, #57a872);
  color: #fff;
  font-size: 0.85rem;
}

body.web-app .ci-card--alert {
  background: #fffbeb;
  border-color: #fcd34d;
}

body.web-app .ci-alert-box {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

body.web-app .ci-alert-icon {
  color: #f59e0b;
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

body.web-app .ci-alert-box p {
  margin: 0;
  font-size: 0.84rem;
  color: #92400e;
  line-height: 1.45;
}

body.web-app .ci-alert-conf-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

body.web-app .ci-alert-conf-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111827;
}

body.web-app .ci-alert-conf-bar {
  height: 6px;
  background: rgba(245, 158, 11, 0.2);
  border-radius: 999px;
  margin-top: 0.35rem;
  overflow: hidden;
}

body.web-app .ci-alert-conf-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  border-radius: 999px;
}

body.web-app .ci-sorteos-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

body.web-app .ci-sorteo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

body.web-app .ci-sorteo-fecha {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  min-width: 2.75rem;
  flex-shrink: 0;
}

body.web-app .ci-sorteo-nums {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.web-app .ci-sorteo-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e5e7eb;
  font-size: 0.68rem;
  font-weight: 800;
  color: #111827;
}

body.web-app .ci-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
}

body.web-app .ci-disclaimer .ph-thin {
  color: #6fbd88;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

body.web-app .ci-empty {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

body.web-app .quiniela-lab-card--full {
  flex: 1 1 100%;
  max-width: none;
  width: 100%;
  min-width: 0;
}

body.web-app .quiniela-lab-regenerar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
  justify-content: center;
}

body.web-app .quiniela-lab-meta {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
  text-align: center;
}

body.web-app .quiniela-sugeridos-pinos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

body.web-app .quiniela-sug-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

body.web-app .quiniela-lab-cards:not(.quiniela-lab-dashboard) {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  width: 100%;
}

@media (max-width: 960px) {
  body.web-app .ci-grid-dashboard,
  body.web-app .ci-grid-dashboard--no-alert {
    grid-template-columns: 1fr;
  }
  body.web-app .ci-area-jugada,
  body.web-app .ci-area-radar,
  body.web-app .ci-area-alert,
  body.web-app .ci-area-ia,
  body.web-app .ci-area-combos,
  body.web-app .ci-area-signo,
  body.web-app .ci-area-suenos,
  body.web-app .ci-area-conf,
  body.web-app .ci-area-tend,
  body.web-app .ci-area-metodos,
  body.web-app .ci-area-sorteos,
  body.web-app .ci-area-disclaimer,
  body.web-app .ci-grid-dashboard--no-alert .ci-area-radar {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  body.web-app .ci-jugada-nums { grid-template-columns: repeat(3, 1fr); }
  body.web-app .ci-conf-donut-wrap { flex-direction: column; text-align: center; }
  body.web-app .ci-suenos-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  body.web-app .ci-signos-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mi-num-kpi-row { grid-template-columns: repeat(2, 1fr); }
  .mi-num-lectura-grid { grid-template-columns: repeat(2, 1fr); }
  .mi-num-bottom-grid { grid-template-columns: 1fr 1fr; }
  .mi-num-panel, .mi-num-panel--ia, .mi-num-panel--metodos { grid-column: span 1; }
}

@media (max-width: 720px) {
  .mi-num-hero-v2 { grid-template-columns: 1fr; }
  .mi-num-hero-circle { width: 72px; height: 72px; font-size: 1.65rem; }
  .mi-num-kpi-row, .mi-num-lectura-grid, .mi-num-bottom-grid { grid-template-columns: 1fr; }
  .mi-num-panel, .mi-num-panel--ia, .mi-num-panel--metodos { grid-column: span 1; }
}

@media (max-width: 768px) {
  .home-app-toolbar__user { margin-left: 0; width: 100%; }
}

/* ── Estadísticas quiniela — layout mockup ── */
body.web-app .stats-quiniela-wrap {
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
}

body.web-app .stats-quiniela-header {
  text-align: left;
  font-size: 0.92rem;
  font-weight: 600;
  color: #64748b;
  margin: 0 0 1.25rem;
}

body.web-app .stats-metodos-section {
  margin-bottom: 1.5rem;
}

body.web-app .stats-metodos-h {
  color: #166534;
}

body.web-app .stats-metodos-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.web-app .stats-metodo-card {
  background: linear-gradient(160deg, #0d3d34 0%, #145243 100%);
  border: 1px solid rgba(111, 189, 136, 0.35);
  border-radius: 14px;
  color: #ecfdf5;
}

body.web-app .stats-metodo-title { color: #f0fdf4; }
body.web-app .stats-metodo-line { color: #d1fae5; font-size: 0.78rem; }
body.web-app .stats-metodo-line--muted { color: #a7f3d0; opacity: 0.85; }
body.web-app .stats-metodo-probody { color: #ecfdf5; font-size: 0.82rem; }
body.web-app .stats-metodo-bonus { color: #86efac; }

body.web-app .stats-metodo-num-ball {
  width: 52px !important;
  height: 52px !important;
  font-size: 1.15rem !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(111, 189, 136, 0.5) !important;
  color: #fff !important;
}

body.web-app .stats-q-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.web-app .stats-q-row {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

body.web-app .stats-q-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.web-app .stats-q-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

body.web-app .stats-q-card {
  flex: none;
  min-width: 0;
  max-width: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 1.1rem 1.15rem 0.95rem;
  border-radius: 14px;
}

body.web-app .stats-q-card-title {
  justify-content: flex-start;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

body.web-app .stats-q-card-sub {
  text-align: left;
  font-size: 0.78rem;
  margin-bottom: 0.85rem;
  color: #475569;
}

body.web-app .stats-q-card-title,
body.web-app .stats-q-card-title .stats-title-inner {
  color: #0f172a;
}

body.web-app .stats-q-card-body {
  flex: 1;
  min-height: 0;
}

body.web-app .stats-q-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid #6fbd88;
  color: #166534;
  font-size: 0.78rem;
  font-weight: 800;
}

body.web-app .stats-q-ball--lg {
  min-width: 40px;
  height: 40px;
  font-size: 0.95rem;
}

body.web-app .stats-q-ball--sm {
  min-width: 26px;
  height: 26px;
  font-size: 0.72rem;
}

body.web-app .stats-q-sugerencia {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

body.web-app .stats-q-sugerencia-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

body.web-app .stats-q-sugerencia-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
}

body.web-app .stats-q-sugerencia-sig {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.25;
}

body.web-app .stats-q-oraculo-nums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  text-align: center;
}

body.web-app .stats-q-oraculo-col strong {
  display: block;
  font-size: 1.45rem;
  color: #166534;
  line-height: 1.1;
}

body.web-app .stats-q-oraculo-col span {
  font-size: 0.68rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

body.web-app .stats-q-oraculo-sig {
  margin: 0.65rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
}

body.web-app .stats-q-ventanas {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

body.web-app .stats-q-ventana-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.5rem;
  align-items: center;
}

body.web-app .stats-q-ventana-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
}

body.web-app .stats-q-ventana-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

body.web-app .stats-q-atrasados {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

body.web-app .stats-q-atrasado {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

body.web-app .stats-q-atrasado-num {
  font-size: 1rem;
  font-weight: 800;
  color: #111827;
}

body.web-app .stats-q-atrasado-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #166534;
  background: rgba(111, 189, 136, 0.15);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

body.web-app .stats-q-tendencia {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

body.web-app .stats-q-tend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

body.web-app .stats-q-tend-arrow {
  color: #6fbd88;
  font-size: 0.75rem;
}

body.web-app .stats-q-terminaciones {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.web-app .stats-q-term-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

body.web-app .stats-q-term-num {
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  background: rgba(111, 189, 136, 0.12);
  border: 1px solid rgba(111, 189, 136, 0.28);
  font-weight: 800;
  color: #166534;
  font-size: 0.88rem;
}

body.web-app .stats-q-term-freq {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

body.web-app .stats-q-parejas {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.web-app .stats-q-pareja {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
}

body.web-app .stats-q-pareja-plus { color: #94a3b8; }
body.web-app .stats-q-pareja-count { margin-left: auto; color: #64748b; font-weight: 600; }

body.web-app .stats-q-fp-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

body.web-app .stats-q-fp-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
}

body.web-app .stats-q-fp-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

body.web-app .stats-q-table {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

body.web-app .stats-q-table-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.4rem;
  align-items: center;
}

body.web-app .stats-q-table-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #334155;
}

body.web-app .stats-q-table-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

body.web-app .stats-q-heatmap-row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.85fr);
  gap: 1rem;
  align-items: stretch;
}

body.web-app .stats-q-heatmap-side {
  min-width: 0;
}

body.web-app .stats-q-foot-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

body.web-app .stats-q-bottom-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

body.web-app .stats-q-bottom-side .stats-q-card {
  flex: 0 0 auto;
}

body.web-app .stats-q-card--heatmap {
  margin: 0;
}

body.web-app .stats-q-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 3px;
  container-type: inline-size;
}

body.web-app .stats-q-heat-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 6px;
  font-size: clamp(0.85rem, 2.8cqi, 1.05rem);
  font-weight: 700;
  line-height: 1;
  border: 1px solid #e5e7eb;
}

body.web-app .stats-q-heat--xhigh { background: #14532d; color: #fff; border-color: #14532d; }
body.web-app .stats-q-heat--high { background: #16a34a; color: #fff; border-color: #16a34a; }
body.web-app .stats-q-heat--mid { background: #86efac; color: #14532d; border-color: #86efac; }
body.web-app .stats-q-heat--low { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
body.web-app .stats-q-heat--zero { background: #fff; color: #94a3b8; }

body.web-app .stats-q-heatmap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.68rem;
  color: #64748b;
}

body.web-app .stats-q-heatmap-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

body.web-app .stats-q-heat-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid #e5e7eb;
}

body.web-app .stats-q-heatmap-insights {
  margin: 0;
  padding: 1rem 1.05rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  box-sizing: border-box;
}

body.web-app .stats-q-heat-insight-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body.web-app .stats-q-heat-insight-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.web-app .stats-q-heat-insight-head strong {
  color: #0f172a;
  font-weight: 800;
}

body.web-app .stats-q-heat-insight-head .ph-thin {
  font-size: 1rem;
  color: #15803d;
}

body.web-app .stats-q-heat-insight-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

body.web-app .stats-q-heat-insight-hint {
  margin: 0;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.35;
}

body.web-app .stats-q-aside {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.web-app .stats-q-aside-box {
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  border: 1px solid #e5e7eb;
}

body.web-app .stats-q-aside-box h4 {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #111827;
}

body.web-app .stats-q-aside-box p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #64748b;
}

body.web-app .stats-q-aside-box--info {
  background: #f8fafc;
}

body.web-app .stats-q-aside-box--premium {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fde68a;
  text-align: center;
}

body.web-app .stats-q-aside-icon {
  font-size: 1.5rem;
  color: #d97706;
  display: block;
  margin-bottom: 0.35rem;
}

body.web-app .stats-q-premium-btn {
  margin-top: 0.65rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 10px;
  background: #6fbd88;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
}

body.web-app .stats-q-premium-btn:hover { background: #57a872; }

body.web-app .stats-q-freq-chart {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.web-app .stats-q-freq-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

body.web-app .stats-q-freq-bar-wrap {
  height: 8px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

body.web-app .stats-q-freq-bar {
  height: 100%;
  background: linear-gradient(90deg, #6fbd88, #57a872);
  border-radius: 999px;
}

body.web-app .stats-q-freq-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  min-width: 1.25rem;
  text-align: right;
}

body.web-app .stats-q-rango-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

body.web-app .stats-q-rango-chip {
  padding: 0.35rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

body.web-app .stats-q-rango-chip.active {
  background: rgba(111, 189, 136, 0.15);
  border-color: #6fbd88;
  color: #166534;
}

body.web-app .stats-q-rango-note {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

body.web-app .stats-q-racha-rank {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  min-width: 1rem;
}

body.web-app .stats-q-calientes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

body.web-app .stats-q-cal-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.web-app .stats-q-cal-freq {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

body.web-app .stats-q-gap-table {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
}

body.web-app .stats-q-gap-head,
body.web-app .stats-q-gap-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.35rem;
  align-items: center;
}

body.web-app .stats-q-gap-head {
  font-weight: 700;
  color: #64748b;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

body.web-app .stats-q-gap-row {
  padding: 0.25rem 0;
  border-bottom: 1px solid #f1f5f9;
}

body.web-app .stats-q-gap-row:last-child { border-bottom: none; }

/* Página de estadísticas estilo mockup (Quini, Loto, Poceadas…) */
body.web-app #proStatsSection:has(.stats-game-page) > .pro-landing-title,
body.web-app #proStatsSection:has(.stats-game-page) > .pro-landing-estad-hint,
body.web-app #proStatsSection:has(.stats-game-page) > .results-official-disclaimer,
body.web-app #estadisticasSection:has(.stats-game-page) > .section-inner > h2,
body.web-app #estadisticasSection:has(.stats-game-page) > .section-inner > .results-official-disclaimer {
  display: none;
}

body.web-app .stats-game-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

body.web-app .stats-game-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

body.web-app .stats-game-hero-intro {
  margin-bottom: 1rem;
}

body.web-app .stats-game-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.25rem;
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
}

body.web-app .stats-game-title-icon {
  color: #6fbd88;
  font-size: 1.5rem;
}

body.web-app .stats-game-sub {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
}

body.web-app .stats-game-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

body.web-app .stats-game-hero-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.web-app .stats-game-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

body.web-app .stats-game-card h3,
body.web-app .stats-game-card h4 {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

body.web-app .stats-game-card-note,
body.web-app .stats-game-card-meta,
body.web-app .stats-main-col-sub {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  color: #64748b;
}

body.web-app .stats-game-pozo-monto {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  color: #15803d;
  line-height: 1.2;
}

body.web-app .stats-game-mod-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.web-app .stats-game-mod-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

body.web-app .stats-game-mod-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  flex: 1;
  min-width: 0;
}

body.web-app .stats-game-mod-badge {
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  text-align: right;
  white-space: nowrap;
}

body.web-app .stats-game-mod-badge--vacante {
  color: #b45309;
  font-weight: 700;
}

body.web-app .stats-game-mod-badge--muted {
  color: #94a3b8;
  font-weight: 500;
}

body.web-app .stats-game-balls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

body.web-app .stats-game-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #6fbd88;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  border: 2px solid #57a872;
}

body.web-app .stats-game-ball--outline {
  background: #fff;
  color: #166534;
  border-color: #6fbd88;
}

body.web-app .stats-game-ball--xs {
  min-width: 1.55rem;
  height: 1.55rem;
  font-size: 0.68rem;
}

body.web-app .stats-game-ball--sm {
  min-width: 1.85rem;
  height: 1.85rem;
  font-size: 0.75rem;
}

body.web-app .stats-game-ball--hot {
  background: #ef4444;
  border-color: #dc2626;
}

body.web-app .stats-game-ball--cold {
  background: #3b82f6;
  border-color: #2563eb;
}

body.web-app .stats-game-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding: 0.55rem 0.85rem;
  border: none;
  border-radius: 10px;
  background: #6fbd88;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

body.web-app .stats-game-cta:hover { background: #57a872; }

body.web-app .stats-game-tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(111, 189, 136, 0.15);
  color: #166534;
  font-size: 0.72rem;
  font-weight: 700;
}

body.web-app .stats-game-score {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #15803d;
}

body.web-app .stats-jugada-pro-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.web-app .stats-jugada-pro-estrategia {
  width: 100%;
}

body.web-app .stats-jugada-pro-estrategia-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
}

body.web-app .stats-jugada-pro-estrategia-head {
  flex: 0 1 auto;
  min-width: 160px;
}

body.web-app .stats-jugada-pro-estrategia-head .stats-card-sub {
  margin-bottom: 0;
}

body.web-app .stats-jugada-pro-estrategia-metrics {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

body.web-app .stats-jugada-pro-estrategia-metrics .lab-hero-metrics {
  flex-wrap: wrap;
}

body.web-app .stats-jugada-pro-estrategia-bar {
  margin: 0;
}

body.web-app .stats-jugada-pro-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  gap: 1rem;
  align-items: stretch;
}

body.web-app .stats-jugada-pro-section .lab-pro-section,
body.web-app .stats-jugada-pro-section .lab-pro-jugadas-wrap {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  margin: 0;
}

body.web-app .stats-jugada-pro-section .lab-acciones-btns--stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body.web-app .stats-jugada-pro-section .lab-acciones-btns--stack .btn {
  width: 100%;
  justify-content: center;
}

body.web-app .stats-jugada-pro-section .btn-guardar--stats {
  background: #7c3aed;
  border-color: #7c3aed;
}

body.web-app .stats-jugada-pro-section .btn-guardar--stats:hover:not(:disabled) {
  background: #6d28d9;
  border-color: #6d28d9;
}

body.web-app .stats-jugada-pro-section .lab-pro-jugadas-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

body.web-app .stats-jugada-pro-jugadas-grid--n1 {
  grid-template-columns: minmax(0, 1fr);
}

body.web-app .stats-jugada-pro-jugadas-grid--n2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.web-app .stats-jugada-pro-jugadas-grid--n3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.web-app .stats-jugada-pro-acciones {
  display: flex;
  flex-direction: column;
}

body.web-app .stats-game-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.web-app .stats-combo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.web-app .stats-combo-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
  background: #f1f5f9;
  min-width: 5.5rem;
}

body.web-app .stats-combo-chip small {
  font-size: 0.68rem;
  color: #64748b;
}

body.web-app .stats-combo-chip strong {
  font-size: 0.95rem;
  color: #0f172a;
}

body.web-app .stats-combo-decenas {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

body.web-app .stats-combo-dec-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr 2rem;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #475569;
}

body.web-app .stats-combo-dec-bar {
  height: 0.5rem;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

body.web-app .stats-combo-dec-bar i {
  display: block;
  height: 100%;
  background: #57a872;
  border-radius: 999px;
}

body.web-app .stats-combo-dec-row em {
  font-style: normal;
  text-align: right;
  color: #0f172a;
}

body.web-app .stats-indice-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr);
  align-items: center;
  column-gap: clamp(1rem, 3vw, 2.25rem);
  width: 100%;
}

body.web-app .stats-indice-col--radar {
  justify-self: center;
}

body.web-app .stats-indice-col--meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0 clamp(0.5rem, 1.5vw, 1rem);
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  text-align: center;
  min-width: 0;
}

body.web-app .stats-indice-col--why {
  min-width: 0;
  padding-left: clamp(0.25rem, 1vw, 0.5rem);
}

body.web-app .stats-indice-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  max-width: 100%;
}

body.web-app .stats-indice-balls--compact {
  gap: 0.3rem;
}

body.web-app .stats-indice-balls--compact .stats-game-ball--sm {
  min-width: 1.55rem;
  height: 1.55rem;
  font-size: 0.68rem;
}

body.web-app .stats-indice-stars {
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: #eab308;
  line-height: 1.1;
}

body.web-app .stats-indice-label {
  font-size: 1rem;
  color: #0f172a;
  line-height: 1.2;
}

body.web-app .stats-indice-col--why h4 {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.web-app .stats-indice-pilar {
  display: grid;
  grid-template-columns: minmax(4.5rem, 28%) minmax(4.25rem, 24%) minmax(0, 1fr);
  align-items: center;
  gap: 0.25rem 0.5rem;
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}

body.web-app .stats-indice-pilar-name {
  color: #334155;
  font-weight: 600;
}

@media (max-width: 720px) {
  body.web-app .stats-indice-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: 0.75rem;
    align-items: start;
  }

  body.web-app .stats-indice-col--radar {
    justify-self: start;
  }

  body.web-app .stats-indice-col--meta {
    border-right: none;
    align-items: flex-start;
    text-align: left;
  }

  body.web-app .stats-indice-balls {
    justify-content: flex-start;
  }

  body.web-app .stats-indice-col--why {
    grid-column: 1 / -1;
    padding-left: 0;
    padding-top: 0.65rem;
    border-top: 1px solid #e2e8f0;
  }
}

@media (max-width: 480px) {
  body.web-app .stats-indice-body {
    grid-template-columns: 1fr;
  }

  body.web-app .stats-indice-col--meta {
    padding: 0.65rem 0 0;
    border-left: none;
    border-right: none;
    border-top: 1px solid #e2e8f0;
  }
}

body.web-app .stats-indice-pilar-stars {
  color: #eab308;
  letter-spacing: 0.04em;
}

body.web-app .stats-indice-pilar-label {
  color: #64748b;
}

body.web-app .stats-mh-card {
  border: 1px solid rgba(234, 179, 8, 0.25);
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 40%);
  color: #111827;
}

body.web-app .stats-mh-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

body.web-app .stats-mh-col {
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  min-width: 0;
}

body.web-app .stats-mh-col h4 {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.web-app .stats-mh-estado {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

body.web-app .stats-mh-sem {
  font-size: 1.25rem;
  line-height: 1;
}

body.web-app .stats-mh-val {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

body.web-app .stats-mh-val--estado {
  font-size: 0.95rem;
  font-weight: 700;
}

body.web-app .stats-mh-metodo {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

body.web-app .stats-mh-metodo--cazador {
  background: rgba(111, 189, 136, 0.22);
  color: #14532d;
  border: 1px solid rgba(22, 101, 52, 0.2);
}

body.web-app .stats-mh-metodo--caliente {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

body.web-app .stats-mh-metodo--rebote {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #c4b5fd;
}

body.web-app .stats-mh-metodo--balanceado {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

body.web-app .stats-mh-metodo-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.web-app .stats-game-ball--cazador {
  background: linear-gradient(145deg, #166534, #14532d);
  box-shadow: 0 2px 6px rgba(20, 83, 45, 0.35);
}

body.web-app .stats-mh-metodo-detalle {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #475569;
}

@media (max-width: 960px) {
  body.web-app .stats-mh-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  body.web-app .stats-mh-grid {
    grid-template-columns: 1fr;
  }
}

body.web-app .stats-mh-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

body.web-app .stats-mh-motivos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

body.web-app .stats-mh-motivo {
  font-size: 0.75rem;
  background: #ecfdf5;
  color: #166534;
  border: 1px solid rgba(22, 101, 52, 0.15);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

body.web-app .stats-mh-destacado {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

body.web-app .stats-mh-stars {
  color: #eab308;
  letter-spacing: 0.05em;
}

body.web-app .stats-mh-conf {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
}

body.web-app .stats-mh-alerta {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.65rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 0.5rem;
}

body.web-app .stats-mh-alerta p {
  margin: 0;
  font-size: 0.85rem;
  color: #9a3412;
}

body.web-app .stats-mh-disclaimer {
  margin: 0.75rem 0 0;
  font-size: 0.7rem;
  color: #94a3b8;
}

body.web-app .stats-fav-hoy-card {
  border: 1px solid rgba(234, 179, 8, 0.2);
}

body.web-app .stats-fav-hoy-estilo {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.85rem;
  font-style: italic;
  color: #475569;
}

body.web-app .stats-fav-hoy-rows {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.web-app .stats-fav-hoy-row {
  display: grid;
  grid-template-columns: auto 5.5rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

body.web-app .stats-fav-hoy-label {
  font-size: 0.82rem;
  color: #64748b;
}

body.web-app .mi-num-fav-hoy,
.mi-num-fav-hoy {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(234, 179, 8, 0.22);
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 55%);
}

body.web-app .mi-num-fav-hoy-sub,
.mi-num-fav-hoy-sub {
  margin: 0.15rem 0 0.55rem;
  font-size: 0.82rem;
  color: #64748b;
}

body.web-app .mi-num-fav-hoy-estilo,
.mi-num-fav-hoy-estilo {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  font-style: italic;
  color: #475569;
}

body.web-app .mi-num-fav-hoy-rows,
.mi-num-fav-hoy-rows {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

body.web-app .mi-num-fav-hoy-row,
.mi-num-fav-hoy-row {
  display: grid;
  grid-template-columns: auto 5.5rem 1fr auto;
  align-items: center;
  gap: 0.45rem;
}

body.web-app .mi-num-fav-hoy-label,
.mi-num-fav-hoy-label {
  font-size: 0.82rem;
  color: #334155;
  font-weight: 600;
}

body.web-app .mi-num-fav-hoy-disclaimer,
.mi-num-fav-hoy-disclaimer {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  color: #94a3b8;
}

body.web-app .mi-num-jugada-hoy,
.mi-num-jugada-hoy {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(111, 189, 136, 0.25);
  background: #f8fafc;
}

body.web-app .mi-num-jugada-grid,
.mi-num-jugada-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.65rem;
}

body.web-app .mi-num-jugada-col,
.mi-num-jugada-col {
  min-width: 0;
}

body.web-app .mi-num-jugada-kicker,
.mi-num-jugada-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

body.web-app .mi-num-jugada-kicker--cabeza,
.mi-num-jugada-kicker--cabeza { color: #db2777; }

body.web-app .mi-num-jugada-kicker--top,
.mi-num-jugada-kicker--top { color: #2563eb; }

body.web-app .mi-num-jugada-kicker--combo,
.mi-num-jugada-kicker--combo { color: #ca8a04; }

body.web-app .mi-num-jugada-balls,
.mi-num-jugada-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

body.web-app .mi-num-jugada-desc,
.mi-num-jugada-desc {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #64748b;
}

body.web-app .mi-num-hoy-favs,
.mi-num-hoy-favs {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

body.web-app .mi-num-hoy-favs-title,
.mi-num-hoy-favs-title {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

body.web-app .mi-num-hoy-favs-grid,
.mi-num-hoy-favs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

body.web-app .mi-num-hoy-item,
.mi-num-hoy-item {
  width: 7.5rem;
  text-align: center;
}

body.web-app .mi-num-hoy-badge,
.mi-num-hoy-badge {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  line-height: 1.25;
  color: #64748b;
  font-weight: 600;
}

body.web-app .mi-num-jugada-note,
.mi-num-jugada-note {
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #94a3b8;
}

@media (max-width: 720px) {
  body.web-app .mi-num-jugada-grid,
  .mi-num-jugada-grid {
    grid-template-columns: 1fr;
  }
}

body.web-app .stats-lab-ia-card {
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #111827;
}

body.web-app .stats-lab-ia-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

body.web-app .stats-lab-ia-item {
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  min-width: 0;
}

body.web-app .stats-lab-ia-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

body.web-app .stats-lab-ia-lead {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

body.web-app .stats-lab-ia-list {
  margin: 0.35rem 0;
  padding-left: 1rem;
  font-size: 0.84rem;
  color: #166534;
}

body.web-app .stats-lab-ia-list li {
  margin-bottom: 0.2rem;
  line-height: 1.35;
}

body.web-app .stats-lab-ia-result {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
}

body.web-app .stats-lab-ia-val {
  font-weight: 800;
  color: #14532d;
}

body.web-app .stats-lab-ia-pred {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.4;
}

@media (max-width: 960px) {
  body.web-app .stats-lab-ia-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body.web-app .stats-lab-ia-grid {
    grid-template-columns: 1fr;
  }
}

body.web-app .stats-free-dash {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

body.web-app .stats-free-saludo {
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #0f172a;
  margin: 0.25rem 0;
}

body.web-app .stats-free-destacado-row,
body.web-app .stats-free-compare {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

body.web-app .stats-free-compare {
  margin-top: 0.75rem;
}

body.web-app .stats-free-compare > div {
  flex: 1;
  min-width: 120px;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

body.web-app .stats-free-compare-pro {
  border-color: rgba(234, 179, 8, 0.35) !important;
}

body.web-app .stats-free-resumen-list {
  margin: 0.35rem 0 0.75rem;
  padding-left: 1rem;
  font-size: 0.88rem;
}

body.web-app .stats-free-hidden-nums {
  margin-top: 0.5rem;
  color: #b45309;
  font-weight: 600;
  font-size: 0.82rem;
}

body.web-app .stats-free-lab-counter {
  text-align: center;
}

body.web-app .stats-free-lab-counter strong {
  display: block;
  font-size: 1.45rem;
  color: #b45309;
}

body.web-app .stats-free-lab-btns {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

body.web-app .stats-free-progress {
  height: 12px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 0.5rem 0;
}

body.web-app .stats-free-progress i {
  display: block;
  height: 100%;
  background: #22c55e;
}

body.web-app .stats-free-radar-blur {
  filter: blur(6px);
  text-align: center;
  padding: 1.5rem;
  letter-spacing: 0.35em;
}

body.web-app .stats-free-heat-blur {
  filter: blur(2px);
  opacity: 0.45;
}

body.web-app .stats-free-lock-card h3 {
  margin: 0 0 0.35rem;
}

body.web-app .stats-combo-pares {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: #475569;
}

body.web-app .stats-combo-par {
  display: inline-block;
  margin-right: 0.5rem;
  margin-bottom: 0.25rem;
}

body.web-app .stats-q-momentum strong {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 0.35rem;
}

body.web-app .stats-q-momentum .stats-q-ventana-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

body.web-app .stats-q-atrasado-meta {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 0.15rem;
}

body.web-app .stats-q-ciclos {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.web-app .stats-q-ciclo-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #475569;
}

body.web-app .stats-sim-modos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

body.web-app .stats-sim-range {
  width: 100%;
  margin: 0.5rem 0 0.75rem;
}

body.web-app .stats-sim-result {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #0f172a;
}

body.web-app .stats-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

body.web-app .stats-section-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

body.web-app .stats-section-sub {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

body.web-app .stats-section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  border: none;
  background: none;
  color: #57a872;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

body.web-app .stats-hist-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
}

body.web-app .stats-hist-item {
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.75rem;
}

body.web-app .stats-hist-item-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  color: #64748b;
}

body.web-app .stats-hist-badge {
  color: #b45309;
  font-weight: 600;
}

body.web-app .stats-hist-item-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

body.web-app .stats-ci-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

body.web-app .stats-ci-card {
  min-height: 140px;
}

body.web-app .stats-ci-card--alerta {
  background: #fffbeb;
  border-color: #fde047;
}

body.web-app .stats-ci-card--alerta p {
  margin: 0;
  font-size: 0.82rem;
  color: #422006;
  line-height: 1.45;
}

body.web-app .stats-ci-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

body.web-app .stats-ci-radar {
  --radar-pct: 50;
  width: 110px;
  height: 110px;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(#6fbd88 calc(var(--radar-pct) * 1%), #e2e8f0 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

body.web-app .stats-ci-radar::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #fff;
}

body.web-app .stats-ci-radar-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

body.web-app .stats-ci-radar-inner strong {
  font-size: 1.65rem;
  color: #15803d;
  line-height: 1;
}

body.web-app .stats-ci-radar-inner span {
  font-size: 0.62rem;
  color: #64748b;
  max-width: 5.5rem;
  line-height: 1.2;
}

body.web-app .stats-radar-wrap {
  position: relative;
  margin: 0 auto;
}

body.web-app .stats-radar-wrap svg {
  display: block;
}

body.web-app .stats-radar-label {
  font-size: 9px;
  font-weight: 600;
  fill: #64748b;
}

body.web-app .stats-radar-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
  gap: 0.1rem;
}

body.web-app .stats-radar-center strong {
  font-size: 1.35rem;
  color: #0f172a;
  line-height: 1;
}

body.web-app .stats-radar-center span {
  font-size: 0.62rem;
  color: #64748b;
  max-width: 4.5rem;
  line-height: 1.15;
}

body.web-app .stats-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

body.web-app .stats-main-col h4 {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  font-weight: 700;
}

body.web-app .stats-main-freq-list,
body.web-app .stats-main-atrasados-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.web-app .stats-main-freq-row,
body.web-app .stats-main-atrasado-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

body.web-app .stats-main-atrasado-row {
  grid-template-columns: auto 1fr;
}

body.web-app .stats-main-freq-bar-wrap {
  height: 8px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

body.web-app .stats-main-freq-bar {
  height: 100%;
  background: linear-gradient(90deg, #6fbd88, #57a872);
  border-radius: 999px;
}

body.web-app .stats-main-freq-n,
body.web-app .stats-main-atrasado-meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

body.web-app .stats-main-rango {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

body.web-app .stats-main-rango-label {
  font-size: 0.78rem;
  color: #64748b;
}

body.web-app .stats-game-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}

@media (max-width: 1100px) {
  body.web-app .stats-game-hero-grid { grid-template-columns: 1fr; }
  body.web-app .stats-ci-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.web-app .stats-main-grid { grid-template-columns: 1fr; }
  body.web-app .stats-game-foot { grid-template-columns: 1fr; }
  body.web-app .stats-jugada-pro-body { grid-template-columns: 1fr; }
  body.web-app .stats-jugada-pro-jugadas-grid--n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.web-app .stats-metodos-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body.web-app .stats-jugada-pro-jugadas-grid--n2,
  body.web-app .stats-jugada-pro-jugadas-grid--n3 { grid-template-columns: 1fr; }
  body.web-app .stats-jugada-pro-estrategia-inner { flex-direction: column; align-items: stretch; }
}

@media (max-width: 900px) {
  body.web-app .stats-q-row--3 { grid-template-columns: 1fr; }
  body.web-app .stats-q-heatmap-row { grid-template-columns: 1fr; }
  body.web-app .stats-q-sugerencia { grid-template-columns: 1fr; }
  body.web-app .stats-ci-grid { grid-template-columns: 1fr; }
}

/* Jugadas guardadas — tarjetas angostas + gráfica de aciertos */
body.web-app .lab-pro-panel-guardados {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

body.web-app .lab-pro-section.lab-guardados-card,
body.web-app .lab-pro-section.lab-fusion-card {
  width: 100%;
}

body.web-app .lab-pro-section.lab-guardados-card .lab-guardado-item {
  display: flex;
  padding: 0;
}

body.web-app .lab-pro-section.lab-guardados-card .lab-guardado-modalidad {
  width: 100%;
}

body.web-app .lab-guardados-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

body.web-app .lab-guardado-row {
  display: grid;
  gap: 12px;
  align-items: stretch;
  width: 100%;
}

body.web-app .lab-guardado-row--with-chart {
  grid-template-columns: minmax(260px, 360px) minmax(200px, 1fr);
}

body.web-app .lab-guardado-row--solo {
  grid-template-columns: minmax(260px, 360px);
}

body.web-app .lab-guardado-item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  width: 100%;
  max-width: 360px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

body.web-app .lab-guardado-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 8px 12px;
  background: rgba(111, 189, 136, 0.12);
  border-bottom: 1px solid #e2e8f0;
}

body.web-app .lab-guardado-fecha {
  position: static;
  font-size: 0.78rem;
  font-weight: 600;
  color: #57a872;
}

body.web-app .lab-guardado-borrar {
  position: static;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: #94a3b8;
}

body.web-app .lab-guardado-borrar:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

body.web-app .lab-guardado-content {
  padding: 10px 12px 12px;
}

body.web-app .lab-guardado-modalidad {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 12px;
}

body.web-app .lab-guardado-modalidad:last-child {
  margin-bottom: 0;
}

body.web-app .lab-guardado-modalidad-header {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 6px;
}

body.web-app .lab-guardado-mod-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.3;
}

body.web-app .lab-guardado-mod-aciertos {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
}

body.web-app .lab-guardado-mod-aciertos--ok {
  color: #57a872;
}

body.web-app .lab-guardado-mod-aciertos::before {
  content: ' · ';
  color: #94a3b8;
  font-weight: 500;
}

body.web-app .lab-guardado-balls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

body.web-app .lab-guardado-balls--8 {
  max-width: 100%;
}

body.web-app .lab-guardado-balls .ball-hit {
  border-color: #6fbd88;
  background: rgba(111, 189, 136, 0.18);
  color: #3d8f5c;
}

body.web-app .lab-guardado-chart {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px 10px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

body.web-app .lab-guardado-chart-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
}

body.web-app .lab-guardado-chart-sub {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: #94a3b8;
}

body.web-app .lab-guardado-chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 8px;
  min-height: 108px;
  margin-top: 10px;
  padding: 0 2px 6px;
  border-bottom: 2px solid #e2e8f0;
  overflow-x: auto;
  scrollbar-width: thin;
}

body.web-app .lab-guardado-chart-bars--few {
  justify-content: center;
}

body.web-app .lab-guardado-chart-bar-col {
  flex: 0 0 auto;
  width: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

body.web-app .lab-guardado-chart-val {
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: #94a3b8;
  margin-bottom: 4px;
}

body.web-app .lab-guardado-chart-val--hit {
  color: #3d8f5c;
}

body.web-app .lab-guardado-chart-bar-track {
  width: 36px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

body.web-app .lab-guardado-chart-bar {
  width: 36px;
  border-radius: 8px 8px 3px 3px;
  background: rgba(148, 163, 184, 0.45);
  min-height: 8px;
}

body.web-app .lab-guardado-chart-bar--hit {
  background: linear-gradient(180deg, #8fd4aa 0%, #6fbd88 55%, #57a872 100%);
  box-shadow: 0 3px 8px rgba(111, 189, 136, 0.35);
}

body.web-app .lab-guardado-chart-lbl {
  margin-top: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.1;
  color: #64748b;
  text-align: center;
  width: 100%;
}

@media (max-width: 720px) {
  body.web-app .lab-guardado-row--with-chart,
  body.web-app .lab-guardado-row--solo {
    grid-template-columns: 1fr;
  }

  body.web-app .lab-guardado-item {
    max-width: none;
  }
}
