/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap");
/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(18, 95%, 55%);
  --second-color: hsl(42, 98%, 52%);
  --first-gradient: linear-gradient(90deg,
                  hsl(18, 95%, 55%),
                  hsl(18, 98%, 64%));
  --title-color: hsl(255, 12%, 12%);
  --text-color: hsl(225, 12%, 24%);
  --text-color-light: hsl(255, 4%, 70%);
  --body-color: hsl(0, 0%, 100%);
  --container-color: hsl(0, 0%, 100%);
  --white-color: hsl(0, 0%, 100%);
  --black-color: hsl(255, 20%, 10%);
  --gray-border: hsl(255, 6%, 90%);
  --black-border: hsl(255, 10%, 20%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --big-font-size: 2.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

:root {
  --first-color: #1f4f46;       /* Verde oscuro */
  --second-color: #d97706;      /* Oro viejo */
  --mint-color: #a7f3d0;        /* Verde menta */
  --light-bg: #fefce8;          /* Crema claro */
  --white-color: #ffffff;
  --text-color-light: #e2e8f0;
  --title-color: #1f4f46;       /* Usamos el mismo verde para títulos */
  --body-color: #fefce8;        /* Fondo general */
  --black-border: #e5e7eb;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --big-font-size: 3.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: #F1F8F4;
  color: var(--text-color);
  margin: 0;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 1rem;
}
.section__title, 
.section__subtitle {
  text-align: center;
}

.section__title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-bold);
  margin-bottom: 1.5rem;
}

.section__subtitle {
  display: block;
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  color: #3BAA75;
  margin-bottom: .5rem;
}

.main {
  overflow: hidden;
}

/*=============== HEADER & NAV ===============*/
.header{
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: #ffffff;
  z-index: var(--z-fixed);
  transition: background-color .4s;
}
.nav{
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
 
.nav__logo{
  display: flex;
  align-items: center;
  column-gap: .25rem;

}
 
.nav__logo span{
  color:#25d366;
  font-weight: var(--font-semi-bold);
  transition: color .4s;

}
.nav__logo img{
  width: 45%;
  margin-left: -10rem;
}
.nav__logo h3{
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  transition: color .4s;
}
.nav__logo i{
  color: var(--first-color);
  font-size: 1.5rem;
}
.nav__toggle,
.nav__close{
  font-size: 1.5rem;
  color: #25D366;
  cursor: pointer;
  transition: color .4s;
}
/* BOTON DE whatsapp */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 90px; /* Botón pegado a la derecha */
  display: flex;
  flex-direction: row; /* Mensaje a la izquierda, botón a la derecha */
  align-items: center;
  gap: 10px;
  z-index: 999;
}

.float {
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.float:hover {
  transform: scale(1.1);
}

.mensaje-ayuda {
  background-color: white;
  color: #333;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  white-space: nowrap;
  animation: slideIn 0.4s ease-out;
}

/* Animación para el mensaje */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px); /* entra desde la derecha */
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive: ocultar el mensaje en móviles */
@media (max-width: 500px) {
 
  .whatsapp-float{
    right: 10px;
    bottom: 90px;
  }
}


/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
  .nav__menu{ 
     
    position: fixed ;
    top: 0;
    right:-100%;
    background-color: black;
    width: 80%;
    height: 100%;
    padding: 7.5rem 3.5rem 0;
    border-left: 2px solid var(--black-border);
    transition: right 3s;

  }
}


@media screen and (max-width: 600px) {
  .nav__logo img{
  
  margin : auto;
 width: 45%;
}
}
.nav__list{
  display: flex;
  flex-direction: column;
  row-gap: 4rem;
 
}
.nav__link{
   
  font-weight: var(--font-semi-bold);
  
  position: relative;
  text-decoration: none;
  color: inherit; /* Asegúrate que el color no se herede mal */
  transition: color 0.3s ease;
  
}
 
.nav__link::after {
  content: "";
  position: absolute;
  bottom: -4px; /* Ajusta según la separación deseada */
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #3BAA75; /* Cambia al color que quieras */
  transition: width 0.3s ease;
}

