@charset "utf=8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #c6d2e7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: #003865;
  color: white;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style-type: none;
  gap: 1rem;
}

.nav-list li a {
  text-decoration: none;
  color: white;
}

header .nuestrologo img {
  max-width: 120px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

nav ul li {
  margin-left: 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

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

.abrir-menu,
.cerrar-menu {
    display: none;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.contacto-form {
  background-color: #ededf0;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 600px;
  text-align: center;
  margin: auto;
}

.contacto-form h1 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #00003e;
  border-bottom: 1px solid #00003e;
  text-align: left;
}

.input-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.input-group input {
  width: calc(50% - 10px);
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

textarea {
  width: calc(100% - 22px);
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 20px;
  resize: none;
}

button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  background-color: #002b80;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 20px;
  border: none;
}

button:hover {
  background-color: #2f95f6;
}

footer {
  background: #93aedb;
  color: #000000;
  text-align: center;
  padding: 1rem 20px;
  margin-top: auto;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
}

.nav-list {
    flex-direction: column;
    gap: 0.5rem;
}
.abrir-menu,
.cerrar-menu {
    display: block;
    border: 0;
    font-size: 1.5rem;
    background-color: transparent;
    cursor: pointer;
    color: white;
}

.nav {
    display: flex;
    flex-direction: column;
    align-items: end;
    position: absolute;
    top: 0;
    gap: 1rem;
    right: 0;
    background-color: rgb(9, 9, 36);
    padding: 2rem;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    bottom: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav.visible {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.nav-list {
    flex-direction: column;
    align-items: end;
    gap: 1rem;
}


  .input-group input,
  .input-group textarea {
      width: calc(100% - 20px);
      margin-bottom: 10px;
  }

  .contacto-form {
      padding: 20px;
  }
}

@media (max-width: 480px) {

  .contacto-form h1 {
      font-size: 20px;
  }

  .contacto-form {
      padding: 10px;
  }

  footer {
      padding: 10px 5px;
  }

  .input-group input,
  .input-group textarea {
      width: calc(100% - 20px);
      margin-bottom: 10px;
  }
}
