/* ==============================================================================
   STORIES FROM CAK · ESTILO BEACOLAND & MYSTICMC
   Fondo: Imagen oficial in-game con shaders (bg_official.jpg)
   Paleta: Oro Cálido Atardecer (#f5b847), Obsidiana y Cristal Oscuro.
   Botones: Cristales oscuros con ribete dorado (sin amarillo chillón que lastime).
   ============================================================================== */

:root {
  --gold-warm: #f5b847;
  --gold-bright: #ffcf66;
  --gold-dark: #8c631e;
  --gold-glow: rgba(245, 184, 71, 0.25);

  --red-live: #ef4444;
  --red-glow: rgba(239, 68, 68, 0.4);

  --bg-dark: #080a0f;
  --bg-card: rgba(12, 17, 26, 0.78);
  --bg-card-hover: rgba(18, 25, 40, 0.92);
  --border-card: rgba(245, 184, 71, 0.22);
  --border-card-hover: rgba(245, 184, 71, 0.65);

  --text-white: #ffffff;
  --text-main: #e2e7f3;
  --text-muted: #9aa5bc;
  --text-dim: #5c667a;

  --font-serif: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* ==============================================================================
   FONDO OFICIAL MINECRAFT CON SHADERS
   ============================================================================== */
.bg-portal-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('bg_official.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  z-index: -2;
  filter: brightness(0.85) contrast(1.05);
}

.bg-vignette-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(circle at 50% 25%, rgba(8, 11, 16, 0.4) 0%, rgba(6, 8, 12, 0.88) 100%),
    linear-gradient(180deg, rgba(8, 10, 14, 0.5) 0%, rgba(6, 8, 12, 0.25) 35%, rgba(6, 8, 12, 0.95) 85%);
  z-index: -1;
  pointer-events: none;
}

/* ==============================================================================
   NAVBAR FLOTANTE TIPO BEACOLAND
   ============================================================================== */
.nav-container-floating {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 16px 24px;
  z-index: 100;
  display: flex;
  justify-content: center;
}

.floating-navbar {
  width: 100%;
  max-width: 1120px;
  background: rgba(12, 16, 24, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9999px;
  padding: 8px 14px 8px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brand-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-crest-mini {
  height: 28px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.brand-title-text {
  font-family: var(--font-serif);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-white);
}

.nav-links-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.nav-tab:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-tab.active {
  color: #11141c;
  background: var(--text-white);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

/* Pestaña En Vivo */
.nav-tab-live {
  position: relative;
}

.nav-tab-live.active {
  background: var(--red-live);
  color: #ffffff;
  box-shadow: 0 2px 12px var(--red-glow);
}

.live-status-dot {
  width: 7px;
  height: 7px;
  background-color: var(--red-live);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--red-live);
}

.nav-tab-live.active .live-status-dot {
  background-color: #ffffff;
  box-shadow: 0 0 8px #ffffff;
}

.live-counter-pill {
  font-size: 0.7rem;
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 700;
}

.nav-tab-live.active .live-counter-pill {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

/* Botones Externos en la Navbar (Cristal Oscuro Elegante) */
.header-external-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-external-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 22, 34, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  padding: 7px 15px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-external-link:hover {
  background: rgba(245, 184, 71, 0.12);
  border-color: var(--gold-warm);
  color: var(--gold-bright);
  transform: translateY(-1px);
}

.btn-external-link.btn-cak {
  border-color: rgba(245, 184, 71, 0.35);
  background: rgba(22, 28, 42, 0.85);
}

.btn-external-link.btn-cak:hover {
  border-color: var(--gold-warm);
  box-shadow: 0 0 12px var(--gold-glow);
}

/* ==============================================================================
   HERO SECTION LIMPIO (SIN TEXTO EXTRA GENÉRICO)
   ============================================================================== */
.main-content-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 24px 70px;
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.hero-beacoland {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 16px 45px;
  max-width: 860px;
}

.hero-main-title {
  font-size: clamp(2.3rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.75);
}

.text-accent {
  color: var(--gold-bright);
  text-shadow: 0 0 24px var(--gold-glow);
}

/* Botón Hero (Elegante Cristal Oscuro con ribete dorado, SIN amarillo chillón) */
.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 22, 34, 0.88);
  backdrop-filter: blur(14px);
  border: 1.5px solid rgba(245, 184, 71, 0.5);
  color: var(--text-white);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 14px rgba(245, 184, 71, 0.15);
}

.btn-hero-primary:hover {
  background: rgba(245, 184, 71, 0.18);
  border-color: var(--gold-warm);
  color: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 20px var(--gold-glow);
}

/* ==============================================================================
   CUADRICULA DE 20 LUGARES (ROSTER)
   ============================================================================== */
.roster-section {
  width: 100%;
  padding-top: 10px;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 18px;
}

/* Tarjeta de Lugar */
.slot-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 24px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.slot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245, 184, 71, 0.25), transparent);
  transition: background 0.28s ease;
}

