/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@400;500&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --white-color: aliceblue;
  --black-color: #0d0d0d;

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat Alternates", sans-serif;
  --h1-font-size: 1.5rem;
  --normal-font-size: .938rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;

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

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --normal-font-size: 1rem;
  }
}

/*=============== 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: var(--white-color);
}
img{
    width: 100%;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
}

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

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: var(--black-color);
  z-index: var(--z-fixed);
}

.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  color: var(--white-color);
  font-weight: var(--font-medium);
}

.nav__close, 
.nav__toggle {
  display: flex;
  color: var(--white-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
  .nav__menu {
    position: fixed;
    left: -100%;
    top: 0;
    background-color: var(--black-color);
    width: 100%;
    height: 100%;
    padding: 6rem 3.5rem 4.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: left .4s;
  }

  .nav__item {
    transform: translateX(-150px);
    visibility: hidden;
    transition: transform .4s ease-out, visibility .4s;
  }

  .nav__item:nth-child(1) {
    transition-delay: .1s;
  }
  .nav__item:nth-child(2) {
    transition-delay: .2s;
  }
  .nav__item:nth-child(3) {
    transition-delay: .3s;
  }
  .nav__item:nth-child(4) {
    transition-delay: .4s;
  }
  .nav__item:nth-child(5) {
    transition-delay: .5s;
  }
}

.nav__list, 
.nav__social {
  display: flex;
}

.nav__list {
  flex-direction: column;
  row-gap: 3rem;
}

.nav__link {
  position: relative;
  color: var(--white-color);
  font-size: var(--h1-font-size);
  font-weight: var(--font-medium);
  display: inline-flex;
  align-items: center;
  transition: opacity .4s;
}

.nav__link i {
  font-size: 2rem;
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s;
}

.nav__link span {
  position: relative;
  transition: margin .4s;
}

.nav__link span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background-color: var(--white-color);
  transition: width .4s ease-out;
}

/* Animation link on hover */
.nav__link:hover span {
  margin-left: 2.5rem;
}

.nav__link:hover i {
  opacity: 1;
  visibility: visible;
}

.nav__link:hover span::after {
  width: 100%;
}

/* Sibling fade animation */
.nav__list:has(.nav__link:hover) .nav__link:not(:hover) {
  opacity: .4;
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.nav__social {
  column-gap: 1rem;
}

.nav__social-link {
  color: var(--white-color);
  font-size: 1.5rem;
  transition: transform .4s;
}

.nav__social-link:hover {
  transform: translateY(-.25rem);
}

/* Show menu */
.show-menu {
  left: 0;
}

/* Animation link when displaying menu */
.show-menu .nav__item {
  visibility: visible;
  transform: translateX(0);
}

/*=============== BREAKPOINTS ===============*/
/* For large devices */
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
  }

  .nav__toggle, 
  .nav__close {
    display: none;
  }

  .nav__link {
    font-size: var(--normal-font-size);
  }

  .nav__link i {
    font-size: 1.5rem;
  }

  .nav__list {
    flex-direction: row;
    column-gap: 3.5rem;
  }

  .nav__menu {
    display: flex;
    align-items: center;
    column-gap: 3.5rem;
  }
}

/*=============== MAIN ===============*/

