/* Estilos para contacto.html */

/* Cabecera */
#cabeceralogo {
  width: 100%;
  padding: 40px 0;
  background-color: #0F76A0;
  text-align: center;
}

#cabeceralogo h1 {
  font-size: 2.5em;
  font-weight: bold;
  color: #fff;
}

#cabeceralogo p {
  font-size: 1.2em;
  font-style: italic;
  color: #e0e0e0;
  margin-top: 10px;
}

/* Contenido principal */
main {
  background-color: #f4f4f4;
  padding: 30px 0;
}

main > div {
  width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Artículos */
#articulosprincipales {
  flex: 2;
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
}

article h1 {
  font-size: 1.8em;
  color: #094660;
  margin-bottom: 15px;
}

article p {
  font-size: 1.1em;
  margin-bottom: 20px;
}

/* Formulario */
form {
  background-color: #E7F1F5;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

form label {
  font-weight: bold;
  color: #094660;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
}

form button {
  background-color: #0F76A0;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #094660;
}

/* Aside */
#infoadicional {
  flex: 1;
  background-color: #E7F1F5;
  border-radius: 10px;
  padding: 20px;
}

#infoadicional h1 {
  font-size: 1.2em;
  color: #094660;
  margin-bottom: 15px;
}

#infoadicional p a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

#infoadicional p a:hover {
  text-decoration: underline;
}

/* Pie de página */
#pielogo {
  background-color: #0F76A0;
  padding: 30px 0;
}

#pielogo > div {
  width: 960px;
  margin: 0 auto;
  background-color: #9FC8D9;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 20px;
}

.seccionpie {
  width: 30%;
}

.seccionpie h1 {
  font-size: 1.1em;
  color: #094660;
  margin-bottom: 10px;
}

.seccionpie p a {
  color: #333;
  font-weight: bold;
  text-decoration: none;
}

.seccionpie p a:hover {
  text-decoration: underline;
}

address {
  font-style: normal;
  color: #555;
}

small {
  display: block;
  margin-top: 10px;
  color: #666;
}

/* Responsive */
@media screen and (max-width: 768px) {
  main > div,
  #pielogo > div {
    width: 100%;
    flex-direction: column;
    padding: 0 15px;
  }

  #articulosprincipales,
  #infoadicional,
  .seccionpie {
    width: 100%;
    padding: 15px;
  }

  form input,
  form textarea {
    font-size: 1em;
  }

  form button {
    width: 100%;
  }
}