/* =====================================================================
   Portal de consulta del impuesto vehicular — Prototipo demostrativo
   Hoja de estilos única. Sin dependencias externas.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Paleta institucional */
  --azul-900: #12315A;   /* azul oscuro institucional */
  --azul-700: #1D4E89;   /* azul secundario */
  --azul-800: #17406F;
  --azul-950: #0C2343;
  --azul-100: #DCE6F2;
  --azul-50:  #EEF3F9;
  --blanco:   #FFFFFF;
  --gris-50:  #F3F5F8;   /* fondos */
  --gris-100: #E9EDF2;
  --gris-200: #DAE1E9;
  --gris-300: #C3CDD9;
  --gris-500: #7D8B9D;
  --verde:    #21865B;   /* indicadores de éxito */
  --verde-700:#17704B;
  --verde-50: #E6F3EC;
  --rojo:     #B42318;
  --rojo-50:  #FDEDEB;

  /* Texto */
  --texto:      #1A2638;
  --texto-2:    #4A5A6E;
  --texto-inv:  #FFFFFF;
  --texto-inv-2:#C8D5E6;

  /* Placa vehicular (único material fuera de la paleta: el objeto placa) */
  --placa:            #F4C430;
  --placa-tinta:      #141414;
  --placa-placeholder:#5C4A10;

  /* Forma y profundidad */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(18, 49, 90, .06), 0 2px 8px rgba(18, 49, 90, .06);
  --shadow:    0 2px 4px rgba(18, 49, 90, .05), 0 12px 32px rgba(18, 49, 90, .09);
  --shadow-lg: 0 4px 10px rgba(12, 35, 67, .10), 0 28px 60px rgba(12, 35, 67, .24);

  /* Tipografía */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;

  /* Movimiento */
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Espaciado y layout */
  --gutter: 16px;
  --section-y: clamp(64px, 9vw, 112px);
  --header-h: 76px;
  --overlap: 64px;
  --focus-color: var(--azul-700);
}

@media (min-width: 600px) { :root { --gutter: 24px; --overlap: 88px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --overlap: 104px; } }

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: var(--gris-500) var(--gris-50);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--gris-50);
  caret-color: var(--azul-700);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

::selection { background: var(--placa); color: var(--placa-tinta); }

a {
  color: var(--azul-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
a:hover { color: var(--azul-900); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
}

main:focus { outline: none; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--gris-50); }
::-webkit-scrollbar-thumb {
  background: var(--gris-300);
  border: 3px solid var(--gris-50);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gris-500); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: calc(1180px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--azul-900);
  color: var(--blanco);
  font-weight: 700;
  text-decoration: none;
  transition: top .2s var(--ease-out);
  --focus-color: var(--placa);
}
.skip-link:focus { top: 12px; color: var(--blanco); }

/* ---------- 3. Barra GOV.CO ---------- */
.barra-gov-co {
  background-color: #3366CC;
  min-height: 48px;
  display: flex;
  align-items: center;
  width: 100%;
}
.barra-gov-co a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.img-gov-co {
  height: 35px;
  width: auto;
  display: block;
  margin-top: 3px;
}
.container-fluid {
  width: 100%;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
  margin-right: auto;
  margin-left: auto;
}
.px-md-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-md-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }

/* ---------- 4. Encabezado ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blanco);
  border-bottom: 1px solid var(--gris-200);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 4px rgba(18, 49, 90, .04), 0 8px 24px rgba(18, 49, 90, .08); }

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding-block: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.brand:hover { color: inherit; }
.brand:focus-visible { border-radius: var(--radius-sm); }

.brand__logo {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border: 1.5px dashed var(--gris-500);
  border-radius: 10px;
  background: var(--gris-50);
}
.brand__logo-text {
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--texto-2);
}
.brand__logo.has-logo { border: 0; background: none; }
.brand__logo img { width: 100%; height: 100%; object-fit: contain; }

.brand__text { display: grid; gap: 2px; min-width: 0; }
.brand__name {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--azul-900);
  text-wrap: balance;
}
.brand__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: .875rem;
  line-height: 1.35;
  color: var(--texto-2);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}
.pill--proto {
  border: 1px dashed var(--azul-700);
  background: var(--azul-50);
  color: var(--azul-700);
}

/* Navegación */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--gris-300);
  border-radius: var(--radius-sm);
  background: var(--blanco);
  color: var(--azul-900);
  font-weight: 700;
  font-size: .9375rem;
  flex: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.nav-toggle:hover { background: var(--azul-50); border-color: var(--azul-700); }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

