body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #eef2f7;
  color: #222;
}

.contenedor,
.page-shell {
  width: 92%;
  max-width: 950px;
  margin: 30px auto;
}

.caja,
.panel {
  background: white;
  padding: 25px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.10);
}

h1 {
  margin-top: 0;
}

.texto,
.panel-header p,
p {
  color: #606a78;
}

.fila,
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  margin-bottom: 16px;
  font-weight: bold;
}

input {
  width: 100%;
  padding: 11px;
  margin-top: 6px;
  border: 1px solid #cfd6df;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

input:focus {
  outline: none;
  border-color: #1b7280;
}

.correcto {
  border-color: #16803c;
  background: #f3fff7;
}

.incorrecto {
  border-color: #c0392b;
  background: #fff7f6;
}

small {
  display: block;
  min-height: 18px;
  margin-top: 5px;
  font-weight: normal;
}

.ok {
  color: #16803c;
}

.ok::before {
  content: "i";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 5px;
  text-align: center;
  border-radius: 50%;
  color: white;
  background: #16803c;
  font-size: 12px;
  font-weight: bold;
}

.error {
  color: #c0392b;
}

.error::before {
  content: "!";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 5px;
  text-align: center;
  border-radius: 50%;
  color: white;
  background: #c0392b;
  font-size: 12px;
}

.barra {
  height: 7px;
  margin-top: 7px;
  background: #dfe5ec;
  border-radius: 10px;
  overflow: hidden;
}

.barra div {
  width: 0;
  height: 100%;
}

.botones,
.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
}

button {
  padding: 12px 22px;
  border: 0;
  border-radius: 5px;
  color: white;
  background: #1b7280;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #14525c;
}

a {
  color: #1b7280;
  font-weight: bold;
  text-decoration: none;
  align-self: center;
}

#resultado,
.result {
  margin-top: 18px;
  padding: 12px;
  border-radius: 5px;
}

.resultado-ok,
.result.success {
  color: #16803c;
  background: #e9f8ee;
  border: 1px solid #9bd3ad;
}

.resultado-error,
.result.error {
  color: #c0392b;
  background: #fdebea;
  border: 1px solid #f0aaa4;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
}

.modal-caja,
.modal-content {
  width: 90%;
  max-width: 380px;
  padding: 22px;
  background: white;
  border-radius: 8px;
}

@media (max-width: 700px) {
  .fila,
  .grid {
    grid-template-columns: 1fr;
  }

  .botones,
  .actions {
    flex-direction: column;
  }
}