*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none !important;
}

/* Ocultar barra de desplazamiento de forma agresiva en todos los navegadores */
html, body, * {
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE y Edge */
}

/* Chrome, Safari y Opera */
::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* ── CUSTOM CURSOR ─────────────────────────────────────────────────── */
* {
  cursor: none !important;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999999;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: width 0.2s, height 0.2s, background 0.3s, opacity 0.3s;
}

#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999998;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s,
    opacity 0.3s;
  will-change: transform;
}

body.cursor-hover #cursor-ring {
  width: 56px;
  height: 56px;
  border-color: var(--cursor-color, rgba(255, 255, 255, 0.8));
}

body.cursor-hover #cursor-dot {
  width: 4px;
  height: 4px;
  background: var(--cursor-color, #fff);
}

body.cursor-click #cursor-ring {
  width: 22px;
  height: 22px;
}

/* ── BASE ──────────────────────────────────────────────────────────── */
body {
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(255,255,255,0.018) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0,212,255,0.025) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(157,78,221,0.02) 0%, transparent 60%),
    #000;
  color: #fff;
  font-family: 'Inter', sans-serif;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* ── SCENE ─────────────────────────────────────────────────────────── */
.scene {
  width: 100vw;
  height: 100vh;
  display: flex;
  position: relative;
}

/* ── LEFT PANEL ─────────────────────────────────────────────────────── */
.left-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100vw;
  height: 100vh;
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.6s ease;
  z-index: 20;
}

.scene.active .left-panel {
  width: 42vw;
  background: radial-gradient(ellipse at 60% 50%, var(--lp-glow, rgba(255, 255, 255, 0.04)) 0%, transparent 70%);
}

.scene.active #c {
  opacity: 0;
  pointer-events: none;
}

/* ── RIGHT PANEL ────────────────────────────────────────────────────── */
.right-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 58vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateX(40px);
  transition: opacity 0.5s ease 0.2s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
  overflow: hidden;
  /* Subtle color glow behind the content */
  background: radial-gradient(ellipse at 30% 50%, var(--panel-glow, transparent) 0%, transparent 70%);
  transition: opacity 0.5s ease 0.2s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s,
    background 0.6s ease;
}

.scene.active .right-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* Vertical color accent line */
.right-panel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8%;
  height: 84%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--ac, #fff) 20%, var(--ac, #fff) 80%, transparent);
  opacity: 0.25;
  transition: background 0.4s;
}

/* ── SERVICE PANELS ─────────────────────────────────────────────────── */
.service-panel {
  position: absolute;
  inset: 0;
  padding: 40px 52px 24px 52px;
  display: flex;
  flex-direction: column;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.service-panel.panel-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0s linear 0s;
}

.panel-header {
  flex-shrink: 0;
}

/* ── TITLE REVEAL ───────────────────────────────────────────────────── */
.svc-title-wrap {
  overflow: hidden;
  margin-bottom: 10px;
}

.svc-title {
  font-size: clamp(40px, 4.5vw, 72px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 0.9;
  text-transform: uppercase;
  color: #fff;
  transform: translateY(100%);
  display: block;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.panel-active .svc-title {
  transform: translateY(0);
}

.svc-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ac);
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}

.panel-active .svc-tag {
  opacity: 0.65;
  transform: translateY(0);
}

.svc-divider {
  width: 40px;
  height: 1px;
  background: var(--ac);
  opacity: 0;
  transition: opacity 0.4s ease 0.45s;
  margin-bottom: 16px;
}

.panel-active .svc-divider {
  opacity: 0.5;
}

/* ── METRICS ────────────────────────────────────────────────────────── */
.svc-metrics {
  display: flex; gap: 24px;
  margin-bottom: 18px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s ease 0.55s, transform 0.5s ease 0.55s;
}
.panel-active .svc-metrics { opacity: 1; transform: translateY(0); }

.metric { display: flex; flex-direction: column; gap: 2px; }
.metric-val {
  font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
  color: var(--ac); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.metric-label {
  font-size: 9px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
}

/* ── TABS ───────────────────────────────────────────────────────────── */
.panel-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.4s ease 0.7s;
}

.panel-active .panel-tabs {
  opacity: 1;
}

.ptab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(255, 255, 255, 0.35);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: none;
  transition: all 0.22s;
}

.ptab:hover {
  color: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.22);
}

.ptab.view-active {
  background: var(--ac);
  border-color: var(--ac);
  color: #000;
}

/* "Consultar IA" respira cuando no está seleccionado — invita al click.
   Ritmo: 6s por respiración (sincronizado con el ciclo del círculo, 1 respiración por color). */
.panel-tabs .ptab:nth-of-type(2):not(.view-active) {
  animation: ptabBreath 6s ease-in-out infinite;
}
@keyframes ptabBreath {
  0%, 100% {
    border-color: rgba(255, 255, 255, 0.32);
    color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
  50% {
    border-color: var(--ac);
    color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.10),
                0 0 22px var(--ac);
  }
}
/* Hover: animación pausada, hover normal toma control */
.panel-tabs .ptab:nth-of-type(2):not(.view-active):hover {
  animation: none;
  border-color: var(--ac);
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 18px var(--ac);
}

/* ── PANEL BODY & VIEWS ─────────────────────────────────────────────── */
.panel-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
  height: 100%;
}

.panel-view {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  display: flex;
  flex-direction: column;
}

.panel-view.view-active {
  opacity: 1;
  pointer-events: auto;
}

/* ── INFO VIEW ──────────────────────────────────────────────────────── */
.info-view {
  flex: 1;
  overflow-y: scroll;
  padding-bottom: 40px;
  scrollbar-width: none;
  min-height: 0;
}

.info-view::-webkit-scrollbar {
  display: none;
}

.svc-desc {
  font-size: clamp(13px, 1vw, 14.5px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.48);
  max-width: 100%;
  margin-bottom: 18px;
}

.svc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 22px;
}

.svc-list li {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

.svc-list li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.svc-list li strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ac);
  margin-bottom: 3px;
  opacity: 0.9;
}

.svc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge {
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.badge.highlight {
  border-color: var(--ac);
  color: var(--ac);
}

/* ── CHAT VIEW ──────────────────────────────────────────────────────── */
.chat-view {
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px 14px 0 0;
}

.bot-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ac);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.chat-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bot-name {
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.bot-status {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.28);
}

