/* ==========================================================================
   MARELAB — DESIGN SYSTEM & STYLESHEET (PLATAFORMA MARELAB)
   Aesthetics: Minimalist Disruptive / Cultura MARE / STEM & Robótica Medellín
   ========================================================================== */

/* --- ROOT VARIABLES --- */
:root {
  /* Brand Core Palette (Official MARE) */
  --navy: #001F54;
  --navy-deep: #00102b;
  --navy-soft: #0b2c66;
  --bg-dark: #00102b;
  --bg-card: rgba(11, 44, 102, 0.65);
  --bg-card-hover: rgba(14, 61, 120, 0.85);
  --bg-glass: rgba(0, 31, 84, 0.75);
  
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(0, 217, 255, 0.35);
  --border-thick: #000000;

  /* Signature MARE Colors */
  --c-cyan: #00D9FF;
  --c-yellow: #FFD700;
  --c-coral: #FF6B35;
  --c-white: #ffffff;
  --c-paper: #F4F7FC;
  --c-ink: #0a1830;
  --c-ink-soft: #94a3b8;

  /* Typography: Fredoka (Headings) + Space Grotesk + Plus Jakarta Sans */
  --font-display: 'Fredoka', ui-rounded, 'Segoe UI', sans-serif;
  --font-mono: 'Space Grotesk', monospace, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Transitions & Shadows */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-neon-cyan: 0 10px 25px rgba(0, 217, 255, 0.4);
  --shadow-neon-coral: 0 10px 25px rgba(255, 107, 53, 0.4);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: #e2e8f0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: #cbd5e1;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Selection */
::selection {
  background: var(--c-cyan);
  color: #000;
}

/* Background Ambient Canvas */
.ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

/* --- CUSTOM CURSOR --- */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--c-cyan);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease, background 0.2s ease;
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(0, 217, 255, 0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

body.cursor-hover .cursor-dot {
  transform: translate(-50%, -50%) scale(1.8);
  background: var(--c-yellow);
}

body.cursor-hover .cursor-ring {
  width: 55px;
  height: 55px;
  border-color: var(--c-yellow);
  background: rgba(255, 215, 0, 0.08);
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* --- TYPOGRAPHY & HELPERS --- */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  color: #ffffff;
  line-height: 1.15;
  font-weight: 600;
}

.color-cyan { color: var(--c-cyan) !important; }
.color-yellow { color: var(--c-yellow) !important; }
.color-coral { color: var(--c-coral) !important; }
.color-white { color: var(--c-white) !important; }

.bg-cyan { background: var(--c-cyan) !important; }
.bg-yellow { background: var(--c-yellow) !important; color: #000 !important; }
.bg-coral { background: var(--c-coral) !important; }
.bg-white { background: var(--c-white) !important; }
.text-dark { color: #00102b !important; }

.gradient-text {
  background: linear-gradient(135deg, var(--c-cyan) 0%, var(--c-yellow) 50%, var(--c-coral) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- BUTTONS & CONTROLS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--c-cyan);
  color: var(--navy-deep);
  border-color: var(--c-cyan);
  box-shadow: var(--shadow-neon-cyan);
}

.btn-primary:hover {
  background: #38e4ff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 217, 255, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-large {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn-glow {
  position: relative;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  transform: scale(1.08);
}

/* --- NAVIGATION BAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: all 0.35s ease;
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background: rgba(0, 31, 84, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* BRAND LOGO GRAPHIC */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
}

.logo-badge {
  background: var(--navy);
  border: 2.5px solid #000;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s var(--ease-spring);
}

.logo-badge.sm {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.brand-logo:hover .logo-badge {
  transform: rotate(-6deg) scale(1.08);
}

.logo-letters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 28px;
  height: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  text-align: center;
}

.logo-badge.sm .logo-letters {
  width: 22px;
  height: 22px;
  font-size: 11px;
}

.l-m, .l-a, .l-r {
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.l-e-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 2px;
}

.logo-badge.sm .l-e-bars {
  gap: 1.5px;
}

.bar {
  display: block;
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
}

.logo-badge.sm .bar {
  height: 2px;
}

.bar-cyan { background: var(--c-cyan); }
.bar-yellow { background: var(--c-yellow); }
.bar-coral { background: var(--c-coral); }

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

.dot-accent {
  color: var(--c-coral);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-num {
  font-size: 0.75rem;
  color: var(--c-cyan);
  font-family: var(--font-mono);
  opacity: 0.7;
}

.nav-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-link:hover .nav-num {
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: 0.3s ease;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: rgba(0, 16, 43, 0.98);
  backdrop-filter: blur(20px);
  padding: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  z-index: 999;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-link {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-num {
  color: var(--c-cyan);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* --- HERO SECTION --- */
.hero-section {
  min-height: 100vh;
  padding: 8.5rem 0 5rem;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  background:
    radial-gradient(1100px 620px at 10% -10%, rgba(0, 217, 255, 0.18), transparent 60%),
    radial-gradient(900px 560px at 100% 10%, rgba(255, 107, 53, 0.16), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.hero-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 10px var(--c-cyan);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.badge-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-cyan);
  letter-spacing: 0.08em;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.hero-line {
  display: block;
}

.highlight-gradient {
  background: linear-gradient(100deg, var(--c-cyan) 0%, var(--c-yellow) 45%, var(--c-coral) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: #cbd5e1;
  max-width: 580px;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.hero-subtitle strong {
  color: #ffffff;
}

.hero-purpose-quote {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.06);
  border-left: 4px solid var(--c-yellow);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.05rem;
  max-width: 540px;
  margin-bottom: 2.25rem;
}

.quote-icon {
  width: 20px;
  height: 20px;
  color: var(--c-yellow);
  flex-shrink: 0;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

/* Hero Pillars Mini Bar */
.hero-pillars-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 31, 84, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
}

.pill-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.pill-badge:hover {
  transform: translateY(-2px);
}

.pill-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.pill-word {
  color: #cbd5e1;
  font-weight: 600;
}

.pill-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
}

/* 3D Hero Cube Stage */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cube-stage-wrapper {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.25) 0%, rgba(255, 107, 53, 0.18) 50%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.three-cube-container {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  cursor: grab;
}

.three-cube-container:active {
  cursor: grabbing;
}

.cube-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 16, 43, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #94a3b8;
  backdrop-filter: blur(8px);
  pointer-events: none;
  z-index: 2;
}

/* --- SECTION COMMON --- */
.section {
  padding: 6.5rem 0;
  position: relative;
  z-index: 1;
}

.section-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  margin-bottom: 4rem;
}

.section-header.text-center {
  text-align: center;
}

.tag-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-cyan);
  margin-bottom: 0.85rem;
}

.tag-label.centered {
  justify-content: center;
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 8px var(--c-cyan);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  margin-bottom: 1.25rem;
}

.section-desc {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 680px;
  line-height: 1.65;
}

.max-w-700 {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- SECTION: PILARES MARE GRID --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: all 0.35s var(--ease-smooth);
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
}

.card-motivate::before { background: var(--c-cyan); }
.card-aprende::before { background: var(--c-yellow); }
.card-recreate::before { background: var(--c-coral); }
.card-emprende::before { background: #ffffff; }

.pillar-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-card);
}

.card-bg-mesh {
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.15;
  pointer-events: none;
}

.card-motivate .card-bg-mesh { background: var(--c-cyan); }
.card-aprende .card-bg-mesh { background: var(--c-yellow); }
.card-recreate .card-bg-mesh { background: var(--c-coral); }
.card-emprende .card-bg-mesh { background: #ffffff; }

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.card-identity {
  display: flex;
  flex-direction: column;
}

.pillar-huge-letter {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 0.9;
}

.pillar-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.4rem;
}

.pillar-icon-box {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.pillar-icon-box i {
  width: 24px;
  height: 24px;
}

.card-body {
  margin-bottom: 2rem;
}

.pillar-name {
  font-size: 1.65rem;
  margin-bottom: 0.4rem;
}

.pillar-subtitle {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--c-cyan);
  margin-bottom: 1rem;
  font-weight: 600;
}

.card-aprende .pillar-subtitle { color: var(--c-yellow); }
.card-recreate .pillar-subtitle { color: var(--c-coral); }
.card-emprende .pillar-subtitle { color: #ffffff; }

.pillar-description {
  font-size: 0.94rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.pillar-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pillar-highlights li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: #cbd5e1;
}

.pillar-highlights li i {
  width: 16px;
  height: 16px;
  color: var(--c-cyan);
  flex-shrink: 0;
}

.card-aprende .pillar-highlights li i { color: var(--c-yellow); }
.card-recreate .pillar-highlights li i { color: var(--c-coral); }
.card-emprende .pillar-highlights li i { color: #ffffff; }

.card-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-status-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #94a3b8;
}

.card-energy-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

/* --- SECTION: RETO DEL DADO MARE (JUEGO INTERACTIVO) --- */
.juego-section {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-deep) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.cube-controls-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 16, 43, 0.85);
  padding: 0.4rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  margin-top: 1.5rem;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  user-select: none;
  pointer-events: auto;
}

.tab-btn:hover {
  color: #ffffff;
}

.tab-btn.active {
  background: var(--c-cyan);
  color: var(--navy-deep);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
}

.juego-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
  margin-top: 3rem;
}

