/* ==========================================================================
   JURASSIC WORLD — LABORATORIO DE ADN
   Estilos Cinemáticos Móviles de Alta Fidelidad
   Conforme a AGENTS.md y Requerimientos de Catálogo
   ========================================================================== */

/* --- 1. VARIABLES Y DESIGN TOKENS --- */
:root {
  --bg-dark: #080c14;
  --bg-dark-surface: rgba(13, 19, 31, 0.82);
  --bg-card: rgba(10, 17, 28, 0.78);
  --border-cyan: rgba(6, 182, 212, 0.28);
  --border-amber: rgba(245, 158, 11, 0.35);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --color-amber: #f59e0b;
  --color-amber-bright: #fbbf24;
  --color-amber-glow: rgba(245, 158, 11, 0.45);

  --color-cyan: #06b6d4;
  --color-cyan-bright: #22d3ee;
  --color-cyan-glow: rgba(6, 182, 212, 0.45);

  --color-emerald: #10b981;
  --color-emerald-glow: rgba(16, 185, 129, 0.45);

  --color-danger: #ef4444;
  --color-danger-glow: rgba(239, 68, 68, 0.45);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-titan: 'Titan One', cursive, sans-serif;
  --font-kanit: 'Kanit', sans-serif;
  --font-bebas: 'Bebas Neue', sans-serif;
  --font-russo: 'Russo One', sans-serif;
  --font-montserrat: 'Montserrat', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 2. RESET Y BASES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: var(--font-montserrat);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Accesibilidad: Focus visible */
:focus-visible {
  outline: 2px solid var(--color-cyan-bright);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --- 3. FONDO ATMOSFÉRICO CINEMÁTICO --- */
.lab-viewport-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.lab-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.45;
  filter: brightness(0.7) contrast(1.15);
  transform: scale(1.04);
  transition: transform 1.2s ease-out;
}

.lab-overlay-tint {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(8, 14, 26, 0.45) 0%, rgba(8, 12, 20, 0.88) 75%, #080c14 100%);
}

.lab-scanlines {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  opacity: 0.4;
}

.ambient-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* --- 4. BARRA DE CONTROL DE AUDIO --- */
.audio-control-bar {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 100;
}

.btn-audio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  min-height: 44px;
  background: rgba(10, 17, 28, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 10px rgba(6, 182, 212, 0.2);
  transition: all var(--transition-fast);
}

.btn-audio:hover {
  border-color: var(--color-cyan-bright);
  box-shadow: 0 0 16px var(--color-cyan-glow);
  transform: translateY(-1px);
}

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

.audio-label {
  font-family: var(--font-russo);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--color-cyan-bright);
}

/* --- 5. CONTENEDOR PRINCIPAL DE LA EXPERIENCIA --- */
.lab-experience-deck {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 16px 14px 40px;
  display: flex;
  flex-direction: column;
}

/* Transiciones entre Escenas */
.scene-panel {
  display: none;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.45s ease, transform 0.45s ease;
  width: 100%;
}

.scene-panel.scene-container-active {
  display: block;
  opacity: 1;
  transform: scale(1);
}

/* --- 6. CINTAS DE ADVERTENCIA HAZARD --- */
.hazard-tape-bar {
  width: 100%;
  padding: 6px 10px;
  background: repeating-linear-gradient(
    -45deg,
    #facc15,
    #facc15 14px,
    #000000 14px,
    #000000 28px
  );
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.tape-text {
  font-family: var(--font-bebas);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: #ff1a1a;
  white-space: nowrap;
  font-weight: 900;
  -webkit-text-stroke: 1.2px #000;
  text-shadow: 0 0 8px rgba(255, 0, 0, 0.7);
}

/* --- 7. ESCENA 1: CONTENEDOR CRIOGÉNICO --- */
.canister-card-wrapper {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 14px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(6, 182, 212, 0.15);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.ingen-subtext {
  font-family: var(--font-russo);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--color-cyan-bright);
  display: block;
}

.ingen-title {
  font-family: var(--font-kanit);
  font-weight: 900;
  font-size: 1.85rem;
  letter-spacing: 0.06em;
  line-height: 1.1;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  margin-top: 2px;
}

.canister-status-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  margin-top: 6px;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-danger);
  box-shadow: 0 0 8px var(--color-danger-glow);
  animation: pulse-danger 1.4s infinite;
}

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