.bot-online {
  color: #4ade80;
  margin-right: 3px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  scrollbar-width: none;
}

.chat-messages::-webkit-scrollbar {
  display: none;
}

.msg {
  max-width: 82%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.msg.bot {
  align-self: flex-start;
}

.msg.user {
  align-self: flex-end;
}

.msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg.bot .msg-bubble {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px 14px 14px 14px;
  color: rgba(255, 255, 255, 0.82);
  user-select: text;
  /* Permitir copiar info de la IA */
}

.msg.user .msg-bubble {
  background: var(--ac);
  color: #000;
  font-weight: 600;
  border-radius: 14px 4px 14px 14px;
  user-select: text;
  /* Permitir copiar texto de usuario */
}

.msg-time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.18);
  padding: 0 4px;
}

.msg.user .msg-time {
  align-self: flex-end;
}

.typing-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px 14px 14px 14px;
  width: fit-content;
  min-width: 100px;
}

.typing-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
}

.typing-track {
  height: 2px;
  width: 80px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.typing-fill {
  height: 100%;
  background: var(--ac);
  border-radius: 2px;
  animation: loadBar 1.8s ease-in-out infinite;
}

@keyframes loadBar {
  0% {
    width: 0%;
    opacity: 0.8;
  }

  60% {
    width: 90%;
    opacity: 1;
  }

  100% {
    width: 100%;
    opacity: 0;
  }
}

.chat-input-row {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  border-radius: 0 0 14px 14px;
  padding: 10px 10px 10px 16px;
  transition: border-color 0.2s;
}

.chat-input-row:focus-within {
  border-color: rgba(255, 255, 255, 0.14);
}

.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  resize: none;
  min-height: 22px;
  max-height: 96px;
  line-height: 1.45;
  user-select: text;
  cursor: text !important;
  /* El input necesita cursor de texto al hover/focus */
}

.chat-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.send-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ac);
  border: none;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.15s;
}

.send-btn:hover {
  opacity: 0.85;
  transform: scale(1.06);
}

.send-btn svg {
  width: 14px;
  height: 14px;
}


/* ── CLOSE BTN ────────────────────────────────────────────────────────── */
.close-btn {
  position: absolute;
  top: 28px;
  right: 32px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: all 0.25s;
  z-index: 5;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: rotate(90deg);
}

/* ── RING ──────────────────────────────────────────────────────────────── */
#ring {
  position: relative;
  flex-shrink: 0;
  width: min(560px, 80vmin);
  height: min(560px, 80vmin);
  z-index: 20;
  transition: width 0.75s cubic-bezier(0.23, 1, 0.32, 1),
    height 0.75s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.3s ease;
}

/* [6] Micro-interaction on hover */
#ring:hover {
  transform: scale(1.015);
}

.scene.active #ring:hover {
  transform: scale(1.008);
}

.scene.active #ring {
  width: min(400px, 56vmin);
  height: min(400px, 56vmin);
}

#ring svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ro {
  animation: spin 28s linear infinite;
  transform-origin: 210px 210px;
}

.ro.paused {
  animation-play-state: paused !important;
}

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

/* segment states */
.seg {
  cursor: none;
}

.seg .tr {
  opacity: 1;
  transition: opacity 0.5s;
}

.seg .gw {
  opacity: 0;
  transition: opacity 0.5s;
}

.seg .gc {
  opacity: 0;
  transition: opacity 0.5s;
}

.seg:hover .gw {
  opacity: 0.65;
}

.seg:hover .gc {
  opacity: 0.9;
}

.seg.lit .tr {
  opacity: 1;
}

.seg.lit .gw {
  opacity: 1;
}

.seg.lit .gc {
  opacity: 1;
}

.seg.dim .tr {
  opacity: 0.28;
}

.seg.dim .gw {
  opacity: 0;
}

.seg.dim .gc {
  opacity: 0;
}

/* center pulse — active state */
#c-out.active-pulse {
  animation: circlePulse 3s ease-in-out infinite;
}

@keyframes circlePulse {

  0%,
  100% {
    opacity: 0.85;
  }

  50% {
    opacity: 1;
  }
}

/* latido manejado 100% por JS */

/* ── SEGMENT LABELS (SVG Text) ────────────────────────────────────────── */
text.seg-text {
  font-family: 'Inter', sans-serif;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  fill: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  transition: fill 0.3s;
}

.seg:hover text.seg-text {
  fill: rgba(255, 255, 255, 0.85);
}

/* latido JS — sin animation CSS */

/* ring idle scale breathe — synced with glow */
@keyframes ringBreathe {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.013);
  }
}

.scene:not(.active) #ring {
  animation: ringBreathe 4.5s ease-in-out infinite;
}

/* Neural FX Canvas */
#c {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  opacity: 0.8;
  transition: opacity 0.5s ease;
}

.scene.active #c {
  opacity: 0;
}

/* Logo animations */
@keyframes flowData {
  to {
    stroke-dashoffset: -200;
  }
}

.logo-data {
  stroke-dasharray: 40 160;
  animation: flowData 1.5s linear infinite;
  opacity: 0.2;
}

.logo-light {
  stroke-dasharray: 2 198;
  animation: flowData 1.5s linear infinite;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px #fff) brightness(2);
}

.logo-node {
  transition: all 0.4s;
  cursor: none;
}

#ring:hover .l-node {
  fill: #fff;
  filter: drop-shadow(0 0 5px #fff);
  fill-opacity: 0.9;
}

/* ── SONAR EFFECT ────────────────────────────────────────────────────── */
@keyframes sonar {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
    stroke-width: 4;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
    stroke-width: 1;
  }
}

.sonar-ring {
  transform-origin: 210px 210px;
  animation: sonar 4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}

#ring:hover .sonar-ring {
  animation-duration: 2s;
}

/* Floating label near core */
.core-label {
  position: absolute;
  pointer-events: none;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 100;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.seg:hover .hud-corner {
  opacity: 0;
}

/* ── HUD SELECTION BRACKETS - REMOVAL ─────────────────────────────────── */
/* Se eliminan estilos de .node-beam y .hud-corner */

.seg {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: none;
}

.seg-text {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), fill 0.4s, letter-spacing 0.4s !important;
}

