/* ─── RESET Y BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #1a3a5c;
  --primary-light: #2E75B6;
  --accent:        #e8b84b;
  --danger:        #c0392b;
  --success:       #27ae60;
  --bg:            #f0f4f8;
  --white:         #ffffff;
  --gray:          #95a5a6;
  --gray-light:    #ecf0f1;
  --text:          #2c3e50;
  --radius:        10px;
  --shadow:        0 4px 20px rgba(0,0,0,0.10);
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ─── AUTH ─────────────────────────────────────────────────── */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-logo h1 {
  font-size: 1.8rem;
  color: var(--primary);
  text-align: center;
}

.auth-logo h1 span {
  color: var(--accent);
  display: block;
  font-size: 1.4rem;
}

.auth-card h2 {
  text-align: center;
  font-size: 1.4rem;
  color: var(--primary);
}

/* ─── FORMULARIOS ──────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.form-group input,
.form-group select {
  padding: 12px 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: border 0.2s;
  width: 100%;
  background: var(--white);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-light);
}

.input-password {
  position: relative;
}

.input-password input {
  width: 100%;
  padding-right: 44px;
}

.input-password span {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1rem;
  color: var(--gray);
  user-select: none;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

/* ─── TELÉFONO ─────────────────────────────────────────────── */
.input-phone {
  display: flex;
  gap: 8px;
}

.input-phone select {
  padding: 12px 10px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 0.88rem;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  width: 160px;
  flex-shrink: 0;
  transition: border 0.2s;
}

.input-phone select:focus {
  outline: none;
  border-color: var(--primary-light);
}

.input-phone input {
  flex: 1;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: border 0.2s;
  width: 100%;
}

.input-phone input:focus {
  outline: none;
  border-color: var(--primary-light);
}

/* ─── BOTONES ──────────────────────────────────────────────── */
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.btn-primary:hover { background: var(--primary-light); }

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

.auth-divider {
  text-align: center;
  color: var(--gray);
  font-size: 0.85rem;
}

.btn-register {
  display: block;
  width: 100%;
  padding: 12px;
  text-align: center;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-register:hover {
  background: var(--accent);
  color: var(--primary);
}

/* ─── ALERTAS ──────────────────────────────────────────────── */
.alerta {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.alerta.error   { background: #fdecea; color: var(--danger); border: 1px solid var(--danger); }
.alerta.success { background: #eafaf1; color: var(--success); border: 1px solid var(--success); }
.oculto { display: none !important; }

/* ─── APOYO ────────────────────────────────────────────────── */
.auth-apoyo {
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray);
  border-top: 1px solid var(--gray-light);
  padding-top: 12px;
}

.auth-apoyo a { color: var(--primary-light); }

/* ─── FORM LAYOUT ──────────────────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 2px;
}

/* ─── RESPONSIVE AUTH ──────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .input-phone select { width: 130px; font-size: 0.82rem; }
  .btn-register { font-size: 0.82rem; padding: 11px; }
}

/* ─── BARRA ALERTAS ────────────────────────────────────────── */
.barra-alertas {
  background: var(--danger);
  color: #fff;
  padding: 12px 24px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.6;
}

/* ─── NAVBAR ───────────────────────────────────────────────── */
.navbar {
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.navbar-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}

.navbar-logo span { color: var(--accent); }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

.btn-logout {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-logout:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  z-index: 101;
}

/* ─── LAYOUT ───────────────────────────────────────────────── */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 60px);
}

/* ─── SIDEBAR ──────────────────────────────────────────────── */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--primary);
  color: var(--white);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  text-transform: uppercase;
}

.sidebar-username {
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
}

.sidebar-nivel {
  text-align: center;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  
}

