:root {
  --gold:         #C9A84C;   /* Dorado principal */
  --gold-bright:  #E8C870;   /* Dorado brillante */
  --gold-dim:     #8A6A2A;   /* Dorado apagado */
  --gold-glow:    #C9A84C22; /* Resplandor dorado */

  --bg:           #080A12;   /* Fondo principal (negro cálido) */
  --bg2:          #0C0E1A;   /* Fondo secundario */
  --bg3:          #10131E;   /* Fondo terciario */

  --text:         #E2D9C8;   /* Texto principal */
  --text-dim:     #D0C4A8;   /* Texto secundario */
  --text-muted:   #AAB0C4;   /* Texto apagado */

  --red:          #CC4433;   /* Rojo pérdida */
  --green:        #3AAA6A;   /* Verde ganancia */

  --border:       #252840;   /* Borde estándar */
  --border-gold:  #C9A84C33; /* Borde dorado suave */
}

/* ===== RESET Y BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.85;
  min-height: 100vh;
}

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3, .serif {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
}

em {
  font-style: italic;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== ANIMACIONES ===== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

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

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 2rem 0.7rem;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 10, 18, 0.97);
  backdrop-filter: blur(20px);
  gap: 0.55rem;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  letter-spacing: 0.55em;
  color: var(--gold-bright);
  text-transform: uppercase;
  text-shadow: 0 0 30px #C9A84C88, 0 0 60px #C9A84C33;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  text-align: center;
}

/* Fila central: botón entrar + links */
.nav-middle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  min-height: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: nowrap;
  justify-content: center;
}

.nav-link {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  transition: color 0.3s;
  text-decoration: none;
  background: none;
  border: none;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-bright);
  text-shadow: 0 0 12px var(--gold-glow);
}

/* Botón Entrar en nav */
.nav-btn-entrar {
  position: absolute;
  left: 0;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  padding: 0.2rem 0.7rem;
  cursor: pointer;
  background: none;
  transition: all 0.3s;
  white-space: nowrap;
}

.nav-btn-entrar:hover {
  background: #C9A84C18;
  border-color: var(--gold);
}

/* Fila usuario logueado — debajo de los links */
.nav-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.25rem 0 0;
  border-top: 1px solid #15182A;
}

.nav-user-welcome {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-right: 0.4rem;
}

.nav-user-name {
  font-size: 10px;
  color: var(--gold-dim);
  line-height: 1;
}

.nav-user-pack {
  font-size: 9px;
  color: var(--text-muted);
  margin-right: auto;
}