.status-tag {
  font-family: var(--font-russo);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: #e2e8f0;
}

.temp-readout {
  font-family: var(--font-russo);
  font-size: 0.68rem;
  color: var(--color-cyan-bright);
  background: rgba(6, 182, 212, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.canister-visual-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.canister-render {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.canister-id-plate {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(8, 12, 20, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

.plate-label {
  display: block;
  font-family: var(--font-russo);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--color-amber-bright);
}

.plate-name {
  display: block;
  font-family: var(--font-titan);
  font-size: 1.55rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffe600;
  text-shadow: 
    0 2px 0 #d97706,
    0 4px 0 #92400e,
    0 6px 0 #451a03,
    0 6px 12px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(255, 230, 0, 0.6);
  margin: 4px 0;
}

.plate-level {
  display: block;
  font-family: var(--font-russo);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #cbd5e1;
}

/* Lector Biométrico */
.biometric-scanner-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: rgba(6, 12, 22, 0.8);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  padding: 14px;
}

.scanner-instruction {
  text-align: center;
}

.scan-prompt {
  font-family: var(--font-kanit);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--color-cyan-bright);
}

.scan-subprompt {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.scanner-pad-touch {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.22) 0%, rgba(10, 20, 35, 0.95) 75%);
  border: 2px solid var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  touch-action: none;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3), inset 0 0 15px rgba(6, 182, 212, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.scanner-pad-touch:active,
.scanner-pad-touch.scanning {
  transform: scale(0.96);
  box-shadow: 0 0 35px var(--color-cyan-glow), inset 0 0 25px var(--color-cyan-bright);
  border-color: var(--color-cyan-bright);
}

.scanner-pad-touch.scan-authorized {
  border-color: var(--color-emerald);
  box-shadow: 0 0 35px var(--color-emerald-glow);
}

.scanner-icon {
  width: 44px;
  height: 44px;
  color: var(--color-cyan-bright);
  filter: drop-shadow(0 0 6px var(--color-cyan-glow));
}

.scanner-laser-beam {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 3px;
  background: var(--color-cyan-bright);
  box-shadow: 0 0 10px var(--color-cyan-bright), 0 0 20px var(--color-cyan-glow);
  opacity: 0;
  border-radius: 2px;
  pointer-events: none;
}

.scanner-pad-touch.scanning .scanner-laser-beam {
  opacity: 1;
  animation: laser-sweep 1s infinite alternate ease-in-out;
}

@keyframes laser-sweep {
  0% { top: 10%; }
  100% { top: 85%; }
}

.scanner-ring-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(6, 182, 212, 0.4);
  animation: rotate-ring 12s linear infinite;
  pointer-events: none;
}

@keyframes rotate-ring {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.scanner-actions-bar {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
}

.btn-quick-verify {
  width: 100%;
  min-height: 46px;
  background: linear-gradient(180deg, #0891b2 0%, #0e7490 100%);
  color: #ffffff;
  font-family: var(--font-russo);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-cyan-bright);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-quick-verify:hover {
  background: linear-gradient(180deg, #06b6d4 0%, #0891b2 100%);
  box-shadow: 0 0 20px var(--color-cyan-glow);
}

.btn-skip-intro {
  font-size: 0.74rem;
  color: var(--text-dim);
  text-decoration: underline;
  padding: 6px;
  text-align: center;
  transition: color var(--transition-fast);
}

.btn-skip-intro:hover {
  color: var(--text-muted);
}

/* --- 8. ESCENAS 2 Y 3: LABORATORIO DE ADN E INCUBACIÓN --- */
.lab-card-wrapper {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lab-deck-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.deck-code {
  font-family: var(--font-russo);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--color-cyan-bright);
  display: block;
}

.deck-main-title {
  font-family: var(--font-kanit);
  font-weight: 900;
  font-size: 1.65rem;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin: 2px 0;
}

.deck-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.specimen-badge {
  margin-top: 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.specimen-tag {
  display: block;
  font-family: var(--font-russo);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--color-amber-bright);
}

.specimen-name-val {
  display: block;
  font-family: var(--font-titan);
  font-size: 1.55rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffe600;
  text-shadow: 
    0 2px 0 #d97706,
    0 4px 0 #92400e,
    0 6px 0 #451a03,
    0 6px 12px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(255, 230, 0, 0.6);
  margin: 4px 0;
}

.specimen-age-val {
  display: block;
  font-size: 0.76rem;
  color: #cbd5e1;
  font-family: var(--font-russo);
  margin-top: 2px;
}

/* Cámara de Incubación */
.incubator-centerpiece {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.incubator-chamber-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #020617;
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(6, 182, 212, 0.2);
}

.egg-stage, .raptor-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stage-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
}

.stage-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.egg-render, .raptor-render {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.egg-stage.cracking {
  animation: egg-shake 0.4s ease-in-out infinite;
}

@keyframes egg-shake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-3px, 2px) rotate(-1.5deg); }
  75% { transform: translate(3px, -2px) rotate(1.5deg); }
}

.raptor-speech-bubble {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(8, 14, 26, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.bubble-tag {
  display: block;
  font-family: var(--font-russo);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--color-emerald);
}

.bubble-msg {
  display: block;
  font-size: 0.78rem;
  color: #f1f5f9;
  font-weight: 500;
  margin-top: 2px;
}

/* Telemetría */
.incubation-telemetry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.telemetry-item {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  text-align: center;
}

.t-label {
  display: block;
  font-family: var(--font-russo);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.t-val {
  display: block;
  font-family: var(--font-russo);
  font-size: 0.85rem;
  color: var(--color-cyan-bright);
  margin-top: 2px;
}

.t-val.highlight-pulse {
  color: var(--color-amber-bright);
  animation: pulse-amber 1.8s infinite;
}

@keyframes pulse-amber {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Consola de 3 Controles Físicos */
.console-controls-deck {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.controls-instruction {
  font-family: var(--font-kanit);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--color-amber-bright);
  text-align: center;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.console-switch {
  position: relative;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 80px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-fast);
}

.console-switch:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.switch-lamp {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
  transition: all var(--transition-fast);
}

.switch-icon img {
  width: 26px;
  height: 26px;
  opacity: 0.75;
  transition: opacity var(--transition-fast);
}

.switch-title {
  font-family: var(--font-russo);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.switch-state-text {
  font-family: var(--font-russo);
  font-size: 0.58rem;
  color: var(--text-dim);
}

/* Estado activo del switch */
.console-switch.switch-active {
  background: linear-gradient(180deg, #0f2e3d 0%, #091f2c 100%);
  border-color: var(--color-cyan-bright);
  box-shadow: 0 0 16px var(--color-cyan-glow);
}

.console-switch.switch-active .switch-lamp {
  background: var(--color-cyan-bright);
  box-shadow: 0 0 10px var(--color-cyan-bright), 0 0 16px var(--color-cyan-glow);
}

.console-switch.switch-active .switch-icon img {
  opacity: 1;
  filter: drop-shadow(0 0 6px var(--color-cyan-bright));
}

.console-switch.switch-active .switch-title {
  color: #ffffff;
}

.console-switch.switch-active .switch-state-text {
  color: var(--color-cyan-bright);
}

/* Banner de éxito al eclosionar */
.hatch-success-banner {
  display: none;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--color-emerald);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 0 20px var(--color-emerald-glow);
  animation: fade-in-scale 0.5s ease forwards;
}

.hatch-success-banner.banner-visible {
  display: flex;
}

@keyframes fade-in-scale {
  0% { opacity: 0; transform: scale(0.94); }
  100% { opacity: 1; transform: scale(1); }
}

.hatch-success-msg strong {
  display: block;
  font-family: var(--font-kanit);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--color-emerald);
}

.hatch-success-msg p {
  font-size: 0.76rem;
  color: #cbd5e1;
  margin-top: 2px;
}

.btn-proceed-map {
  min-height: 48px;
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-family: var(--font-russo);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  border-radius: var(--radius-md);
  border: 1px solid #34d399;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-proceed-map:hover {
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 0 25px var(--color-emerald-glow);
}

.skip-hatch-wrap {
  text-align: center;
}

.btn-text-skip {
  font-size: 0.74rem;
  color: var(--text-dim);
  text-decoration: underline;
  padding: 6px;
  transition: color var(--transition-fast);
}

.btn-text-skip:hover {
  color: var(--text-muted);
}

/* --- 9. ESCENA 4: PLANO TÁCTICO INTERACTIVO --- */
.map-deck-wrapper {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 14px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tactical-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.tactical-header-id {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-jw-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-amber);
}

.tactical-title {
  font-family: var(--font-kanit);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: #ffffff;
  line-height: 1.1;
}

.tactical-status {
  font-family: var(--font-russo);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--color-cyan-bright);
  display: block;
}

.btn-trex-alert-quick {
  padding: 6px 10px;
  min-height: 38px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid var(--color-danger);
  border-radius: var(--radius-sm);
  font-family: var(--font-russo);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: #fca5a5;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-trex-alert-quick:hover {
  background: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 14px var(--color-danger-glow);
}

/* Selector Táctico de Pestañas */
.tactical-zone-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.zone-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  min-height: 44px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.zone-tab:hover {
  border-color: rgba(6, 182, 212, 0.4);
}

.zone-tab.active {
  background: rgba(6, 182, 212, 0.18);
  border-color: var(--color-cyan-bright);
  box-shadow: 0 0 12px var(--color-cyan-glow);
}

.tab-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #475569;
}

.zone-tab.active .tab-indicator {
  background: var(--color-cyan-bright);
  box-shadow: 0 0 8px var(--color-cyan-bright);
}

.tab-num {
  font-family: var(--font-russo);
  font-size: 0.62rem;
  color: var(--text-dim);
}

.zone-tab.active .tab-num {
  color: var(--color-cyan-bright);
}

.tab-name {
  font-family: var(--font-kanit);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #cbd5e1;
  text-align: left;
  line-height: 1.15;
}

.zone-tab.active .tab-name {
  color: #ffffff;
}

/* Representación Visual del Plano */
.tactical-map-viewport {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-cyan);
  background: #020617;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.9);
}

.blueprint-canvas-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.blueprint-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.15) brightness(0.85);
}