.site-nav__list { list-style: none; }
.site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--texto);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color .15s ease, background-color .15s ease;
}
.site-nav a:hover { color: var(--azul-900); background: var(--gris-50); }
.site-nav a[aria-current="true"] { color: var(--azul-900); }

/* Menú móvil (por defecto) */
.site-nav {
  position: absolute;
  top: 100%;
  left: calc(-1 * var(--gutter));
  right: calc(-1 * var(--gutter));
  display: none;
  background: var(--blanco);
  border-top: 1px solid var(--gris-200);
  border-bottom: 1px solid var(--gris-200);
  box-shadow: 0 16px 32px rgba(18, 49, 90, .12);
}
.site-nav.is-open { display: block; animation: menu-in .22s var(--ease-out); }
.site-nav__list { padding: 8px var(--gutter) 16px; }
.site-nav a { min-height: 52px; padding: 12px 12px; }
.site-nav li + li a { border-top: 1px solid var(--gris-100); border-radius: 0; }
.site-nav a[aria-current="true"]::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--azul-700);
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

@media (min-width: 1120px) {
  .nav-toggle { display: none; }
  .site-nav,
  .site-nav.is-open {
    position: static;
    display: block;
    background: none;
    border: 0;
    box-shadow: none;
    animation: none;
  }
  .site-nav__list { display: flex; gap: 2px; padding: 0; }
  .site-nav a { min-height: 44px; padding: 8px 12px; }
  .site-nav li + li a { border-top: 0; border-radius: var(--radius-sm); }
  .site-nav a[aria-current="true"]::before { display: none; }
  .site-nav a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--azul-700);
    transform: scaleX(0);
    transition: transform .25s var(--ease-out);
  }
  .site-nav a[aria-current="true"]::after { transform: scaleX(1); }
}

/* ---------- 5. Sección principal: Consulta y Pago Impuesto Vehicular Colombia ---------- */
.seccion-pago {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 42px 0 60px;
  border-bottom: 1px solid var(--gris-200);
}

.seccion-pago__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}

.badge-nacional {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 9999px;
  color: #1d4ed8;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.flag-icon {
  font-size: 1rem;
  line-height: 1;
}

.seccion-pago__title {
  color: #0c2343;
  font-size: clamp(1.85rem, 2.8vw, 2.4rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.seccion-pago__desc {
  font-size: 1rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 auto;
}

/* Tarjeta centrada y simplificada */
.portal-card-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.portal-card {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 10px 25px -5px rgba(12, 35, 67, 0.08), 0 8px 10px -6px rgba(12, 35, 67, 0.04);
  padding: 34px 32px 28px;
}

/* Formulario */
.form-pago {
  display: flex;
  flex-direction: column;
}

.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 640px) {
  .portal-card {
    padding: 24px 18px 20px;
  }
  .form-grid-2col {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}

.req {
  color: #dc2626;
  margin-left: 3px;
  font-weight: 700;
}

.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #334155;
  border-bottom: 2px solid #334155;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.form-select,
.form-input {
  width: 100%;
  height: 44px;
  padding: 8px 14px;
  border: 1.5px solid #94a3b8;
  border-radius: 8px;
  font-size: 0.9375rem;
  color: #1e293b;
  background-color: #ffffff;
  font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  cursor: pointer;
}

.form-select:focus,
.form-input:focus {
  border-color: #0b5796;
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 87, 150, 0.18);
}

.form-hint {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 5px;
  font-weight: 400;
}

.form-input--placa {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1rem;
}

.form-input--placa::placeholder {
  color: #94a3b8;
  font-weight: 400;
  letter-spacing: normal;
  font-size: 0.875rem;
}

/* Contenedor Google reCAPTCHA v2 */
.recaptcha-wrapper {
  display: flex;
  justify-content: center;
  margin: 18px 0 16px;
  min-height: 78px;
}

@media (max-width: 400px) {
  .recaptcha-wrapper {
    transform: scale(0.92);
    transform-origin: center;
  }
}

/* Casilla de términos */
.terminos-check-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 20px;
  font-size: 0.8125rem;
  color: #334155;
  line-height: 1.4;
}

.terminos-check-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #0b5796;
}

.terminos-check-wrapper label {
  cursor: pointer;
}

