/* ==========================================================================
   SIMULADOR DE CARRERA - ESTUDIANTINA DE POSADAS
   Estética fiel a Copero: Dark Minimal, White Pills, Clean Layout
   ========================================================================== */

:root {
  /* Dynamic school theme tokens (updated in runtime per school) */
  --school-primary: #1d4ed8;
  --school-secondary: #eab308;
  --school-accent: #60a5fa;
  --school-glow: rgba(29, 78, 216, 0.25);

  /* Global Dark Palette — fiel a Copero */
  --bg-dark: #0a0a0b;
  --bg-surface: #111113;
  --bg-card: #18181b;
  --bg-card-hover: #1f1f23;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-bright: rgba(255, 255, 255, 0.2);
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;

  /* Accent Colors */
  --gold-apes: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.35);
  --ovr-orange: #f97316;
  --ovr-orange-glow: rgba(249, 115, 22, 0.35);
  --success-green: #22c55e;
  --danger-red: #ef4444;
  --neon-cyan: #06b6d4;

  /* UI Tokens — más bordes redondos como Copero */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 9999px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow-school: 0 0 20px var(--school-glow);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Inter', 'Outfit', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle radial accent behind content */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 60% 40% at 20% 10%, var(--school-glow) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 85%, rgba(249, 115, 22, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transition: background 0.8s ease;
}

/* App Container */
#app {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 1.25rem 4rem;
}

/* ============================================================
   TOP NAVBAR — Fiel a Copero: minimalista, limpio
   ============================================================ */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Logo: texto blanco bold (como copero en lowercase) */
.brand-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-transform: lowercase;
}

.brand-tagline {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 500;
  border-left: 1px solid var(--border-medium);
  padding-left: 0.6rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--bg-card);
  border-color: var(--border-bright);
  color: var(--text-primary);
}

/* Screen Transitions */
.screen {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  flex: 1;
}

.screen.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   PANTALLA 1: INTRO / MODO NORMAL — fiel a Copero (layout 2 col)
   ========================================================================== */
.hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  margin: auto 0;
  gap: 4rem;
}

@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    padding: 2rem 0.5rem;
  }
}

/* Illustration lado izquierdo (como copero) */
.hero-illustration {
  flex-shrink: 0;
  width: 300px;
  height: 220px;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-illustration::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.15), transparent 60%);
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

/* "MINIJUEGO" breadcrumb label — como copero */
.hero-breadcrumb {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #ffffff;
  letter-spacing: -1px;
}

.hero-title span {
  color: var(--ovr-orange);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.65;
  max-width: 480px;
}

/* Mode pills — estilo Copero: fondo transparente con activo blanco */
.mode-pills-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.3rem;
  width: fit-content;
  margin-bottom: 0.75rem;
}

.mode-pill {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: default;
  transition: var(--transition);
}

.mode-pill.active {
  background: #ffffff;
  color: #000000;
  font-weight: 700;
}

.mode-pill-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Botones de acción — blancos como Copero */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-start-primary {
  padding: 0.85rem 2rem;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-start-primary:hover {
  background: #f4f4f5;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

/* Legacy class — redirige al mismo estilo pill blanco */
.hero-pill {
  display: none; /* removed in favor of hero-breadcrumb */
}

/* ==========================================================================
   PANTALLA 2: IDENTIDAD / CREACIÓN
   ========================================================================== */
.identity-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
  padding: 1.5rem 0;
}

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
}

.step-dot.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

.step-line {
  flex: 1;
  max-width: 50px;
  height: 1px;
  background: var(--border-subtle);
}

.step-line.active {
  background: var(--border-bright);
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.form-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  letter-spacing: -0.3px;
}

.form-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.search-box {
  position: relative;
  margin-bottom: 1.25rem;
}

.search-input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.75rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--border-bright);
  background: var(--bg-surface);
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.9rem;
}

.colegios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.65rem;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 0.4rem;
  margin-bottom: 1.5rem;
}

.colegios-grid::-webkit-scrollbar { width: 4px; }
.colegios-grid::-webkit-scrollbar-track { background: transparent; }
.colegios-grid::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-pill);
}

.colegio-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.colegio-card:hover {
  background: var(--bg-surface);
  border-color: var(--border-medium);
}