.juego-visual-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cube-view-mode {
  display: none;
  width: 100%;
}

.cube-view-mode.active {
  display: block;
}

.three-full-canvas {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at center, rgba(11, 44, 102, 0.6) 0%, rgba(0, 16, 43, 0.9) 100%);
  border: 1px solid var(--border-subtle);
  cursor: grab;
}

.three-full-canvas:active {
  cursor: grabbing;
}

.canvas-drag-hint {
  text-align: center;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* 2D UNROLLED NET GRID */
.origami-net-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0;
}

.net-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.net-row-middle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.net-face {
  width: 125px;
  height: 125px;
  background: var(--navy);
  border: 3px solid #000000;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  color: #ffffff;
  user-select: none;
}

.net-face:hover, .net-face.active-face {
  transform: scale(1.08);
  border-color: var(--c-cyan);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.face-badge-corner {
  position: absolute;
  top: 6px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--c-cyan);
}

.core-badge {
  background: rgba(255, 215, 0, 0.2);
  color: var(--c-yellow);
}

.face-name-tag {
  position: absolute;
  bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cbd5e1;
  font-weight: 700;
  text-align: center;
}

/* Face Visual details in Net */
.face-steam .steam-diagonal-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  transform: rotate(-30deg);
}

.brand-letters-huge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
}