.terminos-check-wrapper a {
  color: #0b5796;
  text-decoration: underline;
  font-weight: 500;
}

/* Botones BUSCAR y LIMPIAR */
.form-actions {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}

.btn-action {
  border-radius: 9999px;
  height: 44px;
  padding: 0 28px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s ease;
  font-family: inherit;
}

.btn-action--buscar {
  background-color: #b31c19;
  color: #ffffff;
  border: 1.5px solid #b31c19;
  flex: 1;
  box-shadow: 0 2px 6px rgba(179, 28, 25, 0.25);
}
.btn-action--buscar:hover {
  background-color: #941311;
  border-color: #941311;
  box-shadow: 0 4px 10px rgba(179, 28, 25, 0.35);
}

.btn-action--limpiar {
  background-color: #ffffff;
  color: #475569;
  border: 1.5px solid #cbd5e1;
  padding: 0 20px;
}
.btn-action--limpiar:hover {
  background-color: #f1f5f9;
  color: #1e293b;
  border-color: #94a3b8;
}

/* Franja de confianza */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.775rem;
  color: #475569;
  font-weight: 500;
}

.trust-icon {
  width: 18px;
  height: 18px;
  color: #0b5796;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .trust-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Botón pagar PSE */
.btn--pagar {
  background-color: #21865b !important;
  color: #ffffff !important;
  border-color: #21865b !important;
  box-shadow: 0 2px 6px rgba(33, 134, 91, 0.25);
}
.btn--pagar:hover {
  background-color: #17704b !important;
  border-color: #17704b !important;
}

@keyframes nudge {
  0%, 100% { transform: none; }
  30% { transform: translateX(-4px); }
  65% { transform: translateX(3px); }
}

/* Errores del campo */
.field-error {
  max-width: 420px;
  margin: 12px auto 0;
  color: var(--rojo);
  font-size: .9375rem;
  line-height: 1.45;
}
.field-error:empty { display: none; }
.field-error__row { display: flex; gap: 8px; align-items: flex-start; }
.field-error__row .icon { width: 18px; height: 18px; margin-top: 2px; }
.field-error__fix {
  display: inline;
  margin-left: 2px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--azul-700);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.field-error__fix:hover { color: var(--azul-900); text-decoration-thickness: 2px; }

/* Botones */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 19px; height: 19px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--azul-700); color: var(--blanco); }
.btn--primary:hover { background: var(--azul-900); color: var(--blanco); }

.btn--secondary {
  background: var(--blanco);
  border-color: var(--gris-300);
  color: var(--azul-900);
}
.btn--secondary:hover { background: var(--azul-50); border-color: var(--azul-700); color: var(--azul-900); }
.btn--secondary[aria-expanded="true"] { background: var(--azul-50); border-color: var(--azul-700); }

.consulta__submit { margin-top: 22px; min-height: 54px; font-size: 1.0625rem; }

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: var(--blanco);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
.is-loading .spinner { display: block; }
.btn.is-loading { cursor: progress; background: var(--azul-800); }
.btn[aria-disabled="true"] { pointer-events: none; }

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

/* Placas de prueba */
.consulta__demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin-top: 18px;
}
.consulta__demo-label { font-size: .875rem; color: var(--texto-2); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; }
.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px dashed var(--gris-500);
  border-radius: 999px;
  background: var(--blanco);
  color: var(--texto);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip span { font-weight: 500; letter-spacing: 0; color: var(--texto-2); }
.chip:hover { border-color: var(--azul-700); background: var(--azul-50); color: var(--azul-900); }
.chip:disabled { opacity: .55; cursor: not-allowed; }

/* Garantías de la consulta */
.garantias {
  display: grid;
  gap: 10px;
  padding: 16px clamp(18px, 4.5vw, 40px) 18px;
  border-top: 1px solid var(--gris-200);
  background: var(--gris-50);
  list-style: none;
  font-size: .875rem;
  line-height: 1.45;
  color: var(--texto-2);
}
.garantias li { display: flex; gap: 10px; align-items: flex-start; }
.garantias .icon { width: 18px; height: 18px; color: var(--azul-700); margin-top: 1px; }