.sidebar-stats {
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.stat-label { color: rgba(255,255,255,0.65); }

.stat-value {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
}

.sidebar-section-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

/* ─── CÓDIGO DE INVITACIÓN ─────────────────────────────────── */
.sidebar-codigo { display: flex; flex-direction: column; gap: 8px; }

.codigo-display {
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.codigo-valor {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.codigo-timer {
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.codigo-timer-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 1s linear;
  width: 100%;
}

.codigo-segundos {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.sidebar-codigo-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-codigo {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  border-radius: 8px;
  padding: 8px 4px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-codigo:hover:not(:disabled) { background: rgba(255,255,255,0.2); }
.btn-codigo:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── MAIN ─────────────────────────────────────────────────── */
.dashboard-main {
  flex: 1;
  padding: 28px;
  overflow-y: auto;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

/* ─── GRID DE NIVELES ──────────────────────────────────────── */
.niveles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.nivel-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 2px solid transparent;
  transition: all 0.25s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.nivel-card:hover:not(.bloqueado) {
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.nivel-card.activo { border-color: var(--success); }
.nivel-card.bloqueado { opacity: 0.5; cursor: not-allowed; }

.nivel-card-nombre {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  position: relative;
  z-index: 2;
}

.nivel-card-monto {
  font-size: 0.85rem;
  color: var(--gray);
  position: relative;
  z-index: 2;
}

.nivel-card-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  width: fit-content;
  position: relative;
  z-index: 2;
}

.badge-activo     { background: #eafaf1; color: var(--success); }
.badge-bloqueado  { background: #f5f5f5; color: var(--gray); }
.badge-disponible { background: #eef5ff; color: var(--primary-light); }

/* ══════════════════════════════════════════════════════════
   DISEÑOS ÚNICOS POR NIVEL — cada tablero, su propia identidad
   (basado en el orden de aparición: 1.Chispa Primordial → 8.Legado Eterno)
   ══════════════════════════════════════════════════════════ */

/* 1 · CHISPA PRIMORDIAL — brasa pequeña, apenas naciendo */
.niveles-grid .nivel-card:nth-child(1) {
  border-style: dotted;
  border-width: 2px;
  border-color: rgba(232,184,75,0.45);
  box-shadow: var(--shadow), 0 0 0 1px rgba(232,184,75,0.08), 0 0 18px rgba(232,184,75,0.18);
  animation: chispaPulso 3.2s ease-in-out infinite;
}
.niveles-grid .nivel-card:nth-child(1)::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 60px; height: 60px;
  background: radial-gradient(circle, rgba(232,184,75,0.35), transparent 70%);
  border-radius: 50%;
  z-index: 1;
}
@keyframes chispaPulso {
  0%, 100% { box-shadow: var(--shadow), 0 0 0 1px rgba(232,184,75,0.08), 0 0 14px rgba(232,184,75,0.14); }
  50%      { box-shadow: var(--shadow), 0 0 0 1px rgba(232,184,75,0.14), 0 0 24px rgba(232,184,75,0.3); }
}

/* 2 · BÚSQUEDA DEL SENDERO — camino, dirección, avance */
.niveles-grid .nivel-card:nth-child(2) {
  border-style: dashed;
  border-width: 2px;
  border-color: rgba(46,117,182,0.55);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(46,117,182,0.05) 0 10px,
    transparent 10px 20px
  );
}
.niveles-grid .nivel-card:nth-child(2)::after {
  content: '→';
  position: absolute;
  bottom: 8px; right: 12px;
  font-size: 1.1rem;
  color: rgba(46,117,182,0.3);
  font-weight: 700;
  z-index: 1;
}

/* 3 · RUPTURA DEL VELO — algo se quiebra, se abre paso */
.niveles-grid .nivel-card:nth-child(3) {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    repeating-linear-gradient(115deg, rgba(192,57,43,0.55) 0 6px, transparent 6px 16px) border-box;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(192,57,43,0.12);
}
.niveles-grid .nivel-card:nth-child(3)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 48%, rgba(192,57,43,0.12) 50%, transparent 52%);
  pointer-events: none;
  z-index: 1;
}

/* 4 · DESCENSO A LA SOMBRA — pesadez, profundidad, lo oculto */
.niveles-grid .nivel-card:nth-child(4) {
  border: 2px solid rgba(13,31,53,0.5);
  background: linear-gradient(160deg, var(--white) 65%, #e4e9ef 100%);
  box-shadow: var(--shadow), inset 0 8px 20px -10px rgba(13,31,53,0.35);
}
.niveles-grid .nivel-card:nth-child(4)::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0d1f35, #1a3a5c, #0d1f35);
  z-index: 1;
}

/* 5 · RENACIMIENTO DE LUZ — estallido dorado, todo se ilumina */
.niveles-grid .nivel-card:nth-child(5) {
  border: 2px solid rgba(232,184,75,0.6);
  box-shadow: var(--shadow), 0 0 28px rgba(232,184,75,0.25);
}
.niveles-grid .nivel-card:nth-child(5)::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  width: 160px; height: 160px;
  transform: translateX(-50%);
  background: conic-gradient(from 0deg, transparent, rgba(232,184,75,0.25), transparent 30%);
  animation: girarLuz 6s linear infinite;
  z-index: 0;
}
@keyframes girarLuz { to { transform: translateX(-50%) rotate(360deg); } }

/* 6 · MAESTRÍA INTERIOR — disciplina, marco elegante y firme */
.niveles-grid .nivel-card:nth-child(6) {
  border: 3px double rgba(26,58,92,0.55);
  box-shadow: var(--shadow);
}
.niveles-grid .nivel-card:nth-child(6)::before,
.niveles-grid .nivel-card:nth-child(6)::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
  z-index: 1;
}
.niveles-grid .nivel-card:nth-child(6)::before { top: -4px; left: -4px; }
.niveles-grid .nivel-card:nth-child(6)::after  { bottom: -4px; right: -4px; }

/* 7 · EXPANSIÓN DEL SER — crecimiento, halo que se abre */
.niveles-grid .nivel-card:nth-child(7) {
  box-shadow: var(--shadow), 0 0 0 4px rgba(39,174,96,0.08);
  animation: expansionHalo 2.6s ease-in-out infinite;
}
@keyframes expansionHalo {
  0%, 100% { box-shadow: var(--shadow), 0 0 0 4px rgba(39,174,96,0.08); }
  50%      { box-shadow: var(--shadow), 0 0 0 9px rgba(39,174,96,0.14); }
}

/* 8 · LEGADO ETERNO — el más alto, marco de realeza */
.niveles-grid .nivel-card:nth-child(8) {
  border: 3px double var(--accent);
  box-shadow: var(--shadow), 0 0 0 1px rgba(232,184,75,0.25), 0 10px 30px rgba(232,184,75,0.18);
  background: linear-gradient(150deg, var(--white) 80%, #fdf6e3 100%);
}
.niveles-grid .nivel-card:nth-child(8)::before {
  content: '◆';
  position: absolute;
  top: 6px; left: 10px;
  font-size: 0.6rem;
  color: var(--accent);
  z-index: 1;
}
.niveles-grid .nivel-card:nth-child(8)::after {
  content: '◆';
  position: absolute;
  bottom: 6px; right: 10px;
  font-size: 0.6rem;
  color: var(--accent);
  z-index: 1;
}

/* ─── RESPONSIVE DASHBOARD ─────────────────────────────────── */
@media (max-width: 768px) {
  .navbar { position: relative; }

  .navbar-toggle { display: block; }

  .navbar-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 12px 16px 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 99;
    gap: 4px;
  }

  .navbar-links--open { display: flex; }

  .nav-link {
    padding: 10px 14px;
    font-size: 0.95rem;
    border-radius: 8px;
  }

  .btn-logout {
    margin-top: 4px;
    padding: 10px 14px;
    text-align: left;
    width: 100%;
  }

  .dashboard-layout { flex-direction: column; }

  .sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 16px;
    gap: 12px;
  }

  .sidebar-avatar { width: 48px; height: 48px; font-size: 1.3rem; }
  .dashboard-main { padding: 16px; }
}

/* ─── TABLERO HEADER ───────────────────────────────────────── */
.tablero-header {
  background: var(--primary);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 24px;
  gap: 16px;
}

.tablero-header-left  { display: flex; align-items: center; gap: 14px; }
.tablero-header-right { display: flex; justify-content: flex-end; text-align: right; }
.tablero-header-center { text-align: center; }

.btn-volver {
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255,255,255,0.12);
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.btn-volver:hover { background: rgba(255,255,255,0.22); }

.tablero-hemisferio-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}
.tablero-hemisferio-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}

