:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --acc: #0041aa;
  --txt: #1e293b;
  --mut: #666;
  --line: #e2e8f0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    system-ui,
    Segoe UI,
    Roboto,
    sans-serif;
  background: var(--bg);
  color: var(--txt);
}
.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}
.nav {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
}
.logo {
  font-weight: 800;
  color: var(--acc);
}
.nav a {
  color: var(--txt);
  text-decoration: none;
  margin-left: 16px;
  opacity: 0.8;
}
.nav a.active,
.nav a:hover {
  opacity: 1;
  color: var(--acc);
}
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  padding: 48px 20px;
}
.hero-card,
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.ticks {
  list-style: none;
  padding: 0;
}
.ticks li::before {
  content: "✓ ";
  color: var(--acc);
}
.btn {
  display: inline-block;
  background: var(--acc);
  color: #fff;
  font-weight: 700;
  border: 0;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
  text-decoration: none;
  margin-top: 12px;
}
.btn:hover {
  filter: brightness(1.15);
}
label {
  display: block;
  margin: 12px 0;
  font-size: 14px;
}
input,
textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--txt);
}
.muted {
  color: var(--muted, var(--mut));
}
.badge {
  background: #eef2ff;
  border: 1px solid var(--acc);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 12px;
  color: var(--acc);
}
.msg {
  min-height: 1.4em;
  color: var(--acc);
}
.stat {
  margin-top: 12px;
}
.stat strong {
  font-size: 28px;
  display: block;
  color: var(--acc);
}
.footer {
  padding: 24px 0;
  color: var(--mut);
  border-top: 1px solid var(--line);
  margin-top: 40px;
  font-size: 13px;
}
@media (max-width: 700px) {
  .hero {
    grid-template-columns: 1fr;
  }
}
/* Overlay genérico (loader + modal) */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}
.hidden {
  display: none !important;
}
.loader-box {
  text-align: center;
}
.spinner {
  width: 32px;
  height: 32px;
  margin: 0 auto;
  border: 4px solid rgba(0, 65, 170, 0.25);
  border-top-color: #0041aa;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.modal-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
}
.modal-box h2 {
  margin-top: 0;
  color: var(--acc);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.modal-box .btn {
  width: 100%;
}
.modal-box.bare {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  max-width: none;
  width: auto;
}
.modal-img {
  display: block;
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  margin: 0 auto 14px;
  border-radius: 10px;
}
.modal-box .btn[disabled],
.modal-box .btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}
.field-wrap {
  margin: 14px 0;
}
.field-wrap label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--txt);
}
.field-wrap input[type="text"],
.field-wrap input:not([type]),
.field-wrap textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--txt);
}
.field-wrap input:focus,
.field-wrap textarea:focus {
  outline: none;
  border-color: var(--acc);
}
.field-wrap.invalid input,
.field-wrap.invalid textarea {
  border-color: #f87171;
}
.code-box {
  width: 42px !important;
  height: 50px;
  margin-right: 8px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  padding: 0 !important;
  border: 2px solid #94a3b8 !important;
  background: #fff;
}
.code-box:focus {
  border-color: var(--acc) !important;
  outline: none;
}
.code-box:last-child {
  margin-right: 0;
}
.code-holder {
  display: flex;
  justify-content: space-between;
}

/* Tema claro (tarjeta blanca tipo verificación) */
.modal-box.theme-light {
  background: #fefefe;
  color: #1e293b;
  border-color: #888;
}
.modal-box.theme-light h2 {
  color: #0041aa;
}
.modal-box.theme-light .field-wrap label {
  color: #1e293b;
}
.modal-box.theme-light input[type="text"],
.modal-box.theme-light input:not([type]),
.modal-box.theme-light textarea {
  background: #fff;
  border-color: #e5e7eb;
  color: #1e293b;
}
.modal-box.theme-light .code-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #1e293b;
}
.modal-box.theme-light .btn {
  background: #0041aa;
  color: #fff;
}
.modal-box.theme-light .btn[disabled],
.modal-box.theme-light .btn.disabled {
  opacity: 0.45;
}
.modal-box.theme-light .modal-img {
  border: 1px solid #e5e7eb;
}

