/* Reset y base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  height: 100%;
  font-family: 'Roboto', sans-serif;
}

/* NAV BAR */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #e0e0e0;
  padding: 1rem 2rem;
  position: relative;
  z-index: 2;
}

.logo {
  height: 60px;
  width: auto;
}

.btn-contacto {
  background-color: #003366;
  color: #fff;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-contacto:hover {
  background-color: #002244;
}


.nav-buttons {
  display: flex;
  gap: 1rem;
}

.btn-webmail {
  background-color: #C2850A;
  color: #fff;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-webmail:hover {
  background-color: #a06a08;
}




/* MAIN */
.main-content {
  background: url('../imagenes/fondo-seramaq.jpeg') no-repeat center center fixed;
  background-size: cover;
  height: 80vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.6);
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.contenido {
  position: relative;
  z-index: 2;
}

.titulo {
  font-size: 2.5rem;
  font-weight: 900;
  animation: bounce 2s infinite;
}

.subtitulo {
  font-size: 1.2rem;
  margin-top: 1rem;
  color: #ddd;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* FORMULARIO */
.form-section {
  background-color: #002244;
  padding: 3rem 1.5rem;
  color: white;
  text-align: center;
}

.formulario {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.formulario input,
.formulario textarea {
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
  background-color: #333;
  color: white;
  font-size: 1rem;
}

.formulario button {
  padding: 0.75rem;
  background-color: #0055aa;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.formulario button:hover {
  background-color: #003f7f;
}

/* FOOTER */
.footer {
  background-color: #000c1a;
  color: #ccc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 1rem;
  gap: 1rem;
}

.footer-left p {
  margin: 0.25rem 1rem ;
  text-align: left;
}

.footer-right img {
  height: 60px;
  width: auto;
}
.footer-center {
  margin: 1rem 0;
}


@media (max-width: 767px) {
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-buttons {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .btn-contacto,
  .btn-webmail {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .titulo {
    font-size: 1.8rem;
  }

  .subtitulo {
    font-size: 1rem;
  }

  #animacion-diamante {
    width: 220px !important;
    height: 220px !important;
  }
}

@media (max-width: 480px) {
  .formulario input,
  .formulario textarea,
  .formulario button {
    font-size: 0.95rem;
  }

  .form-section {
    padding: 2rem 1rem;
  }
}


@media (min-width: 768px) {
  .footer {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-left, .footer-center, .footer-right {
    flex: 1;
    text-align: center;
  }

  .footer-left {
    text-align: left;
  }

  .footer-right {
    text-align: right;
  }
}



.btn-webmail {
  display: inline-block;
  background-color: #C2850A;
  color: #fff !important;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-webmail:hover {
  background-color: #a06a08;
}