.top-letters, .bottom-letters {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.bottom-letters { margin-top: 3px; }

.e-bars-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 20px;
}

.bar-h {
  height: 4px;
  border-radius: 2px;
  width: 100%;
}

.bar-h.c-cyan { background: var(--c-cyan); }
.bar-h.c-yellow { background: var(--c-yellow); }
.bar-h.c-coral { background: var(--c-coral); }

.dots-diagram {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-bottom: 12px;
}

.dots-diagram.dots-4cols {
  gap: 7px;
  padding-bottom: 16px;
}

.dots-diagram.dots-4cols .dot {
  width: 5.5px;
  height: 5.5px;
}

.dots-diagram.dots-4cols .dot-col {
  gap: 5px;
}

.dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

/* VERCEL-STYLE CASCADING PULSE BEAMS FOR DIVERGENCIA (1 -> 4) */
.face-dots-left .dot-col:nth-child(1) .dot {
  animation: vercelPulseDiverge 2.4s infinite ease-in-out;
  animation-delay: 0s;
}
.face-dots-left .dot-col:nth-child(2) .dot {
  animation: vercelPulseDiverge 2.4s infinite ease-in-out;
  animation-delay: 0.35s;
}
.face-dots-left .dot-col:nth-child(3) .dot {
  animation: vercelPulseDiverge 2.4s infinite ease-in-out;
  animation-delay: 0.7s;
}
.face-dots-left .dot-col:nth-child(4) .dot {
  animation: vercelPulseDiverge 2.4s infinite ease-in-out;
  animation-delay: 1.05s;
}