.nav__link:hover::after {
  width: 100%;
}
.nav__close{
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/* Show menu */

.show-menu{
  right: 0;
}
/* Change background header */
.bg-header{
  background-color: rgba(211, 211, 211, 0.5); /* Gris claro con 50% de transparencia */
  box-shadow: 0 4px 16px rgba(252, 249, 249, 0.1);
}
 
.bg-header .nav__logo span,
.bg-header .nav__toggle{
  color: #3BAA75;
}
.bg-header h3{
  color: black;
}

/* Active link */
.active-link {
  color:#3BAA75;
}

/*=============== HOME ===============*/
.home{
  position: relative;
overflow: hidden;

}
.fond {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;  /* Asegura que la imagen cubra toda el área */
  z-index: -2;        /* La envía al fondo */
         /* Opcional: transparencia para mejor contraste */
}
.overlay1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Fondo negro con transparencia */
  z-index: -1;
}
.home__container{
  position: relative;
  row-gap: 3rem;
  padding-block: 2.5rem 6rem;

}
.home__content{
  row-gap: 2.5rem;

}
.home__data{
  text-align: center;
}
.home__title{
  color: var(--white-color);
  font-size: var(--big-font-size);
  font-weight: var(--font-bold);
  margin-bottom: rem;
}
.home__description{
  margin-bottom: 2.5rem;
  color: var(--text-color-light);
}
.home__buttons{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.home__info{
  display: flex;
  justify-content: center;
  column-gap: 4.5rem;
}
.home__info-title{
  color: var(--second-color);
  font-size: var(--big-font-size);
  font-weight: var(--font-bold);
  margin-bottom: .5rem;
}
.home__info-description{
  font-size: var(--small-font-size);
  color: var(--white-color);
}
.home__images{
  position: relative;
  justify-self: center;
}
.home__img-1{
  width: 250px;
  margin-left: 3.5rem;

}
.home__img-2{
  width: 150px;
  border: 5px solid var(--black-color);
  position: absolute;
  left: 0;
  bottom: -3.5rem;
}
.home__lines{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  width: 100%;
  object-fit:  cover;
  object-position: right;
}


/*=============== proyectos ===============*/
.proyectos {
  background-color: #f9f9f9;
  padding: 4rem 2rem;
  text-align: center;
  border-bottom: 2px solid black;
}

.proyectos h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 2rem;
}

.lista-proyectos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.proyecto {
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  width: 300px;
  overflow: hidden;
  transition: transform 0.3s;
}

.proyecto img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.proyecto h3 {
  margin: 1rem 0 0.5rem;
  color: #e6b800;
}

.proyecto p {
  padding: 0 1rem 1.5rem;
  font-size: 0.95rem;
  color: #555;
}

.proyecto:hover {
  transform: translateY(-50px);
}
.btn-vermas {
  display: inline-block;
  margin: 1rem auto 1.5rem;
  padding: 0.6rem 1.2rem;
  background-color: #ffcc00;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.btn-vermas:hover {
  background-color: #e6b800;
}
 
 
/*=============== PROYECTO1===============*/
.detalle-proyecto .portada img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
 

.descripcion-proyecto {
  padding: 3rem 2rem;
  background-color: #f4f4f4;
}

.descripcion-proyecto h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.descripcion-proyecto p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #555;
}

.caracteristicas {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

.caracteristicas li {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.btn-volver {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #ffcc00;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.btn-volver:hover {
  background-color: #e6b800;
}


h1 {
  margin-bottom: 20px;
}


.galer{
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  margin: 0;
  padding: 20px;
  text-align: center;
}
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
   
}

.gallery img {
  width: 300px;
  height: 200px;
  cursor: pointer;
  transition: transform 0.3s ease;
  object-fit: cover;
  
}

.gallery img:hover {
  transform: scale(1.05);
}

.modal {
  display: none;
  position: fixed;
  z-index: 10;
  padding-top: 60px;
  left: 0;
  top: 4rem;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
}

#caption {
  color: white;
  text-align: center;
  margin-top: 10px;
}

.close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
.ner {
  position: absolute;
  top: 50%;
  font-size: 40px;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  transform: translateY(-50%);
}

.prev {
  left: 30px;
}