.radar-sweep-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.9) 0%, transparent 100%);
  transform-origin: 0 0;
  animation: radar-spin 6s linear infinite;
  pointer-events: none;
}

@keyframes radar-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Pines Interactivos sobre el Plano */
.map-zone-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 44px;
  min-height: 44px;
  padding: 4px;
  z-index: 5;
  transition: transform 0.2s ease;
}

.map-zone-pin:hover {
  transform: translate(-50%, -50%) scale(1.15);
}

.pin-icon {
  font-size: 1.15rem;
  filter: drop-shadow(0 0 8px rgba(0,0,0,0.9));
}

.pin-label {
  font-family: var(--font-russo);
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  background: rgba(8, 14, 26, 0.9);
  padding: 2px 4px;
  border-radius: 3px;
  border: 1px solid var(--border-subtle);
  color: #e2e8f0;
  white-space: nowrap;
}

.pin-radar-ring {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid var(--color-cyan-bright);
  animation: pin-pulse 2s infinite;
  pointer-events: none;
}

@keyframes pin-pulse {
  0% { transform: translateX(-50%) scale(0.6); opacity: 1; }
  100% { transform: translateX(-50%) scale(2); opacity: 0; }
}

.map-zone-pin.pin-active .pin-label {
  background: rgba(6, 182, 212, 0.85);
  color: #000;
  font-weight: bold;
}

