* { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: 'Roboto', sans-serif;
      background: #f0f2f5;
      color: #333;
      scroll-behavior: smooth;
    }
	.intro-anchor {
	  height: 100px; /* altura del header */
	  margin-top: -100px;
	  pointer-events: none;
	}
    header {
	  background: #ffffffcc;
	  position: sticky;
	  top: 0;
	  z-index: 1000;
	  backdrop-filter: blur(8px);
	  padding: 0.8rem 1rem;
	  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	}
	.header-container {
	  max-width: 1200px;
	  margin: 0 auto;
	  display: flex;
	  justify-content: space-between;
	  align-items: center;
	}
    header nav a {
      margin: 0 1rem;
      text-decoration: none;
      color: #5cac1b;
      font-weight: 500;
      transition: color 0.3s ease;
    }
    header nav a:hover { color: #3a8914; }
    #logo { height: 90px; }
    .lang-button img {
      width: 24px;
      border-radius: 50%;
      cursor: pointer;
    }
	.anchor-offset {
	  display: block;
	  height: 140px;       /* igual a la altura de tu header */
	  margin-top: -140px;  /* lo desplaza hacia arriba */
	  visibility: hidden;  /* para que no ocupe espacio visible */
	}
	#intro {
	  position: relative;
	  height: 600px;
	  overflow: hidden;
	  
	}
	#intro h2 {
	  position: relative;
	  z-index: 2;
	  font-size: 2.5rem;
	  text-align: center;
	  margin: 2rem 0 1rem;
	  color: white;
	  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
	}
	.intro-background {
	  position: absolute;
	  inset: 0;
	  animation: backgroundFade 20s infinite;
	  background-size: cover;
	  background-position: center;
	  transition: background-image 1s ease-in-out;
	  z-index: 1;
	}

	.intro-overlay {
	  position: relative;
	  z-index: 2;
	  height: 100%;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	}

	.intro-text {
	  background: rgba(255, 255, 255, 0.85);
	  padding: 2rem;
	  max-width: 800px;
	  margin-top: auto;
	  margin-bottom: auto;
	  height: 50%; /* ocupa solo la mitad inferior */
	  overflow: auto;
	  display: flex;
	  flex-direction: column;
	  justify-content: center;
	  text-align: center;
	  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	}

	@keyframes backgroundFade {
	  0%, 20%   { background-image: url('./images/slide1.png'); }
	  25%, 45%  { background-image: url('./images/slide2.png'); }
	  50%, 70%  { background-image: url('./images/slide3.png'); }
	  75%, 95%  { background-image: url('./images/slide4.png'); }
	  100%      { background-image: url('./images/slide3.png'); }
	}

	form {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      max-width: 100%;
    }
	input, textarea, button[type="submit"] {
      margin-bottom: 1rem;
      padding: 0.5rem;
      font-size: 1rem;
      background-color: #fff;
      border: 1px solid #ccc;
      color: #333;
      width: 100%;
      /*max-width: 400px;*/
	  box-sizing: border-box;
    }
	 button[type="submit"] {
      background-color: #5cac1b;
      color: #fff;
      border: none;
      cursor: pointer;
    }
    button[type="submit"]:hover {
      background-color: #4b9a17;
    }
	#success-message {
      color: green;
      font-weight: bold;
      margin-top: 1rem;
      display: none;
    }
    main {
      max-width: 1200px;
      max-width: 1200px;
      margin: auto;
      padding: 2rem;
    }
    section { 
		scroll-margin-top: 200px;
		margin-bottom: 4rem; 
	}
    h2 { font-size: 2rem; margin-bottom: 1rem; color: #5cac1b; }
    .grid-services {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.5rem;
    }
	
	.grid-services {
	  display: grid;
	  grid-template-columns: repeat(2, 1fr);
	  gap: 2rem;
	}
	/*
    .service-box {
      position: relative;
      overflow: hidden;
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      transition: transform 0.3s ease;
    }
    .service-box img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      display: block;
    }
    .service-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(255,255,255,0.95);
      opacity: 0;
      transition: opacity 0.3s ease;
      padding: 1rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    .service-box:hover .service-overlay {
      opacity: 1;
    }*/
	/*----------*/
	.service-box {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.service-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

/* Título sobre la imagen */
.service-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2.0rem;
  font-weight: bold;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
  text-align: center;
  z-index: 2;
}

/* Capa de descripción oculta por defecto */
.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  opacity: 0;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: opacity 0.3s ease;
  z-index: 3;
}

/* Mostrar la capa al pasar el ratón */
.service-box:hover .service-overlay {
  opacity: 1;
}