.next {
  right: 30px;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
}
@media screen and (max-width: 600px) {
  .ner {
    font-size: 30px;
    padding: 5px;
  }

  .close {
    font-size: 30px;
    top: 15px;
    right: 15px;
  }

  .gallery {
    gap: 10px;
  }

  .gallery img {
    max-width: 90%;
  }
}
/*=============== BUTTON ===============*/
.button{
  display: inline-flex;
  background: #3BAA75;
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  padding: 1rem 2rem;
  transition: box-shadow .4s;
}
.button:hover{
  box-shadow: 0 8px 32px hsl(18, 95%,55% .3);
  color: var(--white-color);
}
.button__link{
  display: flex;
  align-items: center;
  column-gap: .25rem;
  color: #ffffff;
  font-size: 1rem;
}

.button__link span{
  font-weight: font var(--font-semi-bold);

}
.button__link i{
  font-size: 2.5rem;
  transition: transform .4s;
}
.button__link:hover i{
  transform: translateX(.25rem);
}
/*=============== ABOUT ===============*/
.about__container{
  row-gap: 8rem;
}
.about__data{
  text-align: center;  
}
.about__description{
  margin-bottom: 2rem;
}
.about__list{
  text-align:initial;
  grid-template-columns: repeat(2,130px);
  justify-content: center;
  gap: 1.5em;
  margin-bottom: 2.5rem;
}
.about__list-item{
display: flex;
column-gap: .5rem;
color: var(--title-color);

}
.about__list-item i{
  font-size: 1.25rem;
  color:  #3BAA75;
}
.about__images{
  position: relative;
  justify-self: center;

}
 

.about__img-2{
  width: 250px;
  margin-right: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.section{
  border-bottom: 2px solid rgb(0, 0, 0);
}
/*=============== SERVICES ===============*/
.services{
  position: relative;
}
.services__container{
  position: relative;
  row-gap: 3rem;
}
.services__data{
  text-align: center;
}
.services__description{
  margin-bottom: 2rem;
}
.services__card{
  width: 260px;
  background-color: var(--container-color);
  border: 2px solid var(--gray-border);
  padding: 2rem 1rem 3.5rem;
  transition: border-color .4s;
}
.services__card:hover{
  border-color: var(--first-color);
}
.services__icon{
  width: 70px;
  height: 70px;
  background-color: var(--black-color);
  color: var(--white-color);
  border-radius: 50%;
  
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;

}
.services__title{
  font-size: var(--h2-font-size);
  margin-bottom: .5rem;
}
.services__shape{
 position: absolute;
 width: 100%;
 height: 245px;
 background-color: var(--black-color);
 bottom:0;
 left: 0;
}


/* Swiper class */
.swiper{
  margin-inline: initial;
  padding-bottom: 4rem;
}
.swiper-button-prev::after,
.swiper-button-next::after{
  content:'';
}
.swiper-button-prev,
.swiper-button-next{
  top: initial;
  bottom:0;
  width: 32px;
  height: 32px;
  background-color: var(--container-color);
  box-shadow: 0 2px 8px hsla(255, 8%, 4%, .1);
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--title-color);
}


/*=============== PROJECTS ===============*/

:root {
  --black: #000000;
  --white: #ffffff;
  --yellow: #ffcc00;
}

.carousel-wrapper {
  width: 100%;
  height: auto;
  padding: 150px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  overflow: hidden;
  flex-direction: column;
}
.carousel-title {
   
  font-size: 2rem;
  color: #333;
  margin-left:20px;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
}

.carousel {
  position: relative;
  width: 80vw;
  max-width: 400px;
  height: 350px;
  transform-style: preserve-3d;
  animation: rotate 40s infinite linear;
}
.carousel:hover {
  animation-play-state: paused;
}
.carousel img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s;
  
}

/* Posicionamiento circular */
.carousel img:nth-child(1) { transform: rotateY(0deg) translateZ(400px); }
.carousel img:nth-child(2) { transform: rotateY(72deg) translateZ(400px); }
.carousel img:nth-child(3) { transform: rotateY(144deg) translateZ(400px); }
.carousel img:nth-child(4) { transform: rotateY(216deg) translateZ(400px); }
.carousel img:nth-child(5) { transform: rotateY(288deg) translateZ(400px); }

