* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #0f1e3d;
  background: linear-gradient(135deg, #0a1f5c 0%, #1546b3 50%, #3f8efc 100%);
  background-attachment: fixed;
}

.tarjeta {
  width: 100%;
  max-width: 440px;
  padding: 32px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.pasos { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.pasos li {
  flex: 1; text-align: center; font-size: 12px; padding-top: 8px;
  border-top: 4px solid #d5dcea; color: #7a869e;
}
.pasos li.activo, .pasos li.hecho { border-color: #1546b3; color: #1546b3; font-weight: 600; }

h1 { margin: 0 0 4px; font-size: 22px; }
.ayuda { margin: 0 0 20px; color: #55607a; font-size: 14px; }

label { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 600; }
input, select {
  width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; font-weight: 400;
  border: 1px solid #c3cbdc; border-radius: 8px; background: #fff;
}
input:focus, select:focus { outline: 2px solid #3f8efc; border-color: transparent; }

.fila { display: flex; gap: 12px; }
.fila label:first-child { flex: 1; }
.fila .corto { width: 100px; }

button {
  width: 100%; padding: 12px; font: inherit; font-weight: 600; color: #fff; cursor: pointer;
  border: 0; border-radius: 8px; background: linear-gradient(90deg, #1546b3, #3f8efc);
}
button:disabled { opacity: 0.6; cursor: wait; }
button.secundario { background: #e8edf7; color: #1546b3; }
.acciones { display: flex; gap: 12px; }

.error { min-height: 1.2em; margin: 16px 0 0; color: #c62828; font-size: 14px; }
.oculto { display: none !important; }

.modal {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(5, 15, 45, 0.55); animation: aparecer 0.2s ease-out;
}
.ventana {
  width: 100%; max-width: 360px; padding: 32px; text-align: center;
  border-radius: 16px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.ventana h2 { margin: 0 0 8px; font-size: 28px; color: #1546b3; }
.ventana p { margin: 0 0 24px; color: #55607a; }

@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