.tablero-header-center h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tablero-id-text {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
  margin: 4px 0 8px;
  word-break: break-all;
}

.btn-chat {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.btn-chat:hover { background: rgba(255,255,255,0.22); }

/* ─── SCROLL HORIZONTAL DEL TABLERO (RESPONSIVE) ───────────── */
.tablero-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ─── COLUMNAS LABELS ──────────────────────────────────────── */
.tablero-columnas-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #0f2640;
  padding: 8px 16px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.5px;
  min-width: 700px;
}

.tablero-columnas-labels > div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 2px;
}

/* ─── TABLERO VISUAL ───────────────────────────────────────── */
.tablero-visual {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(4, 1fr);
  background: #0d1f35;
  padding: 24px 16px;
  gap: 16px;
  height: calc(100vh - 200px);
  align-items: center;
  justify-items: center;
  min-width: 700px;
}

.tablero-loading {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── POSICIÓN SLOT ────────────────────────────────────────── */
.posicion-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* ─── CÍRCULO ──────────────────────────────────────────────── */
.posicion-circulo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  border: 3px solid transparent;
  user-select: none;
}

.posicion-vacia {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  cursor: default;
}

.posicion-ocupada {
  background: var(--primary-light);
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  cursor: pointer;
}

.posicion-ocupada:hover { transform: scale(1.08); }

