
/* --- Header --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between; /* cambio aquí */
  align-items: center;
  padding: 20px;
  background-color: #0004ff;

}

.nav-container {
  width: 90%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- Menú links --- */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 25px;
}

/* --- Hamburguesa --- */
.hamburger {
  display: none; /* solo visible en móvil */
  flex-direction: column;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
  transition: 0.4s;
}

/* --- Responsive --- */
@media (max-width: 768px) {

.proyectos{
  display: grid;
}
  
  
  .hamburger {
    display: flex; /* se muestra en móvil */
  }

  .nav-links {
    position: fixed;
    top: 70px; /* debajo del header */
    right: -250px; /* empieza fuera de la pantalla */
    width: 200px;
    flex-direction: column;
    gap: 10px;
    background-color: #000;
    padding: 20px;
    border-radius: 10px;
    transition: right 0.3s ease;
    height: calc(100% - 70px);
  }

  .nav-links.active {
    right: 0; /* al abrir, entra en pantalla */
  }

  .nav-links li a {
    font-size: 30px;
  }
}



.servicios, .servicios, .quiensomos, .contactos{
  scroll-padding-top: 80px;
  
}


/* Fondo general */
body {
  background-color: yellow;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.hero {
  
  color: #fff;
  text-align: center;
  padding: 120px 20px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: auto;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn, .btn-outline {
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.btn {
  background: #ffbb00;
  color: #000;
}

.btn-outline {
  border: 2px solid #fbff00;
  color: #fffb00;
}

.hero-icons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
  color: #aaa;
  font-size: 0.95rem;
  flex-wrap: wrap;
}
.servicios h1{
  text-align: center;
  display: grid;
  justify-content: center;
  color: #000;
}
.servicios {
  padding: 80px 20px;
  color: #fff;
  text-align: center;
}


.card{
  border: 3px solid black;
    background: #011aff;
    color: white;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);

}

.card1{
  border: 3px solid black;
   background-color: #aaa;
   color: #000;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);

}

.card2{
  margin: 0 auto;
  width: 70%;
  text-align: center;
  border: 3px solid black;
    background: #011aff;
    color: white;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);

}


.map-section {
  text-align: center;
  padding: 2rem;
}

.map-section h2 {
  margin-bottom: 1rem;
  color: #333;
  background-color: #0004ff;
  border: 5px solid gray;
  border-radius: 15px;
  color: white;
  width: 50%;
  margin: 0 auto;
}

.map-container {
  position: relative;
  width: 100%;
  max-width: 800px;  /* Máximo ancho del mapa */
  height: 0;
  padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border: 5px solid blue;
}

.map-container iframe {

  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contactos{
  margin: 0 auto;
  width: 95%;
  height: 150px;
  text-align: center;
  border: 3px solid black;
    background: #011aff;
    color: white;
  border-radius: 12px;
  margin-top: 20px;
  
}

.contactos a {
  display: inline-block;    /* permite usar margin */
  margin-bottom: 15px;      /* separa el botón de otros elementos si los hubiera */
  color: rgb(255, 255, 255);
  border: 3px solid white;
  text-decoration: none;
  font-size: 20px;
  background: rgb(66, 208, 0);
  padding: 10px 30px;
  border-radius: 15px;
  transition: 0.5s;
}

.contactos a:hover {
  background: rgb(77, 255, 0);
  transform: scale(1.05);
}
