/* VERCEL-STYLE CASCADING PULSE BEAMS FOR CONVERGENCIA (4 -> 1) */
.face-dots-right .dot-col:nth-child(1) .dot {
  animation: vercelPulseConverge 2.4s infinite ease-in-out;
  animation-delay: 0s;
}
.face-dots-right .dot-col:nth-child(2) .dot {
  animation: vercelPulseConverge 2.4s infinite ease-in-out;
  animation-delay: 0.35s;
}
.face-dots-right .dot-col:nth-child(3) .dot {
  animation: vercelPulseConverge 2.4s infinite ease-in-out;
  animation-delay: 0.7s;
}
.face-dots-right .dot-col:nth-child(4) .dot {
  animation: vercelPulseConvergeFocus 2.4s infinite ease-in-out;
  animation-delay: 1.05s;
}

@keyframes vercelPulseDiverge {
  0%, 100% {
    transform: scale(1);
    background-color: #94a3b8;
    box-shadow: 0 0 0 rgba(0, 217, 255, 0);
  }
  30% {
    transform: scale(1.45);
    background-color: #00D9FF;
    box-shadow: 0 0 10px #00D9FF, 0 0 18px rgba(0, 217, 255, 0.9);
  }
  60% {
    transform: scale(1);
    background-color: #ffffff;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
  }
}

@keyframes vercelPulseConverge {
  0%, 100% {
    transform: scale(1);
    background-color: #94a3b8;
    box-shadow: 0 0 0 rgba(255, 215, 0, 0);
  }
  30% {
    transform: scale(1.35);
    background-color: #FFD700;
    box-shadow: 0 0 8px #FFD700, 0 0 16px rgba(255, 215, 0, 0.8);
  }
  60% {
    transform: scale(1);
    background-color: #ffffff;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
  }
}

@keyframes vercelPulseConvergeFocus {
  0%, 100% {
    transform: scale(1);
    background-color: #94a3b8;
    box-shadow: 0 0 0 rgba(0, 217, 255, 0);
  }
  40% {
    transform: scale(1.75);
    background-color: #00D9FF;
    box-shadow: 0 0 14px #00D9FF, 0 0 26px rgba(0, 217, 255, 1);
  }
  70% {
    transform: scale(1);
    background-color: #ffffff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
  }
}

@keyframes vercelArrowBeam {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.diagram-arrow-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0%, #00D9FF 50%, rgba(255, 255, 255, 0.25) 100%);
  background-size: 200% 100%;
  animation: vercelArrowBeam 2.4s infinite linear;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  box-shadow: 0 0 8px rgba(0, 217, 255, 0.5);
  border-radius: 2px;
}

.diagram-arrow-bar .arrow-head {
  width: 0;
  height: 0;
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
  border-left: 6px solid #00D9FF;
  filter: drop-shadow(0 0 4px #00D9FF);
}

.tictactoe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 70px;
  height: 70px;
}

.ttt-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.ttt-cell:nth-child(1), .ttt-cell:nth-child(2), .ttt-cell:nth-child(4), .ttt-cell:nth-child(5), .ttt-cell:nth-child(7), .ttt-cell:nth-child(8) {
  border-right: 2px solid #ffffff;
}