main{
    width: 100%;
    height:40rem;
    display: flex;
    align-items:end;
    justify-content: center;
    background-image: url(IMG/fondoalt.svg);
    background-repeat: no-repeat;
    background-size: cover;
    flex-wrap: wrap;
}
.content-info{
    width: 40rem;
    height: 25rem;
    display: flex;
    align-items: center;
    justify-content:center;
    flex-direction: column;
    text-align: center;
    padding: 20px;
    color: aliceblue;
    filter: drop-shadow(1px 1px 1px #000000);
}
.content-info h1{
    filter: drop-shadow(1px 1px 1px #000000);
}
.content-info p{
    margin-top: 2rem;
    margin-bottom: 2rem;
    filter: drop-shadow(1px 1px 1px #000000);
    text-align: justify;
}
.content-info a{
    color: rgb(0, 0, 0);
    background-color:transparent;
    border: #000000 solid 1px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 2rem;
    padding-right: 2rem;
    border-radius: 5px;
    transition: all ease-in-out .3s;
    filter: drop-shadow(1px 1px 5px #000000);
}
.content-info a:hover{
  background-color: #000000;
  color: aliceblue;
}
.content-img{
    width: 40rem;
    height: 25rem;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2.8em;
}
.content-img img{
    height: 100%;
    width: 100%;
    object-fit: contain;
    mask-image: linear-gradient(
        black 80%,transparent
    );
    filter: drop-shadow(1px 1px 1px #000000);
}

@media screen and (max-width: 1400px) {
    .content-img{
        margin-top: 5rem;
    }
}  
@media screen and (max-width: 1300px) {
    main{
        height: auto;
    }
}  

/*=============== SECTION ===============*/

.Cards__Container{
    width: 100%;
    height: 50rem;
    background-image: url(IMG/fondo.svg);
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: space-evenly;
    align-items: end;
    flex-wrap: wrap;
    padding-top: 24rem;
}
@media screen and (max-width: 650px) {
  .Cards__Container{
    height: auto;
    padding-top: 1rem;
  }
}  
.card {
  position: relative;
  width: 25rem;
  height: 18rem;
  background-color: aliceblue;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
  margin-bottom: 1rem;
}
@media screen and (max-width: 1300px) {
  .card{
    margin-top: 3rem;
    width: 20rem;
    filter: drop-shadow(2px 2px 1px #000000);
  }
} 
.card img{
  filter: drop-shadow(2px 2px 1px #000000);
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.card__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: aliceblue;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
}
.card:hover .card__content {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 1;
}
.card__title {
  margin: 0;
  font-size: 24px;
  color: #333;
  font-weight: 700;
}
.card__description {
  margin: 10px 0 0;
  font-size: 14px;
  color: #777;
  line-height: 1.4;
  text-align: justify;
}

/*=============== SECTION ===============*/

.work{
  width: 100%;
  height: 50rem;
  background-image: url(IMG/fondoalt.svg);
  background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: end;
    justify-content: center;
}
.holder__box{
  width: 100%;
  height: 20rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
}
.box__1{
  width: 100%;
  height: 20rem;
  background-color: rgb(243, 243, 243);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align:justify;
  padding: 50px;
  border-top-right-radius: 115px;
  flex-wrap: wrap;
}
.box__2{
  width: 100%;
  height: 20rem;
  background-image: url(IMG/pondering.png);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  flex-wrap: wrap;
}
.box__3{
  width: 100%;
  height: 20rem;
  background-color: rgb(243, 243, 243);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: justify;
  padding: 50px;
  flex-wrap: wrap;
  border-top-left-radius: 115px;
}

@media screen and (max-width: 1300px) {
  .holder__box{
    flex-wrap: wrap;
    height: auto;
  }
  .work{
    height: auto;
  }
  .box__1{
    margin-top: 12rem;
    border-radius: 0%;
  }
  .box__3{
    border-radius: 0%;
  }
} 


/*=============== Proyectos ===============*/

.projects{
  width: 100%;
  height: 40rem;
  background-image: url(IMG/fondo.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: end;
  text-align: center;
  flex-direction: column;
  color: aliceblue;
}
.projects > h1{
  font-size: 50px;
}
.box__clients{
  width:30rem;
  height:20rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: aliceblue;
  text-align: center;
  flex-wrap: wrap;
}
.box__clients img{
  height: 74%;
  object-fit: cover;
  filter: invert();
}
@media screen and (max-width: 1300px) {
  .projects{
    height: auto;
    color: #000000;
  }
  .projects > h1{
    margin-top: 5rem;
  }
  .box__clients{
    margin-top: 5rem;
  }
} 

/*=============== PRODUCTS ===============*/

.content_product {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  width: 100%;
  background-color: #0d0d0d;
  height: auto;
}

.card_prod {
  width: 20rem;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease-in-out;
  margin-top: 5rem;
  margin-bottom: 5rem;
}

.card_prod:hover {
  transform: scale(1.05);
}

.card_prod img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.card_prod:hover img {
  transform: scale(1.1);
}

.card-content-prod {
  padding: 15px;
  text-align: center;
}

.card_prod .title-prod {
  margin-bottom: 10px;
  font-size: 1.2em;
  color: #333;
}

.card_prod p {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  padding: 10px 15px;
  background-color: #0d0d0d;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.btn:hover {
  background-color:transparent;
  color: #0d0d0d;
  border:1px solid #0d0d0d ;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .content_product {
      flex-direction: column;
      align-items: center;
      gap: 2rem;
  }

  .card_prod {
      width: 90%;
      margin-top: 1rem;
  margin-bottom: 1rem;
  }
}

/*=============== FOOTER ===============*/

footer {
  background: #0d0d0d;
  color: white;
  padding: 20px 0;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin: 10px;
}

.footer-section h3 {
  margin-bottom: 10px;
  font-size: 1.2em;
  color: white;
}

.footer-section p, .footer-section a {
  font-size: 0.9em;
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: rgb(255, 255, 255);
}

.social-icons {
  margin-top: 10px;
}

.social-icons a {
  display: inline-block;
  margin: 0 10px;
  font-size: 1.5em;
  color: #bbb;
  transition: transform 0.3s;
}

.social-icons a:hover {
  transform: scale(1.2);
}

.footer-bottom {
  background: #111;
  padding: 10px;
  font-size: 0.8em;
  color: #888;
}

@media (max-width: 768px) {
  .footer-container {
      flex-direction: column;
      text-align: center;
  }
}