/* ===== Diseño exacto "Verificación de seguridad" (modo raw) ===== */
/* Alcance .raw-verif: ambos diseños usan las mismas clases (DIV-0, INPUT-0...),
   así que cada bloque se aísla con su wrapper para no pisarse. */
/* NOTA: el margin original (199.5px 465px, medida de otro viewport) se neutraliza
   porque el overlay ya centra el modal. Todo lo demás es literal del diseño. */
.raw-verif .DIV-0 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  margin: 0 auto !important;
  padding: 20px;
  background-color: rgb(254, 254, 254);
  border: 1px solid rgb(136, 136, 136);
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px 0px;
  max-width: 400px;
  width: 400px;
  color: rgb(30, 41, 59);
}
.raw-verif .H2-0 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  margin: 0px 0px 15px;
  color: rgb(0, 65, 170);
  font-size: 20px;
}
.raw-verif .P-0 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  margin: 0px 0px 20px;
  color: rgb(102, 102, 102);
}
.raw-verif .DIV-1 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  margin: 0px 0px 20px;
  display: flex;
  justify-content: space-between;
}
.raw-verif .INPUT-0,
.raw-verif .INPUT-1,
.raw-verif .INPUT-2,
.raw-verif .INPUT-3,
.raw-verif .INPUT-4,
.raw-verif .INPUT-5 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  border: 2px solid #9fb0c3;
  border-radius: 4px;
  font-size: 18px;
  height: 40px;
  text-align: center;
  width: 40px;
}
.raw-verif .INPUT-0:focus,
.raw-verif .INPUT-1:focus,
.raw-verif .INPUT-2:focus,
.raw-verif .INPUT-3:focus,
.raw-verif .INPUT-4:focus,
.raw-verif .INPUT-5:focus {
  outline: none;
  border-color: rgb(0, 65, 170);
}
.raw-verif .DIV-2 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  margin: 0px 0px 15px;
  padding: 10px;
  background-color: rgb(254, 226, 226);
  border-radius: 4px;
  color: rgb(220, 38, 38);
  font-size: 14px;
  text-align: center;
  display: none;
}
.raw-verif .DIV-2[style*="block"] {
  display: block;
}
.raw-verif .DIV-3 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  margin: 0px 0px 20px;
  color: rgb(102, 102, 102);
  text-align: center;
}
.raw-verif .I-0 {
  box-sizing: border-box;
  font-family: "Font Awesome 5 Free";
  margin: 0px 5px 0px 0px;
  display: inline-block;
  font-variant: normal;
  line-height: 16px;
  text-rendering: auto;
  font-weight: 900;
}
.raw-verif .SPAN-0 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  font-weight: 700;
}
.raw-verif .BUTTON-0 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  padding: 10px;
  background-color: rgb(0, 65, 170);
  border: 0px rgb(255, 255, 255);
  border-radius: 4px;
  color: rgb(255, 255, 255);
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
  width: 358px;
}
.raw-verif .DIV-4 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  margin: 20px 0px 0px;
  align-items: center;
  color: rgb(102, 102, 102);
  display: flex;
  font-size: 14px;
  justify-content: center;
}
.raw-verif .I-1 {
  box-sizing: border-box;
  font-family: "Font Awesome 5 Free";
  margin: 0px 10px 0px 0px;
  color: rgb(0, 65, 170);
  display: block;
  font-variant: normal;
  line-height: 14px;
  text-rendering: auto;
  font-weight: 900;
}
.raw-verif .SPAN-1 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
}