.ttt-cell:nth-child(1), .ttt-cell:nth-child(2), .ttt-cell:nth-child(3), .ttt-cell:nth-child(4), .ttt-cell:nth-child(5), .ttt-cell:nth-child(6) {
  border-bottom: 2px solid #ffffff;
}

/* SEMILLERO: PUNTO A (BOMBILLO) -> COHETE -> PUNTO B (LED) */
.semillero-a-to-b-stage {
  position: relative;
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flight-trajectory-dash {
  position: absolute;
  width: 80px;
  height: 48px;
  border: 1.8px dashed rgba(0, 217, 255, 0.6);
  border-radius: 50%;
  transform: rotate(-40deg);
  pointer-events: none;
}

.pt-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.pt-node i {
  width: 18px;
  height: 18px;
}

.node-lbl {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1;
  margin-top: 1px;
}

.pt-a {
  bottom: 6px;
  left: 6px;
  color: var(--c-yellow);
}

.pt-b {
  top: 6px;
  right: 6px;
  color: var(--c-cyan);
}

.pt-a i {
  animation: vercelLampPulse 2.4s infinite ease-in-out;
}

@keyframes vercelLampPulse {
  0%, 100% {
    color: var(--c-yellow);
    filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.3));
  }
  50% {
    color: #ffffff;
    filter: drop-shadow(0 0 12px #FFD700);
  }
}

.pt-b i {
  animation: vercelLedPulse 2.4s infinite ease-in-out 1.2s;
}

@keyframes vercelLedPulse {
  0%, 100% {
    color: var(--c-cyan);
    filter: drop-shadow(0 0 2px rgba(0, 217, 255, 0.3));
  }
  50% {
    color: #ffffff;
    filter: drop-shadow(0 0 14px #00D9FF);
  }
}

.rocket-flight-vector {
  position: relative;
  z-index: 3;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: vercelRocketFloat 2s infinite ease-in-out;
}

@keyframes vercelRocketFloat {
  0%, 100% {
    transform: rotate(-45deg) translate(0, 0);
    filter: drop-shadow(0 0 6px rgba(0, 217, 255, 0.5));
  }
  50% {
    transform: rotate(-45deg) translate(3px, -3px) scale(1.1);
    filter: drop-shadow(0 0 14px rgba(255, 107, 53, 0.9));
  }
}

.rocket-flight-vector i {
  width: 28px;
  height: 28px;
}

/* Face Selector Palette */
.face-selector-palette {
  background: rgba(0, 31, 84, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  backdrop-filter: blur(12px);
}

.palette-instruction {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.palette-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-palette-face {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--border-subtle);
  border-radius: 999px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-palette-face:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--c-cyan);
}

.btn-palette-face.active {
  background: #ffffff;
  color: #00102b;
  border-color: #ffffff;
  font-weight: 700;
}

.pf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* RIGHT COLUMN: JUEGO CONTROL PANEL */
.juego-card-panel {
  background: rgba(0, 31, 84, 0.85);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.juego-panel-title {
  font-size: 1.85rem;
  margin-bottom: 0.6rem;
}

.juego-panel-desc {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.game-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* Stats Counter Grid with Tabular Numerals */
.game-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding: 1.25rem;
  background: rgba(0, 16, 43, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-variant-numeric: tabular-nums;
}

.stat-box {
  text-align: center;
}

.stat-box b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: #ffffff;
  line-height: 1;
}

.stat-box span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.35rem;
  display: block;
}

/* Result Card */
.result-card {
  display: none;
  background: rgba(255, 215, 0, 0.08);
  border: 1.5px solid rgba(255, 215, 0, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  animation: fadeIn 0.4s ease;
}

.result-card.show {
  display: block;
}

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

.pct-badge {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--c-yellow);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.result-headline {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.result-message {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* PLAYER REGISTRATION BOX */
.player-reg-box {
  margin-bottom: 1.75rem;
  background: rgba(0, 16, 43, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.player-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.p-input-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #94a3b8;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.p-input-group label i {
  width: 14px;
  height: 14px;
  color: var(--c-cyan);
}

.p-input-group input {
  width: 100%;
  padding: 0.65rem 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s ease;
}

.p-input-group input:focus {
  border-color: var(--c-cyan);
  background: rgba(0, 217, 255, 0.08);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.25);
}

.player-status-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
}

.ps-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-cyan);
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-avatar i {
  width: 18px;
  height: 18px;
}

.ps-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.ps-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.ps-email {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-cyan);
}

.btn-text-sm {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.btn-text-sm:hover {
  color: #ffffff;
}

/* MOST FREQUENT / WINNER FACE BANNER */
.most-frequent-face-banner {
  background: rgba(0, 217, 255, 0.12);
  border: 1px solid rgba(0, 217, 255, 0.4);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  margin: 1.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.mfb-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--c-yellow);
  font-weight: 700;
}

.mfb-label i {
  width: 18px;
  height: 18px;
  color: var(--c-yellow);
}

.mfb-name {
  font-size: 1.05rem;
  color: #ffffff;
}

.mfb-count {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--c-cyan);
  font-weight: 700;
}