.map-zone-pin.pin-active .pin-radar-ring {
  border-color: var(--color-amber-bright);
}

/* Marcador Guía del Bebé Raptor en el mapa */
.raptor-map-tracker {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.9);
  border: 1px solid #ffffff;
  border-radius: var(--radius-full);
  padding: 2px 8px;
  z-index: 10;
  box-shadow: 0 0 12px var(--color-amber-glow);
  transition: top 0.6s cubic-bezier(0.16, 1, 0.3, 1), left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.tracker-footprint {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
}

.tracker-label {
  font-family: var(--font-russo);
  font-size: 0.52rem;
  color: #000000;
  font-weight: 900;
  letter-spacing: 0.06em;
}

/* --- 10. TARJETAS DE CONTENIDO DE LAS ZONAS --- */
.zone-content-deck {
  width: 100%;
}

.zone-panel {
  display: none;
  animation: panel-fade 0.35s ease forwards;
}

.zone-panel.panel-active {
  display: block;
}

@keyframes panel-fade {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.zone-card {
  background: rgba(13, 20, 34, 0.9);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.zone-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.zone-badge-num {
  font-family: var(--font-russo);
  font-size: 0.65rem;
  color: var(--color-cyan-bright);
}

.zone-hero-title {
  font-family: var(--font-kanit);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.zone-status-pill {
  font-family: var(--font-russo);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  background: rgba(245, 158, 11, 0.2);
  color: var(--color-amber-bright);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Zona 1: Centro de Visitantes */
.birthday-honoree-box {
  text-align: center;
  padding: 10px 0;
}

.honoree-intro {
  display: block;
  font-family: var(--font-russo);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--color-cyan-bright);
}

.honoree-name {
  font-family: var(--font-titan);
  font-size: 2.1rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffe600;
  text-shadow: 
    0 2px 0 #d97706,
    0 4px 0 #92400e,
    0 6px 0 #451a03,
    0 8px 16px rgba(0, 0, 0, 0.95),
    0 0 25px rgba(255, 230, 0, 0.65);
  margin: 6px 0;
  word-break: break-word;
}

.honoree-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-full);
  padding: 4px 14px;
}

.badge-icon {
  font-size: 1rem;
}

.badge-text {
  font-family: var(--font-russo);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--color-amber-bright);
}