.posicion-leyenda {
  width: 96px !important;
  height: 96px !important;
  background: linear-gradient(135deg, #b8940f, #e8b84b) !important;
  border-color: rgba(255,255,255,0.4) !important;
  box-shadow: 0 0 36px rgba(232,184,75,0.45) !important;
}

.posicion-yo {
  border-color: #ffae00 !important;
  position: relative;
  z-index: 5;
  animation: lavaPulso 1.8s ease-in-out infinite;
}

/* Anillo de lava girando detrás del círculo */
.posicion-yo::before {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #ff4500, #ffae00, #ff6b1a, #c0392b, #ffae00, #ff4500
  );
  filter: blur(5px);
  z-index: -1;
  animation: lavaGiro 2.8s linear infinite;
}

/* Borde fino extra que también respira */
.posicion-yo::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(255,174,0,0.7);
  z-index: -1;
  animation: lavaPulso 1.8s ease-in-out infinite;
}

@keyframes lavaGiro {
  to { transform: rotate(360deg); }
}

@keyframes lavaPulso {
  0%, 100% {
    box-shadow: 0 0 16px 4px rgba(255,87,34,0.55), 0 0 34px 10px rgba(255,174,0,0.28);
  }
  50% {
    box-shadow: 0 0 28px 8px rgba(255,87,34,0.9), 0 0 55px 18px rgba(255,174,0,0.5);
  }
}

.posicion-avatar {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1;
}

.posicion-leyenda .posicion-avatar {
  font-size: 1.9rem;
  color: #1a3a5c;
}

.posicion-nombre {
  font-size: 0.58rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-align: center;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}

.posicion-leyenda .posicion-nombre {
  color: #1a3a5c;
  font-weight: 700;
}