.seg:hover .seg-text {
  letter-spacing: 2.5px;
  fill: #fff !important;
}

/* ── SEGMENT LABELS ────────────────────────────────────────────────────── */
.seg-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.scene.active .seg-labels {
  opacity: 0;
}

.seg-label {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  transition: color 0.3s, opacity 0.3s;
  pointer-events: none;
}

#ring:hover .seg-label {
  color: rgba(255, 255, 255, 0.6);
}

/* ── HINT ─────────────────────────────────────────────────────────────── */
#hint {
  position: absolute;
  bottom: 7%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  gap: 7px;
  animation: bob 3s ease-in-out infinite;
  transition: opacity 0.5s;
  white-space: nowrap;
  pointer-events: none;
}

@keyframes bob {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(5px);
  }
}

/* ── TWEAKS ─────────────────────────────────────────────────────────── */
#tp {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background: rgba(10, 10, 18, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px;
  width: 220px;
}

#tp h4 {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.tw {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.tw label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
}

.tw-btns {
  display: flex;
  gap: 6px;
}

.tw-btn {
  flex: 1;
  padding: 6px 4px;
  font-size: 11px;
  font-family: inherit;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  cursor: none;
  transition: all 0.2s;
}

.tw-btn.on,
.tw-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ── AUDIO TOGGLE ──────────────────────────────────────────────────── */
.audio-ctrl {
  position: fixed;
  bottom: 28px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 14px;
  border-radius: 100px;
  z-index: 100;
  transition: all 0.3s;
  cursor: none;
}

.audio-ctrl:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.audio-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  text-indent: 2px;
}

.switch {
  position: relative;
  width: 32px;
  height: 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  transition: background 0.3s;
}

.switch.on {
  background: rgba(255, 255, 255, 0.25);
}

.knob {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.switch.on .knob {
  transform: translateX(14px);
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.copyright {
  position: fixed;
  bottom: 28px;
  right: 32px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.15);
  z-index: 100;
  pointer-events: none;
  transition: opacity 0.3s;
}

.scene.active ~ .copyright,
.scene.active ~ .audio-ctrl {
  opacity: 0;
  pointer-events: none;
}

/* ── EQUALIZER VIZ ─────────────────────────────────────────────────── */
.viz {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
  width: 12px;
  margin-right: 2px;
}

.viz-bar {
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 1px;
  transform-origin: bottom;
  transition: transform 0.3s;
  transform: scaleY(0.3);
}

.audio-ctrl.playing .viz-bar {
  animation: eq 0.8s ease-in-out infinite;
  transform: scaleY(1);
}

.audio-ctrl.playing .viz-bar:nth-child(1) {
  animation-delay: 0s;
}

.audio-ctrl.playing .viz-bar:nth-child(2) {
  animation-delay: 0.15s;
}

.audio-ctrl.playing .viz-bar:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes eq {

  0%,
  100% {
    transform: scaleY(0.3);
  }

  50% {
    transform: scaleY(1);
  }
}

/* ── RESPONSIVE — Tablet & Mobile ──────────────────────────────────── */
@media (max-width: 1024px) {
  * {
    cursor: auto !important;
  }

  #cursor-dot,
  #cursor-ring {
    display: none;
  }

  body {
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
  }

  .scene {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .left-panel {
    width: 100vw !important;
    height: 50vh;
    min-height: 320px;
  }

  .scene.active .left-panel {
    width: 100vw !important;
    height: 40vh;
  }

  #ring {
    width: min(340px, 70vw) !important;
    height: min(340px, 70vw) !important;
  }

  .scene.active #ring {
    width: min(260px, 55vw) !important;
    height: min(260px, 55vw) !important;
  }

  .right-panel {
    position: relative;
    width: 100vw;
    height: auto;
    min-height: 60vh;
    transform: translateY(30px) !important;
    transition: opacity 0.5s ease 0.2s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s !important;
  }

  .scene.active .right-panel {
    transform: translateY(0) !important;
  }

  .right-panel::before {
    left: 8%;
    top: 0;
    width: 84%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--ac, #fff) 20%, var(--ac, #fff) 80%, transparent);
  }

  .service-panel {
    position: relative;
    padding: 32px 24px 40px;
    height: auto;
    min-height: unset;
  }

  .panel-body {
    position: relative;
    height: auto;
    min-height: unset;
    overflow: visible;
  }

  .panel-view {
    position: relative;
    inset: unset;
    height: auto;
    display: none;
    flex-direction: column;
  }

  .panel-view.view-active {
    display: flex;
  }

  .info-view {
    flex: unset;
    height: auto;
    min-height: unset;
    overflow-y: visible;
  }

  .svc-title {
    font-size: clamp(48px, 12vw, 80px) !important;
  }

  .svc-desc {
    max-width: 100%;
  }

  .svc-chat {
    max-height: 220px;
  }

  #hint {
    display: none;
  }

  .seg-labels {
    display: none;
  }
}

@media (max-width: 600px) {
  .left-panel {
    height: 45vh;
    min-height: 280px;
  }

  .service-panel {
    padding: 28px 20px;
  }

  .close-btn {
    top: 16px;
    right: 16px;
  }
}

/* ── LOADER ─────────────────────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0.8s;
}

#loader.loader-out {
  opacity: 0;
  visibility: hidden;
}

/* El fondo del loader se mantiene sólido durante toda la activación.
   Cuando llega el dismiss, todo (fondo + logo + texto) hace fade-out junto
   con la transición de loader-out — sin que el logo quede colgando arriba
   de la home una vez revelada. */

/* ── LOADER CORE — círculo grande tipo c-out de la home ────────────── */
.loader-core {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(56, 200, 240, 0.65);
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 14px rgba(56, 200, 240, 0.95),
              0 0 34px rgba(56, 200, 240, 0.50),
              0 0 70px rgba(56, 200, 240, 0.25);
  cursor: pointer;
  outline: none;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 30px 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dos auriolas (sonar rings) que se expanden desde el círculo,
   igual que en el c-out de la home. Escalonadas 2s para que siempre
   haya una activa. */
.loader-core::before,
.loader-core::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.40);
  pointer-events: none;
  animation: lhSonar 4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.loader-core::after {
  animation-delay: 2s;
}
@keyframes lhSonar {
  0%   { transform: scale(1);    opacity: 0.55; border-width: 2px; }
  100% { transform: scale(1.55); opacity: 0;    border-width: 1px; }
}
/* El círculo cicla por los 4 colores con respiración pareja en cada uno.
   Total 24s — cada color dura 6s con su rítmo exacto: dim (start) → peak (mid) → dim (next color).
   Cada respiración tiene la misma duración y mismo timing — ritmo sostenido, sin variaciones. */
