/* Base */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 40px;
  background-color: #f9f9f9;
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
}

/* Secciones */
.section {
  width: 100%;
  max-width: 420px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* T¨ªtulo */
.title-section h1 {
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 30px;
}

/* Formulario */
.form-section form {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.form-section label {
  margin-bottom: 8px;
  font-weight: 500;
}

.form-section input,
.form-section button {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.form-section button {
  cursor: pointer;
  background-color: #1d1d1f;
  color: #fff;
  border: none;
}

/* Resultados */
.results-section {
  width: 100%;
  max-width: 800px;
}

#resultsContainer {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Tarjetas */
.result-card {
  background-color: #f2f2f7;
  border: 1px solid #e1e1e6;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  width: 100%;
}

.result-card h3 {
  margin: 0 0 10px 0;
  font-size: 1.05rem;
}

/* Texto */
.result-card p,
.result-card pre {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  word-break: break-word;
}

/* Headers largos */
#headers {
  white-space: pre-wrap;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
}