.badge-text strong {
  font-size: 0.95rem;
  color: #ffffff;
}

.mission-message-card {
  position: relative;
  background: rgba(8, 14, 26, 0.7);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--color-amber);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.card-quote-icon {
  position: absolute;
  top: 4px;
  right: 12px;
  font-size: 2.5rem;
  color: rgba(245, 158, 11, 0.15);
  font-family: Georgia, serif;
  line-height: 1;
}

.mission-message-text {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #e2e8f0;
  font-style: italic;
  position: relative;
  z-index: 2;
}

.mission-signed {
  margin-top: 8px;
  font-family: var(--font-russo);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--color-amber-bright);
}

.zone-actions {
  margin-top: 4px;
}

.btn-zone-next {
  width: 100%;
  min-height: 46px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  font-family: var(--font-russo);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--color-cyan-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-zone-next:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--color-cyan-bright);
  box-shadow: 0 0 16px var(--color-cyan-glow);
}

/* Zona 2: Zona de Expedición (Countdown + Datos + Acciones) */
.countdown-terminal {
  background: rgba(6, 12, 22, 0.85);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  padding: 10px;
}

.countdown-title-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-russo);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--color-cyan-bright);
  margin-bottom: 8px;
  justify-content: center;
}

.radar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-cyan-bright);
  box-shadow: 0 0 6px var(--color-cyan-bright);
  animation: pulse-danger 1s infinite;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.countdown-block {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  text-align: center;
}

.cd-num {
  display: block;
  font-family: var(--font-russo);
  font-size: 1.25rem;
  color: #ffffff;
  line-height: 1.1;
  text-shadow: 0 0 10px var(--color-cyan-glow);
}

.cd-label {
  display: block;
  font-family: var(--font-russo);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 2px;
}