/* 6-FACES BREAKDOWN BARS */
.faces-breakdown-container {
  margin: 1.5rem 0;
  background: rgba(0, 16, 43, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.fbc-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
  font-weight: 700;
}

.fbc-title i {
  width: 16px;
  height: 16px;
  color: var(--c-cyan);
}

.fbc-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fbc-row {
  display: grid;
  grid-template-columns: 140px 1fr 60px;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
}

.fbc-row.is-winner {
  font-weight: 700;
}

.fbc-row.is-winner .fbc-face-tag {
  color: var(--c-yellow);
}

.fbc-face-tag {
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fbc-bar-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.fbc-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s var(--ease-spring);
}

.fbc-val {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: right;
}

.result-actions-row {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-start;
}

/* LEADERBOARD RANKING SECTION */
.ranking-leaderboard-wrapper {
  margin-top: 5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--border-subtle);
}

.ranking-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.ranking-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.ranking-desc {
  font-size: 0.98rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
}

.ranking-table-card {
  background: rgba(0, 31, 84, 0.85);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

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

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.ranking-table th {
  background: rgba(0, 16, 43, 0.9);
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-subtle);
}

.ranking-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.ranking-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.rank-pos {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1rem;
}

.pos-1 { color: var(--c-yellow); }
.pos-2 { color: #e2e8f0; }
.pos-3 { color: #d97706; }

.rank-player-col {
  display: flex;
  flex-direction: column;
}

.rp-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.95rem;
}

.rp-email {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #94a3b8;
}

.rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.rank-pill.highlight {
  background: rgba(0, 217, 255, 0.15);
  color: var(--c-cyan);
  border: 1px solid rgba(0, 217, 255, 0.3);
}

.ranking-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(0, 16, 43, 0.6);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 1rem;
}

.rf-admin-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.rf-admin-note i {
  width: 16px;
  height: 16px;
  color: var(--c-cyan);
}

.rf-admin-note strong {
  color: #ffffff;
}

.rf-admin-controls-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-admin-access {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-admin-access:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: var(--c-cyan);
}

.admin-session-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 217, 255, 0.08);
  border: 1px solid rgba(0, 217, 255, 0.3);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}

.as-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-cyan);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-right: 0.25rem;
}

.btn-admin-action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-admin-action:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-admin-action.danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.btn-admin-action.danger:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
}

.btn-admin-action.logout {
  background: transparent;
  color: #94a3b8;
}

.btn-admin-action.logout:hover {
  color: #ffffff;
}

/* BRAND LOGO IMAGE ENHANCEMENTS */
.brand-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img-clean {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 217, 255, 0.3));
  transition: transform 0.25s var(--ease-spring);
}

.brand-logo-link:hover .brand-logo-img-clean {
  transform: scale(1.04);
}