/* ---------- 6. Resultado ---------- */
.resultado-zona {
  padding-top: var(--overlap);
  background: var(--gris-50);
}
.resultado {
  max-width: 780px;
  margin: 32px auto 0;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.resultado__card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gris-200);
  border-radius: var(--radius-lg);
  background: var(--blanco);
  box-shadow: var(--shadow);
}
.resultado__card.is-entering { animation: reveal .5s var(--ease-out) both; }
.resultado__card:focus { outline: none; }
.resultado__card:focus-visible { outline: 3px solid var(--azul-700); outline-offset: 3px; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.resultado__card > *:not(.marca-agua) { position: relative; z-index: 1; }

/* Marca de agua: deja claro que no es un documento oficial */
.marca-agua {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.marca-agua span {
  transform: rotate(-16deg);
  font-size: clamp(3rem, 11vw, 6rem);
  font-weight: 900;
  letter-spacing: .14em;
  white-space: nowrap;
  color: rgba(18, 49, 90, .045);
}

.demo-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px clamp(18px, 4vw, 28px);
  border-bottom: 1px dashed var(--gris-500);
  background: repeating-linear-gradient(-45deg, var(--gris-50) 0 10px, var(--gris-100) 10px 20px);
  color: var(--azul-900);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.45;
}
.demo-banner .icon { width: 19px; height: 19px; margin-top: 1px; color: var(--azul-700); }

.resultado__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  padding: clamp(20px, 4vw, 28px) clamp(18px, 4vw, 28px) 0;
}
.resultado__heading { flex: 1 1 260px; min-width: 0; }
.resultado__title {
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  font-weight: 750;
  line-height: 1.25;
  color: var(--azul-900);
  text-wrap: balance;
}
.resultado__meta { margin-top: 4px; font-size: .9375rem; color: var(--texto-2); }

/* Placa pequeña del resultado */
.placa-mini {
  position: relative;
  flex: none;
  display: grid;
  justify-items: center;
  min-width: 148px;
  padding: 7px 14px 5px;
  border-radius: 9px;
  background: var(--placa);
  color: var(--placa-tinta);
  box-shadow: 0 0 0 1px rgba(20, 20, 20, .18), 0 6px 14px -6px rgba(92, 74, 16, .5);
}
.placa-mini::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid var(--placa-tinta);
  border-radius: 6px;
}
.placa-mini__num {
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .09em;
  font-variant-numeric: tabular-nums;
}
.placa-mini__tipo {
  font-size: .625rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.3;
  padding-bottom: 2px;
}

.estado {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px clamp(18px, 4vw, 28px) 0;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  background: var(--verde-50);
  color: var(--verde-700);
  font-size: .875rem;
  font-weight: 700;
}
.estado .icon { width: 18px; height: 18px; color: var(--verde); }

.datos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  margin: 18px clamp(18px, 4vw, 28px) 0;
  border-top: 1px solid var(--gris-200);
}
.dato { padding: 13px 0; border-bottom: 1px solid var(--gris-200); }
.dato dt { font-size: .875rem; font-weight: 600; color: var(--texto-2); }
.dato dd {
  margin-top: 2px;
  font-size: 1.0625rem;
  font-weight: 650;
  color: var(--texto);
  font-variant-numeric: tabular-nums;
}

.valor {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 20px;
  margin: 20px clamp(18px, 4vw, 28px) 0;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--azul-50);
}
.valor__label { font-weight: 700; color: var(--azul-900); }
.valor__nota { margin-top: 2px; font-size: .875rem; color: var(--texto-2); }
.valor__monto {
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--azul-900);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.valor__monto--pendiente {
  font-size: clamp(1.15rem, 0.95rem + 0.8vw, 1.45rem);
  color: #B42318;
  white-space: normal;
  text-align: right;
  letter-spacing: 0.02em;
  font-weight: 800;
}

.alerta-tributaria {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 20px clamp(18px, 4vw, 28px) 0;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: #FFF9EB;
  border: 1px solid #F5D998;
  color: #7A4D05;
  font-size: .9375rem;
  line-height: 1.5;
}
.alerta-tributaria--excluido {
  background: var(--verde-50);
  border: 1px solid #B8E2CB;
  color: var(--verde-700);
}
.alerta-tributaria--info {
  background: var(--azul-50);
  border: 1px solid var(--azul-100);
  color: var(--azul-900);
}
.alerta-tributaria .icon {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 2px;
}
.alerta-tributaria__body {
  flex: 1;
}
.alerta-tributaria__title {
  display: block;
  font-weight: 750;
  margin-bottom: 4px;
  color: inherit;
}

