/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f5f5f0;
  color: #1e2a38;
  line-height: 1.6;
}

/* Barra de navegación */
header {
  background-color: #1e3a5f;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

.logo {
  color: #f5f5f0;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo i {
  margin-right: 8px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #f5f5f0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ffdd99;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
}

/* Banner con imagen y overlay animado */
.banner {
  height: 91vh;
  background: url("https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.banner-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(270deg, rgba(30,58,95,0.85), rgba(46,92,137,0.85));
  animation: gradientBG 10s ease infinite;
}

@keyframes gradientBG {
  0% {opacity: 0.9;}
  50% {opacity: 0.7;}
  100% {opacity: 0.9;}
}

.banner-content {
  position: relative;
  z-index: 1;
}

.banner-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
}

.banner-content span {
  color: #ffdd99;
}

/* Sección contacto */
.section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: center;
}

.contact-img img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  opacity: 65%;
  margin-bottom: 70px;
}

.formulario {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.formulario input, 
.formulario textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
}

.formulario textarea {
  resize: none;
}

.btn {
  background-color: #1e3a5f;
  color: #f5f5f0;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
  font-weight: 600;
}

.btn:hover {
  background-color: #2e5c89;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background-color: #1e3a5f;
  color: #f5f5f0;
  margin-top: 3rem;
}

/* Responsivo */
@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #1e3a5f;
    flex-direction: column;
    width: 200px;
    display: none;
    padding: 1rem;
    border-radius: 0 0 10px 10px;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .banner-content h1 {
    font-size: 2rem;
  }
}
