/* Header */
#header {
  background-color: #003366;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#header .logo a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Botón hamburguesa */
.menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  display: none;
}

}

/* Responsivo */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  #menu {
    display: none;
  }

  #menu.active {
    display: block;
  }

  #menu .links {
    flex-direction: column;
    gap: 1rem;
  }
}

		}

		}

		
		}

/* Footer */
#footer {
  padding: 4rem 0 2rem 0 ;
  background: #000;
  text-align: center;
}

#footer a {
  color: rgba(255, 255, 255, 0.5);
}

#footer a:hover {
  color: #FFF;
}

.copyright {
  background: #003366;
  color: #fff;
  font-size: 0.7rem;
  padding: 0 0 2rem 0;
  text-align: center;
}

.copyright a:hover {
  color: #FFF;
}

@media screen and (max-width: 750px) {
  #footer {
    padding: 3rem 0 1rem 0 ;
  }
}

/* --- Estilo personalizado para encabezado con fondo --- */
.header-hero {
  position: relative;
  background-image: url(../../images/slide01.jpg); /* Cambia si usas otra imagen */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 60px; /* Puedes hacer más alto o más bajo */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.header-hero .overlay {
  background: rgba(0, 0, 0, 0.5); /* Capa oscura semitransparente */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-hero h2 {
  color: #fff;
  font-size: 2.5em;
  margin: 0.5em 0;
}

.header-hero p {
  color: #ddd;
  font-size: 1.2em;
  margin: 0;
}

.services-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 2em;
  background-color: #f9f9f9;
}

.service-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  max-width: 280px;
  text-align: center;
  transition: transform 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-card h3 {
  margin: 1em 0;
  font-size: 1.2em;
  color: #003366; /* Cambia según el color de tu marca */
}

.service-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

/* ======= MENU GENERAL ======= */
#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #003366;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo a {
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  text-decoration: none;
}

.navbar {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #00c8ff;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #003366;
    flex-direction: column;
    width: 200px;
    padding: 1rem;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin-bottom: 0.5rem;
  }
}

/* ===== FORMULARIO DE CONTACTO ===== */
form {
  max-width: 1000px;
  width: 90%;
  margin: 1.5rem auto;
  padding: 1.5rem 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);

  display: grid;
  grid-template-columns: 1fr; /* por defecto, una columna (móvil) */
  gap: 1rem;
}

form label {
  font-weight: bold;
  color: #003366;
  margin-bottom: 0.3rem;
  display: block;
}

form input, 
form textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  margin-bottom: 0.6rem;
}

form input:focus, 
form textarea:focus {
  border-color: #0055aa;
  outline: none;
  box-shadow: 0 0 5px rgba(0,85,170,0.4);
}

form textarea {
  min-height: 160px;
  resize: vertical;
}

form input[type="submit"] {
  background-color: #003366;
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 0.5rem;
  grid-column: span 2; /* botón ocupa todo el ancho en pantallas grandes */
}

form input[type="submit"]:hover {
  background-color: #0055aa;
}

/* ===== DISEÑO RESPONSIVE DOS COLUMNAS ===== */
@media (min-width: 768px) {
  form {
    grid-template-columns: 1fr 1fr; /* dos columnas */
    gap: 1.2rem 2rem;              /* menos vertical, más horizontal */
  }

  /* Nombre y Correo en la primera fila */
  #name, #email {
    margin-bottom: 0.5rem;
  }

  /* Asunto ocupa toda la fila */
  #subject {
    grid-column: span 2;
  }

  /* Mensaje ocupa toda la fila */
  #message {
    grid-column: span 2;
  }
}