/* Animación de rotación */
@keyframes rotate {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}
@media (max-width: 500px) {
  .carousel {
    width: 90vw;
    height: 200px;
  }

  .carousel img {
    border-radius: 8px;
  }

  .carousel img:nth-child(1),
  .carousel img:nth-child(2),
  .carousel img:nth-child(3),
  .carousel img:nth-child(4),
  .carousel img:nth-child(5) {
    transform: rotateY(var(--angle)) translateZ(300px); /* más cerca en móvil */
  }
}
/*=============== CONTACT ===============*/

.contacto-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.imagen-contacto {
  flex: 1 1 300px;
  text-align: center;
}

.imagen-contacto img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contenido-contacto {
  flex: 1 1 400px;
}
.contacto {
  padding: 4rem 2rem;
  background-color: #f5f5f5;
  text-align: center;
}

.contacto h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #4a7c59;
}

.contacto p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #555;
}

.formulario-contacto {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.campo {
  margin-bottom: 1.5rem;
}

.campo label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #333;
}

.campo input,
.campo textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.contacto .envia{
  background-color: #4a7c59;
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
 
.contacto .envia:hover {
  background-color: #3c6448;
}
@media (max-width: 768px) {
  .contacto-flex {
    flex-direction: column;
  }

  .imagen-contacto, .contenido-contacto {
    flex: 1 1 100%;
  }

  .imagen-contacto img {
    max-width: 80%;
    height: auto;
    margin: auto;
  }
}
 
/*=============== FOOTER ===============*/
.footer{
  background-color: var(--black-color);
  color: var(--text-color-light);
  padding-block: 3.5rem 2rem;
}
.footer__container{
  row-gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--black-border);
}
.footer__logo{
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
}
.footer__logo span{
  color: var(--white-color);
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
}
.footer__logo i{
  color: var(--first-color);
  font-size: 1.5rem;
}
.footer__description{
  margin-block: 1rem;
}
.footer__email,
.footer__info{
  font-style: normal;
}
.footer__content{
  grid-template-columns: repeat(2, max-content);
  gap: 4rem 3rem;
}
.footer__title{
  font-size: var(--h3-font-size);
  color: var(--white-color);
  margin-bottom: 1rem;

}
.footer__links,
.footer__list{
  display: grid;
  row-gap: .5rem;
}
.footer__link{
  color: var(--text-color-light);
  transition: color .4s;
}
.footer__link:hover{
  color: var(--first-color);
}
.footer__social{
  display: flex;
  column-gap: 1rem;
}
.footer__social-link{
  font-size: 1.5rem;
  color: var(--first-color);
  transition: transform .4s;

}
.footer__social-link:hover{
  transform: translateY(-.25rem);
}
.footer__copy{
  display: block;
  text-align: center;
  font-size: var(--small-font-size);
  margin-top: 4rem;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar{
  width: .6rem;
  background-color: hsl(255, 5%, 75%);
}
::-webkit-scrollbar-thumb{
 
  background-color: hsl(255, 5%, 65%);
}
::-webkit-scrollbar-thumb:hover{
 
  background-color: hsl(255, 5%, 55%);
}

/*=============== SCROLL UP ===============*/
.scrollup{
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: g;
  box-shadow: 0 4px 16px hsla(255, 90%, 8%, .15);
  color: var(--title-color);
  display: inline-flex;
  padding: 6px;
  font-size: 1.25rem;
  z-index: var(--z-tooltip);
  transition: bottom .4s, transform .4s;

}
.scrollup:hover{
  transform: translateY(-.5rem);
}

/* Show Scroll Up */
.show-scroll{
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px){
  .container{
    margin-inline: 1rem;
  }
  .section__title{
    font-size: 1.25rem;
  }
  .home__title{
    font-size: 1.75rem;
    
  }
  .home__buttons{
    flex-direction: column;
  }
  .home__img-1{
    width: 200px;
    margin-left: 1.5rem;
  }
  .about__list{
    grid-template-columns: repeat(1,200px);
  }
  .about__img-1{
    width: 150px;
    left: 4rem;
  }
  .about__img-2{
    width: 200px;
    margin-right: 0;
  }
  .footer__content{
    grid-template-columns: repeat(1, max-content);
  }
 .home{
  padding-bottom: 6rem;
   
 
 }
 .home__container{
  
  margin-top: 3rem;
}
}

/* For medium devices */
@media screen and (min-width: 540px){
  .home__container,
  .about__container,
  .services__container,
  .projects__container,
  .contact__container{
    grid-template-columns: 360px;
    justify-content: center;
    
  }
  .footer__content{
    grid-template-columns: repeat(3, max-content);
  }
  
  
}
@media screen and (min-width: 768px){
  .nav__menu{
    width: 50%;
  }
  .projects__container{
    grid-template-columns: repeat(2, 330px);
  }
  .contact__data{
    grid-template-columns: repeat(2,240px);
  }
  .footer__container{
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }
  
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .container{
    margin-inline: auto;
  }
  .section{
    padding-block: 7rem 2rem;
  }
  .nav{
    height: calc(var(--header-height) + 2rem );
  }
  .nav__toggle,
  .nav__close{
    display: none;
  }
  .nav__menu{
    width: initial;
  }
  .nav__list{
    flex-direction: row;
    align-items: center;
    column-gap:4rem;
  }
  .bg-header .nav__link{
    color: white;
  }
  .bg-header .active-link,
  .bg-header .nav__link:hover{
    color: white;
  }
  .bg-header .button,
  .bg-header .button:hover
  {color: var(--white-color);

  }
  .home__container{
    grid-template-columns: 475px 550px;
    column-gap: 6rem;
    align-items: flex-start;
    padding-top: 5.5rem;
    margin-top: -5em;
  }
  .home__content{
    row-gap: 4.5rem;
  }
  .home__data{
    text-align: initial;
    padding-top: 3rem;
    
  }
  .home__description{
    margin-bottom: 3rem;
  }
  .home__buttons{
    justify-content: initial;
    column-gap: 3rem;
  }
  .home__info{
    justify-content: initial;
    column-gap: 5.5rem;

  }
  .home__info-description{
    font-size: var(--normal-font-size);
  }
  .home__img-1{
    width: 550px;
    margin-left: 0 ;
  }
  .home__img-2{
    width: 350px;
    border-width: 10px;
    left: -7rem;
    bottom: -8rem;
  }
  .home__lines{
    object-position: center;
  }
  .about__container{
    grid-template-columns: repeat(2,480px);
    column-gap: 9rem;
    padding-block: 9rem 2rem ;
  }
  .about__images{
    order: -1;
  }
  .about__img-1{
    width: 370px;
    border-width: 10px;
    top: -9rem;
    left: 11rem;
  }
  .about__img-2{
    width: 470px;
  }
  .about__data,
  .about__data :is(.section__title, .section__subtitle){
    text-align: initial;
  }
  .about__list{
    grid-template-columns: repeat(2,1fr);
    margin-bottom: 3.5rem;
  }
  .services__container{
    grid-template-columns: initial;
    row-gap: 5rem;
    padding-bottom: 4.5rem;
  }
  .services__data{
    display: grid;
    grid-template-columns: 415px 370px max-content;
    justify-content: space-between;
    align-items: center;
  }
  .services__data :is(.section__title, .section__subtitle),
  .services__description{
    text-align: initial;
  }
  .services__data .section__title{
    margin-bottom: 0;
  }
  .services__swiper{
    max-width: 1100px;
  }
  .services__card{
    width: 348px;
    border-width: 3px;
    padding: 3.5rem 2rem 6rem;
  }
  .services__shape{
    height: 330px;
  }
  .swiper-button-next,
  .swiper-button-prev{
    bottom: 3rem;
  }
  .projects__container{
    grid-template-columns: repeat(3, 350px);
    column-gap: 2rem;
    padding-block: 5rem 4rem;
  }
  .projects__card{
    border-width: 3px;
  }
  .projects__data{
    padding: 2rem 1.5rem 4rem;
  }
  .contact :is(.section__title, .section__subtitle){
    text-align: initial;
  }
  .contact__container {
    grid-template-columns: 530px 515px;
    justify-content: initial;
    align-items: flex-start;
    column-gap: 3.5rem;
    padding-block: 3.5rem 4rem;
  }
.contact__img{
  width: 530px;
}
.contact__data{
  gap: 2rem;
}
.contact__card{
  border-width: 3px;
}
.contact__title{

  font-size: var(--h3-font-size);
}
.footer{
  padding-block: 4.5rem 3rem;
}
.footer__container{
  padding-bottom: 6rem;
}
.footer__content{
  column-gap: 7rem;
}
.footer__description{
  margin-block: 1.5rem;
}
.footer__title{
  margin-bottom: 1.5rem;
}
.footer__links,
.footer__list{
  row-gap: 1rem;
}
.scrollup{
  right: 3rem;
}

}


.projects .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
  gap: 0.2rem;
}