.posicion-vacia-label {
  font-size: 0.52rem;
  color: rgba(255,255,255,0.25);
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.posicion-pago-dot {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #0d1f35;
}

.pago-ok       { background: var(--success); }
.pago-pendiente { background: var(--danger); }

/* ─── MODAL ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 16px;
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  width: 100%;
  max-width: 360px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.25);
  animation: fadeUp 0.2s ease both;
}

.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--gray);
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }

.modal-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.modal-username {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.modal-info {
  font-size: 0.85rem;
  color: var(--gray);
  text-align: center;
  line-height: 1.7;
  width: 100%;
}

.btn-confirmar-pago {
  background: var(--success);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 11px 24px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  width: 100%;
  margin-top: 4px;
}
.btn-confirmar-pago:hover { background: #219a52; }

/* ─── CHAT ─────────────────────────────────────────────────── */
.chat-panel {
  position: fixed;
  bottom: 0; right: 24px;
  width: 320px;
  background: var(--white);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  z-index: 400;
  display: flex;
  flex-direction: column;
  max-height: 420px;
}

.chat-header {
  background: var(--primary);
  color: var(--white);
  padding: 12px 16px;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.chat-header button {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--gray-light); border-radius: 4px; }

.chat-msg {
  background: var(--gray-light);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.82rem;
  line-height: 1.4;
  max-width: 90%;
}

.chat-msg.propio {
  background: #deeeff;
  align-self: flex-end;
}

.chat-msg-user {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.75rem;
  margin-bottom: 2px;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--gray-light);
  flex-shrink: 0;
}

.chat-input-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid var(--gray-light);
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border 0.2s;
}
.chat-input-row input:focus { border-color: var(--primary-light); }

.chat-input-row button {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.chat-input-row button:hover { background: var(--primary-light); }

/* ─── RESPONSIVE TABLERO ───────────────────────────────────── */
@media (max-width: 900px) {
  .tablero-header { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .tablero-header-left,
  .tablero-header-right { justify-content: center; }
}

@media (max-width: 600px) {
  .chat-panel { width: 100%; right: 0; border-radius: 12px 12px 0 0; }
}

/* ─── ACADEMIA ─────────────────────────────────────────────── */
.academia-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.academia-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.academia-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.academia-hero h1 span { color: var(--accent); }

.academia-hero p {
  font-size: 1rem;
  color: var(--gray);
  max-width: 520px;
}

.btn-telegram {
  display: inline-block;
  background: #229ED9;
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.2s;
}

.btn-telegram:hover {
  background: #1a8abf;
  transform: translateY(-2px);
}

.academia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.academia-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.academia-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.academia-icon {
  font-size: 2rem;
  line-height: 1;
}

.academia-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.academia-card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.6;
}

.academia-cta {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.academia-cta h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.academia-cta p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  max-width: 460px;
}

.academia-email {
  font-size: 0.82rem !important;
  color: rgba(255,255,255,0.5) !important;
}

.academia-email a {
  color: var(--accent);
  text-decoration: none;
}

@media (max-width: 600px) {
  .academia-hero h1 { font-size: 1.5rem; }
  .academia-cta { padding: 28px 20px; }
}

/* ─── PERFIL ───────────────────────────────────────────────── */
.perfil-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.perfil-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 28px;
}

.perfil-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}

.perfil-hero h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

.perfil-sub {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 2px;
}

.perfil-nivel-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.perfil-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.perfil-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.perfil-card-wide { grid-column: 1 / -1; }

.perfil-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid var(--gray-light);
  padding-bottom: 10px;
}

.perfil-info-note {
  font-size: 0.78rem;
  color: var(--gray);
  font-style: italic;
  margin-top: 4px;
}

/* ─── ESTADÍSTICAS PERFIL ──────────────────────────────────── */
.perfil-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.perfil-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-light);
}

.perfil-stat-item:last-child { border-bottom: none; }
.perfil-stat-label { color: var(--gray); }
.perfil-stat-value { font-weight: 700; color: var(--primary); }

/* ─── LISTA INVITADOS ──────────────────────────────────────── */
.perfil-invitados-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.perfil-empty {
  font-size: 0.88rem;
  color: var(--gray);
  text-align: center;
  padding: 20px 0;
}

.perfil-invitado-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--bg);
  transition: background 0.2s;
}

.perfil-invitado-item:hover { background: #e8eef5; }

.perfil-invitado-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}

