/* ===== Reset básico ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

/* ===== Encabezado ===== */
header {
  background: #0048BD;
  color: white;
  padding: 1rem 2rem;
  text-align: center;
}

header img {
  max-width: 180px;
  margin-bottom: 0.5rem;
}

nav {
  margin-top: 0.5rem;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* ===== Secciones ===== */
section {
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
}

h1, h2, h3 {
  color: #0048BD;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: #555;
}

/* ===== Botones ===== */
.btn {
  display: inline-block;
  background: #1AAE9F;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.btn:hover {
  background: #159582;
}
/* ===== Contact form layout hardening ===== */
.contact { padding: 32px 0; }
.contact .container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.grid.form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.grid.form input,
.grid.form select,
.grid.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
}
.grid.form textarea { min-height: 140px; resize: vertical; }

.grid.form .submit {
  justify-self: start;      /* evita que el botón se estire */
  padding: 10px 16px;
}

/* 2 columnas en desktop, con textarea y botón a todo el ancho */
@media (min-width: 880px) {
  .grid.form { grid-template-columns: 1fr 1fr; }
  .grid.form textarea { grid-column: 1 / -1; }
  .grid.form .submit  { grid-column: 1 / -1; }
}

/* margen de respiro antes del footer */
footer { margin-top: 22px; }

/* ===== Footer ===== */
footer {
  text-align: center;
  background: #0048BD;
  color: white;
  padding: 1rem;
  margin-top: 2rem;
}