.pillar-logo-capsule {
  background: #ffffff;
  border-radius: 16px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  margin-bottom: 0.75rem;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.pillar-logo-capsule:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 217, 255, 0.4);
}

.pillar-brand-header-img {
  height: 52px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  display: block;
}

.pilares-horizontal-banner-card {
  margin-top: 3rem;
  background: rgba(0, 31, 84, 0.6);
  border: 1.5px solid rgba(255, 215, 0, 0.35);
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.pilares-horizontal-banner-img {
  max-width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.6));
}

.footer-brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.highlight-val {
  color: var(--c-cyan) !important;
  font-weight: 700;
}

.net-logo-image {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* ADMIN LOGIN MODAL OVERLAY */
.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 10, 25, 0.85);
  backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: modalFadeIn 0.25s ease;
}

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

.admin-modal-card {
  background: rgba(0, 31, 84, 0.95);
  border: 1.5px solid rgba(0, 217, 255, 0.4);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  position: relative;
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.admin-modal-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff;
}

.admin-modal-title i {
  width: 22px;
  height: 22px;
  color: var(--c-cyan);
}

.admin-modal-title h4 {
  font-size: 1.3rem;
  margin: 0;
}

.admin-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 5px;
}

.admin-modal-close:hover {
  color: #ffffff;
}

.admin-modal-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.admin-modal-desc strong {
  color: var(--c-yellow);
}

.admin-login-form .form-group {
  margin-bottom: 1.5rem;
}

.admin-modal-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #f87171;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
  padding: 0.6rem 0.85rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
}

.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.admin-modal-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: #94a3b8;
  font-size: 0.78rem;
}

.admin-modal-footer code {
  color: var(--c-cyan);
  background: rgba(0, 217, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

@media (max-width: 768px) {
  .player-input-row {
    grid-template-columns: 1fr;
  }
  .fbc-row {
    grid-template-columns: 100px 1fr 50px;
  }
}

.afe-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-cyan);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.afe-title {
  font-size: 1.25rem;
  margin: 0.35rem 0 0.5rem;
  color: #ffffff;
}

.afe-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

.afe-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.afe-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #cbd5e1;
}

.afe-tag i {
  width: 12px;
  height: 12px;
  color: var(--c-cyan);
}

/* --- SECTION: LÍNEAS DE IMPACTO (TRES FORMAS DE VIVIR MARELAB) --- */
.lineas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.linea-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: all 0.35s ease;
}

.linea-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.3);
}

.linea-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.linea-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.linea-icon i {
  width: 32px;
  height: 32px;
}

.icon-rsm {
  background: rgba(255, 107, 53, 0.15);
  color: var(--c-coral);
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.icon-steam {
  background: rgba(255, 215, 0, 0.15);
  color: var(--c-yellow);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.icon-semillero {
  background: rgba(0, 217, 255, 0.15);
  color: var(--c-cyan);
  border: 1px solid rgba(0, 217, 255, 0.3);
}

.linea-tag-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

.linea-title {
  font-size: 1.65rem;
  margin-bottom: 0.3rem;
}

.linea-sub {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--c-cyan);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.linea-card:nth-child(1) .linea-sub { color: var(--c-coral); }
.linea-card:nth-child(2) .linea-sub { color: var(--c-yellow); }
.linea-card:nth-child(3) .linea-sub { color: var(--c-cyan); }

.linea-description {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  flex: 1;
}

.linea-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.linea-features span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

.linea-features span i {
  width: 15px;
  height: 15px;
  color: var(--c-cyan);
}

/* --- SECTION: SPARKS / DISRUPTÓMETRO --- */
.sparks-section {
  background: radial-gradient(ellipse at center, rgba(11, 44, 102, 0.5) 0%, transparent 70%);
}

.sparks-card-wrapper {
  max-width: 860px;
  margin: 0 auto;
}

.sparks-display-box {
  background: rgba(0, 31, 84, 0.85);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.sparks-display-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-yellow), var(--c-coral));
}