.perfil-invitado-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.perfil-invitado-nombre {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.perfil-invitado-user {
  font-size: 0.78rem;
  color: var(--gray);
}

.perfil-invitado-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.perfil-invitado-nivel {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: #eef5ff;
  padding: 2px 8px;
  border-radius: 10px;
}

.pago-ok-text        { font-size: 0.75rem; color: var(--success); font-weight: 600; }
.pago-pendiente-text { font-size: 0.75rem; color: var(--danger);  font-weight: 600; }

@media (max-width: 600px) {
  .perfil-hero { flex-direction: column; text-align: center; }
  .perfil-grid { grid-template-columns: 1fr; }
  .perfil-card-wide { grid-column: 1; }
}

/* ─── ADMIN ────────────────────────────────────────────────── */
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--gray-light);
  padding-bottom: 0;
}

.admin-tab {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-family: inherit;
  transition: all 0.2s;
}

.admin-tab:hover { color: var(--primary); }
.admin-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.admin-panel { display: none; flex-direction: column; gap: 20px; }
.admin-panel.active { display: flex; }

.admin-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-panel-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.admin-select {
  padding: 8px 12px;
  border: 1.5px solid var(--gray-light);
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
}

.admin-search {
  padding: 8px 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  width: 260px;
  outline: none;
  transition: border 0.2s;
}

.admin-search:focus { border-color: var(--primary-light); }

.btn-admin-action {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.btn-admin-action:hover { background: var(--primary-light); }

/* ─── STATS CARDS ──────────────────────────────────────────── */
.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.admin-stat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-stat-label {
  font-size: 0.78rem;
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.admin-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

/* ─── TABLA ────────────────────────────────────────────────── */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 0.85rem;
}

/* ─── SCROLL HORIZONTAL DE TABLAS (RESPONSIVE) ────────────── */
.tabla-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}

.tabla-scroll .admin-table {
  min-width: 700px;
}

@media (max-width: 768px) {
  .tabla-scroll {
    box-shadow: inset -8px 0 8px -8px rgba(0,0,0,0.15);
  }
}

.admin-table thead {
  background: var(--primary);
  color: var(--white);
}

.admin-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-light);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f8fafc; }

.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-mini-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}

.admin-cell-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.85rem;
}

.admin-cell-sub {
  font-size: 0.75rem;
  color: var(--gray);
}