.loader-core {
  animation: lhCircleAlive 24s ease-in-out infinite;
}
@keyframes lhCircleAlive {
  /* === Bar 1 — INFRA (cyan #38c8f0) — 0% a 25% === */
   0%   { border-color: rgba(56, 200, 240, 0.55);
          box-shadow: 0 0 10px rgba(56, 200, 240, 0.55),
                      0 0 26px rgba(56, 200, 240, 0.25),
                      0 0 50px rgba(56, 200, 240, 0.10); }
  12.5% { border-color: rgba(56, 200, 240, 0.95);
          box-shadow: 0 0 18px rgba(56, 200, 240, 0.95),
                      0 0 44px rgba(56, 200, 240, 0.55),
                      0 0 80px rgba(56, 200, 240, 0.25); }
  /* === Bar 2 — DEV (lima #c8f542) — 25% a 50% === */
  25%   { border-color: rgba(200, 245, 66, 0.55);
          box-shadow: 0 0 10px rgba(200, 245, 66, 0.55),
                      0 0 26px rgba(200, 245, 66, 0.25),
                      0 0 50px rgba(200, 245, 66, 0.10); }
  37.5% { border-color: rgba(200, 245, 66, 0.95);
          box-shadow: 0 0 18px rgba(200, 245, 66, 0.95),
                      0 0 44px rgba(200, 245, 66, 0.55),
                      0 0 80px rgba(200, 245, 66, 0.25); }
  /* === Bar 3 — DATA (violeta #9d4edd) — 50% a 75% === */
  50%   { border-color: rgba(157, 78, 221, 0.55);
          box-shadow: 0 0 10px rgba(157, 78, 221, 0.55),
                      0 0 26px rgba(157, 78, 221, 0.25),
                      0 0 50px rgba(157, 78, 221, 0.10); }
  62.5% { border-color: rgba(157, 78, 221, 0.95);
          box-shadow: 0 0 18px rgba(157, 78, 221, 0.95),
                      0 0 44px rgba(157, 78, 221, 0.55),
                      0 0 80px rgba(157, 78, 221, 0.25); }
  /* === Bar 4 — HARD (magenta #e040b0) — 75% a 100% === */
  75%   { border-color: rgba(224, 64, 176, 0.55);
          box-shadow: 0 0 10px rgba(224, 64, 176, 0.55),
                      0 0 26px rgba(224, 64, 176, 0.25),
                      0 0 50px rgba(224, 64, 176, 0.10); }
  87.5% { border-color: rgba(224, 64, 176, 0.95);
          box-shadow: 0 0 18px rgba(224, 64, 176, 0.95),
                      0 0 44px rgba(224, 64, 176, 0.55),
                      0 0 80px rgba(224, 64, 176, 0.25); }
  /* loop back to INFRA dim */
  100%  { border-color: rgba(56, 200, 240, 0.55);
          box-shadow: 0 0 10px rgba(56, 200, 240, 0.55),
                      0 0 26px rgba(56, 200, 240, 0.25),
                      0 0 50px rgba(56, 200, 240, 0.10); }
}

/* El hex queda en gris claro — sutilmente "respira" intensidad para que no quede muerto */
.loader-hex .lh-hex {
  stroke: rgba(190, 198, 212, 0.75);
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.35));
  animation: hexDraw 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards,
             lhHexLive 5.5s ease-in-out 1.5s infinite;
  transition: stroke 0.4s, filter 0.4s;
}
/* Modulación sutil de stroke-opacity para que no quede 100% estático — casi imperceptible */
@keyframes lhHexLive {
  0%, 100% { stroke-opacity: 1; }
  50%      { stroke-opacity: 0.65; }
}

/* Hover sobre el círculo: el hex pasa a blanco brillante */
.loader-core:hover .lh-hex {
  stroke: #ffffff;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.85))
          drop-shadow(0 0 14px rgba(255, 255, 255, 0.45));
  animation: hexDraw 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;  /* pausa la modulación */
}
.loader-core:hover .lh-hex-inner {
  stroke: rgba(255, 255, 255, 0.85);
}
.loader-core:hover .lh-vertex {
  fill: #ffffff;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.7));
  transition: fill 0.4s, filter 0.4s;
}
.loader-core:hover .lh-nucleus {
  fill: #ffffff;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.7));
  transition: fill 0.4s, filter 0.4s;
}