/* Opcional: atenuar la imagen al hacer hover */
.service-box:hover img {
  opacity: 0.4;
}
/*---------------*/
    .project {
      display: flex;
      flex-direction: row;
      gap: 1.5rem;
      margin-bottom: 2rem;
      align-items: center;
    }
    .project img {
      width: 200px;
      height: 140px;
      object-fit: cover;
      border-radius: 10px;
    }
    .project-content {
      flex: 1;
    }
    footer {
      background: #ffffff;
      text-align: center;
      padding: 2rem 2rem;
      color: #555;
      font-size: 0.98rem;
    }
    footer img {
      height: 20px;
    }
	#projects {
	  display: flex;
	  flex-direction: column;
	  gap: 3rem;
	}

	.project-card {
	  background: #ffffff;
	  border-radius: 12px;
	  padding: 1.5rem;
	  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
	  transition: transform 0.3s ease, box-shadow 0.3s ease;
	}

	.project-card:hover {
	  transform: translateY(-4px);
	  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
	}

	.project-card h3 {
	  margin-bottom: 1rem;
	  color: #5cac1b;
	  font-size: 1.4rem;
	}

	.project-body {
	  display: flex;
	  flex-direction: row;
	  gap: 1.5rem;
	  align-items: flex-start;
	  flex-wrap: wrap;
	}

	.project-body img {
	  width: 280px;
	  height: auto;
	  border-radius: 8px;
	  object-fit: cover;
	  flex-shrink: 0;
	}

	.project-text {
	  flex: 1;
	  font-size: 1rem;
	  color: #333;
	  display: flex;
	  flex-direction: column; 
		align-items: flex-start;
	}
	.project-text p {
	  margin: 0;
	  line-height: 1.6;
	}
	@media (max-width: 768px) {
	  .grid-services {
		grid-template-columns: 1fr;
	  }
	}

	/* Responsive para móviles */
	@media (max-width: 768px) {
	  .project-body {
		flex-direction: column;
		}

		.project-body img {
			width: 100%;
		}
		
		  .contact-container {
			flex-direction: column;
			align-items: stretch;
		  }

		  .contact-form,
		  .contact-image {
			width: 100%;
		  }

		  .contact-image img {
			max-width: 100%;
			margin: 0 auto;
		  }
	}
	
	.contact-section {
  background-color: #e0e0e0;
  padding: 4rem 2rem;
  border-radius: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-form h2 {
  color: #5cac1b;
  text-align: left;
  margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea,
.contact-form button[type="submit"] {
  width: 100%;
  background-color: #fff;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  box-sizing: border-box;
  max-width: 100%;
}

.contact-form button[type="submit"] {
  background-color: #5cac1b;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  font-size: 1rem;
}

.contact-form button[type="submit"]:hover {
  background-color: #4b9a17;
}

.contact-image {
  flex: 1;
  min-width: 100px;
  text-align: center;
}

.contact-image img {	
  width: 100%;
  max-width: 300px;
  height: auto;
}
	

@media (max-width: 500px) {
  #intro {
    height: 470px; /* permite que el contenido crezca según necesidad */
  }

  #intro h2 {
    font-size: 1.4rem;
    margin: 1rem 1rem 0.5rem;
    padding: 0;
    text-align: center;
    word-break: break-word;
  }

  .intro-overlay {
    flex-direction: column;
    justify-content: flex-start;
    padding: 4rem 1rem 0.5rem;
  }

  .intro-text {
    padding: 1rem;
    margin: 1rem auto;
    width: 100%;
    height: auto;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    font-size: 0.8rem;
    text-align: left;
  }

  body {
    overflow-x: hidden;
  }
  

}
  

}

@media (max-width: 600px) {
  .header-container {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    row-gap: 0.5rem;
  }

  header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1.2rem;
    flex: 1;
    text-align: center;
  }

  header nav a {
    font-size: 0.95rem;
    margin: 0;
    white-space: nowrap;
  }

  .lang-button {
    display: flex;
    gap: 0.5rem;
    align-items: center;
	margin-right: 1rem;
  }


  #logo {
    height: 70px;
    flex-shrink: 0;
  }
  

}

@media (max-width: 400px) {

  .contact-form input,
  .contact-form textarea,
  .contact-form button[type="submit"] {
    width: 250px;
  }

  .contact-image img {	
    width: 100%;
    max-width: 150px;
    height: auto;
  }
}

@media (min-width: 500px) {
  .contact-form input,
  .contact-form textarea,
  .contact-form button[type="submit"] {
    width: 450px;
  }
}