.colegio-card.selected {
  background: var(--bg-surface);
  border-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.colegio-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.colegio-escudo { font-size: 1.3rem; }

.colegio-apodo {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.colegio-nombre-completo {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.colegio-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.3rem;
}

/* Badge tags — colegios */
.badge-tag {
  font-size: 0.63rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.badge-tag.gigante {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border-color: rgba(249, 115, 22, 0.35);
}

.badge-tag.historico {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.3);
}

.badge-tag.grande {
  background: rgba(167, 139, 250, 0.12);
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.3);
}

.badge-tag.competitivo {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.badge-tag.emergente {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-subtle);
}

.badge-tag.tecnico {
  background: rgba(6, 182, 212, 0.12);
  color: #67e8f9;
  border-color: rgba(6, 182, 212, 0.25);
}

/* Rubros & Roles */
.rubros-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  background: var(--bg-dark);
  padding: 0.3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.rubro-tab {
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}

.rubro-tab h3 { font-size: 0.9rem; font-weight: 600; }

.rubro-tab:hover { background: var(--bg-surface); color: var(--text-primary); }

.rubro-tab.active {
  background: #ffffff;
  color: #000000;
}

.rubro-tab.active h3 { color: #000000; }

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.rol-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.rol-card:hover {
  background: var(--bg-surface);
  border-color: var(--border-medium);
}

.rol-card.selected {
  background: var(--bg-surface);
  border-color: #ffffff;
}

.rol-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.2rem; }

.rol-rango {
  font-size: 0.72rem;
  color: var(--ovr-orange);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.rol-desc { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.35; }

/* Inputs */
.input-group { margin-bottom: 1.5rem; }

.input-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.5rem;
}

.text-input {
  width: 100%;
  padding: 0.9rem 1.25rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-family: inherit;
  font-weight: 600;
  outline: none;
  transition: var(--transition);
}

.text-input:focus {
  border-color: var(--border-bright);
}

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  gap: 0.75rem;
}

/* Buttons — estilo Copero: pill blanco y outline */
.btn-primary {
  padding: 0.75rem 1.75rem;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary:hover:not(:disabled) {
  background: #f4f4f5;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn-secondary {
  padding: 0.75rem 1.75rem;
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--border-bright);
}

/* ==========================================================================
   PANTALLA 3: SIMULADOR DE CARRERA (Tablero Principal)
   Fiel a Copero: 2 columns — left: player + events / right: timeline
   ========================================================================== */
.career-dashboard {
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-template-rows: auto auto 1fr;
  gap: 1.25rem;
  width: 100%;
  align-items: start;
  padding-top: 0.5rem;
}

@media (max-width: 900px) {
  .career-dashboard {
    grid-template-columns: 1fr;
  }
}