/* Hover: animaciones pausadas, glow cyan intensificado */
.loader-core.ls-ready:hover {
  animation: none;
  border-color: rgba(120, 230, 255, 1);
  box-shadow: 0 0 24px rgba(120, 230, 255, 1),
              0 0 52px rgba(56, 200, 240, 0.70),
              0 0 100px rgba(56, 200, 240, 0.35);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.loader-core.ls-ready:hover .lh-hex {
  animation: none;
  stroke: #ffffff;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 1))
          drop-shadow(0 0 18px rgba(255, 255, 255, 0.55))
          drop-shadow(0 0 32px rgba(255, 255, 255, 0.25));
  transition: stroke 0.4s, filter 0.4s;
}
.loader-core.ls-ready:hover .lh-hex-inner {
  stroke: rgba(255, 255, 255, 0.95);
}
.loader-core.ls-ready:hover .lh-vertex {
  fill: #ffffff;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 1));
}
.loader-core.ls-ready:hover .lh-nucleus {
  fill: #ffffff !important;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 1));
}

/* Click: glow máximo blanco-cyan — el sistema enciende */
.loader-core.is-on {
  animation: none;
  border-color: rgba(120, 230, 255, 1);
  box-shadow: 0 0 34px rgba(120, 230, 255, 1),
              0 0 75px rgba(56, 200, 240, 0.85),
              0 0 140px rgba(56, 200, 240, 0.45);
  transition: border-color 0.5s, box-shadow 0.5s;
}

/* loader-hex ahora es solo el contenedor del SVG, dentro del core */
.loader-hex {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}
/* El círculo brilla más fuerte con cada beat */
@keyframes lhCircleGlow {
  0%, 100% {
    border-color: rgba(56, 200, 240, 0.65);
    box-shadow: 0 0 12px rgba(56, 200, 240, 0.95),
                0 0 28px rgba(56, 200, 240, 0.50),
                0 0 56px rgba(56, 200, 240, 0.25);
  }
  6% {  /* LUB — flash fuerte en el primer pulso */
    border-color: rgba(120, 230, 255, 1);
    box-shadow: 0 0 20px rgba(120, 230, 255, 1),
                0 0 42px rgba(56, 200, 240, 0.85),
                0 0 80px rgba(56, 200, 240, 0.45);
  }
  18% {  /* DUB — flash menor en el segundo pulso */
    border-color: rgba(120, 230, 255, 0.85);
    box-shadow: 0 0 16px rgba(120, 230, 255, 0.95),
                0 0 34px rgba(56, 200, 240, 0.70),
                0 0 64px rgba(56, 200, 240, 0.35);
  }
}
/* Latido lub-dub: dos pulsos cortos + descanso largo, como un corazón real */
@keyframes lhHeartbeat {
  0%   { transform: scale(1); }
  6%   { transform: scale(1.07); }    /* LUB — primer pulso fuerte */
  12%  { transform: scale(0.99); }    /* rebote */
  18%  { transform: scale(1.04); }    /* DUB — segundo pulso menor */
  24%  { transform: scale(1); }
  100% { transform: scale(1); }       /* descanso largo */
}

/* (Halo ::before del hex eliminado — causaba un rectángulo visible
   detrás del hex. El glow pulsante hex-shaped del lh-hex via drop-shadow
   ya cumple el rol de halo siguiendo la forma del polígono.) */

/* Canvas con red neuronal adentro del hex (clipeado al hex) */
.lh-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.80;
  transition: opacity 0.6s ease;
  clip-path: polygon(50% 15.5%, 79.1% 32.2%, 79.1% 67.8%, 50% 84.5%, 20.9% 67.8%, 20.9% 32.2%);
}
.loader-core.ls-ready .lh-canvas { opacity: 0.95; }
.loader-core.is-on .lh-canvas    { opacity: 1; transform: scale(1.04); }

/* Bloom polygon — onda inicial al activar (un solo disparo dramático) */
.lh-bloom {
  fill: none;
  stroke: rgba(255, 255, 255, 0);
  stroke-width: 2.5;
  pointer-events: none;
  transform-origin: center;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
}
.loader-core.is-on .lh-bloom {
  animation: lhBloom 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes lhBloom {
  0%   { stroke: rgba(255, 255, 255, 1); stroke-width: 3; transform: scale(1); }
  100% { stroke: rgba(255, 255, 255, 0); stroke-width: 1; transform: scale(2.2); }
}

/* (Reglas con stroke cyan eliminadas — el hex ahora va siempre en blanco/gris según estado) */
.loader-core.is-on .lh-vertex {
  fill: #ffffff;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 1));
}
.loader-hex .lh-vertex {
  transition: fill 0.4s, filter 0.4s;
}

/* Núcleo se vuelve blanco brillante en ON */
.loader-core.is-on .lh-nucleus {
  fill: #ffffff !important;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 1));
}
.loader-hex .lh-nucleus {
  transition: fill 0.4s, filter 0.4s;
}

.loader-hex svg {
  width: 100%;
  height: 100%;
  overflow: visible;   /* permite que el bloom polygon se expanda más allá del viewBox sin clipear */
}

.lh-ring {
  fill: none;
  stroke: #00d4ff;
  stroke-width: 1.5;
  stroke-opacity: 0.35;
}

.lh-ring-glow {
  fill: none;
  stroke: #00d4ff;
  stroke-width: 6;
  opacity: 0.15;
  filter: blur(5px);
}

.lh-hex {
  fill: none;
  stroke: #00d4ff;
  stroke-width: 1.5;
  stroke-dasharray: 250;
  stroke-dashoffset: 250;
  stroke-linejoin: round;
  stroke-linecap: round;
  /* Glow muy sutil — el halo cyan grande viene del círculo, el hex queda limpio como en la home */
  filter: drop-shadow(0 0 3px rgba(0, 212, 255, 0.55));
  animation: hexDraw 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}
.loader-core.is-on .lh-hex {
  animation: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 1))
          drop-shadow(0 0 26px rgba(255, 255, 255, 0.65))
          drop-shadow(0 0 50px rgba(255, 255, 255, 0.30));
  transition: stroke 0.5s, stroke-width 0.5s, filter 0.5s;
}
.loader-core.is-on .lh-hex-inner {
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 1;
  transition: stroke 0.5s, stroke-width 0.5s;
}

.lh-hex-inner {
  fill: none;
  stroke: rgba(190, 198, 212, 0.50);
  stroke-width: 0.8;
  stroke-dasharray: 250;
  stroke-dashoffset: 250;
  stroke-linejoin: round;
  stroke-linecap: round;
  animation: hexDraw 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.35s forwards;
  transition: stroke 0.4s;
}
/* Pulse ring eliminado para no competir con el latido nuevo */
.lh-pulse { display: none; }

.lh-nucleus {
  fill: rgba(0, 212, 255, 0.0);
  transform-box: fill-box;
  transform-origin: center;
  animation: nucleusFade 0.4s ease 0.9s forwards,
             lhNucleusBreath 3.8s ease-in-out 1.5s infinite;
}
/* Respiración muy sutil del punto central — apenas perceptible */
@keyframes lhNucleusBreath {
  0%, 100% { fill-opacity: 0.65; transform: scale(0.92); }
  50%      { fill-opacity: 1;    transform: scale(1.10); }
}

.lh-pulse {
  fill: none;
  stroke: rgba(0, 212, 255, 0.4);
  stroke-width: 1;
  r: 6;
  animation: pulsering 1.4s ease-out 1s infinite;
}

