/* Entrada v2 (docs/diseno/Entrada-v2*.dc.html): tipografías locales, animaciones y diseño oscuro de la entrada y el
   inicio. Hecho a mano (no pasa por Tailwind): SVG + CSS, sin librerías. */

/* --- Tipografías servidas desde el servidor (subconjunto latín, variable; respaldo del sistema) ---------------- */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("../fonts/sora-latin.0d0e5e4d2f9f.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/manrope-latin.938c6e8019b6.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("../fonts/jetbrainsmono-latin.b636a65da4f0.woff2") format("woff2"); }

:root {
  --holo-bg: #05070b;
  --holo-cyan: #5ee6ff;
  --holo-cyan-soft: #b8f3ff;
  --holo-amber: #ffb347;
  --holo-text: #f3f7fb;
  --holo-muted: #8b97a8;
  --holo-dim: #5f6b7b;
  --holo-line: #2a3442;
  --holo-sora: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --holo-manrope: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --holo-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* --- Animaciones (de la maqueta) ----------------------------------------------------------------------------- */
@keyframes otFlujo { from { stroke-dashoffset: 100 } to { stroke-dashoffset: 0 } }
@keyframes otOnda { 0% { transform: scale(1); opacity: .9 } 100% { transform: scale(6); opacity: 0 } }
@keyframes otGiro { from { stroke-dashoffset: 0 } to { stroke-dashoffset: -240 } }
@keyframes otEst { 0%, 100% { opacity: .15 } 50% { opacity: .9 } }
@keyframes otScan { 0% { transform: translateY(0); opacity: 0 } 10% { opacity: 1 } 90% { opacity: 1 } 100% { transform: translateY(560px); opacity: 0 } }
@keyframes otFront { from { stroke-dashoffset: 0 } to { stroke-dashoffset: -80 } }
@keyframes otCursor { 0%, 49% { opacity: 1 } 50%, 100% { opacity: 0 } }
@keyframes otEntra { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: translateY(0) } }
@keyframes otBorde { 0% { background-position: 0% 50% } 100% { background-position: 200% 50% } }
.ot-flujo { animation: otFlujo 5s linear infinite }
.ot-carga { animation: otFlujo 8s cubic-bezier(.45, 0, .55, 1) infinite }
.ot-onda { transform-box: fill-box; transform-origin: center; animation: otOnda 3.6s ease-out infinite }
.ot-anillo { animation: otGiro 20s linear infinite }
.ot-est { animation: otEst 5s ease-in-out infinite }
.ot-scan { animation: otScan 6s ease-in-out infinite }
.ot-front { animation: otFront 4s linear infinite }
.ot-cursor { animation: otCursor 1s steps(1) infinite }
.ot-entra { animation: otEntra 1.2s cubic-bezier(.2, .7, .2, 1) both }
.ot-marco { background: linear-gradient(90deg, rgba(94, 230, 255, 0), rgba(94, 230, 255, .55), rgba(255, 179, 71, .55), rgba(94, 230, 255, 0));
  background-size: 200% 100%; animation: otBorde 6s linear infinite; }
/* Sin animación: «reducir movimiento» del sistema o clase .ot-quieto (botón / pruebas). */
.ot-quieto .ot-flujo, .ot-quieto .ot-carga, .ot-quieto .ot-onda, .ot-quieto .ot-anillo, .ot-quieto .ot-est,
.ot-quieto .ot-scan, .ot-quieto .ot-front, .ot-quieto .ot-marco, .ot-quieto .ot-entra, .ot-quieto .ot-cursor { animation: none }
.ot-quieto .ot-scan { opacity: 0 }
@media (prefers-reduced-motion: reduce) {
  .ot-flujo, .ot-carga, .ot-onda, .ot-anillo, .ot-est, .ot-scan, .ot-front, .ot-marco, .ot-entra, .ot-cursor { animation: none }
  .ot-scan { opacity: 0 }
  .holo-counter { transition: none }
}

/* --- Base oscura --------------------------------------------------------------------------------------------- */
.holo-body { margin: 0; background: var(--holo-bg); color: var(--holo-text); font-family: var(--holo-manrope); }
.holo-body a { color: var(--holo-cyan-soft) }
.holo-body a:hover { color: #fff }
.holo-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block }
.holo-map-wrap { position: absolute; inset: 0; overflow: hidden }
.holo-arc path { cursor: pointer }
.holo-arc:hover path { stroke-width: 3.5 }
.holo-fade-top { position: absolute; left: 0; right: 0; top: 0; height: 160px; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 7, 11, .85), rgba(5, 7, 11, 0)) }
.holo-fade-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 260px; pointer-events: none;
  background: linear-gradient(0deg, rgba(5, 7, 11, .95), rgba(5, 7, 11, 0)) }