.nav-logout {
  font-size: 9px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.1rem 0.3rem;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.nav-logout:hover {
  color: var(--red);
  border-color: #CC443344;
}

/* ===== FOOTER ===== */
footer {
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.footer-txt {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

/* ===== CONTENEDOR DE PÁGINA ===== */
.page-wrapper {
  padding-top: 147px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  padding-top: 147px;
}

/* ===== SECCIONES HERO ===== */
.hero {
  padding: 6rem 3rem 4rem;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.hero-tag {
  font-size: 11px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: block;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 300;
  line-height: 1.05;
  color: #F0E8D4;
  margin-bottom: 1.5rem;
}

.hero-title em {
  color: var(--gold-bright);
  text-shadow: 0 0 40px var(--gold-glow);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
  line-height: 2;
}

/* ===== BOTONES ===== */
.btn-gold {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  border: 1px solid var(--gold);
  background: var(--gold);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bg);
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
}

.btn-gold:hover {
  background: var(--gold-bright);
}

.btn-outline {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  border: 1px solid var(--border-gold);
  background: var(--gold-glow);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-bright);
  cursor: pointer;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: #C9A84C18;
  border-color: var(--gold);
}

/* ===== DIVISORES ===== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 2rem 0;
}

.divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ===== ETIQUETAS ===== */
.tag {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tag-gold {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ===== GRID UTILS ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: var(--border); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); }

.cell {
  background: var(--bg2);
  padding: 1.5rem;
}

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  font-size: 10px;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}

.badge-gold  { background: var(--gold-glow); color: var(--gold); border: 1px solid var(--border-gold); }
.badge-green { background: #3AAA6A18; color: var(--green); border: 1px solid #3AAA6A33; }
.badge-red   { background: #CC443318; color: var(--red); border: 1px solid #CC443333; }
.badge-gray  { background: var(--bg3); color: var(--text-muted); border: 1px solid var(--border); }

/* ===== SIDEBAR LAYOUT (Dashboard y Gestión) ===== */
.sidebar-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: calc(100vh - 147px);
}

.sidebar {
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  background: var(--bg2);
  position: sticky;
  top: 147px;
  height: calc(100vh - 147px);
  overflow-y: auto;
}

.sidebar-section {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 1.2rem 0.8rem;
  display: block;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 1.2rem;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}

.sidebar-item:hover {
  background: var(--bg3);
}

.sidebar-item.active {
  background: var(--bg3);
  border-left-color: var(--gold);
}

.sidebar-item.active .sidebar-label {
  color: var(--gold);
}

.sidebar-icon {
  font-size: 15px;
  width: 20px;
  text-align: center;
}

.sidebar-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* Widget nivel en sidebar */
.nivel-widget {
  margin: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #0E1020, #131625);
  position: relative;
  overflow: hidden;
}

.nivel-numero {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  color: var(--gold-bright);
  text-shadow: 0 0 25px var(--gold-glow);
  line-height: 1;
}

.nivel-nombre {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.6rem;
}

.nivel-barra {
  height: 2px;
  background: var(--border);
  border-radius: 1px;
}

.nivel-fill {
  height: 100%;
  background: linear-gradient(90deg, #C9A84C44, var(--gold-bright));
  border-radius: 1px;
  box-shadow: 0 0 8px var(--gold-glow);
}

/* ===== TABS (Mi Gestión) ===== */
.tabs-bar {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  position: sticky;
  top: 147px;
  z-index: 10;
}

.tab {
  padding: 0.8rem 1.6rem;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 2px solid transparent;
}

.tab:hover { color: var(--gold); }
.tab.active { color: var(--gold-bright); border-bottom-color: var(--gold); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== STATS CARDS ===== */
.stat-card {
  background: var(--bg2);
  padding: 1.2rem 1.5rem;
  position: relative;
}

.stat-card.highlight::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.stat-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.stat-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.stat-val.gold   { color: var(--gold-bright); text-shadow: 0 0 10px var(--gold-glow); }
.stat-val.green  { color: var(--green); }
.stat-val.red    { color: var(--red); }
.stat-val.white  { color: var(--text); }

.stat-sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== TABLA ===== */
.table-wrap {
  border: 1px solid var(--border);
  background: var(--bg2);
}

.table-header {
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-title {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-weight: 400;
}

td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #080A12;
  font-size: 13px;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: #0E1020; }

/* ===== SALA (video grid y chat) ===== */
.sala-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  height: calc(100vh - 107px);
}

.sala-pantalla {
  flex: 1;
  background: #04060E;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

.sala-participantes {
  background: #060810;
  border-top: 1px solid var(--border);
  padding: 0.5rem 0.8rem;
}

.sala-participantes-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.part-cell {
  aspect-ratio: 4/3;
  background: #0C0E18;
  border: 1px solid var(--border);
  border-radius: 3px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  overflow: hidden;
}

.part-cell.tu {
  border: 2px solid var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
}

.part-cell.lider {
  border: 1.5px solid var(--gold);
}

.part-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.part-name {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, #00000099);
  padding: 2px 4px;
  font-size: 9px;
  color: var(--text-muted);
}

.part-name.gold { color: var(--gold-bright); font-weight: 500; }

.part-dot {
  position: absolute;
  bottom: 3px; left: 3px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 4px var(--green);
}

.part-dot.off { background: #CC8844; box-shadow: none; }
.part-tu-badge {
  position: absolute;
  top: 2px; right: 2px;
  font-size: 7px;
  background: var(--gold);
  color: var(--bg);
  padding: 0 3px;
  border-radius: 1px;
  font-weight: 500;
}
.part-mic {
  position: absolute;
  bottom: 2px; right: 3px;
  font-size: 8px;
  color: var(--green);
}
.part-share {
  position: absolute;
  top: 2px; left: 2px;
  font-size: 7px;
  background: #3AAA6A22;
  color: var(--green);
  padding: 0 2px;
  border-radius: 1px;
}

.sala-controles {
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1rem;
  background: #04060E;
}

.ctrl-btn {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  background: none;
}

.ctrl-btn:hover { border-color: var(--border-gold); color: var(--gold); }
.ctrl-btn.on { color: var(--green); border-color: #3AAA6A33; }
.ctrl-btn.disabled { opacity: 0.35; cursor: not-allowed; }

/* Chat */
.sala-chat {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  background: var(--bg2);
}

.chat-header {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-title {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--gold-dim);
}

.chat-msgs {
  flex: 1;
  padding: 0.8rem 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 0;
}

.msg { padding: 0 0 0.2rem; }
.msg.highlight { border-left: 2px solid var(--border-gold); padding-left: 0.6rem; }
.msg.yo { border-left: 2px solid var(--gold); padding-left: 0.6rem; }

.msg-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}

.msg-icon { font-size: 13px; }
.msg-name { font-size: 11px; color: var(--text-muted); }
.msg-name.aguila { color: var(--gold-dim); }
.msg-name.yo { color: var(--gold-bright); }
.msg-time { font-size: 10px; color: var(--text-muted); margin-left: auto; }
.msg-text { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

.chat-footer {
  padding: 0.6rem 0.8rem;
  background: #060810;
  border-top: 1px solid var(--border);
}

.chat-reacciones {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.reaccion {
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border);
  font-size: 14px;
  cursor: pointer;
  background: #0E1020;
  border-radius: 2px;
  transition: border-color 0.2s;
}

.reaccion:hover { border-color: var(--border-gold); }

.chat-input-row {
  display: flex;
  gap: 0.5rem;
}

.chat-input {
  flex: 1;
  background: #060810;
  border: 1px solid var(--border);
  padding: 0.5rem 0.8rem;
  font-size: 13px;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  outline: none;
  transition: border-color 0.3s;
}

.chat-input:focus { border-color: var(--border-gold); }
.chat-input::placeholder { color: var(--text-muted); }

.chat-send {
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border-gold);
  background: var(--gold-glow);
  color: var(--gold);
  cursor: pointer;
  font-size: 13px;
}

/* ===== LOGIN MODAL ===== */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: none;
  align-items: center;
  justify-content: center;
}

.login-overlay.visible { display: flex; }

.login-box {
  width: 420px;
  border: 1px solid var(--border-gold);
  background: var(--bg2);
  position: relative;
}

.login-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.login-head {
  padding: 2.5rem 2.5rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.login-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  letter-spacing: 0.4em;
  color: var(--gold-bright);
  text-shadow: 0 0 20px var(--gold-glow);
}

.login-subtitle {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.login-body { padding: 2rem 2.5rem; }

.login-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: block;
}

.login-input {
  width: 100%;
  background: #060810;
  border: 1px solid var(--border);
  padding: 0.7rem 1rem;
  font-size: 14px;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  outline: none;
  margin-bottom: 1rem;
  transition: border-color 0.3s;
}

.login-input:focus { border-color: var(--border-gold); }
.login-input::placeholder { color: var(--text-muted); }

.login-err {
  font-size: 12px;
  color: var(--red);
  text-align: center;
  min-height: 20px;
  margin-bottom: 0.5rem;
}

.login-btn {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid var(--gold);
  background: var(--gold);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bg);
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 0.8rem;
  transition: all 0.3s;
}

.login-btn:hover { background: var(--gold-bright); }

.login-hint {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.8;
}

.login-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-muted);
  opacity: 0.5;
  transition: opacity 0.2s;
}

.login-close:hover { opacity: 1; }

/* ===== PACK CARDS ===== */
.pack-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 2rem;
  position: relative;
  transition: border-color 0.3s;
}

.pack-card:hover { border-color: var(--border-gold); }

.pack-card.featured {
  border-color: var(--border-gold);
}

.pack-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.pack-icon {
  font-size: 36px;
  margin-bottom: 1rem;
}

.pack-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.pack-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  color: var(--gold-bright);
  text-shadow: 0 0 20px var(--gold-glow);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.pack-period {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pack-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.pack-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-dim);
  flex-shrink: 0;
  margin-top: 7px;
}