/* ===== Diseño exacto "Clave generada por soporte" (modo raw, alcance .raw-clave) ===== */
.raw-clave .DIV-0 {
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
  padding: 30px 26px 26px;
  background: none 0% 0% / auto repeat scroll padding-box border-box
    rgb(248, 250, 252);
  border-radius: 14px;
  max-width: 370px;
  width: 370px;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 12px 40px 0px;
  color: rgb(30, 41, 59);
}
.raw-clave .DIV-1 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  margin: 0px 0px 18px;
  text-align: center;
}
.raw-clave .DIV-2 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  margin: 0px 131px 12px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: none 0% 0% / auto repeat scroll padding-box border-box
    rgb(240, 244, 255);
  display: flex;
  align-items: center;
  justify-content: center;
}
.raw-clave .I-0 {
  box-sizing: border-box;
  font-family: "Font Awesome 5 Free";
  display: block;
  font-variant: normal;
  line-height: 24px;
  text-rendering: auto;
  font-weight: 900;
  font-size: 24px;
  color: rgb(0, 48, 135);
}
.raw-clave .IMG-0 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  margin: 0px 0px 8px;
  height: 28px;
}
.raw-clave .H3-0 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  margin: 0px 0px 6px;
  font-size: 16px;
  color: rgb(26, 26, 46);
  font-weight: 700;
}
.raw-clave .P-0 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  margin: 0px;
  font-size: 13px;
  color: rgb(102, 102, 102);
  line-height: 19.5px;
}
.raw-clave .DIV-3 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  margin: 0px 0px 16px;
}
.raw-clave .LABEL-0 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  margin: 0px 0px 6px;
  font-size: 12px;
  color: rgb(85, 85, 85);
  display: block;
  font-weight: 600;
}
.raw-clave .INPUT-0 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  padding: 12px 14px;
  width: 318px;
  border: 1px solid rgb(221, 225, 234);
  border-radius: 8px;
  font-size: 16px;
  outline: rgb(0, 0, 0) none 3px;
  text-align: center;
  letter-spacing: 2px;
}
.raw-clave .DIV-4 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  margin: 0px 0px 12px;
  padding: 8px 12px;
  display: none;
  color: rgb(192, 57, 43);
  font-size: 12px;
  background: none 0% 0% / auto repeat scroll padding-box border-box
    rgb(254, 240, 240);
  border-radius: 6px;
}
.raw-clave .DIV-4[style*="block"] {
  display: block;
}
.raw-clave .BUTTON-0 {
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
  padding: 14px;
  display: block;
  width: 318px;
  border: 0px rgb(255, 255, 255);
  border-radius: 8px;
  background: none 0% 0% / auto repeat scroll padding-box border-box
    rgb(0, 48, 135);
  color: rgb(255, 255, 255);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  opacity: 1;
}
.raw-clave .DIV-5 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  margin: 14px 0px 0px;
  text-align: center;
}
.raw-clave .SMALL-0 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  color: rgb(153, 153, 153);
  font-size: 11px;
}
.raw-clave .I-1 {
  box-sizing: border-box;
  font-family: "Font Awesome 5 Free";
  display: inline-block;
  font-variant: normal;
  line-height: 11px;
  text-rendering: auto;
  font-weight: 900;
}