.lh-vertex {
  fill: rgba(0, 212, 255, 0);
  animation: vertexPop 0.3s ease forwards;
}

.lh-ring {
  fill: none;
  stroke: #00d4ff;
  stroke-width: 1.5;
  transform-origin: 45px 45px;
  animation: ringPulse 1.6s ease-in-out 0.8s infinite;
}

.lh-ring-glow {
  fill: none;
  stroke: #00d4ff;
  stroke-width: 8;
  transform-origin: 45px 45px;
  opacity: 0;
  filter: blur(6px);
  animation: ringGlow 1.6s ease-in-out 0.8s infinite;
}

@keyframes hexDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.seg:hover .ring-flow {
  opacity: 1;
}

/* ── FUI ELEMENTS ────────────────────────────────────────────────── */
.fui-tick {
  transition: stroke-opacity 0.4s, stroke 0.4s;
}

.seg:hover .fui-tick {
  stroke-opacity: 0.8;
  stroke: #fff;
}

.fui-ghost {
  transition: stroke-opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.6s;
  pointer-events: none;
}

.seg:hover .fui-ghost {
  stroke-opacity: 0.9;
}

.fui-crosshair {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  opacity: 0;
}

.seg:hover .fui-crosshair {
  stroke-dashoffset: 0;
  opacity: 0.4;
}

.fui-bloom {
  filter: blur(8px);
  mix-blend-mode: screen;
  transition: stroke-opacity 0.5s;
}

.seg:hover .fui-bloom,
.seg.active-service .fui-bloom {
  stroke-opacity: 0.35;
}

.seg.active-service .fui-ghost {
  stroke-opacity: 0.9;
}

.seg.active-service .fui-tick {
  stroke-opacity: 0.8;
  stroke: #fff;
}

.seg.active-service .seg-text {
  letter-spacing: 2.5px;
  fill: #fff !important;
}

@keyframes nucleusFade {
  to {
    fill: rgba(200, 208, 222, 0.85);
  }
}

@keyframes pulsering {
  0% {
    r: 6;
    opacity: 0.6;
  }

  100% {
    r: 22;
    opacity: 0;
  }
}

@keyframes vertexPop {
  to {
    fill: rgba(200, 208, 222, 0.85);
  }
}

.loader-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  width: 100%;
}

.lw-mit {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 12px;
  text-indent: 12px;
  color: rgba(255, 255, 255, 0);
  animation: wordFade 0.5s ease 0.7s forwards;
}

.lw-sub {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-indent: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0);
  animation: subFade 0.5s ease 0.9s forwards;
}

.loader-wordmark { gap: 4px; margin-top: 2px; }

@keyframes wordFade {
  to {
    color: rgba(255, 255, 255, 1);
  }
}

@keyframes subFade {
  to {
    color: rgba(255, 255, 255, 0.45);
  }
}

.loader-bar-wrap {
  width: 80px;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 1px;
  overflow: hidden;
  opacity: 0;
  margin: 0 auto;
  animation: barAppear 0.3s ease 0.6s forwards;
}

@keyframes barAppear {
  to {
    opacity: 1;
  }
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 1px;
  transition: width 0.25s ease-out;
}

/* ── LOADER CTA (caption "Iniciar experiencia") ────────────────────── */
.loader-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.loader-cta.ls-ready {
  opacity: 1;
  transform: translateY(0);
}
.lc-arrow {
  font-size: 14px;
  font-weight: 700;
  color: rgba(220, 225, 235, 0.90);                       /* gris claro / blanco */
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.50);          /* glow blanco sutil */
  animation: lcArrowBounce 1.6s ease-in-out infinite;
  line-height: 1;
}
@keyframes lcArrowBounce {
  0%, 100% { transform: translateY(0);    opacity: 0.95; }
  50%      { transform: translateY(-3px); opacity: 0.55; }
}
.lc-text {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.4px;
  transition: color 0.3s ease;
}
#loader.has-switch-ready ~ * .lc-text,
.loader-cta.ls-ready .lc-text {
  color: rgba(255, 255, 255, 0.85);
}

/* Cuando aparece el CTA, ocultar la barra (ya cumplió su rol) */
#loader .loader-bar-wrap {
  transition: opacity 0.5s ease, transform 0.5s ease, max-height 0.5s ease, margin 0.5s ease;
  overflow: hidden;
}
#loader.has-switch-ready .loader-bar-wrap {
  opacity: 0;
  transform: translateY(-4px);
  max-height: 0;
  margin: 0;
  pointer-events: none;
}

@keyframes barFill {
  0% {
    width: 0%;
  }

  60% {
    width: 75%;
  }

  100% {
    width: 100%;
  }
}

@keyframes hexPulse {
  0%   { box-shadow: 0 0 60px rgba(0,0,0,0.8), 0 0 0 0 rgba(56,200,240,0.0), 0 0 28px rgba(56,200,240,0.0); }
  8%   { box-shadow: 0 0 60px rgba(0,0,0,0.8), 0 0 0 4px rgba(56,200,240,0.35), 0 0 28px rgba(56,200,240,0.15); }
  20%  { box-shadow: 0 0 60px rgba(0,0,0,0.8), 0 0 0 0 rgba(56,200,240,0.0), 0 0 28px rgba(56,200,240,0.0); }
  30%  { box-shadow: 0 0 60px rgba(0,0,0,0.8), 0 0 0 0 rgba(200,245,66,0.0),  0 0 28px rgba(200,245,66,0.0); }
  38%  { box-shadow: 0 0 60px rgba(0,0,0,0.8), 0 0 0 4px rgba(200,245,66,0.35), 0 0 28px rgba(200,245,66,0.15); }
  50%  { box-shadow: 0 0 60px rgba(0,0,0,0.8), 0 0 0 0 rgba(200,245,66,0.0),  0 0 28px rgba(200,245,66,0.0); }
  60%  { box-shadow: 0 0 60px rgba(0,0,0,0.8), 0 0 0 0 rgba(157,78,221,0.0),  0 0 28px rgba(157,78,221,0.0); }
  68%  { box-shadow: 0 0 60px rgba(0,0,0,0.8), 0 0 0 4px rgba(157,78,221,0.35), 0 0 28px rgba(157,78,221,0.15); }
  80%  { box-shadow: 0 0 60px rgba(0,0,0,0.8), 0 0 0 0 rgba(157,78,221,0.0),  0 0 28px rgba(157,78,221,0.0); }
  90%  { box-shadow: 0 0 60px rgba(0,0,0,0.8), 0 0 0 0 rgba(224,64,176,0.0),  0 0 28px rgba(224,64,176,0.0); }
  95%  { box-shadow: 0 0 60px rgba(0,0,0,0.8), 0 0 0 4px rgba(224,64,176,0.35), 0 0 28px rgba(224,64,176,0.15); }
  100% { box-shadow: 0 0 60px rgba(0,0,0,0.8), 0 0 0 0 rgba(224,64,176,0.0),  0 0 28px rgba(224,64,176,0.0); }
}