.holo-brand-name { font-family: var(--holo-sora); font-weight: 300; font-size: 24px; letter-spacing: 11px; color: var(--holo-text) }
.holo-brand-sub { font-family: var(--holo-mono); font-size: 10px; letter-spacing: 4px; color: var(--holo-cyan); margin-top: 6px }
.holo-clocks { display: flex; gap: 40px; font-family: var(--holo-mono) }
.holo-clocks > div { display: flex; flex-direction: column; gap: 4px }
.holo-clock-label { font-size: 9px; letter-spacing: 3px; color: var(--holo-muted) }
.holo-clock { font-size: 15px; color: var(--holo-text); letter-spacing: 1px; font-variant-numeric: tabular-nums }
.holo-h1 { margin: 0; font-family: var(--holo-sora); font-weight: 600; font-size: 54px; line-height: 1.05; letter-spacing: -1.6px; color: var(--holo-text) }
.holo-h1-light { font-weight: 300; color: var(--holo-cyan-soft) }
.holo-ia { display: flex; align-items: center; gap: 12px; font-family: var(--holo-mono); font-size: 15px; color: var(--holo-cyan-soft); min-height: 28px }
.holo-ia-tag { padding: 4px 8px; border: 1px solid var(--holo-cyan); border-radius: 6px; font-size: 12px; letter-spacing: 2px; color: var(--holo-cyan) }
.holo-cursor { color: var(--holo-cyan) }
.holo-footer { position: absolute; right: 64px; bottom: 40px; font-family: var(--holo-mono); font-size: 10px; letter-spacing: 2px; color: var(--holo-dim) }

/* --- Tarjeta de vidrio ----------------------------------------------------------------------------------------- */
.holo-marco { position: relative; padding: 1px; border-radius: 18px }
.holo-card { border-radius: 17px; background: rgba(9, 13, 20, .82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  padding: 36px; display: flex; flex-direction: column; gap: 24px; color: var(--holo-text) }
.holo-card-head { display: flex; flex-direction: column; gap: 10px }
.holo-secure { display: flex; align-items: center; gap: 8px; font-family: var(--holo-mono); font-size: 11px; letter-spacing: 3px; color: var(--holo-cyan) }
.holo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--holo-cyan); box-shadow: 0 0 10px var(--holo-cyan) }
.holo-card-title { margin: 0; font-family: var(--holo-sora); font-size: 28px; font-weight: 600; letter-spacing: -.5px; color: var(--holo-text) }
.holo-card-sub { margin: 0; font-family: var(--holo-manrope); font-size: 14px; color: var(--holo-muted); line-height: 1.5 }
.holo-form { display: flex; flex-direction: column; gap: 16px }
.holo-field { display: flex; flex-direction: column; gap: 8px }
.holo-label { font-family: var(--holo-mono); font-size: 11px; letter-spacing: 2px; color: var(--holo-muted) }
.holo-card input:not([type=checkbox]):not([type=hidden]), .holo-allauth input:not([type=checkbox]):not([type=hidden]) {
  height: 50px; box-sizing: border-box; width: 100%; padding: 0 16px; border: 1px solid var(--holo-line); border-radius: 10px;
  background: rgba(255, 255, 255, .03); color: var(--holo-text); font-family: var(--holo-manrope); font-size: 15px; }
.holo-card input::placeholder { color: var(--holo-dim) }
.holo-card input:focus { outline: none; border-color: var(--holo-cyan); box-shadow: 0 0 0 3px rgba(94, 230, 255, .18) }
.holo-btn, .holo-allauth button[type=submit] { height: 52px; margin-top: 6px; border: none; border-radius: 10px; background: #e9fbff; color: var(--holo-bg);
  font-family: var(--holo-sora); font-size: 15px; font-weight: 600; letter-spacing: .5px; cursor: pointer; box-shadow: 0 0 28px rgba(94, 230, 255, .35); width: 100% }