.projects .box-container .box .image {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.5s;
}

.projects .box-container .box:nth-child(2) .image {
  animation-delay: 1s;
}

.projects .box-container .box:nth-child(3) .image {
  animation-delay: 1.5s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Medias Queries: Ajustes para pantallas más pequeñas */

/* Para pantallas de tablet o menos de 768px */
@media (max-width: 768px) {
  .projects .box-container {
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); /* Menos columnas, más grandes */
    gap: 1rem; /* Un poco más de espacio entre imágenes */
  }

  .projects .box-container .box .image {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.3s; /* Reduce el retraso en pantallas más pequeñas */
  }
}

/* Para pantallas móviles más pequeñas (menores a 480px) */
@media (max-width: 480px) {
  .projects .box-container {
    grid-template-columns: 1fr; /* Solo una columna por fila */
    gap: 0.5rem; /* Ajusta el espacio entre imágenes */
  }

  .projects .box-container .box .image {
    width: 100%; /* Asegura que las imágenes ocupen todo el ancho del contenedor */
    height: 20rem; /* Ajusta la altura de la imagen para pantallas pequeñas */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0s; /* Elimina el retraso en pantallas más pequeñas */
  }

  .projects .box-container .box .content {
    padding: 1rem; /* Reduce el espacio de la caja de contenido */
  }
} 



 .proyectos {
      max-width: auto;
      margin: auto;
      padding: 40px 20px;
    }

    h2 {
      text-align: center;
      font-size: 2.5em;
      margin-bottom: 30px;
    }

    .filtros {
      text-align: center;
      margin-bottom: 30px;
    }

    .filtros button {
      padding: 10px 20px;
      margin: 0 10px;
      border: none;
      background: #333;
      color: white;
      cursor: pointer;
      border-radius: 5px;
      transition: background 0.3s;
    }

    .filtros button:hover,
    .filtros button.active {
      background: #555;
    }

    .galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px; /* Espacio más pequeño entre imágenes */
  justify-content: center;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