/* ── HEX OVERLAY ─────────────────────────────────────────────────── */
#hex-overlay {
  position: fixed; inset: 0; z-index: 8000;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0;
  transition: opacity 0.4s ease;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
}
#hex-overlay.hex-open {
  opacity: 1; pointer-events: auto;
}

.hex-shape {
  position: relative;
  width: min(860px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  border-radius: 14px;
  background: rgba(4,4,6,0.98);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 0 60px rgba(0,0,0,0.8), 0 0 0 0 rgba(0,212,255,0);
  transform: scale(0.88) translateY(24px);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
  animation: none;
}
.hex-shape::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
}
#hex-overlay.hex-open .hex-shape {
  transform: scale(1) translateY(0);
  animation: hexPulse 10s ease-in-out infinite;
}
.hex-shape::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,212,255,0.6) 30%, rgba(200,245,66,0.5) 60%, rgba(157,78,221,0.5) 80%, transparent 100%);
  border-radius: 14px 14px 0 0;
}

/* SVG borde decorativo (top accent line) */
.hex-border {
  display: none;
}
.hex-border-path {
  fill: none;
  stroke: rgba(255,255,255,0.25);
  stroke-width: 1.5;
  stroke-dasharray: 2200;
  stroke-dashoffset: 2200;
  transition: stroke-dashoffset 1s cubic-bezier(0.4,0,0.2,1) 0.2s;
}
#hex-overlay.hex-open .hex-border-path {
  stroke-dashoffset: 0;
}

/* Contenido dentro */
.hex-content {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center;
  padding: 40px 52px 0;
  gap: 0;
  opacity: 0;
  transition: opacity 0.3s ease 0.05s;
  min-height: 0;
}
#hex-overlay.hex-open .hex-content { opacity: 1; }

/* Header */
.hex-logo {
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 12px;
}
.hex-logo-mit {
  font-size: 26px; font-weight: 900; letter-spacing: 10px;
  color: #fff; text-indent: 10px;
}
.hex-logo-sub {
  font-size: 7.5px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,0.32);
}
.hex-divider {
  width: 40px; height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 10px 0 16px;
}

/* Timeline */
.hex-timeline {
  display: flex; flex-direction: column; gap: 0;
  width: 100%; margin-bottom: 14px;
}
.hex-tl-item {
  display: grid;
  grid-template-columns: 48px 14px 1fr;
  align-items: start; gap: 0 8px;
  padding: 5px 0;
  opacity: 0; transform: translateX(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
#hex-overlay.hex-open .hex-tl-item { opacity: 1; transform: translateX(0); }
#hex-overlay.hex-open .hex-tl-item:nth-child(1) { transition-delay: 0.20s; }
#hex-overlay.hex-open .hex-tl-item:nth-child(2) { transition-delay: 0.27s; }
#hex-overlay.hex-open .hex-tl-item:nth-child(3) { transition-delay: 0.34s; }
#hex-overlay.hex-open .hex-tl-item:nth-child(4) { transition-delay: 0.41s; }
#hex-overlay.hex-open .hex-tl-item:nth-child(5) { transition-delay: 0.48s; }
#hex-overlay.hex-open .hex-tl-item:nth-child(6) { transition-delay: 0.55s; }

.hex-tl-year {
  font-size: 11px; font-weight: 800; color: rgba(255,255,255,0.5);
  letter-spacing: 1px; text-align: right; padding-top: 2px;
}
.hex-tl-dot-col {
  display: flex; flex-direction: column; align-items: center;
}
.hex-tl-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #00d4ff; flex-shrink: 0; margin-top: 3px;
  box-shadow: 0 0 8px #00d4ff;
}
.hex-tl-line {
  flex: 1; width: 1px;
  background: rgba(255,255,255,0.08);
  min-height: 20px;
}
.hex-tl-text {
  font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.5;
}
.hex-tl-text strong {
  display: block; font-size: 10px; font-weight: 700;
  letter-spacing: 0.5px; color: #00d4ff;
  text-transform: uppercase; margin-bottom: 1px;
}


/* Tagline */
.hex-tagline {
  font-size: 10.5px; color: rgba(255,255,255,0.3);
  text-align: center; max-width: 520px; line-height: 1.65;
  margin-bottom: 16px;
}

/* 2 columnas */
.hex-body {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 24px;
  width: 100%;
  align-items: start;
  overflow: visible;
}
.hex-body.chat-mode {
  align-items: stretch;
  height: 400px;
  overflow: hidden;
}
.hex-col-sep {
  background: rgba(255,255,255,0.07);
  align-self: stretch;
}
.hex-col { display: flex; flex-direction: column; gap: 0; }
#hex-right-col {
  overflow-y: auto; scrollbar-width: none; max-height: 520px;
}
#hex-right-col::-webkit-scrollbar { display: none; }
.hex-body.chat-mode .hex-col:first-child {
  overflow-y: auto; scrollbar-width: none; max-height: 400px;
}
.hex-body.chat-mode .hex-col:first-child::-webkit-scrollbar { display: none; }
.hex-col-title {
  font-size: 9px; font-weight: 800; letter-spacing: 2.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.28);
  margin-bottom: 12px;
}

/* Plataformas */
.hex-platforms { display: flex; flex-direction: column; gap: 10px; margin-bottom: 0; }
.hex-platform {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s, background 0.2s;
}
.hex-platform:hover {
  border-color: rgba(0,212,255,0.3);
  background: rgba(0,212,255,0.03);
}
.hex-platform-name {
  font-size: 11px; font-weight: 700; color: #00d4ff;
  letter-spacing: 0.3px; margin-bottom: 4px;
}
.hex-platform-desc {
  font-size: 10.5px; color: rgba(255,255,255,0.4); line-height: 1.55;
}

