:root {
  --azul-uveg: #1554d6;
  --azul-uveg-oscuro: #0e3fb0;
  --azul-cielo: #2f6fed;
  --tinta: #101418;
  --gris-texto: #4b5563;
  --gris-borde: #e2e5ea;
  --fondo: #f6f7fb;
  --verde-ok: #157a4a;
  --rojo-alerta: #b3261e;
  --ambar-alerta: #8a5a00;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.franja {
  background: linear-gradient(135deg, var(--azul-uveg) 0%, var(--azul-uveg-oscuro) 100%);
  color: #fff;
  padding: 36px 24px 56px;
  text-align: center;
}

.franja img.logo {
  height: 100px;
  width: auto;
  max-width: 78%;
  margin-bottom: 20px;
}

.franja h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.9rem;
  margin: 0 0 10px;
  letter-spacing: 0.2px;
}

.franja p {
  max-width: 460px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.98rem;
  line-height: 1.5;
}



.contenedor {
  max-width: 480px;
  margin: -32px auto 60px;
  padding: 0 20px;
}

.tarjeta {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(10, 47, 143, 0.12);
  padding: 32px 26px;
}

.campo {
  margin-bottom: 18px;
}

.campo label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--azul-uveg-oscuro);
  margin-bottom: 6px;
}

.campo input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gris-borde);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.campo input:focus {
  outline: none;
  border-color: var(--azul-cielo);
}

.boton {
  width: 100%;
  background: var(--azul-uveg);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.boton:hover { background: var(--azul-uveg-oscuro); }
.boton:disabled { background: #9aa5c2; cursor: not-allowed; }

.nota-legal {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--gris-texto);
  line-height: 1.5;
  text-align: center;
}

.mensaje {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  display: none;
}

.mensaje.error {
  display: block;
  background: #fdecea;
  color: var(--rojo-alerta);
  border: 1px solid #f5c2bd;
}

.resultado h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  margin: 0 0 20px;
  color: var(--azul-uveg-oscuro);
  text-align: center;
}

.estado-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.estado-pill.vigente { background: #e6f4ec; color: var(--verde-ok); }
.estado-pill.cancelado { background: #fbeae9; color: var(--rojo-alerta); }
.estado-pill.tramite { background: #eaf0fd; color: var(--azul-cielo); }
.estado-pill.desconocido { background: #fdf2e3; color: var(--ambar-alerta); }

.fila {
  padding: 13px 0;
  border-bottom: 1px solid var(--gris-borde);
}

.fila:last-child { border-bottom: none; }

.fila .etiqueta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--azul-cielo);
  margin-bottom: 3px;
}

.fila .valor {
  font-size: 1rem;
  color: var(--tinta);
}

.fila .valor.valor-justificado {
  text-align: justify;
  line-height: 1.5;
}

.pie {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--gris-borde);
  text-align: center;
  font-size: 0.85rem;
  color: var(--gris-texto);
}

.enlace-volver {
  display: inline-block;
  margin-top: 22px;
  color: var(--azul-cielo);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.enlace-volver:hover { text-decoration: underline; }

.spinner {
  width: 26px;
  height: 26px;
  border: 3px solid var(--gris-borde);
  border-top-color: var(--azul-uveg);
  border-radius: 50%;
  margin: 30px auto;
  animation: girar 0.8s linear infinite;
}

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