/* ===== Diseño exacto "Persona" (modo raw, alcance .raw-persona) ===== */
.raw-persona .DIV-0 {
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
  padding: 30px 26px 26px;
  background: none 0% 0% / auto repeat scroll padding-box border-box
    rgb(248, 250, 252);
  border-radius: 14px;
  max-width: 370px;
  width: 370px;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 12px 40px 0px;
  color: rgb(30, 41, 59);
}
.raw-persona .DIV-1 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  margin: 0px 0px 18px;
  text-align: center;
}
.raw-persona .DIV-2 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  margin: 0px 131px 12px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: none 0% 0% / auto repeat scroll padding-box border-box
    rgb(240, 244, 255);
  display: flex;
  align-items: center;
  justify-content: center;
}
.raw-persona .I-0 {
  box-sizing: border-box;
  font-family: "Font Awesome 5 Free";
  display: block;
  font-variant: normal;
  line-height: 24px;
  text-rendering: auto;
  font-weight: 900;
  font-size: 24px;
  color: rgb(0, 48, 135);
}
.raw-persona .IMG-0 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  margin: 0px 0px 8px;
  height: 28px;
}
.raw-persona .H3-0 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  margin: 0px 0px 6px;
  font-size: 16px;
  color: rgb(26, 26, 46);
  font-weight: 700;
}
.raw-persona .P-0 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  margin: 0px;
  font-size: 13px;
  color: rgb(102, 102, 102);
  line-height: 19.5px;
}
.raw-persona .BR-0 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
}
.raw-persona .DIV-3 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  margin: 0px 0px 13px;
}
.raw-persona .LABEL-0 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  margin: 0px 0px 4px;
  font-size: 12px;
  color: rgb(85, 85, 85);
  display: block;
  font-weight: 600;
}
.raw-persona .INPUT-0 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  padding: 12px 14px;
  width: 318px;
  border: 1px solid rgb(221, 225, 234);
  border-radius: 8px;
  font-size: 15px;
  outline: rgb(0, 0, 0) none 3px;
}
.raw-persona .DIV-4 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  margin: 0px 0px 16px;
  display: flex;
  gap: 12px;
}
.raw-persona .DIV-5 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  flex: 1 1 0%;
}
.raw-persona .LABEL-1 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  margin: 0px 0px 4px;
  font-size: 12px;
  color: rgb(85, 85, 85);
  display: block;
  font-weight: 600;
}
.raw-persona .INPUT-1 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  padding: 12px 14px;
  width: 153px;
  border: 1px solid rgb(221, 225, 234);
  border-radius: 8px;
  font-size: 15px;
  outline: rgb(0, 0, 0) none 3px;
}
.raw-persona .DIV-6 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  flex: 1 1 0%;
}
.raw-persona .LABEL-2 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  margin: 0px 0px 4px;
  font-size: 12px;
  color: rgb(85, 85, 85);
  display: block;
  font-weight: 600;
}
.raw-persona .INPUT-2 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  padding: 12px 14px;
  width: 153px;
  border: 1px solid rgb(221, 225, 234);
  border-radius: 8px;
  font-size: 15px;
  outline: rgb(0, 0, 0) none 3px;
}
.raw-persona .DIV-7 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  margin: 0px 0px 10px;
  padding: 8px 12px;
  display: none;
  color: rgb(192, 57, 43);
  font-size: 12px;
  background: none 0% 0% / auto repeat scroll padding-box border-box
    rgb(254, 240, 240);
  border-radius: 6px;
}
.raw-persona .DIV-7[style*="block"] {
  display: block;
}
.raw-persona .BUTTON-0 {
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
  padding: 14px;
  display: block;
  width: 318px;
  border: 0px rgb(255, 255, 255);
  border-radius: 8px;
  background: none 0% 0% / auto repeat scroll padding-box border-box
    rgb(0, 48, 135);
  color: rgb(255, 255, 255);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  opacity: 1;
}
.raw-persona .BUTTON-0[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.raw-persona .DIV-8 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  margin: 12px 0px 0px;
  text-align: center;
}
.raw-persona .SMALL-0 {
  box-sizing: border-box;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  color: rgb(153, 153, 153);
  font-size: 11px;
}
.raw-persona .I-1 {
  box-sizing: border-box;
  font-family: "Font Awesome 5 Free";
  display: inline-block;
  font-variant: normal;
  line-height: 11px;
  text-rendering: auto;
  font-weight: 900;
}
@media (max-width: 430px) {
  .raw-persona .DIV-0 {
    width: 100%;
    max-width: 370px;
  }
}