/* Contacto en columna */
.hex-contacts { display: flex; flex-direction: column; gap: 6px; }
.hex-contact-item {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: rgba(255,255,255,0.55);
  font-size: 11.5px; font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: none;
}
.hex-contact-item:hover {
  border-color: rgba(255,255,255,0.25);
  color: #fff;
  background: rgba(255,255,255,0.04);
}
.hex-contact-item svg { flex-shrink: 0; opacity: 0.6; }

/* Botón AI */
.hex-ai-btn {
  background: rgba(0,212,255,0.05);
  border-color: rgba(0,212,255,0.25) !important;
  color: #00d4ff !important;
  font-weight: 600;
  width: 100%;
  justify-content: flex-start;
  transition: background 0.2s, border-color 0.2s;
}
.hex-ai-btn:hover {
  background: rgba(0,212,255,0.1) !important;
  border-color: rgba(0,212,255,0.5) !important;
}
.hex-ai-badge {
  margin-left: auto;
  font-size: 8px; font-weight: 800; letter-spacing: 1px;
  padding: 2px 5px; border-radius: 4px;
  background: rgba(0,212,255,0.15);
  color: rgba(0,212,255,0.8);
}

/* Ocultar elementos cuando chat está abierto */
#hex-right-col.chat-active .hex-hide-on-chat {
  display: none;
}

/* Chat AI panel */
.hex-chat {
  display: none;
  flex-direction: column;
  border-radius: 10px;
  border: 1px solid rgba(0,212,255,0.15);
  background: rgba(0,10,16,0.6);
  overflow: hidden;
  height: 100%;
}
.hex-chat.open {
  display: flex;
}
#hex-right-col.chat-active {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.hex-chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(0,212,255,0.1);
}
.hex-chat-title {
  font-size: 10px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: #00d4ff;
}
.hex-chat-back {
  font-size: 10px; color: rgba(255,255,255,0.35);
  background: none; border: none; cursor: none;
  font-family: inherit; padding: 2px 6px;
  transition: color 0.2s;
}
.hex-chat-back:hover { color: rgba(255,255,255,0.7); }
.hex-chat-msgs {
  flex: 1; overflow-y: auto; min-height: 0;
  padding: 14px 14px 8px;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: none;
}
.hex-chat-msgs::-webkit-scrollbar { display: none; }
.hex-msg {
  display: flex; max-width: 88%;
}
.hex-msg span {
  font-size: 11.5px; line-height: 1.55;
  padding: 8px 12px; border-radius: 10px;
}
.hex-msg-bot { align-self: flex-start; }
.hex-msg-bot span {
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.12);
  color: rgba(255,255,255,0.75);
}
.hex-msg-user { align-self: flex-end; flex-direction: row-reverse; }
.hex-msg-user span {
  background: rgba(0,212,255,0.18);
  border: 1px solid rgba(0,212,255,0.3);
  color: #fff;
}
.hex-chat-form {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.hex-chat-input {
  flex: 1; background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 11.5px; color: rgba(255,255,255,0.8);
  font-family: inherit;
  transition: border-color 0.2s;
}
.hex-chat-input::placeholder { color: rgba(255,255,255,0.25); }
.hex-chat-input:focus { border-color: rgba(0,212,255,0.35); outline: none; }
.hex-chat-send {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(0,212,255,0.15);
  border: 1px solid rgba(0,212,255,0.3);
  color: #00d4ff; display: flex; align-items: center; justify-content: center;
  cursor: none; transition: background 0.2s;
  flex-shrink: 0;
}
.hex-chat-send:hover { background: rgba(0,212,255,0.28); }

/* Footer del modal */
.hex-footer {
  display: flex; justify-content: center;
  padding: 14px 0 18px;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 8px;
}
.hex-close-footer {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 7px 24px;
  cursor: none;
  font-family: inherit;
  transition: color 0.2s, border-color 0.2s;
}
.hex-close-footer:hover {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.25);
}

.hex-close { display: none; }

/* ── STATUS BAR (esquina superior derecha) ────────────────────────── */
.hud-status {
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 50;
  pointer-events: none;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, 'Courier New', monospace;
  text-align: right;
  opacity: 0;
  transform: translateY(-6px);
  animation: hsFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.3s forwards;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.hs-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.hs-row-primary {
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.hs-tag {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  letter-spacing: 2.2px;
}
.hs-divider {
  width: 14px;
  height: 1px;
  background: rgba(180, 215, 245, 0.25);
}
.hs-path {
  color: rgba(180, 215, 245, 0.55);
  font-weight: 400;
  letter-spacing: 0.8px;
  text-transform: lowercase;
}
.hs-version {
  color: rgba(120, 160, 200, 0.4);
  font-weight: 400;
  letter-spacing: 0.6px;
  text-transform: lowercase;
  margin-left: -4px;
}
.hs-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5fe87a;
  box-shadow: 0 0 6px rgba(95, 232, 122, 0.85), 0 0 2px rgba(95, 232, 122, 1);
  animation: hsDotPulse 2.4s ease-in-out infinite;
  margin-left: 2px;
}
.hs-online {
  color: #5fe87a;
  font-weight: 600;
  letter-spacing: 1.4px;
}
.hs-row-metrics {
  font-size: 8.5px;
  letter-spacing: 0.6px;
  text-transform: lowercase;
  gap: 14px;
  padding-top: 7px;
  border-top: 1px solid rgba(120, 160, 200, 0.10);
}
.hs-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}
.hs-key {
  color: rgba(120, 160, 200, 0.42);
  font-weight: 400;
}
.hs-val {
  color: rgba(220, 235, 255, 0.78);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.4px;
}

@keyframes hsDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.82); }
}
@keyframes hsFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Cuando se abre un servicio: ocultar (el panel derecho ocupa esa zona) */
body.panel-open .hud-status {
  opacity: 0;
  transform: translateY(-6px);
}

/* Mobile: ocultar */
@media (max-width: 900px) {
  .hud-status { display: none; }
}
