/* Cambios clave:
   - Azul oscuro: #1B2A41
   - Gris claro: #F4F4F4
   - Gris medio: #7A7A7A
   - Rojo ladrillo (acento): #374bbd
   - Blanco: #FFFFFF
*/

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #F4F4F4;
  color: #1B2A41;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: #1B2A41;
  color: white;
  padding: 1rem;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: space-around;
  background-color: #1B2A41;
  color: white;
}

nav ul li a {
  display: block;
  padding: 10px 10px;
  text-decoration: none;
  color: white;
}

nav ul li a:hover {
  background-color: #374bbd;
  color: #FFFFFF;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column; /* Apila los elementos verticalmente */
    align-items: center; /* Centra los elementos horizontalmente */
  }

  nav ul li {
    width: 100%; /* Ocupa todo el ancho disponible */
    text-align: center; /* Centra el texto dentro de cada li */
  }
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}

section {
  max-width: 900px;
  width: 100%;
}

h2 {
  color: #1B2A41;
  margin-top: 2rem;
}

h3 a {

    text-decoration: none;
}

ul {
  list-style-type: disc;
  margin-left: 2rem;
}

.highlight {
  color: #374bbd;
  font-weight: bold;
}

.img-inline {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 1.5rem 0;
}

.img-inline img {
  width: 25%;
  max-width: 180px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.img-inline.reverse {
  flex-direction: row-reverse;
}

.contact-info {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-info img {
  width: 50px;
  height: auto;
  border-radius: 4px;
}

.contact-form {
  margin-top: 2rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 0.5rem;
  border: 1px solid #7A7A7A;
  border-radius: 4px;
  width: 100%;
  max-width: 600px;
  background-color: white;
}

.contact-form button {
  background-color: #374bbd;
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  max-width: 200px;
}

.contact-form button:hover {
  background-color: #922B21;
}

footer {
  background-color: #1B2A41;
  color: white;
  text-align: center;
  padding: 1rem;
}

footer a {
  color: #F4D03F;
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .img-inline {
    flex-direction: column;
    align-items: center;
  }

  .img-inline.reverse {
    flex-direction: column;
  }

  .img-inline img {
    width: 50%;
  }

  .contact-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