.estado--alerta {
  background: #FFF9EB;
  color: #B54708;
}
.estado--alerta .icon {
  color: #B54708;
}

.btn--disabled {
  background: var(--gris-200);
  color: var(--texto-2);
  border: 1px solid var(--gris-300);
  cursor: not-allowed;
  opacity: 0.88;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.btn--disabled:hover {
  background: var(--gris-200);
  color: var(--texto-2);
  text-decoration: none;
}

.btn--pagar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #ED1C24;
  color: #ffffff;
  padding: 14px 26px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(237, 28, 36, 0.28);
  transition: all 0.25s ease;
  font-family: inherit;
}
.btn--pagar:hover {
  background-color: #d01920;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(237, 28, 36, 0.38);
  text-decoration: none;
}
.btn--pagar:active {
  background-color: #b01519;
  transform: translateY(0);
}
.btn--pagar .icon {
  width: 18px;
  height: 18px;
  color: #ffffff;
}

.btn--pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #EEF4FC;
  color: #164075;
  border: 1px solid #C5D7EF;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.btn--pdf:hover {
  background-color: #DBE8F8;
  color: #0E2749;
  text-decoration: none;
}
.btn--pdf .icon {
  width: 16px;
  height: 16px;
  color: #1F559B;
}
.aviso-pago {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  font-size: .875rem;
  color: var(--texto-2);
  line-height: 1.45;
  width: 100%;
}
.aviso-pago .icon {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--azul-700);
  margin-top: 2px;
}

.detalle {
  margin: 20px clamp(18px, 4vw, 28px) 0;
  border: 1px solid var(--gris-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blanco);
}
.detalle:not([hidden]) { animation: reveal .35s var(--ease-out) both; }
.detalle__table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.detalle__table caption {
  padding: 14px 16px 10px;
  text-align: left;
  font-weight: 700;
  color: var(--azul-900);
}
.detalle__table th,
.detalle__table td { padding: 11px 16px; border-top: 1px solid var(--gris-200); text-align: left; vertical-align: top; }
.detalle__table th { font-weight: 600; color: var(--texto-2); width: 55%; }
.detalle__table td { font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.detalle__table tr.is-total th,
.detalle__table tr.is-total td { background: var(--gris-50); color: var(--azul-900); font-weight: 750; }
.detalle__nota {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--gris-200);
  font-size: .875rem;
  color: var(--texto-2);
}

.siguiente {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px clamp(18px, 4vw, 28px) 0;
  font-size: .9375rem;
  color: var(--texto-2);
}
.siguiente .icon { width: 22px; height: 22px; color: var(--azul-700); }
.siguiente strong { color: var(--texto); }

.resultado__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding: 18px clamp(18px, 4vw, 28px) clamp(20px, 4vw, 26px);
  border-top: 1px solid var(--gris-200);
}

/* Estado: sin resultado / error */
.vacio { padding: clamp(24px, 5vw, 36px) clamp(18px, 4vw, 28px) 0; }
.vacio__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--azul-50);
  color: var(--azul-700);
}
.vacio__icon .icon { width: 24px; height: 24px; }
.vacio.is-error .vacio__icon { background: var(--rojo-50); color: var(--rojo); }
.vacio__title { margin-top: 16px; }
.vacio__text { margin-top: 8px; max-width: 62ch; color: var(--texto-2); }
.vacio__list { margin-top: 14px; display: grid; gap: 8px; list-style: none; color: var(--texto-2); max-width: 62ch; }
.vacio__list li { display: flex; gap: 10px; }
.vacio__list .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--azul-700); }

.print-only { display: none; }

/* ---------- 7. Secciones ---------- */
.section { padding-block: var(--section-y); background: var(--blanco); }
.section--gray { background: var(--gris-50); }

.section__head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__title {
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--azul-900);
  text-wrap: balance;
}
.section__lead {
  max-width: 60ch;
  margin-top: 12px;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--texto-2);
}

/* ¿Cómo funciona? */
.pasos {
  --gap: clamp(24px, 4vw, 48px);
  --art-w: 120px;
  --art-h: 88px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  list-style: none;
}
/* Trazo punteado que une los pasos */
.pasos::before {
  content: "";
  position: absolute;
  top: calc(var(--art-h) / 2);
  left: var(--art-w);
  right: calc((100% - 2 * var(--gap)) / 3);
  border-top: 2px dashed var(--gris-300);
}