.proyecto {
  position: relative;
  overflow: hidden;         /* ✅ evita que la imagen salga del contenedor */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  
  cursor: pointer;
}

.proyecto img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
  transform-origin: center center;
  
}

.proyecto:hover img {
  transform: scale(1.03); /* ✅ scale más sutil */
}
.descripcion {
  position: absolute;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  box-sizing: border-box;
 text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
  height: 100%;
   
  
}
h4{
  color: white;
   margin-top: 7rem;
}
.descripcion p{
  color: white;
   margin-bottom: 2rem;
}
.proyecto:hover .descripcion {
  opacity: 1;
}

    .overlay {
      position: absolute;
      bottom: 0;
      background: rgba(0, 0, 0, 0.6);
      width: 100%;
      color: white;
      text-align: center;
      padding: 10px;
      opacity: 0;
      transition: 0.3s;
    }

    .proyecto:hover .overlay {
      opacity: 1;
    }

    /* MODAL */
    .modal {
      display: none;
      position: fixed;
      z-index: 999;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.8);
    }

    .modal-content {
      background:transparent;
      margin: 5% auto;
      padding: 20px;
      width: 90%;
      max-width: 700px;
      border-radius: 10px;
      text-align: center;
      position: relative;
      box-sizing: border-box;
  overflow: hidden; /* ✅ Evita desbordes */
    }

    .modal-content img {
      max-width: 60vh;
      height: auto;
      border-radius: 8px;
        display: block;
  margin: auto;
  object-fit: contain; /* ✅ Se ajusta sin deformar */

    }

    .modal-content h3 {
      margin-top: 15px;
    }

    .close {
      position: absolute;
      top: 10px;
      right: 20px;
      font-size: 30px;
      cursor: pointer;
      color: #ffffff;
    }

    .hidden {
      display: none;
    }
