:root {
  --azul: #1A67A0;
  --azul-osc: #0C447C;
  --azul-claro: #E8F1F9;
  --verde: #1F8A4C;
  --verde-claro: #E6F4EC;
  --rojo: #B3261E;
  --ambar-claro: #FFF4DC;
  --texto: #1B2733;
  --texto-2: #4A5866;
  --borde: #D5DEE7;
  --fondo: #F4F7FA;
  --radio: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 16px/1.5 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; }
a { color: var(--azul); }

.barra { background: var(--azul); height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.barra__logo img { height: 34px; display: block; filter: brightness(0) invert(1); }
.barra__quien { color: #fff; font-weight: 600; font-size: 15px; }

.app { max-width: 520px; margin: 0 auto; padding: 20px 16px 48px; }
.cargando { text-align: center; color: var(--texto-2); padding: 60px 0; }

.titulo { font-family: Montserrat, sans-serif; font-weight: 800; color: var(--azul-osc); font-size: 26px; line-height: 1.2; margin: 8px 0 6px; }
.bajada { color: var(--texto-2); margin: 0 0 18px; }
.pie { text-align: center; color: var(--texto-2); font-size: 14px; margin-top: 18px; }
.legal { font-size: 12px; color: var(--texto-2); margin: 12px 0 0; text-align: center; }

.tarjeta { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 18px 16px; margin: 0 0 14px; }
fieldset.tarjeta { min-width: 0; }
legend { font-family: Montserrat, sans-serif; font-weight: 700; color: var(--azul-osc); font-size: 15px; padding: 0 6px; margin-left: -6px; }

.campo { display: block; margin: 0 0 14px; }
.campo:last-child { margin-bottom: 0; }
.campo__etiqueta { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.campo__ayuda { display: block; font-size: 13px; color: var(--texto-2); margin-top: 5px; }
input, select { width: 100%; height: 48px; border: 1px solid var(--borde); border-radius: 10px; background: #fff; color: var(--texto);
  font: inherit; font-size: 16px; padding: 0 12px; appearance: none; -webkit-appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--texto-2) 50%), linear-gradient(135deg, var(--texto-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
select:invalid { color: #8995a1; }
input:focus, select:focus { outline: 3px solid rgba(26, 103, 160, .25); border-color: var(--azul); }
input[type=radio] { width: 20px; height: 20px; margin: 0; appearance: auto; -webkit-appearance: radio; accent-color: var(--azul); }

.opciones { display: flex; gap: 10px; }
.opcion { flex: 1; display: flex; align-items: center; gap: 8px; border: 1px solid var(--borde); border-radius: 10px; padding: 0 12px; height: 48px; cursor: pointer; }
.opcion:has(input:checked) { border-color: var(--azul); background: var(--azul-claro); }

.boton { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; border: 0; border-radius: 10px;
  background: var(--azul); color: #fff; font: 700 17px Montserrat, sans-serif; text-decoration: none; cursor: pointer; margin: 12px 0 0; padding: 0 16px; }
.boton:hover { background: var(--azul-osc); }
.boton:disabled { background: #A9BCCD; cursor: not-allowed; }
.boton--sec { background: #fff; color: var(--azul); border: 1.5px solid var(--azul); }
.boton--sec:hover { background: var(--azul-claro); }
.boton--wa { background: #fff; color: #128C4B; border: 1.5px solid #25D366; }
.boton--wa:hover { background: #EFFBF3; }
.boton--wa::before { content: ''; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.2-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.8 11.9 11.9 0 0 0 4.6 4c1.7.7 2.4.8 3.2.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.2-.2-.5-.3z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.2-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.8 11.9 11.9 0 0 0 4.6 4c1.7.7 2.4.8 3.2.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.2-.2-.5-.3z'/%3E%3C/svg%3E") center/contain no-repeat; }
.link { background: none; border: 0; color: var(--azul); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 4px; text-decoration: underline; }

.error { color: var(--rojo); font-size: 14px; font-weight: 500; margin: 8px 0 0; }
.error:empty { display: none; }
.aviso { border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; background: var(--azul-claro); color: var(--azul-osc); font-size: 15px; }
.aviso--ok { background: var(--verde-claro); color: #145C33; }
.aviso--alerta { background: var(--ambar-claro); color: #6B4A00; }

.pasos { list-style: none; display: flex; gap: 4px; padding: 0; margin: 0 0 18px; }
.pasos__item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: #8995a1; text-align: center; }
.pasos__item::before { content: ''; display: block; width: 100%; height: 4px; border-radius: 2px; background: var(--borde); order: -1; }
.pasos__num { display: none; }
.pasos__item.hecho::before { background: var(--azul); }
.pasos__item.actual { color: var(--azul-osc); font-weight: 600; }
.pasos__item.actual::before { background: var(--azul); }

.google { display: flex; flex-direction: column; align-items: center; margin: 4px 0 6px; }
.separador { width: 100%; display: flex; align-items: center; gap: 10px; color: var(--texto-2); font-size: 13px; margin: 14px 0 10px; }
.separador::before, .separador::after { content: ''; flex: 1; height: 1px; background: var(--borde); }

.resumen { font-size: 14px; color: var(--texto-2); }
.resumen__fila { display: flex; justify-content: space-between; align-items: center; color: var(--texto); font-size: 16px; }

.doc { padding: 14px 0; border-top: 1px solid var(--borde); }
.doc:first-child { border-top: 0; padding-top: 0; }
.doc__titulo { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.doc__check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--borde); display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; color: #fff; flex: none; }
.doc--ok .doc__check { background: var(--verde); border-color: var(--verde); }
.doc__ayuda { font-size: 14px; color: var(--texto-2); margin: 6px 0 0; }
.doc__archivo { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--fondo); border-radius: 8px;
  padding: 6px 6px 6px 12px; margin-top: 8px; font-size: 14px; }
.doc__archivo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc .boton { min-height: 44px; font-size: 15px; }

.estado { text-align: center; padding: 18px 0 6px; }
.estado__icono { width: 64px; height: 64px; border-radius: 50%; background: var(--azul-claro); color: var(--azul); font-size: 30px;
  display: inline-flex; align-items: center; justify-content: center; }

.oferta { background: linear-gradient(160deg, var(--azul) 0%, var(--azul-osc) 100%); color: #fff; border-radius: 16px; padding: 22px 20px; text-align: center; margin: 4px 0 14px; }
.oferta p { margin: 0; }
.oferta__rotulo { opacity: .85; font-size: 15px; }
.oferta__monto { font: 800 40px/1.15 Montserrat, sans-serif; margin: 4px 0 6px !important; }
.oferta__cuotas { font-size: 17px; }
.oferta__entidad { font-size: 13px; opacity: .8; margin-top: 10px !important; }

/* simulador */
.sim__fila { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; color: var(--texto-2); }
.sim__monto { font: 800 30px Montserrat, sans-serif; color: var(--azul-osc); }
.sim__slider { height: 34px; padding: 0; border: 0; background: transparent; margin: 8px 0 0; --lleno: 50%; }
.sim__slider:focus { outline: none; }
.sim__slider::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--azul) var(--lleno), var(--borde) var(--lleno)); }
.sim__slider::-moz-range-track { height: 8px; border-radius: 4px; background: var(--borde); }
.sim__slider::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--azul); }
.sim__slider::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--azul); margin-top: -10px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.sim__slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--azul); }
.sim__slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(26,103,160,.3); }
.sim__extremos { display: flex; justify-content: space-between; font-size: 12px; color: var(--texto-2); }
.sim__rotulo { font-weight: 600; color: var(--texto-2); margin: 16px 0 8px; }
.sim__plazos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.sim__plazo { height: 46px; border: 1px solid var(--borde); border-radius: 10px; background: #fff; font: 700 17px Montserrat, sans-serif; color: var(--texto); cursor: pointer; }
.sim__plazo[aria-pressed=true] { background: var(--azul); border-color: var(--azul); color: #fff; }
.sim__resultado { margin-top: 18px; background: var(--azul-claro); border-radius: 10px; padding: 14px; display: flex; justify-content: space-between; align-items: center; color: var(--azul-osc); }
.sim__resultado strong { font: 800 24px Montserrat, sans-serif; }
.sim__nota { font-size: 13px; color: var(--texto-2); margin: 0 0 4px; }
.resumen__sim { font-size: 14px; color: var(--texto-2); margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--borde); }

/* pie del sitio (igual al de /solicitud) */
.piesitio { background: #EDF0F5; padding: 22px 16px 28px; text-align: center; }
.piesitio__logos { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 0 0 12px; }
.piesitio__logos img { height: auto; }
.piesitio__copy { margin: 0; font: 400 13px/1.6 Montserrat, sans-serif; color: var(--texto-2); }
.piesitio__link { background: none; border: 0; padding: 0; font: inherit; color: #0A0075; text-decoration: underline; cursor: pointer; }
.piesitio__dialogo { max-width: 560px; width: calc(100% - 32px); border: 0; border-radius: var(--radio); padding: 20px 20px 8px; color: var(--texto); font-size: 14px; }
.piesitio__dialogo::backdrop { background: rgba(0, 0, 0, .5); }
.piesitio__dialogo h2 { font: 800 18px Montserrat, sans-serif; color: var(--azul-osc); margin: 0 28px 10px 0; }
.piesitio__cerrar { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 28px; line-height: 1; color: var(--texto-2); cursor: pointer; }
body { min-height: 100vh; display: flex; flex-direction: column; }
.app { flex: 1; width: 100%; box-sizing: border-box; }
.campo__ok { color: #1b7f3b; font-weight: 600; }