.paso { position: relative; }
.paso__art {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--art-w);
  height: var(--art-h);
  border: 1px solid var(--gris-200);
  border-radius: 14px;
  background: var(--blanco);
  box-shadow: var(--shadow-sm);
}
.paso__svg { width: 100px; height: 68px; overflow: visible; }
.paso__num {
  position: absolute;
  top: -11px;
  left: -11px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--azul-900);
  color: var(--blanco);
  font-size: .875rem;
  font-weight: 800;
  box-shadow: 0 0 0 4px var(--gris-50);
}
.paso__title {
  margin-top: 22px;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--azul-900);
  text-wrap: balance;
}
.paso p { margin-top: 8px; max-width: 36ch; color: var(--texto-2); }

/* Ilustraciones de los pasos */
.ill-plate { fill: var(--placa); stroke: rgba(20, 20, 20, .25); stroke-width: 1; }
.ill-plate-rim { fill: none; stroke: var(--placa-tinta); stroke-width: 2.25; }
.ill-text { font: 800 14px/1 var(--font); letter-spacing: 1.2px; fill: var(--placa-tinta); }
.ill-text-sm { font: 800 6px/1 var(--font); letter-spacing: 1.6px; fill: var(--placa-tinta); }
.ill-caret { stroke: var(--azul-700); stroke-width: 2; stroke-linecap: round; animation: blink 1.1s steps(1) infinite; }
.ill-paper { fill: var(--azul-50); stroke: var(--azul-700); stroke-width: 1.75; }
.ill-line { fill: none; stroke: var(--azul-700); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ill-line--bold { stroke: var(--azul-900); stroke-width: 2.5; }
.ill-lens { fill: var(--blanco); stroke: var(--azul-900); stroke-width: 2.5; }
.ill-ok { fill: none; stroke: var(--verde); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ill-fill { fill: var(--azul-700); }
.ill-dot { fill: var(--placa); stroke: var(--azul-900); stroke-width: 1.5; }

@keyframes blink { 50% { opacity: 0; } }

/* Información importante */
.info {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.info__list { margin-top: clamp(28px, 4vw, 40px); }
.info__item { padding: 20px 0; border-top: 1px solid var(--gris-200); }
.info__item:last-child { border-bottom: 1px solid var(--gris-200); }
.info__item dt {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--azul-900);
}
.info__item dt .icon { width: 22px; height: 22px; color: var(--azul-700); }
.info__item dd { margin: 8px 0 0 34px; max-width: 62ch; color: var(--texto-2); }

.verifica {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--azul-900);
  color: var(--texto-inv-2);
  box-shadow: var(--shadow);
  --focus-color: var(--blanco);
}
.verifica__title { font-size: 1.25rem; font-weight: 750; line-height: 1.3; color: var(--texto-inv); }
.checklist { display: grid; gap: 16px; margin-top: 20px; list-style: none; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.checklist .icon {
  width: 24px;
  height: 24px;
  padding: 4px;
  margin-top: 0;
  border-radius: 50%;
  background: var(--azul-700);
  color: var(--blanco);
  stroke-width: 2.25;
}
.checklist strong { color: var(--texto-inv); }

/* Preguntas frecuentes */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.faq__more { margin-top: 20px; color: var(--texto-2); }
.faq__list { border-top: 1px solid var(--gris-300); }
.faq__item { border-bottom: 1px solid var(--gris-300); }
.faq__heading { font-size: inherit; }
.faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 64px;
  padding: 18px 4px;
  border: 0;
  background: none;
  color: var(--azul-900);
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  transition: color .15s ease;
}
.faq__trigger:hover { color: var(--azul-700); }
.faq__trigger:focus-visible { outline-offset: -3px; border-radius: var(--radius-sm); }
.faq__chevron {
  width: 30px;
  height: 30px;
  padding: 5px;
  border-radius: 50%;
  background: var(--blanco);
  border: 1px solid var(--gris-200);
  color: var(--azul-700);
  transition: transform .3s var(--ease-out), background-color .15s ease;
}
.faq__trigger[aria-expanded="true"] .faq__chevron { transform: rotate(180deg); background: var(--azul-50); }

.faq__panel-inner { overflow: hidden; }
.faq__panel p { max-width: 68ch; padding: 0 44px 22px 4px; color: var(--texto-2); }

/* Con JavaScript, los paneles se pliegan con transición de altura */
.js .faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .32s var(--ease-out), visibility 0s linear .32s;
}
.js .faq__panel.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .32s var(--ease-out), visibility 0s;
}