.admin-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-ok   { background: #eafaf1; color: var(--success); }
.badge-pend { background: #fef9ec; color: #d4870a; }

.admin-badge-nivel {
  background: #eef5ff;
  color: var(--primary-light);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.admin-acciones { display: flex; gap: 6px; flex-wrap: wrap; }

.btn-admin-sm {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  background: var(--primary);
  color: var(--white);
  transition: background 0.2s;
}

.btn-admin-sm:hover { background: var(--primary-light); }
.btn-admin-sm.btn-ok { background: var(--success); }
.btn-admin-sm.btn-ok:hover { background: #219a52; }
.btn-admin-sm.btn-danger { background: var(--danger); }
.btn-admin-sm.btn-danger:hover { background: #a93226; }

/* ─── BARRA DONANTES ───────────────────────────────────────── */
.admin-donantes-bar {
  width: 80px;
  height: 6px;
  background: var(--gray-light);
  border-radius: 3px;
  overflow: hidden;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

.admin-donantes-fill {
  height: 100%;
  background: var(--success);
  border-radius: 3px;
  transition: width 0.3s;
}

/* ─── MODAL ADMIN ──────────────────────────────────────────── */
.admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 16px;
}

.admin-modal-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.2);
}

.admin-modal-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.admin-modal-btns { display: flex; gap: 10px; }

@media (max-width: 768px) {
  .admin-tabs { overflow-x: auto; }
  .admin-table { font-size: 0.78rem; }
  .admin-table th, .admin-table td { padding: 8px 10px; }
  .admin-search { width: 100%; }
}

/* ─── TABLERO LANDSCAPE MÓVIL ──────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .tablero-visual {
    height: auto;
    min-height: 340px;
    padding: 12px 16px;
    gap: 10px;
  }

  .tablero-columnas-labels {
    padding: 4px 16px;
  }

  .posicion-circulo {
    width: 56px;
    height: 56px;
  }

  .posicion-leyenda {
    width: 70px !important;
    height: 70px !important;
  }

  .posicion-avatar {
    font-size: 1.1rem;
  }

  .posicion-leyenda .posicion-avatar {
    font-size: 1.3rem;
  }

  .posicion-nombre {
    font-size: 0.5rem;
    max-width: 52px;
  }

  .tablero-header {
    padding: 8px 16px;
  }

  .tablero-hemisferio-sub {
    display: none;
  }
}
/* ─── HERO BANNER ──────────────────────────────────────────── */
.hero-banner {
  background: linear-gradient(135deg, #0d1f35 0%, #1a3a5c 60%, #0d1f35 100%);
  padding: 28px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(232,184,75,0.2);
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(232,184,75,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eslogan {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.4px;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto;
  font-style: italic;
  opacity: 0.92;
}

@media (max-width: 600px) {
  .hero-banner { padding: 20px 16px; }
  .hero-eslogan { font-size: 0.88rem; }
}

/* ─── PORTRAIT MÓVIL: header simplificado ─────────────────── */
/* ─── PORTRAIT MÓVIL ──────────────────────────────────────── */
/* ─── FONDO TABLERO ────────────────────────────────────────── */
body:has(.tablero-visual) {
  background: #0d1f35;
}

@media (max-width: 768px) and (orientation: portrait) {

  .tablero-header-hemisferios { display: none; }

  .tablero-header {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 10px 16px;
    gap: 6px;
  }

  .tablero-header-left {
    width: 100%;
    justify-content: center;
  }

  .tablero-header-right { display: none; }
  .tablero-columnas-labels { display: none; }

  .tablero-scroll {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .tablero-visual {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(7, auto);
    height: auto;
    min-height: unset;
    min-width: unset;
    padding: 20px 8px;
    gap: 12px;
  }
  /* Eliminar espacio blanco inferior */
  .tablero-scroll {
    overflow-x: hidden;
    overflow-y: auto;
    min-height: calc(100vh - 130px);
    background: #0d1f35;
  }

  /* ── Fila 1: 4 donantes top (hemisferio izq: 8,9,10,11) ── */
  .slot-pos-8  { grid-column: 1; grid-row: 1; }
  .slot-pos-9  { grid-column: 2; grid-row: 1; }
  .slot-pos-10 { grid-column: 3; grid-row: 1; }
  .slot-pos-11 { grid-column: 4; grid-row: 1; }

  /* ── Fila 2: 2 constructores top (4,5) centrados ── */
  .slot-pos-4  { grid-column: 2; grid-row: 2; }
  .slot-pos-5  { grid-column: 3; grid-row: 2; }

  /* ── Fila 3: Guía izq (2) centrado ── */
  .slot-pos-2  { grid-column: 2 / 4; grid-row: 3; }

  /* ── Fila 4: Leyenda (1) centrada ── */
  .slot-pos-1  { grid-column: 2 / 4; grid-row: 4; }

  /* ── Fila 5: Guía der (3) centrado ── */
  .slot-pos-3  { grid-column: 2 / 4; grid-row: 5; }

  /* ── Fila 6: 2 constructores bottom (6,7) centrados ── */
  .slot-pos-6  { grid-column: 2; grid-row: 6; }
  .slot-pos-7  { grid-column: 3; grid-row: 6; }

  /* ── Fila 7: 4 donantes bottom (hemisferio der: 12,13,14,15) ── */
  .slot-pos-12 { grid-column: 1; grid-row: 7; }
  .slot-pos-13 { grid-column: 2; grid-row: 7; }
  .slot-pos-14 { grid-column: 3; grid-row: 7; }
  .slot-pos-15 { grid-column: 4; grid-row: 7; }

  /* ── Tamaños en portrait ── */
  .posicion-circulo {
    width: 58px;
    height: 58px;
  }

  .posicion-leyenda {
    width: 72px !important;
    height: 72px !important;
  }

  .posicion-avatar { font-size: 1.2rem; }
  .posicion-leyenda .posicion-avatar { font-size: 1.5rem; }

  .posicion-nombre {
    font-size: 0.48rem;
    max-width: 54px;
  }
}