/* ===============================
   LOY FORMS – Estilos base
   =============================== */

.loy-form {
  --color-principal: #222;
  --color-secundario: #555;
  --color-fondo: #fafafa;
  --color-borde: #ddd;
  --color-acento: #9c2b2e;
  /*--ancho-maximo: 600px;*/

  width: 100%;
  max-width: var(--ancho-maximo);
  margin: 4rem auto;
  /*padding: 2rem;*/
  
  /*border: 1px solid var(--color-borde);*/
  border-radius: 0.75rem;
  font-family: system-ui, sans-serif;
  font-size: 2rem;
  color: var(--color-principal);
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.05);
}

.loy-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--color-secundario);
}

.loy-form input[type="text"],
.loy-form input[type="email"],
.loy-form select,
.loy-form textarea {
  color: var(--amarillo);
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--amarillo);
  border-radius: 0.4rem;
  font-size: 2rem;
  background: transparent;
  /*transition: border-color 0.2s, box-shadow 0.2s;*/
}

.loy-form input:focus,
.loy-form select:focus,
.loy-form textarea:focus {
  border-color: var(--color-acento);
  outline: none;
  box-shadow: 0 0 0 2px rgba(156, 43, 46, 0.15);
}

.loy-form textarea {
  min-height: 120px;
  resize: vertical;
}

.loy-form .consentimiento {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 2rem;
  color: var(--color-secundario);
}

.loy-form button[type="submit"] {
  display: inline-block;
  margin-top: 1.5rem;
  background: var(--color-acento);
  color: white;
  border: none;
  border-radius: 0.4rem;
  padding: 0.8rem 1.6rem;
  font-size: 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s;
}

.loy-form button[type="submit"]:hover {
  background: #7e2325;
}

.loy-success {
  margin-top: 1.2rem;
  padding: 0.8rem;
  background: #e7f7ec;
  border: 1px solid #b4dfbe;
  color: #225e35;
  border-radius: 0.4rem;
  font-weight: 500;
}

.loy-error {
  margin-bottom: 1.2rem;
  padding: 0.8rem;
  background: #fdecea;
  border: 1px solid #f5c6cb;
  color: #842029;
  border-radius: 0.4rem;
  font-weight: 500;
}