@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  color: #333;
}

/* HEADER */
header {
  background: linear-gradient(135deg, #0073e6, #005bb5);
  color: #fff;
  text-align: center;
  padding: 60px 20px 40px;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* MAIN */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

main a.btn {
  margin-top: 30px;
}

/* FORM */
form {
  max-width: 500px;
  width: 100%;
  background: #fff;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  text-align: center; /* centra contenido */
}

form label {
  text-align: left;
  display: block;
  font-weight: 600;
  margin-top: 15px;
  margin-left: 8%;
}

/* Inputs centrados */
form input, 
form textarea {
  display: block;
  margin: 6px auto 0 auto; /* centrados */
  width: 90%;
  max-width: 400px;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

form input:focus, 
form textarea:focus {
  outline: none;
  border-color: #0073e6;
  box-shadow: 0 0 0 2px rgba(0,115,230,0.2);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

/* Botones */
.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: #0073e6;
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn:hover {
  background: #005bb5;
  transform: translateY(-2px);
}

/* Botón volver */
.btn-volver {
  background: #6b7280;
}

.btn-volver:hover {
  background: #4b5563;
}

#statusMsg {
  margin-top: 15px;
  font-weight: bold;
  text-align: center;
  color: darkred;
}

/* FOOTER */
footer {
  background: #1f2937;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  margin-top: auto;
}

footer span {
  font-weight: 600;
}

.obligatorio {
  color: red;
}
