/* ============================================================
   VERBORRÁICA — Célula 5 · Las palabras
   Paleta EVA-08: negro / rosa-magenta #D70B65 / brillo #FF2F9D
   sistema en verde #BAFF2E / verde secundario #D7FF71
   ============================================================ */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  min-height: 100%;
  font-family: 'VT323', 'Courier New', monospace;
  color: #D7FF71;
}

.pantalla5 {
  position: relative;
  width: 100%;
  min-height: 100vh;
  max-width: 1600px;
  margin: 0 auto;
  padding: 18px 30px 40px;
  overflow: hidden;
}

/* ---------- Panal de hexágonos (misma técnica del menú principal) ---------- */
.hex-grid5 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28.56' height='49.47' viewBox='0 0 56 97'><g fill='none' stroke='%23BAFF2E' stroke-width='1'><path d='M28 0 L56 16 L56 48 L28 64 L0 48 L0 16 Z'/><path d='M28 64 L56 80 L56 97 M28 64 L0 80 L0 97 M28 0 L28 -16'/></g></svg>");
  background-repeat: repeat;
  animation: hex-neon-parpadeo5 4s infinite alternate;
}

@keyframes hex-neon-parpadeo5 {
  0%, 19%, 21%, 23%, 54%, 56%, 100% { opacity: 0.0898; }
  20%, 22%, 55% { opacity: 0.0334; }
}