.slot-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(245, 184, 71, 0.25);
}

.slot-card:hover::before {
  background: linear-gradient(90deg, transparent, var(--gold-warm), transparent);
}

.slot-number-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--font-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  transition: color 0.25s ease;
}

.slot-card:hover .slot-number-badge {
  color: var(--gold-warm);
}

.mystery-medallion {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1e2638 0%, #0d121c 85%);
  border: 1.5px solid rgba(245, 184, 71, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 14px;
  position: relative;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.28s ease;
}

.slot-card:hover .mystery-medallion {
  border-color: var(--gold-warm);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 18px rgba(245, 184, 71, 0.4);
  transform: scale(1.05);
}

.mystery-glyph {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--gold-warm);
  text-shadow: 0 0 12px rgba(245, 184, 71, 0.5);
  transition: all 0.28s ease;
}

.slot-card:hover .mystery-glyph {
  color: var(--gold-bright);
  text-shadow: 0 0 18px rgba(245, 184, 71, 0.9);
}

.slot-title {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 6px;
}

.slot-card:hover .slot-title {
  color: var(--text-white);
}

.slot-badge-status {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3px 10px;
  border-radius: 12px;
}

/* ==============================================================================
   TARJETA REVELADA / EN VIVO
   ============================================================================== */
.slot-card.revealed {
  border-color: rgba(245, 184, 71, 0.4);
}

.slot-card.is-live {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px var(--red-glow);
}

.slot-avatar-box {
  position: relative;
  margin: 8px 0 14px;
}

.slot-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-warm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7), 0 0 14px rgba(245, 184, 71, 0.3);
  transition: transform 0.28s ease;
}

.slot-card.is-live .slot-avatar {
  border-color: var(--red-live);
  box-shadow: 0 0 18px var(--red-glow);
}

.slot-live-pill {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red-live);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 1px 7px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.slot-meta-text {
  font-size: 0.78rem;
  color: var(--gold-warm);
  margin-bottom: 12px;
}

.slot-action-btn {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  background: rgba(20, 27, 40, 0.85);
  border: 1px solid rgba(245, 184, 71, 0.45);
  padding: 5px 14px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.slot-action-btn:hover {
  background: rgba(245, 184, 71, 0.2);
  border-color: var(--gold-warm);
  color: var(--gold-bright);
  transform: translateY(-1px);
}

.slot-action-btn.btn-live-stream {
  background: var(--red-live);
  border-color: var(--red-live);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--red-glow);
}

/* ==============================================================================
   SECCIÓN DE 2 PERGAMINOS (GUÍA & REGLAS) ESTILO WARCRAFT
   Fondo: parchment_bg.jpg?v=2 (fotografía HD de escaneo medieval)
   Tipografía: 'Cinzel' (títulos) + 'Plus Jakarta Sans' (párrafos legibles)
   Tinta: Tinta carbón oscura de máxima legibilidad y contraste (#120601)
   ============================================================================== */
.warcraft-scrolls-section {
  width: 100%;
  max-width: 1260px;
  margin: 15px auto 60px;
  animation: fadeInScroll 0.35s ease;
}

@keyframes fadeInScroll {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scrolls-container-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  width: 100%;
}

.warcraft-scroll-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.88));
  transition: transform 0.28s ease, filter 0.28s ease;
}

.warcraft-scroll-card:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 25px 55px rgba(0, 0, 0, 0.95));
}

/* Varas de Madera y Bronce del Pergamino (Superior e Inferior) */
.scroll-rod {
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 4;
}

.rod-top {
  margin-bottom: -6px;
}

.rod-bottom {
  margin-top: -6px;
}

.rod-bar {
  flex: 1;
  height: 14px;
  background: linear-gradient(180deg, #6b3d1f 0%, #2e1708 50%, #4f2912 100%);
  border-top: 1px solid #9e6435;
  border-bottom: 1px solid #1a0b03;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.rod-knob {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd470 0%, #c28829 55%, #59390a 100%);
  border: 1.5px solid #ffecaa;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.75), inset 0 1px 3px rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.rod-knob-left {
  margin-right: -4px;
}

.rod-knob-right {
  margin-left: -4px;
}

/* Cuerpo del Pergamino Antiguo */
.scroll-body-wrapper {
  position: relative;
  background-color: #e8d7b8;
  background-image: url('parchment_bg.jpg?v=2');
  background-size: cover;
  background-position: center;
  border-left: 6px solid #4a2810;
  border-right: 6px solid #4a2810;
  box-shadow:
    inset 0 0 35px rgba(60, 30, 10, 0.18),
    inset 0 6px 12px rgba(0, 0, 0, 0.3),
    inset 0 -6px 12px rgba(0, 0, 0, 0.3);
  padding: 45px 36px 40px;
  overflow: hidden;
  z-index: 2;
}

.scroll-texture-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  outline: 1.5px solid rgba(135, 75, 25, 0.35);
  outline-offset: -12px;
}

