<style>

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f4f6f9;
  display: flex;
  justify-content: center;
  padding: 20px;
}

.container {
  background: white;
  width: 100%;
  max-width: 700px;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-grid-full {
  grid-column: span 2;
}

input, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
}

textarea {
  resize: none;
  height: 80px;
}

button {
  grid-column: span 2;
  padding: 14px;
  background-color: #0078D4;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  background-color: #005fa3;
}

#resultado {
  margin-top: 20px;
  text-align: center;
  font-size: 18px;
}

/* 📱 Responsivo */
@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  button {
    grid-column: span 1;
  }

  .form-grid-full {
    grid-column: span 1;
  }
}

.btn-secundario {
  display: inline-block;
  padding: 8px 14px;
  background-color: #e9ecef;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  transition: 0.2s;
}

.btn-secundario:hover {
  background-color: #d6d8db;
}
</style>