/* Contacto y soporte */
.canales {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 5vw, 64px);
  list-style: none;
  border-top: 1px solid var(--gris-200);
}
.canal {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--gris-200);
}
.canal__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--azul-50);
  color: var(--azul-700);
}
.canal__icon .icon { width: 22px; height: 22px; }
.canal__label { font-weight: 700; color: var(--azul-900); line-height: 1.35; }
.canal__value { min-width: 0; overflow-wrap: anywhere; }
.canal__value a { font-weight: 600; }

.pendiente {
  display: inline-flex;
  align-items: center;
  padding: 1px 9px;
  border: 1px dashed var(--gris-500);
  border-radius: 6px;
  background: var(--gris-50);
  color: var(--texto-2);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.6;
}

.canales__nota {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 72ch;
  margin-top: 24px;
  font-size: .9375rem;
  color: var(--texto-2);
}
.canales__nota .icon { width: 19px; height: 19px; margin-top: 2px; color: var(--azul-700); }

/* ---------- 8. Pie de página ---------- */
.site-footer {
  background: var(--azul-900);
  color: var(--texto-inv-2);
  font-size: .9375rem;
  --focus-color: var(--blanco);
}
.site-footer ::selection { background: var(--placa); color: var(--placa-tinta); }
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-block: clamp(48px, 7vw, 72px);
}
.brand__logo--footer { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); }
.brand__logo--footer.has-logo { border: 0; background: none; }
.brand__logo--footer .brand__logo-text { color: var(--texto-inv-2); }
.site-footer__name { margin-top: 16px; font-size: 1.125rem; font-weight: 700; color: var(--texto-inv); }
.site-footer__desc { margin-top: 6px; max-width: 42ch; }
.site-footer__title { font-size: 1rem; font-weight: 700; color: var(--texto-inv); margin-bottom: 12px; }
.site-footer__links { display: grid; gap: 4px; list-style: none; }
.site-footer__links li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.site-footer a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  color: var(--texto-inv-2);
  text-decoration-color: rgba(200, 213, 230, .45);
}
.site-footer a:hover { color: var(--texto-inv); text-decoration-color: currentColor; }
.tag-pendiente {
  padding: 0 7px;
  border: 1px dashed rgba(200, 213, 230, .55);
  border-radius: 5px;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--texto-inv-2);
}

.site-footer__bottom { background: var(--azul-950); }
.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 18px;
  font-size: .875rem;
}
.site-footer__aviso { display: flex; gap: 8px; align-items: flex-start; }
.site-footer__aviso .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--placa); }