/* ===== ANIMAL CARDS (Home) ===== */
.animal-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.3s;
  position: relative;
}

.animal-card:hover { border-color: var(--border-gold); }

.animal-img {
  width: 90px;
  height: 90px;
  margin: 0 auto 1rem;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: var(--bg3);
}

.animal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.animal-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.animal-role {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.8rem;
}

.animal-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== ACCESS DENIED (Packs page msg) ===== */
.access-msg {
  display: none;
  background: #C9A84C0A;
  border: 1px solid var(--border-gold);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
}

.access-msg.visible { display: block; }

.access-msg-tag {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.access-msg-text {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ===== ETAPAS (Home) ===== */
.etapas-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
}

.etapa-item {
  background: var(--bg2);
  padding: 1.5rem 1rem;
  text-align: center;
  position: relative;
}

.etapa-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  color: var(--text-muted);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.etapa-item.gold .etapa-num { color: var(--gold-bright); text-shadow: 0 0 20px var(--gold-glow); }
.etapa-item.gold::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.etapa-name {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}

.etapa-req {
  font-size: 11px;
  color: var(--text-muted);
}
/* ── Sala: participantes compactos ───────────────────────── */
.sala-part {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  min-width: 56px;
  max-width: 56px;
  flex-shrink: 0;
}
.sala-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.sala-avatar-gold { border-color: var(--border-gold); }
.sala-hablando .sala-avatar {
  border-color: var(--gold);
  box-shadow: 0 0 14px #C9A84C55;
  animation: sala-glow 1.4s ease-in-out infinite;
}
.sala-silenciado { opacity: .4; }
.sala-avatar-letra {
  position: absolute;
  font-size: 18px;
  color: var(--text-muted);
  font-family: 'Cormorant Garamond', serif;
  pointer-events: none;
  user-select: none;
}
.sala-badge-tu {
  position: absolute;
  top: -1px;
  right: -1px;
  font-size: 7px;
  background: var(--gold);
  color: var(--bg);
  padding: 0 3px;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.7;
}
.sala-part-nick {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: .04em;
  white-space: nowrap;
  max-width: 56px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.sala-hablando .sala-part-nick { color: var(--gold-dim); }
.sala-mic-dot { width: 7px; height: 7px; border-radius: 50%; }
.sala-mic-on  { background: var(--green); box-shadow: 0 0 5px var(--green); }
.sala-mic-off { background: #CC4433; }
.sala-part-vacio {
  min-width: 46px; max-width: 46px; height: 46px;
  border-radius: 50%;
  background: #060810;
  border: 1px dashed #1A2040;
  flex-shrink: 0;
}
@keyframes sala-glow {
  0%,100% { box-shadow: 0 0 8px #C9A84C44; border-color: var(--gold); }
  50%      { box-shadow: 0 0 20px #C9A84C77; border-color: #E8C870; }
}

/* Fullscreen a nivel documento — el nav queda visible, el layout ya usa 100vh */
:fullscreen          body { overflow: hidden; }
:-webkit-full-screen body { overflow: hidden; }

/* ── Sala: tabs Chat / Jitsi ─────────────────────────────── */
.sala-tab {
  flex: 1;
  padding: .55rem .4rem;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  user-select: none;
}
.sala-tab:hover { color: var(--gold-dim); }
.sala-tab-activo { color: var(--gold); border-bottom-color: var(--gold); }
