* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  padding: 24px;
}

.card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 18px 18px 18px 18px;
  width: 100%;
  max-width: 640px;
}

h1 {
  margin: 0 0 4px;
  font-size: 24px;
  color: #1a2b4c;
}

.subtitle {
  margin: 0 0 20px;
  color: #667085;
  font-size: 14px;
}

.fila {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
}

.campo {
  flex: 1;
  display: flex;
  flex-direction: column;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: #344054;
  margin-bottom: 6px;
}

input,
select {
  padding: 10px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 14px;
}

input:focus,
select:focus {
  outline: none;
  border-color: #2970ff;
  box-shadow: 0 0 0 3px rgba(41, 112, 255, 0.15);
}

button {
  width: 100%;
  padding: 12px;
  background: #2970ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}

button:hover {
  background: #1b56d6;
}

button:disabled {
  background: #98a2b3;
  cursor: not-allowed;
}

.mensaje {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 14px;
}

.mensaje.oculto {
  display: none;
}

.mensaje.exito {
  background: #ecfdf3;
  color: #027a48;
  border: 1px solid #abefc6;
}

.mensaje.error {
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
}

.mensaje.duplicado {
  background: #fffaeb;
  color: #b54708;
  border: 1px solid #fedf89;
}

@media (max-width: 520px) {
  .fila {
    flex-direction: column;
    gap: 0;
  }
}