/* Capa brillante que sigue al cursor mientras se mueve por la página */
.hex-grid5-brillo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28.56' height='49.47' viewBox='0 0 56 97'><g fill='none' stroke='%23BAFF2E' stroke-width='1.4'><path d='M28 0 L56 16 L56 48 L28 64 L0 48 L0 16 Z'/><path d='M28 64 L56 80 L56 97 M28 64 L0 80 L0 97 M28 0 L28 -16'/></g></svg>");
  background-repeat: repeat;
  -webkit-mask-image: radial-gradient(circle at var(--gx5, 50%) var(--gy5, 50%), #000 0%, transparent 10%);
  mask-image: radial-gradient(circle at var(--gx5, 50%) var(--gy5, 50%), #000 0%, transparent 10%);
}

.hex-grid5-brillo.activo {
  animation: hex5-brillo-flicker 3.6s linear infinite;
}

@keyframes hex5-brillo-flicker {
  0%, 100% { opacity: 0.75; }
  3%       { opacity: 0.3; }
  6%       { opacity: 0.75; }
  7%       { opacity: 0.2; }
  8%       { opacity: 0.75; }
  20%      { opacity: 0.75; }
  22%      { opacity: 0.15; }
  24%      { opacity: 0.75; }
  55%      { opacity: 0.75; }
  57%      { opacity: 0.4; }
  58%      { opacity: 0.75; }
  60%      { opacity: 0.1; }
  62%      { opacity: 0.75; }
  85%      { opacity: 0.75; }
  86%      { opacity: 0.3; }
  88%      { opacity: 0.75; }
}

@media (prefers-reduced-motion: reduce) {
  .hex-grid5-brillo.activo { animation: none; opacity: 0.6; }
}

/* ---------- Marcos (placeholder, hasta que definas los tuyos con la imagen) ---------- */
.v-modulo, .v-panel, .v-entrada, .v-header {
  position: relative;
  z-index: 1;
  border: 1px solid #D70B65;
  box-shadow: 0 0 6px rgba(215, 11, 101, 0.35), inset 0 0 12px rgba(215, 11, 101, 0.06);
  background: rgba(0, 0, 0, 0.55);
}

/* ---------- Encabezado ---------- */
.v-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.v-header-izq {
  display: flex;
  align-items: center;
  gap: 10px;
}

.v-icono-celula {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px #FF2F9D);
}

.v-eyebrow {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: #FF2F9D;
}

.v-titulo-celula {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 1px;
  color: #FF2F9D;
  text-shadow: 0 0 4px #FF2F9D;
}

.v-titulo-app {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  letter-spacing: 3px;
  color: #D70B65;
  text-shadow: 0 0 6px #D70B65, 0 0 14px #D70B65;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.v-header-der {
  font-size: 0.7rem;
  color: #BAFF2E;
  line-height: 1.5;
  text-align: right;
}

.v-header-der p { margin: 0; }

.v-online {
  color: #BAFF2E;
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-end;
}

.v-punto {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #BAFF2E;
  box-shadow: 0 0 6px #BAFF2E;
  animation: v-parpadea 1.4s ease-in-out infinite;
}

@keyframes v-parpadea {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

.v-subtitulo {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: #BAFF2E;
  text-shadow: 0 0 4px #BAFF2E;
  margin: 0 0 14px;
}

/* ---------- Reproductor persistente ---------- */
.v-reproductor {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.v-boton-play {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid #FF2F9D;
  color: #FF2F9D;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(255, 47, 157, 0.5);
}

.v-sigue-escuchando {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: #FF2F9D;
  text-shadow: 0 0 4px #FF2F9D;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: v-neon-parpadeo 4s infinite alternate;
}

@keyframes v-neon-parpadeo {
  0%, 19%, 21%, 23%, 54%, 56%, 100% { opacity: 1; }
  20%, 22%, 55% { opacity: 0.4; }
}

/* ---------- Navegación ---------- */
.v-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #D70B65;
  padding: 8px 16px;
  margin-bottom: 14px;
  background: rgba(0, 0, 0, 0.5);
}

.v-nav-boton {
  font-family: inherit;
  background: transparent;
  border: 1px solid #D70B65;
  color: #FF2F9D;
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 5px 12px;
  cursor: pointer;
  text-decoration: none;
}

.v-nav-boton:hover {
  background: rgba(215, 11, 101, 0.2);
}

.v-nav-actual {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid #D70B65;
  padding: 5px 16px;
  color: #D70B65;
  text-shadow: 0 0 4px #D70B65;
  letter-spacing: 3px;
  font-size: 1rem;
  white-space: nowrap;
}

/* ---------- Módulos genéricos ---------- */
.v-modulo {
  padding: 12px 16px;
  margin-bottom: 14px;
}

.v-modulo-titulo {
  margin: 0 0 10px;
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: #BAFF2E;
  text-shadow: 0 0 4px #BAFF2E;
}

/* ---------- Memoria ---------- */
.v-memoria-fila {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-size: 0.8rem;
}

.v-memoria-barra {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 220px;
}

.v-memoria-label { white-space: nowrap; }

.v-barra {
  flex: 1;
  height: 12px;
  border: 1px solid #D70B65;
  background: rgba(215, 11, 101, 0.08);
}

.v-barra-relleno {
  height: 100%;
  background: repeating-linear-gradient(90deg, #D70B65, #D70B65 4px, transparent 4px, transparent 7px);
  transition: width 0.9s ease-in-out;
}

/* Parpadeo neón mientras la barra "salta" a su nueva posición */
.v-barra-relleno.v-barra-cambiando {
  animation: v-barra-flicker 1.6s linear;
}

@keyframes v-barra-flicker {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px #D70B65; }
  10% { opacity: 0.25; box-shadow: none; }
  20% { opacity: 1; box-shadow: 0 0 10px #D70B65; }
  30% { opacity: 0.15; box-shadow: none; }
  40% { opacity: 1; box-shadow: 0 0 10px #D70B65; }
  55% { opacity: 0.3; box-shadow: none; }
  65% { opacity: 1; box-shadow: 0 0 10px #D70B65; }
  80% { opacity: 0.2; box-shadow: none; }
  90% { opacity: 1; box-shadow: 0 0 10px #D70B65; }
}

/* Una vez que se asienta, parpadea lento tipo radar: bip.. bip.. bip.. */
.v-barra-relleno.v-barra-radar {
  animation: v-barra-bip 1.2s ease-in-out infinite;
}

@keyframes v-barra-bip {
  0%   { opacity: 0.45; box-shadow: none; }
  10%  { opacity: 1; box-shadow: 0 0 8px #D70B65; }
  22%  { opacity: 0.45; box-shadow: none; }
  100% { opacity: 0.45; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .v-barra-relleno { transition: none; }
  .v-barra-relleno.v-barra-cambiando,
  .v-barra-relleno.v-barra-radar { animation: none; opacity: 1; }
}

.v-dato { white-space: nowrap; }
.v-dato span { color: #FF2F9D; margin-right: 4px; }
.v-dato strong { color: #D7FF71; }

/* ---------- Columnas ---------- */
.v-columnas {
  display: grid;
  grid-template-columns: 200px 1fr 220px;
  gap: 14px;
  align-items: start;
}

.v-panel {
  padding: 12px 14px;
}

/* ---------- Archivo (panel izquierdo) ---------- */
.v-arbol, .v-arbol ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 10px;
}

.v-arbol { padding-left: 0; }

.v-carpeta {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #BAFF2E;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 3px 0;
  cursor: pointer;
}

.v-carpeta:hover { color: #D7FF71; }

.v-archivo-item {
  display: block;
  color: #7fae3c;
  font-size: 0.78rem;
  text-decoration: none;
  padding: 2px 0 2px 14px;
}

.v-archivo-item:hover { color: #D7FF71; }

.v-pie-archivo {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed rgba(215, 11, 101, 0.4);
  font-size: 0.68rem;
  color: #FF2F9D;
}

.v-pie-archivo p { margin: 2px 0; }

/* ---------- Entradas (panel central) ---------- */
.v-entrada {
  padding: 14px 16px;
  margin-bottom: 14px;
}

.v-entrada-barra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: #D70B65;
  margin-bottom: 6px;
}

.v-entrada-eyebrow { margin: 0; letter-spacing: 1px; }
.v-entrada-controles { display: flex; gap: 8px; opacity: 0.6; }

.v-entrada-cabeza {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.v-entrada-titulo {
  margin: 0;
  font-size: 1.4rem;
  color: #FF2F9D;
  text-shadow: 0 0 4px #FF2F9D;
  letter-spacing: 0.5px;
}

.v-entrada-fecha {
  font-size: 0.72rem;
  color: #BAFF2E;
  white-space: nowrap;
}

.v-entrada-texto {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #D7FF71;
  margin: 0 0 14px;
}

.v-entrada-corte { color: #7fae3c; }

.v-entrada-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.v-accion {
  font-family: inherit;
  background: transparent;
  border: 1px solid #D70B65;
  color: #FF2F9D;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  cursor: pointer;
}

.v-accion:hover { background: rgba(215, 11, 101, 0.2); }

.v-letalidad.confirmada {
  background: #D70B65;
  color: #000;
  animation: v-parpadea 1s ease-in-out 2;
}

.v-comentario {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px dashed rgba(215, 11, 101, 0.3);
  padding-top: 10px;
}

.v-comentario-input {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(186, 255, 46, 0.4);
  color: #D7FF71;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 6px 10px;
}

.v-comentario-input::placeholder { color: #5c7a30; }

.v-comentario-estado {
  font-size: 0.7rem;
  color: #BAFF2E;
  text-shadow: 0 0 4px #BAFF2E;
  white-space: nowrap;
}

.v-separador {
  border: none;
  border-top: 1px solid rgba(215, 11, 101, 0.25);
  margin: 0 0 14px;
}

.v-paginacion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.75rem;
  flex-wrap: wrap;
}

.v-pagina-boton {
  font-family: inherit;
  background: transparent;
  border: 1px solid #D70B65;
  color: #FF2F9D;
  padding: 5px 10px;
  cursor: pointer;
}

.v-pagina-actual { color: #BAFF2E; }

/* ---------- Radar (panel derecho) ---------- */
.v-radar-bloque { margin-bottom: 16px; }

.v-radar-subtitulo {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: #FF2F9D;
}

.v-radar-lista {
  margin: 0;
  padding-left: 18px;
  font-size: 0.75rem;
  color: #D7FF71;
  line-height: 1.6;
}

.v-nube {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.v-nube span { color: #BAFF2E; }

.v-radar-sistema {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px dashed rgba(215, 11, 101, 0.3);
  font-size: 0.68rem;
  color: #FF2F9D;
}

.v-radar-sistema p { margin: 2px 0; }

/* ---------- Pie ---------- */
.v-footer {
  text-align: right;
  font-size: 0.75rem;
  color: #D70B65;
  margin-top: 20px;
}

/* ---------- Responsive: apilar columnas en pantallas angostas ---------- */
@media (max-width: 760px) {
  .v-columnas {
    grid-template-columns: 1fr;
  }
  .v-archivo { order: 2; }
  .v-entradas { order: 1; }
  .v-radar {
    order: 3;
    display: none;
  }
  .v-radar.visible-movil { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .hex-grid5, .v-punto, .v-letalidad.confirmada { animation: none; }
}