.holo-btn:hover, .holo-allauth button:hover { filter: brightness(1.08) }
.holo-error { margin: 0; font-family: var(--holo-manrope); font-size: 13px; color: #ff9c9c }
.holo-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-family: var(--holo-manrope); font-size: 13px; color: var(--holo-muted) }
.holo-2fa { display: flex; align-items: center; gap: 8px }
.holo-help { color: var(--holo-muted) }
.holo-card .mb-4 { margin-bottom: 0 }
/* Pantallas de allauth (2FA, etc.) dentro de la tarjeta */
.holo-allauth { display: flex; flex-direction: column; gap: 14px; font-family: var(--holo-manrope); font-size: 14px }
.holo-allauth h1 { margin: 0; font-family: var(--holo-sora); font-size: 24px; font-weight: 600 }
.holo-allauth p, .holo-allauth label { margin: 0; color: var(--holo-muted) }
.holo-allauth form { display: flex; flex-direction: column; gap: 12px }
.holo-allauth button[type=submit] { margin-top: 0 }
.holo-allauth .errorlist, .holo-allauth ul { margin: 0; padding-left: 18px; color: #ff9c9c }

/* --- Entrada: computadora (≥ 1024 px) y teléfono ------------------------------------------------------------- */
.holo-entrance .holo-stage { position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden }
@media (min-width: 1024px) {
  .holo-entrance .holo-map-phone { display: none }
  .holo-entrance .holo-brand { position: absolute; left: 64px; top: 52px }
  .holo-entrance .holo-clocks { position: absolute; left: 470px; top: 56px; animation-delay: .2s }
  .holo-entrance .holo-headline { position: absolute; left: 64px; bottom: 64px; width: min(720px, 48vw); display: flex; flex-direction: column; gap: 22px; animation-delay: .4s }
  .holo-entrance .holo-card-wrap { position: absolute; right: 64px; top: 150px; width: 420px; animation-delay: .6s }
}
@media (max-width: 1023px) {
  .holo-entrance .holo-stage { display: flex; flex-direction: column }
  .holo-entrance .holo-map-desktop { display: none }
  .holo-entrance .holo-map-phone { position: relative; height: 400px; flex-shrink: 0 }
  .holo-entrance .holo-fade-top { display: none }
  .holo-entrance .holo-fade-bottom { position: absolute; top: 280px; height: 120px; bottom: auto }
  .holo-entrance .holo-brand { position: absolute; left: 22px; top: 26px }
  .holo-entrance .holo-brand-name { font-size: 17px; letter-spacing: 8px }
  .holo-entrance .holo-brand-sub { font-size: 9px }
  .holo-entrance .holo-clocks { position: absolute; right: 16px; top: 26px; gap: 14px }
  .holo-entrance .holo-clocks > div:nth-child(3) { display: none }
  .holo-entrance .holo-clock { font-size: 12px }
  .holo-entrance .holo-headline { position: relative; margin-top: -60px; padding: 0 20px; display: flex; flex-direction: column; gap: 16px }
  .holo-entrance .holo-h1 { font-size: 28px; letter-spacing: -.8px }
  .holo-entrance .holo-ia { font-size: 12px }
  .holo-entrance .holo-ia-tag { font-size: 9px }
  .holo-entrance .holo-card-wrap { position: relative; padding: 16px 20px 24px }
  .holo-entrance .holo-card { padding: 22px; gap: 18px }
  .holo-entrance .holo-footer { position: relative; right: auto; bottom: auto; text-align: center; padding: 0 20px 24px; font-size: 9px }
}

/* --- Inicio con sesión (mismo estilo, dentro del TMS) --------------------------------------------------------- */
.holo-home { background: var(--holo-bg); color: var(--holo-text) }
.holo-home main { max-width: 1440px }
.holo-home-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px }
.holo-home-head h1 { margin: 0; font-family: var(--holo-sora); font-weight: 600; font-size: 28px; letter-spacing: -.6px }
.holo-home-head .holo-brand-sub { margin: 0 0 6px }
.holo-counters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px }
@media (min-width: 768px) { .holo-counters { grid-template-columns: repeat(4, minmax(0, 1fr)) } }
.holo-glass { border-radius: 16px; border: 1px solid rgba(94, 230, 255, .18); background: rgba(9, 13, 20, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 18px; color: var(--holo-text) }
.holo-glass + .holo-glass { margin-top: 14px }
.holo-counters > .holo-glass + .holo-glass { margin-top: 0 } /* las 4 contadoras de la rejilla quedan a la misma altura */
.holo-glass .card-title, .holo-glass h2.card-title { color: var(--holo-cyan); font-family: var(--holo-mono); letter-spacing: 2px; font-size: 11px }
.holo-glass .link { color: var(--holo-cyan-soft) }
.holo-glass .text-slate-500, .holo-glass .text-slate-600 { color: var(--holo-muted) }
.holo-glass .divide-slate-200 > * + * { border-color: rgba(255, 255, 255, .08) }
.holo-glass .border-slate-200 { border-color: rgba(255, 255, 255, .12) }
.holo-glass .btn-secondary { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: var(--holo-text) }
.holo-glass .badge-gray { background: rgba(255, 255, 255, .08); color: var(--holo-muted) }
.holo-glass .badge-amber { background: rgba(255, 179, 71, .18); color: var(--holo-amber) }
.holo-glass .badge-red { background: rgba(255, 90, 90, .18); color: #ff9c9c }
.holo-glass .badge-green { background: rgba(74, 222, 128, .18); color: #4ade80 }
.holo-glass .checkbox { accent-color: var(--holo-cyan) }
.holo-counter-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none }
.holo-counter-note { display: block; margin-top: 2px; font-size: 10px; letter-spacing: .5px; color: var(--holo-muted) }
.holo-counter-label { font-family: var(--holo-mono); font-size: 10px; letter-spacing: 3px; color: var(--holo-muted) }
.holo-counter { font-family: var(--holo-sora); font-size: 34px; font-weight: 600; letter-spacing: -1px; font-variant-numeric: tabular-nums; color: var(--holo-text); transition: color .3s }
.holo-counter.is-money { color: var(--holo-amber); font-size: 28px }
@media (max-width: 767px) { .holo-counter.is-money { font-size: 20px } }
.holo-home-map { position: relative; aspect-ratio: 1000 / 430; max-height: 580px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(94, 230, 255, .18); background: var(--holo-bg) }
@media (max-width: 767px) {
  .holo-home-map { aspect-ratio: 620 / 430; max-height: none }
  /* En teléfono la leyenda va abajo, en una línea, para no tapar el mapa; los rótulos de país quedarían cortados. */
  .holo-home-map .holo-legend { top: auto; bottom: 8px; left: 10px; right: 10px; justify-content: flex-start; gap: 4px 10px; font-size: 8px; letter-spacing: 1px }
  .holo-home-map .holo-map-phone .holo-country { display: none }
}
.holo-home-map .holo-map-phone { display: none }
@media (max-width: 767px) { .holo-home-map .holo-map-desktop { display: none } .holo-home-map .holo-map-phone { display: block } }
.holo-legend { position: absolute; right: 14px; top: 12px; justify-content: flex-end; display: flex; flex-wrap: wrap; gap: 10px 16px; font-family: var(--holo-mono); font-size: 10px; letter-spacing: 2px; color: var(--holo-muted); pointer-events: none }
.holo-legend span::before { content: ""; display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; background: var(--c) }
.holo-map-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--holo-mono); font-size: 12px; letter-spacing: 2px; color: var(--holo-muted); pointer-events: none }
.holo-briefing { white-space: pre-line; font-family: var(--holo-manrope); font-size: 15px; line-height: 1.6 }
.holo-briefing-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px }
.holo-briefing-meta { font-family: var(--holo-mono); font-size: 10px; letter-spacing: 2px; color: var(--holo-muted) }
.holo-btn-small { height: 36px; padding: 0 14px; border: 1px solid rgba(94, 230, 255, .4); border-radius: 8px; background: rgba(94, 230, 255, .08); color: var(--holo-cyan-soft); font-family: var(--holo-sora); font-size: 13px; font-weight: 600; cursor: pointer }
.holo-btn-small:hover { background: rgba(94, 230, 255, .16) }
/* Trabajo pendiente: una sola tabla; las fichas de arriba filtran por lo que falta (los números no se traslapan). */
.holo-pending { margin-bottom: 14px }
.holo-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); color: var(--holo-text); font-size: 13px; cursor: pointer }
.holo-chip span { font-family: var(--holo-mono); font-size: 12px; color: var(--holo-muted) }
.holo-chip:hover { border-color: rgba(94, 230, 255, .5) }
.holo-chip.is-on { border-color: var(--holo-cyan); background: rgba(94, 230, 255, .12) }
.holo-chip.is-on span { color: var(--holo-cyan-soft) }
.holo-pending tbody tr:hover { background: rgba(255, 255, 255, .03) }
.holo-home-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 14px }
@media (min-width: 1024px) { .holo-home-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) } }