/* Player Card — inspirado en OVR card de Copero */
.status-banner {
  grid-column: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* OVR badge grande — naranja como copero */
.player-ovr-badge {
  width: 58px;
  height: 58px;
  background: var(--ovr-orange);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px var(--ovr-orange-glow);
}

.player-ovr-label {
  font-size: 0.55rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.player-ovr-number {
  font-size: 1.5rem;
  font-weight: 900;
  color: #000000;
  line-height: 1;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
}

.player-avatar-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.player-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.player-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.player-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.director-badge {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.player-colegio-rol {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.year-progress-box {
  margin-left: auto;
  text-align: right;
}

.year-badge-big {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.year-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
}

.year-number {
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
}

/* Quick counters row — PJ / Ritmo / Hinchada / Físico */
.player-counters-row {
  display: flex;
  gap: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
}

.player-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.player-counter-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-weight: 600;
}

.player-counter-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

/* Stats Overview — integrado en el sidebar como timeline */
.stats-overview-grid {
  display: none; /* replaced by player-counters-row + sidebar timeline */
}

/* Decision Section */
.decision-section {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.decision-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

.decision-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.decision-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.decision-narrative {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Option cards — clean dark cards like Copero's club cards */
.option-btn {
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  width: 100%;
}

.option-btn:hover {
  background: var(--bg-surface);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.option-text {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.risk-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
}

.risk-bajo  { background: rgba(34, 197, 94, 0.12); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.25); }
.risk-medio { background: rgba(245, 158, 11, 0.12); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.25); }
.risk-alto  { background: rgba(239, 68, 68, 0.12);  color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.25); }

.option-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Outcome feedback */
.outcome-feedback-card {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  animation: slideUp 0.3s ease;
}

.outcome-feedback-card.active { display: block; }

.outcome-icon { font-size: 2.75rem; margin-bottom: 0.85rem; }

.outcome-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  letter-spacing: -0.3px;
}

.outcome-message {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.stat-deltas-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.stat-delta-chip {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
}

.stat-delta-chip.positive {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.stat-delta-chip.negative {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* ==========================================================================
   TABLA DE ESTADÍSTICAS HISTÓRICAS — Timeline (Fiel a Copero derecha)
   ========================================================================== */
.career-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}

.table-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.table-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.table-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
}

.copero-stats-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
}

.copero-stats-table th {
  padding: 0.55rem 0.65rem;
  color: var(--text-muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.copero-stats-table td {
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}

.copero-stats-table tr:last-child td { border-bottom: none; }

.copero-stats-table tr:hover td {
  background: var(--bg-surface);
  color: #ffffff;
}

.copero-stats-table .td-school {
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* OVR pill in table — naranja como copero */
.copero-stats-table .td-overall {
  font-weight: 800;
}

.ovr-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  background: var(--ovr-orange);
  color: #000000;
  font-weight: 800;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

.copero-stats-table .podio-chip {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.72rem;
}

.podio-chip.oro   { background: rgba(245, 158, 11, 0.15); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.3); }
.podio-chip.plata { background: rgba(203, 213, 225, 0.12); color: #e2e8f0; border: 1px solid rgba(203, 213, 225, 0.3); }
.podio-chip.bronce{ background: rgba(217, 119, 6, 0.12);  color: #fbbf24; border: 1px solid rgba(217, 119, 6, 0.3); }

/* ============================================================
   SIDEBAR DERECHA — Career stats / trophies (fiel a Copero)
   ============================================================ */
.career-sidebar {
  grid-column: 2;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}

@media (max-width: 900px) {
  .career-sidebar { grid-column: 1; position: static; }
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.1rem;
}

.sidebar-title {
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.6rem;
}

.trophies-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.empty-state-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: 0.75rem 0;
}

.trophy-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
}

.trophy-icon { font-size: 1.1rem; }

.trophy-details { display: flex; flex-direction: column; }

.trophy-name { font-size: 0.78rem; font-weight: 700; color: #fcd34d; }
.trophy-year { font-size: 0.65rem; color: var(--text-muted); }

/* Stat bar boxes en sidebar */
.stat-box-mini {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.stat-box-mini:last-child { border-bottom: none; }

.stat-box-mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
}

.stat-box-mini-name {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-box-mini-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-bar-track {
  width: 100%;
  height: 4px;
  background: var(--border-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-fill-ritmo      { background: #3b82f6; }
.stat-fill-hinchada   { background: var(--ovr-orange); }
.stat-fill-resistencia{ background: #22c55e; }
.stat-fill-overall    { background: #a78bfa; }

/* School info in sidebar */
.school-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
}
.school-info-item:last-child { border-bottom: none; }
.school-info-label { color: var(--text-muted); font-weight: 600; }
.school-info-value { color: var(--text-primary); font-weight: 700; }

/* ==========================================================================
   MODAL 1: DESFILE EN LA COSTANERA / ANFITEATRO
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

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

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  text-align: center;
  animation: slideUp 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

.parade-animation-box {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  animation: sway 1.5s ease-in-out infinite alternate;
}

.parade-scores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.score-box {
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.score-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
}

.score-val {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
}

.podium-announcement {
  background: var(--bg-dark);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  margin-bottom: 1.5rem;
}

.podium-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fcd34d;
}

/* ==========================================================================
   MODAL 2: MERCADO DE PASES / CONTINUIDAD O EXPULSIÓN
   ========================================================================== */
.transfer-modal-content {
  max-width: 620px !important;
  text-align: left !important;
  max-height: 90vh;
  overflow-y: auto;
}

.transfer-header-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.transfer-status-icon { font-size: 2rem; }

.transfer-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.transfer-modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.expulsion-alert-box {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  margin-bottom: 1.5rem;
}

.expulsion-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fca5a5;
  margin-bottom: 0.35rem;
}

.expulsion-reason-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.transfer-offers-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

/* Offer cards — clean club cards like Copero */
.offer-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.offer-card:hover {
  background: var(--bg-surface);
  border-color: var(--border-medium);
}

.offer-card-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
}

.offer-escudo { font-size: 1.75rem; }

.offer-info { display: flex; flex-direction: column; gap: 0.15rem; }

.offer-action-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-weight: 700;
}

.offer-colegio-name {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.offer-meta {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.offer-meta-chip {
  font-size: 0.65rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
}

.offer-action-btn {
  padding: 0.55rem 1.25rem;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: inherit;
}

.offer-action-btn:hover {
  background: #f4f4f5;
  transform: translateY(-1px);
}

.stay-option-container { margin-top: 0.5rem; }

/* ==========================================================================
   PANTALLA 4: RESUMEN FINAL / FICHA DE EGRESADO
   ========================================================================== */
.summary-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

/* Graduate Card — coleccionable, fiel a Copero */
.graduate-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.card-top-seal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.seal-text {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 700;
}

.card-avatar-container {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.card-student-name {
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 0.25rem;
}

.card-school-title {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

.card-role-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* OVR grande en la graduate card */
.card-overall-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--ovr-orange);
  border-radius: var(--radius-lg);
  padding: 0.75rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 24px var(--ovr-orange-glow);
}

.overall-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.overall-number {
  font-size: 3rem;
  font-weight: 900;
  color: #000000;
  line-height: 1;
}

.card-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.card-stat-item {
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.card-stat-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-weight: 600;
}

.card-stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.card-trophies-summary {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.75rem;
  background: var(--bg-dark);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

/* Summary action buttons */
.summary-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-share:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
}

.btn-restart {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-restart:hover {
  background: #f4f4f5;
  transform: translateY(-1px);
}

/* Achievements */
.achievements-section {
  width: 100%;
}

.achievements-title {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.65rem;
}

.achievement-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.achievement-item.locked { opacity: 0.4; }

.achievement-icon { font-size: 1.4rem; }

.achievement-info { display: flex; flex-direction: column; gap: 0.1rem; }

.achievement-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.achievement-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   CONFETTI CANVAS
   ========================================================================== */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9990;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes sway {
  from { transform: rotate(-3deg); }
  to   { transform: rotate(3deg); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
  50%       { box-shadow: 0 0 12px 4px rgba(249, 115, 22, 0.2); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.text-gold    { color: #fcd34d; }
.text-orange  { color: var(--ovr-orange); }
.text-success { color: #86efac; }
.text-danger  { color: #fca5a5; }
.font-bold    { font-weight: 700; }
.font-black   { font-weight: 900; }

/* ==========================================================================
   MOBILE — ≤ 600px  (Copero mobile style: simple, intuitiva, táctil)
   ========================================================================== */
@media (max-width: 600px) {

  #app {
    padding: 0 0.9rem 4.5rem;
  }

  .app-header {
    padding: 0.7rem 0 0.8rem;
    margin-bottom: 1rem;
  }

  .brand-logo { font-size: 1rem; }
  .brand-tagline { font-size: 0.6rem; letter-spacing: 1px; }

  /* ---- PANTALLA 1: INTRO ---- */
  .hero-illustration { display: none; }

  .hero-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.25rem 0 1.5rem;
    gap: 0;
  }

  .hero-content { max-width: 100%; width: 100%; }

  .hero-breadcrumb {
    font-size: 0.65rem;
    margin-bottom: 0.6rem;
  }

  .hero-title {
    font-size: 2rem;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 0.88rem;
    margin-bottom: 1.1rem;
    line-height: 1.55;
  }

  .mode-pills-row { margin-bottom: 0.4rem; }
  .mode-pill { font-size: 0.8rem; padding: 0.38rem 0.85rem; }
  .mode-pill-desc { font-size: 0.72rem; margin-bottom: 1.1rem; }

  .hero-actions { width: 100%; }
  .btn-start-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    justify-content: center;
  }

  /* ---- PANTALLA 2: CREACIÓN ---- */
  .identity-layout { gap: 0.85rem; padding: 0.25rem 0; }

  .form-card {
    padding: 1.1rem;
    border-radius: var(--radius-lg);
  }

  .form-title { font-size: 1.2rem; }
  .form-subtitle { font-size: 0.8rem; margin-bottom: 1rem; }

  /* Colegios: lista vertical legible */
  .colegios-grid {
    grid-template-columns: 1fr;
    max-height: none;
    overflow-y: visible;
    gap: 0.45rem;
    padding-right: 0;
    margin-bottom: 0.85rem;
  }

  .colegio-card {
    flex-direction: row;
    align-items: center;
    padding: 0.8rem 0.9rem;
    gap: 0.75rem;
  }

  .colegio-card-header { flex-shrink: 0; }
  .colegio-escudo { font-size: 1.4rem; }
  .colegio-apodo { font-size: 0.88rem; }
  .colegio-nombre-completo { font-size: 0.68rem; }
  .colegio-badges { margin-top: 0.2rem; }
  .badge-tag { font-size: 0.58rem; padding: 0.1rem 0.4rem; }

  /* Roles: 2 columnas */
  .roles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
  }

  .rol-card { padding: 0.7rem; }
  .rol-name { font-size: 0.82rem; }
  .rol-rango { font-size: 0.68rem; }
  .rol-desc { font-size: 0.7rem; }

  /* Rubros tabs */
  .rubros-tabs { gap: 0.2rem; }
  .rubro-tab { padding: 0.65rem 0.5rem; }
  .rubro-tab h3 { font-size: 0.75rem; }

  /* Step actions: apilados */
  .step-actions {
    flex-direction: column-reverse;
    gap: 0.45rem;
    margin-top: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 0.9rem 1rem;
    text-align: center;
    justify-content: center;
    font-size: 0.9rem;
    min-height: 50px;
    display: flex;
    align-items: center;
  }

  .step-dot { width: 22px; height: 22px; font-size: 0.68rem; }

  /* ---- PANTALLA 3: SIMULADOR DE CARRERA (Mobile Copero style) ---- */
  .career-dashboard {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.1rem;
    width: 100%;
  }

  /* 1. Header del jugador: compacto y horizontal */
  .status-banner {
    order: 1;
    padding: 0.75rem 0.9rem;
    gap: 0.65rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
  }

  .player-info {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 1;
    min-width: 0;
  }

  .player-avatar-badge {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
    flex-shrink: 0;
    border-radius: var(--radius-md);
  }

  .player-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    flex: 1;
  }

  .player-name-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .player-name {
    font-size: 0.92rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .director-badge {
    font-size: 0.52rem;
    padding: 0.08rem 0.35rem;
  }

  .player-colegio-rol {
    font-size: 0.68rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .year-progress-box {
    margin-left: 0.25rem;
    flex-shrink: 0;
    text-align: right;
  }

  .year-badge-big {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .year-label {
    font-size: 0.5rem;
    letter-spacing: 0.5px;
  }

  .year-number {
    font-size: 0.92rem;
    font-weight: 800;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
  }

  .player-ovr-badge {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 12px var(--ovr-orange-glow);
  }

  .player-ovr-number {
    font-size: 1.25rem;
    font-weight: 900;
  }

  .player-ovr-label {
    font-size: 0.45rem;
  }

  /* 2. Barra rápida de Atributos (Ticker) */
  .player-counters-row {
    order: 2;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
    padding: 0.55rem 0.75rem !important;
    margin: 0 !important;
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-lg) !important;
  }

  .player-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.25rem 0.2rem;
    border-radius: var(--radius-sm);
  }

  .player-counter-label {
    font-size: 0.58rem;
    letter-spacing: 0.4px;
    font-weight: 700;
    color: var(--text-muted);
  }

  .player-counter-val {
    font-size: 0.95rem;
    font-weight: 800;
  }

  /* 3. Área Central de Decisión (Lo primero que se ve) */
  .decision-section {
    order: 3;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .decision-card {
    padding: 1.2rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-medium);
  }

  .decision-category-tag {
    font-size: 0.65rem;
    letter-spacing: 0.8px;
    margin-bottom: 0.45rem;
    color: var(--ovr-orange);
  }

  .decision-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.25;
  }

  .decision-narrative {
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 1rem;
  }

  .options-container {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  /* Opciones táctiles grandes estilo Copero */
  .option-btn {
    padding: 0.9rem 1rem;
    min-height: 60px;
    border-radius: var(--radius-md);
    background: var(--bg-dark);
    border: 1px solid var(--border-medium);
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  }

  .option-btn:active {
    transform: scale(0.98);
    background: var(--bg-surface);
    border-color: #ffffff;
  }

  .option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
  }

  .option-text {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    flex: 1;
  }

  .risk-tag {
    font-size: 0.58rem;
    padding: 0.12rem 0.45rem;
    flex-shrink: 0;
  }

  .option-desc {
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.35;
  }

  /* Outcome feedback */
  .outcome-feedback-card {
    padding: 1.35rem 1rem;
    border-radius: var(--radius-lg);
    text-align: center;
  }

  .outcome-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }

  .outcome-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
  }

  .outcome-message {
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 0.9rem;
  }

  .stat-deltas-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
  }

  .stat-delta-chip {
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
  }

  #btn-continue-after-outcome {
    width: 100%;
    min-height: 48px;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 4. Tabla de estadísticas históricas */
  .career-table-card {
    padding: 0.85rem 0.75rem;
    border-radius: var(--radius-lg);
    margin-top: 0.25rem;
  }

  .table-title {
    font-size: 0.8rem;
  }

  .copero-stats-table {
    font-size: 0.7rem;
  }

  .copero-stats-table th,
  .copero-stats-table td {
    padding: 0.5rem 0.35rem;
  }

  .copero-stats-table th:nth-child(4),
  .copero-stats-table td:nth-child(4),
  .copero-stats-table th:nth-child(5),
  .copero-stats-table td:nth-child(5),
  .copero-stats-table th:nth-child(8),
  .copero-stats-table td:nth-child(8),
  .copero-stats-table th:nth-child(9),
  .copero-stats-table td:nth-child(9) {
    display: none;
  }

  /* 5. Sidebar al fondo */
  .career-sidebar {
    order: 4;
    grid-column: auto;
    grid-row: auto;
    position: static;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    margin-top: 0.25rem;
  }

  .sidebar-card {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
  }

  .sidebar-title {
    font-size: 0.72rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
  }

  .stat-box-mini {
    padding: 0.35rem 0;
  }

  .stat-box-mini-name {
    font-size: 0.65rem;
  }

  .stat-box-mini-val {
    font-size: 0.82rem;
  }

  /* ---- MODALES: slide desde abajo ---- */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-content {
    padding: 1.5rem 1.1rem 2rem;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    max-height: 92vh;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding-top: 1.25rem;
  }

  .modal-content::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: var(--border-medium);
    border-radius: 999px;
    margin: 0 auto 1.25rem;
  }

  .parade-scores-grid { gap: 0.45rem; margin: 0.85rem 0; }
  .score-val { font-size: 1.5rem; }
  .score-label { font-size: 0.6rem; }
  .score-box { padding: 0.75rem; border-radius: var(--radius-md); }

  .transfer-modal-content { max-width: 100% !important; }
  .transfer-modal-title { font-size: 1.15rem; }
  .transfer-status-icon { font-size: 1.6rem; }

  .offer-card { padding: 0.85rem; }
  .offer-colegio-name { font-size: 0.88rem; }
  .offer-escudo { font-size: 1.3rem; }
  .offer-action-btn { padding: 0.5rem 0.9rem; font-size: 0.76rem; }

  #btn-stay-current-school {
    min-height: 52px;
    font-size: 0.85rem;
    border-radius: var(--radius-pill);
  }

  /* ---- PANTALLA 4: RESUMEN ---- */
  .summary-container { padding: 0.75rem 0 2rem; gap: 1rem; }

  .graduate-card { padding: 1.35rem; border-radius: var(--radius-xl); }
  .card-student-name { font-size: 1.4rem; }
  .overall-number { font-size: 2.25rem; }
  .card-stat-val { font-size: 1rem; }

  .summary-actions { flex-direction: column; width: 100%; }

  .btn-share,
  .btn-restart {
    width: 100%;
    justify-content: center;
    padding: 0.9rem;
    min-height: 52px;
  }

  .achievements-grid { grid-template-columns: 1fr; gap: 0.45rem; }

  /* Toast */
  .toast-notification {
    bottom: 1rem;
    font-size: 0.8rem;
    padding: 0.65rem 1.1rem;
    max-width: calc(100% - 1.8rem);
  }
}

/* ---- TABLET: 601–900px ---- */
@media (min-width: 601px) and (max-width: 900px) {
  .hero-illustration {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
  }

  .hero-title { font-size: 2.3rem; }

  .career-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .status-banner { order: 1; }
  .player-counters-row { order: 2; }
  .decision-section { order: 3; }

  .career-sidebar {
    order: 4;
    grid-column: auto;
    grid-row: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    position: static;
  }

  .colegios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-overlay { align-items: flex-end; padding: 0; }

  .modal-content {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    max-height: 90vh;
  }
}