/* ---------- 9. Responsive ---------- */
@media (max-width: 960px) {
  .info,
  .faq { grid-template-columns: minmax(0, 1fr); }
  .verifica { position: static; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .pasos {
    --art-w: 96px;
    --art-h: 72px;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .pasos::before {
    top: var(--art-h);
    bottom: calc(var(--art-h) + 40px);
    left: calc(var(--art-w) / 2);
    right: auto;
    border-top: 0;
    border-left: 2px dashed var(--gris-300);
  }
  .paso {
    display: grid;
    grid-template-columns: var(--art-w) minmax(0, 1fr);
    column-gap: 20px;
    align-items: start;
  }
  .paso__art { grid-row: span 2; }
  .paso__svg { width: 80px; height: 54px; }
  .paso__title { margin-top: 0; }
  .canales { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  :root { --header-h: 68px; }
  .brand { gap: 10px; }
  .brand__logo { width: 42px; height: 42px; border-radius: 8px; }
  .brand__logo--footer { width: 52px; height: 52px; }
  .brand__name { font-size: .9375rem; }
  .brand__sub { font-size: .8125rem; }
  .brand__sub .pill { display: none; }
  .nav-toggle { padding: 0 11px; }
  .nav-toggle__label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .datos { grid-template-columns: minmax(0, 1fr); }
  .resultado__acciones .btn { width: 100%; }
  .valor { padding: 16px 18px; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .faq__panel p { padding-right: 4px; }
}

@media (max-width: 380px) {
  .placa__plate { padding-inline: 12px; }
  .placa__strip { letter-spacing: .08em; }
  .chip { padding-inline: 10px; }
}

/* ---------- 10. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .spinner { animation: spin 1.6s linear infinite !important; }
  .ill-caret { animation: none !important; }
}

/* ---------- 11. Impresión ---------- */
@media print {
  @page { margin: 14mm; }

  html, body { background: #FFFFFF !important; }
  body { color: #000; font-size: 11pt; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; box-shadow: none !important; }

  .skip-link,
  .nav-toggle,
  .site-nav,
  .consulta__demo,
  .resultado__acciones { display: none !important; }

  .site-header { position: static; }
  .js .faq__panel { grid-template-rows: 1fr; visibility: visible; }

  /* Impresión solo de la consulta de demostración */
  .print-result body > *:not(main),
  .print-result main > *:not(.resultado-zona) { display: none !important; }
  .print-result .resultado-zona { padding: 0; background: none; }
  .print-result .container { max-width: none; padding: 0; }
  .print-result .resultado { max-width: none; margin: 0; }
  .print-result .resultado__card { border: 1px solid #8A96A6; border-radius: 10px; animation: none; }
  .print-result .detalle[hidden] { display: block !important; }
  .print-result .marca-agua span { color: rgba(0, 0, 0, .06); }

  .print-only { display: block; }
  .print-header {
    padding: 16px 28px 12px;
    border-bottom: 2px solid #12315A;
  }
  .print-header__entidad { font-weight: 700; font-size: 12pt; color: #12315A; }
  .print-header__titulo { font-size: 10pt; color: #333; }
  .print-footer {
    margin: 0 clamp(18px, 4vw, 28px);
    padding: 14px 0 20px;
    font-size: 9pt;
    color: #333;
  }
}

/* =====================================================================
   Modal de Seguridad Institucional (Compacto y Responsive)
   ===================================================================== */
.modal-seguridad-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.modal-seguridad-overlay.is-closing {
  opacity: 0;
  pointer-events: none;
}

.modal-seguridad-card {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  max-height: min(88vh, 580px);
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  animation: modalSeguridadPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSeguridadPop {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-seguridad-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.modal-seguridad-emblema {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-seguridad-emblema img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.modal-seguridad-encabezado {
  min-width: 0;
}

.modal-tag-gov {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #1d4e89;
  letter-spacing: 0.2px;
  margin-bottom: 2px;
}

.modal-seguridad-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.modal-seguridad-body {
  padding: 16px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.5;
}

.modal-aviso-destacado {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #12315a;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.modal-ico-alerta {
  width: 20px;
  height: 20px;
  color: #12315a;
  flex-shrink: 0;
  margin-top: 1px;
}

.modal-aviso-destacado p {
  margin: 0;
  font-size: 13px;
  color: #1e293b;
  line-height: 1.45;
}

.modal-puntos-claves {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-puntos-claves li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.4;
}

.modal-ico-check {
  width: 17px;
  height: 17px;
  color: #16a34a;
  flex-shrink: 0;
  margin-top: 2px;
}

.modal-puntos-claves strong {
  color: #0f172a;
}

.modal-seguridad-footer {
  padding: 12px 20px 16px;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
  flex-shrink: 0;
}

.btn-seguridad-continuar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #12315a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-seguridad-continuar:hover {
  background: #1d4e89;
}

.btn-seguridad-continuar:active {
  transform: scale(0.99);
}

.btn-seguridad-continuar svg {
  width: 17px;
  height: 17px;
}

/* Selector Departamental Secretaría de Pago */
.form-group--secretaria .form-select--secretaria {
  background-color: #f8fafc;
  border: 1.5px solid #cbd5e1;
  font-weight: 600;
  color: #0c2343;
}

.form-group--secretaria .form-select--secretaria:focus {
  border-color: #1d4e89;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(29, 78, 137, 0.15);
}

@media (max-width: 480px) {
  .modal-seguridad-overlay {
    padding: 12px;
  }
  .modal-seguridad-card {
    max-height: calc(100dvh - 24px);
    border-radius: 12px;
  }
  .modal-seguridad-top {
    padding: 14px 16px 12px;
  }
  .modal-seguridad-title {
    font-size: 1.05rem;
  }
  .modal-seguridad-body {
    padding: 12px 16px;
  }
  .modal-seguridad-footer {
    padding: 10px 16px 14px;
  }
  .btn-seguridad-continuar {
    font-size: 13.5px;
    padding: 11px 14px;
  }
}