.scroll-content-inner {
  position: relative;
  z-index: 3;
}

/* Encabezados y Secciones de los Pergaminos */

/* Capítulos del Pergamino */
.scroll-chapter {
  margin-bottom: 15px;
}

.chapter-title-box {
  text-align: center;
  margin-bottom: 24px;
}

.chapter-badge {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: 900;
  color: #824416;
  letter-spacing: 0.16em;
  padding: 3px 14px;
  border: 1.5px solid rgba(130, 68, 22, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.25);
  margin-bottom: 8px;
}

.chapter-heading {
  font-family: 'Cinzel Decorative', 'MedievalSharp', serif;
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 900;
  color: #271203;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
}

.chapter-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  color: #55280b;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Entradas de Texto del Pergamino (Letra Grande y Nítida) */
.parchment-entries-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.parchment-entry {
  background: rgba(255, 252, 245, 0.45);
  border: 1.5px solid rgba(110, 65, 25, 0.28);
  padding: 24px 28px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(60, 30, 10, 0.05), inset 0 1px 2px rgba(255, 255, 255, 0.65);
  transition: all 0.22s ease;
}

.parchment-entry:hover {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(130, 70, 25, 0.5);
  transform: translateX(4px);
  box-shadow: 0 5px 16px rgba(60, 30, 10, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.85);
}

.entry-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.entry-bullet {
  font-size: 1.3rem;
  color: #8b4618;
}

.entry-title {
  font-family: 'Cinzel', 'MedievalSharp', serif;
  font-size: 1.65rem;
  font-weight: 900;
  color: #1a0801;
  letter-spacing: 0.02em;
  margin: 0;
}

.parchment-entry p {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.38rem;
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: #120601;
  margin: 0;
}

.parchment-entry p strong {
  font-family: inherit;
  color: #000000;
  font-weight: 800;
}

.parchment-entry p em {
  font-family: inherit;
  font-style: italic;
  color: #2e1203;
}

/* Cierre / Pie del Pergamino */
.scroll-footer-sign {
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1.5px dashed rgba(120, 65, 20, 0.4);
}

.sign-motto {
  font-family: 'Almendra', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: #3f1e07;
  margin-bottom: 8px;
}

.sign-author {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #6d3611;
  text-transform: uppercase;
}

.empty-live-box {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  max-width: 500px;
  margin: 30px auto;
}

.empty-live-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==============================================================================
   FOOTER MINIMALISTA
   ============================================================================== */
.beacoland-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 8, 12, 0.88);
  backdrop-filter: blur(12px);
  padding: 24px 0;
  margin-top: auto;
  z-index: 2;
}

.footer-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.footer-left-name {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-main);
}

.footer-dot-sep {
  color: var(--gold-warm);
}

.footer-right-net {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==============================================================================
   RESPONSIVE
   ============================================================================== */
@media (max-width: 860px) {
  .nav-container-floating {
    padding: 10px 14px;
  }

  .floating-navbar {
    padding: 6px 12px;
  }

  .brand-title-text {
    display: none;
  }

  .header-external-links {
    gap: 6px;
  }

  .btn-external-link {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .hero-beacoland {
    padding: 24px 10px 35px;
  }

  .hero-main-title {
    font-size: 2.1rem;
  }

  .slots-grid {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 12px;
  }

  .slot-card {
    padding: 18px 10px 16px;
  }

  .mystery-medallion,
  .slot-avatar {
    width: 66px;
    height: 66px;
  }

  .mystery-glyph {
    font-size: 2rem;
  }

  .scrolls-container-duo {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .scroll-body-wrapper {
    padding: 35px 20px 30px;
    border-left-width: 4px;
    border-right-width: 4px;
  }

  .scroll-grand-title {
    font-size: 2.1rem;
  }

  .chapter-heading {
    font-size: 1.8rem;
  }

  .parchment-entry {
    padding: 15px 16px;
  }

  .parchment-entry p {
    font-size: 1.25rem;
    line-height: 1.75;
  }

  .entry-title {
    font-size: 1.48rem;
  }

  .scroll-rod {
    height: 18px;
  }

  .rod-bar {
    height: 11px;
  }

  .rod-knob {
    width: 20px;
    height: 20px;
  }
}