.expedition-data-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.expedition-data-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.data-icon-frame {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid var(--border-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.data-icon-frame img {
  width: 22px;
  height: 22px;
}

.data-content-body {
  display: flex;
  flex-direction: column;
}

.data-label {
  font-family: var(--font-russo);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--color-cyan-bright);
}

.data-val {
  font-family: var(--font-kanit);
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.25;
}

.data-val.highlight-gold {
  color: var(--color-amber-bright);
}

.data-subval {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.expedition-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-tactical-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  font-family: var(--font-russo);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-maps {
  background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
  border: 1px solid #f59e0b;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.btn-maps:hover {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 0 16px var(--color-amber-glow);
}

.btn-calendar {
  background: linear-gradient(180deg, #0891b2 0%, #0e7490 100%);
  border: 1px solid #22d3ee;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35);
}

.btn-calendar:hover {
  background: linear-gradient(180deg, #06b6d4 0%, #0891b2 100%);
  box-shadow: 0 0 16px var(--color-cyan-glow);
}

/* Zona 3: Laboratorio Genético — Minijuego "Estabiliza el ADN" */
.minigame-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.minigame-instructions-box {
  background: rgba(8, 14, 26, 0.8);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.game-headline {
  font-family: var(--font-kanit);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--color-amber-bright);
}

.game-instruction-text {
  font-size: 0.76rem;
  color: #e2e8f0;
  margin-top: 2px;
  line-height: 1.4;
}

.dna-stability-meter-box {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.meter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.meter-title {
  font-family: var(--font-russo);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: #cbd5e1;
}

.meter-percent {
  font-family: var(--font-russo);
  font-size: 0.85rem;
  color: var(--color-cyan-bright);
}

.meter-bar-track {
  width: 100%;
  height: 10px;
  background: #1e293b;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.meter-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #06b6d4 0%, #10b981 100%);
  box-shadow: 0 0 10px var(--color-emerald-glow);
  transition: width 0.3s ease;
}

.raptor-reaction-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.reaction-avatar {
  font-size: 1.2rem;
}

.reaction-dialogue {
  font-size: 0.74rem;
  color: #cbd5e1;
  font-style: italic;
}

/* Arena de Juego */
.dna-game-arena {
  position: relative;
  width: 100%;
  height: 240px;
  background: #030712;
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.95);
  user-select: none;
  touch-action: none;
}

.game-arena-grid-fx {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(6, 182, 212, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.07) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

/* Nodos de ADN en la Arena */
.dna-target-node {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease;
  z-index: 5;
}

.dna-target-node:active {
  transform: translate(-50%, -50%) scale(0.88);
}

.dna-node-inner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(0,0,0,0.8);
}

/* Muestra pura: Ámbar o Verde */
.dna-node-pure-amber .dna-node-inner {
  background: radial-gradient(circle, #fde68a 0%, #f59e0b 60%, #92400e 100%);
  border: 2px solid #fef08a;
  box-shadow: 0 0 16px var(--color-amber-glow);
}

.dna-node-pure-green .dna-node-inner {
  background: radial-gradient(circle, #a7f3d0 0%, #10b981 60%, #064e3b 100%);
  border: 2px solid #6ee7b7;
  box-shadow: 0 0 16px var(--color-emerald-glow);
}

/* Muestra contaminada: Rojo biohazard con picos */
.dna-node-contaminated .dna-node-inner {
  background: radial-gradient(circle, #fca5a5 0%, #dc2626 60%, #7f1d1d 100%);
  border: 2px solid #f87171;
  box-shadow: 0 0 16px var(--color-danger-glow);
}

.node-glyph {
  font-size: 1.1rem;
}

.game-victory-banner {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--color-emerald);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  box-shadow: 0 0 20px var(--color-emerald-glow);
  animation: fade-in-scale 0.4s ease forwards;
}

.victory-trophy {
  font-size: 1.6rem;
}

.victory-title {
  font-family: var(--font-kanit);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-emerald);
  margin: 4px 0;
}

.victory-subtext {
  font-family: var(--font-russo);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: #cbd5e1;
}

.game-controls-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.btn-game-skip {
  font-size: 0.76rem;
  color: var(--text-dim);
  text-decoration: underline;
  padding: 6px;
  transition: color var(--transition-fast);
}

.btn-game-skip:hover {
  color: var(--text-muted);
}

.btn-game-restart {
  font-family: var(--font-russo);
  font-size: 0.74rem;
  color: var(--color-cyan-bright);
  padding: 6px 12px;
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.1);
}

/* Zona 4: Puesto de Control, Credencial VIP & Terminal RSVP */
.explorer-badge-physical {
  position: relative;
  background: linear-gradient(145deg, #141f33 0%, #0a1120 100%);
  border: 2px solid var(--color-amber);
  border-radius: var(--radius-lg);
  padding: 16px 14px 12px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.9), 0 0 25px rgba(245, 158, 11, 0.25);
  overflow: hidden;
}

.badge-lanyard-hole {
  width: 38px;
  height: 8px;
  background: #020617;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  margin: 0 auto 10px;
}

.badge-hologram-sheen {
  position: absolute;
  inset: -50%;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(6, 182, 212, 0.12) 50%,
    rgba(245, 158, 11, 0.12) 55%,
    transparent 60%
  );
  transform: rotate(20deg);
  pointer-events: none;
  animation: hologram-sheen 6s infinite ease-in-out;
}

@keyframes hologram-sheen {
  0%, 100% { transform: translateY(-30%) rotate(20deg); }
  50% { transform: translateY(30%) rotate(20deg); }
}

.badge-top-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  padding-bottom: 8px;
}

.badge-jw-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-amber);
}