.spark-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.spark-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.9rem;
  background: rgba(0, 217, 255, 0.12);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 999px;
  color: var(--c-cyan);
}

.spark-freq {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #94a3b8;
}

.spark-main-content {
  text-align: center;
  margin-bottom: 3rem;
}

.spark-icon-circle {
  width: 70px;
  height: 70px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--c-yellow);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.2);
  transition: transform 0.4s var(--ease-spring);
}

.sparks-display-box:hover .spark-icon-circle {
  transform: rotate(15deg) scale(1.1);
}

.spark-prompt {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spark-action-tip {
  font-size: 0.95rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  display: inline-block;
}

.spark-action-tip strong {
  color: var(--c-yellow);
}

.spark-controls {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* --- SECTION: MANIFIESTO --- */
.manifiesto-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 5rem 4rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.manifiesto-watermark {
  position: absolute;
  right: -50px;
  bottom: -40px;
  font-family: var(--font-display);
  font-size: 11rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.02);
  pointer-events: none;
  user-select: none;
}

.manifiesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.35;
  color: #ffffff;
  margin: 2rem 0 4rem;
  max-width: 1000px;
}

.manifiesto-quote strong {
  background: linear-gradient(90deg, var(--c-cyan), var(--c-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.manifiesto-points-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 3rem;
}

.m-point-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c-cyan);
  display: block;
  margin-bottom: 0.75rem;
}

.m-point:nth-child(2) .m-point-num { color: var(--c-yellow); }
.m-point:nth-child(3) .m-point-num { color: var(--c-coral); }
.m-point:nth-child(4) .m-point-num { color: #ffffff; }

.m-point h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.m-point p {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* --- SECTION: CONTACTO / CTA --- */
.contact-box {
  background: linear-gradient(135deg, rgba(0, 31, 84, 0.9) 0%, rgba(0, 16, 43, 0.95) 100%);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 4.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.contact-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1.25rem;
}

.contact-desc {
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.c-detail-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.c-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  color: var(--c-cyan);
}

.c-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.c-val {
  font-size: 1.05rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.c-val:hover {
  color: var(--c-cyan);
}

/* Contact Form Card */
.contact-form-card {
  background: rgba(0, 16, 43, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
}

.form-title {
  font-size: 1.4rem;
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.25s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--c-cyan);
  background: rgba(0, 217, 255, 0.05);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.25);
}

.form-group select option {
  background: #00102b;
  color: #ffffff;
}

.form-feedback {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  text-align: center;
  display: none;
}

.form-feedback.success {
  display: block;
  color: #00f5d4;
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2.5rem;
  background: var(--navy-deep);
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-top: 1.25rem;
  line-height: 1.6;
}

.footer-links-col h4 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-links-col a {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.footer-links-col a:hover {
  color: var(--c-cyan);
}

.rsm-subdomain-pill {
  margin-top: 1rem;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: #cbd5e1;
}

.rsm-subdomain-pill strong {
  color: var(--c-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-wa-link {
  color: var(--c-cyan);
  text-decoration: none;
  font-weight: 700;
}

.footer-wa-link:hover {
  text-decoration: underline;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1200px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lineas-grid {
    grid-template-columns: 1fr;
  }
  .manifiesto-points-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-purpose-quote {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-pillars-bar {
    margin: 0 auto;
  }
  .juego-main-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .mobile-drawer.active {
    display: block;
  }
}

@media (max-width: 768px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .manifiesto-points-grid {
    grid-template-columns: 1fr;
  }
  .contact-box {
    padding: 2rem 1.5rem;
  }
  .manifiesto-card {
    padding: 3rem 1.75rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .net-face {
    width: 95px;
    height: 95px;
    border-radius: 16px;
  }
  .brand-letters-huge {
    font-size: 1.3rem;
  }
  .face-steam .steam-diagonal-text {
    font-size: 1.1rem;
  }
}
