/*
 * CIMA — Portal público de verificación de documentos (verify.appcima.com)
 * Página visual aislada: SOLO autenticidad + metadatos. Nunca renderiza el
 * documento. Oscuro fijo (igual que el portal original dentro de la SPA).
 * © 2024–2026 CIMA Development Group. Todos los derechos reservados.
 */
:root { color-scheme: dark; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
/* Sin gestos del navegador: ni pinch-zoom, ni swipe atrás/adelante, ni callout iOS. */
html, body { overscroll-behavior: none; touch-action: pan-x pan-y; -webkit-touch-callout: none; }
[hidden] { display: none !important; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #0b0e14;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

.vf-bg {
  position: fixed; inset: 0;
  background: url('https://images.unsplash.com/photo-1505751172876-fa1923c5c528?auto=format&fit=crop&w=1600&q=70') center/cover no-repeat;
  opacity: .22;
}
.vf-shade { position: fixed; inset: 0; background: rgba(8, 11, 18, .72); }

.vf-stage {
  position: relative; min-height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}

.vf-card {
  width: 100%; max-width: 440px;
  background: rgba(20, 24, 34, .62);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  padding: 32px 28px 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  text-align: center;
}

/* Logo de CIMA — SIEMPRE el logo, nunca la palabra en letras. Blanco sobre oscuro. */
.vf-logo { height: 16px; vertical-align: -3px; filter: brightness(0) invert(1); opacity: .92; }
.vf-logo-inline { height: 13px; vertical-align: -2px; filter: brightness(0) invert(1); opacity: .9; }

.vf-badge {
  width: 96px; height: 96px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.vf-badge.ok   { background: linear-gradient(145deg, #16a34a, #22c55e); box-shadow: 0 0 38px 6px rgba(34, 197, 94, .35); }
.vf-badge.bad  { background: linear-gradient(145deg, #b91c1c, #ef4444); box-shadow: 0 0 38px 6px rgba(239, 68, 68, .35); }
.vf-badge.hold { background: linear-gradient(145deg, #b45309, #f59e0b); box-shadow: 0 0 38px 6px rgba(245, 158, 11, .32); }
.vf-badge.entry { width: 84px; height: 84px; background: linear-gradient(145deg, #1d4ed8, #3b82f6); box-shadow: 0 0 34px 4px rgba(59, 130, 246, .35); margin-bottom: 16px; }

.vf-h1 { font-size: 1.5rem; font-weight: 700; }
.vf-sub { margin: 6px 0 22px; color: rgba(255, 255, 255, .65); font-size: .92rem; }

.vf-rows { text-align: left; }
.vf-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: .9rem;
}
.vf-row:last-child { border-bottom: none; }
.vf-k { color: rgba(255, 255, 255, .55); flex: 0 0 auto; }
.vf-v { font-weight: 700; text-align: right; min-width: 0; overflow-wrap: anywhere; }

.vf-brand {
  margin-top: 22px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  color: rgba(255, 255, 255, .55); font-size: .74rem; letter-spacing: .04em;
}
.vf-sep { opacity: .5; }
.vf-openlink { color: #60a5fa; text-decoration: none; font-weight: 600; }
.vf-openlink:hover { text-decoration: underline; }

/* Desbloqueo "Ver Documento" — sin pistas: solo el campo y su ojito. */
.vf-unlock { margin-top: 14px; text-align: left; }
.vf-pw { position: relative; }
.vf-pw .vf-input, .vf-pw input {
  width: 100%; padding: 12px 42px 12px 14px; box-sizing: border-box;
  border-radius: 11px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07); color: #fff;
  font-size: .98rem; outline: none;
}
.vf-pw input:focus { border-color: rgba(59, 130, 246, .6); }
.vf-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: none; border-radius: 8px;
  background: transparent; color: rgba(255, 255, 255, .6); cursor: pointer;
}
.vf-eye:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.vf-unlock-msg { margin: 10px 2px 0; font-size: .8rem; color: #fca5a5; min-height: 1em; }
/* Botón glass, acorde a CIMA (nada de gradiente azul aquí). */
.vf-btn-glass {
  width: 100%; margin-top: 10px; padding: 12px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: background .15s ease;
}
.vf-btn-glass:hover { background: rgba(255, 255, 255, .14); }
.vf-btn-glass:active { transform: translateY(1px); }
.vf-btn-glass[disabled] { opacity: .55; cursor: default; }

.vf-input {
  width: 100%; padding: 13px 14px;
  border-radius: 11px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07); color: #fff;
  font-size: 1.05rem; letter-spacing: .08em; text-align: center; text-transform: uppercase;
  outline: none;
}
.vf-input:focus { border-color: rgba(59, 130, 246, .6); }
.vf-btn {
  width: 100%; margin-top: 12px; padding: 13px;
  border: none; border-radius: 11px;
  background: linear-gradient(145deg, #1d4ed8, #3b82f6);
  color: #fff; font-size: 1rem; font-weight: 700; cursor: pointer;
}
.vf-btn:active { transform: translateY(1px); }

.vf-spin { display: inline-block; width: 30px; height: 30px; border: 3px solid rgba(255,255,255,.2); border-top-color: #3b82f6; border-radius: 50%; animation: vfspin 1s linear infinite; }
@keyframes vfspin { to { transform: rotate(360deg); } }

@media (max-width: 430px) {
  .vf-card { padding: 26px 20px 22px; }
  .vf-row { font-size: .84rem; }
}