.badge-doc-title {
  font-family: var(--font-kanit);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: #ffffff;
  display: block;
  line-height: 1.1;
}

.badge-doc-subtitle {
  font-family: var(--font-russo);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--color-amber-bright);
  display: block;
}

.badge-profile-layout {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.badge-avatar-frame {
  width: 80px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.badge-avatar-img {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-cyan);
  background: #000;
}

.badge-rank-label {
  font-family: var(--font-russo);
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  color: var(--color-cyan-bright);
  background: rgba(6, 182, 212, 0.15);
  padding: 1px 4px;
  border-radius: 2px;
}

.badge-data-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.badge-data-cell .cell-label {
  display: block;
  font-family: var(--font-russo);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.badge-data-cell .cell-val {
  display: block;
  font-family: var(--font-kanit);
  font-weight: 700;
  font-size: 0.88rem;
  color: #ffffff;
  line-height: 1.15;
}

.badge-data-cell .name-gold {
  font-family: var(--font-titan);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #ffe600;
  text-shadow: 
    0 2px 0 #d97706,
    0 3px 0 #92400e,
    0 0 14px rgba(255, 230, 0, 0.6);
}

.badge-data-cell .cell-val-small {
  display: block;
  font-size: 0.72rem;
  color: #cbd5e1;
  font-weight: 500;
}

.badge-footer-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 8px;
}

.badge-qr-box {
  background: #ffffff;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-canvas {
  width: 54px;
  height: 54px;
  display: block;
}

.badge-security-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.sec-auth-tag {
  font-family: var(--font-russo);
  font-size: 0.65rem;
  color: var(--color-emerald);
  letter-spacing: 0.08em;
}

.sec-code-hash {
  font-family: monospace;
  font-size: 0.6rem;
  color: var(--text-dim);
}

.badge-action-bar {
  margin-top: 12px;
}

.btn-badge-confirm {
  width: 100%;
  min-height: 46px;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  border: 1px solid #fbbf24;
  border-radius: var(--radius-md);
  font-family: var(--font-russo);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: #000000;
  font-weight: 900;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-badge-confirm:hover {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 0 20px var(--color-amber-glow);
}

/* Terminal RSVP */
.rsvp-terminal-card {
  background: rgba(10, 16, 28, 0.9);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  padding: 14px 12px;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.green-dot {
  background: var(--color-emerald);
  box-shadow: 0 0 8px var(--color-emerald-glow);
}

.terminal-title {
  font-family: var(--font-kanit);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.terminal-subtitle {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
  margin-bottom: 12px;
}

.rsvp-form-terminal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-label {
  font-family: var(--font-russo);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: #cbd5e1;
}

.req {
  color: var(--color-danger);
}

.field-input, .field-select, .field-textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: #ffffff;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.field-input:focus, .field-select:focus, .field-textarea:focus {
  border-color: var(--color-cyan-bright);
  box-shadow: 0 0 12px var(--color-cyan-glow);
  outline: none;
}

.field-select option {
  background: #0f172a;
  color: #ffffff;
}

.field-error {
  font-size: 0.7rem;
  color: var(--color-danger);
  min-height: 1rem;
}

.rsvp-feedback-banner {
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.4;
}

.rsvp-feedback-banner.feedback-success {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--color-emerald);
  color: #6ee7b7;
}

.rsvp-feedback-banner.feedback-error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid var(--color-danger);
  color: #fca5a5;
}

.rsvp-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.btn-rsvp-submit {
  width: 100%;
  min-height: 48px;
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid #38bdf8;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-russo);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
  transition: all var(--transition-fast);
}

.btn-rsvp-submit:hover:not(:disabled) {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.btn-rsvp-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-rsvp-whatsapp {
  width: 100%;
  min-height: 48px;
  background: linear-gradient(180deg, #15803d 0%, #166534 100%);
  border: 1px solid #22c55e;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-russo);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.35);
  transition: all var(--transition-fast);
}

.btn-rsvp-whatsapp:hover {
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

.wa-radio-icon {
  font-size: 1.1rem;
}

.rsvp-note-legal {
  font-size: 0.66rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 6px;
  line-height: 1.35;
}

/* Spinner */
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- 11. MODAL DEL T-REX CINEMATOGRÁFICO --- */
.trex-cinematic-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.trex-cinematic-modal.modal-active {
  opacity: 1;
  pointer-events: auto;
}

.trex-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.trex-modal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  background: #080c14;
  border: 2px solid var(--color-danger);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 0 35px var(--color-danger-glow);
  display: flex;
  flex-direction: column;
  animation: tremor-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tremor-pop {
  0% { transform: scale(0.9); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.hazard-stripe-top, .hazard-stripe-bottom {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    #facc15,
    #facc15 10px,
    #000000 10px,
    #000000 20px
  );
}

.trex-alert-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.25);
  border-bottom: 1px solid var(--color-danger);
}

.alert-title {
  font-family: var(--font-bebas);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  color: #ff1a1a;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

.trex-scene-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.trex-render-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trex-lightning-flash {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  opacity: 0;
  pointer-events: none;
}

.trex-cinematic-modal.modal-active .trex-lightning-flash {
  animation: lightning 3s infinite;
}

@keyframes lightning {
  0%, 88%, 92%, 100% { opacity: 0; }
  89%, 91% { opacity: 0.7; }
}

.trex-caption {
  font-family: var(--font-russo);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #cbd5e1;
  text-align: center;
  padding: 10px 12px 4px;
}

.btn-tactical-close {
  margin: 8px 14px 12px;
  min-height: 44px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid var(--color-danger);
  border-radius: var(--radius-sm);
  font-family: var(--font-russo);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #ffffff;
  transition: all var(--transition-fast);
}

.btn-tactical-close:hover {
  background: var(--color-danger);
}

/* Efecto de temblor sísmico */
.screen-tremor {
  animation: earth-shake 0.4s ease-in-out;
}

@keyframes earth-shake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4px, 3px); }
  40% { transform: translate(4px, -3px); }
  60% { transform: translate(-3px, 2px); }
  80% { transform: translate(3px, -2px); }
}

/* --- 12. MODAL DE CALENDARIO --- */
.calendar-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.calendar-modal.modal-active {
  opacity: 1;
  pointer-events: auto;
}

.cal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
}

.cal-modal-box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 360px;
  background: #0f172a;
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.cal-modal-title {
  font-family: var(--font-kanit);
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
}

.cal-modal-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 4px 0 14px;
}

.cal-options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cal-option-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-sm);
  font-family: var(--font-russo);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.cal-option-btn:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--color-cyan-bright);
}

.btn-cal-close {
  margin-top: 12px;
  font-size: 0.76rem;
  color: var(--text-dim);
  text-decoration: underline;
  padding: 6px;
}

/* --- 13. ACCESIBILIDAD Y REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .screen-tremor {
    animation: none !important;
  }
  .egg-stage.cracking {
    animation: none !important;
  }
}

/* --- 14. ADAPTACIÓN DE PANTALLA --- */
@media (min-width: 768px) {
  .lab-experience-deck {
    max-width: 480px;
    padding-top: 24px;
  }
  .honoree-name {
    font-size: 2.4rem;
  }
}
