/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");
*,::before,::after{
  box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}
  
/*definimos un fondo*/
body{
    margin: 3rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    background-image: url("./img/fondo3.png");
    background-size: cover; /* Puede ser 'contain' según tus preferencias */
    background-repeat: no-repeat;
    background-attachment: fixed;
}

h1,h2,h3,p,ul{
    margin: 0;
}
  
ul{
    padding: 0;
    list-style: none;
}
  
a{
    text-decoration: none;
}
  
img{
    max-width: 100%;
    height: auto;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.container{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    height: 600px;
    background: #f5f5f5;
    box-shadow: 0 30px 50px #a6e6ff;
    border-radius: 20px;
}

.container .slide .item{
    width: 200px;
    height: 300px;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    border-radius: 20px;
    box-shadow: 0 10px 30px #505050;
    background-position: 50% 50%;
    background-size: cover;
    display: inline-block;
    transition: 0.5s;
}

.slide .item:nth-child(1),
.slide .item:nth-child(2){
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: 100%;
}


.slide .item:nth-child(3){
    left: 50%;
}
.slide .item:nth-child(4){
    left: calc(50% + 220px);
}
.slide .item:nth-child(5){
    left: calc(50% + 440px);
}

/* here n = 0, 1, 2, 3,... */
.slide .item:nth-child(n + 6){
    left: calc(50% + 660px);
    opacity: 0;
}



.item .content{
    position: absolute;
    top: 50%;
    left: 100px;
    width: 300px;
    text-align: left;
    color: #000000fd;
    transform: translate(0, -50%);
    font-family: system-ui;
    display: none;
}


.slide .item:nth-child(2) .content{
    display: block;
}


.content .name{
    font-size: 40px;
    text-transform: uppercase;
    font-weight: bold;
    opacity: 0;
    animation: animate 1s ease-in-out 1 forwards;
    color: #fefefeed;
    text-shadow: 0 5px 5px #0f081f;
}

.content .des{
    margin-top: 10px;
    margin-bottom: 20px;
    opacity: 0;
    animation: animate 1s ease-in-out 0.3s 1 forwards;
    color: #fefefeed;
    text-shadow: 0 2px 3px #000000;
}

.content button{
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    opacity: 0;
    animation: animate 1s ease-in-out 0.6s 1 forwards;
    box-shadow: 0 10px 10px #217eb4;
    border-radius: 20px;
}

.content button:hover{
    background: #505050;
}


@keyframes animate {
    from{
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }

    to{
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

.button{
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 20px;
}

.button button{
    width: 40px;
    height: 35px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    border: 1px solid #000;
    box-shadow: 0 2px 10px #217eb4;
    transition: 0.3s;
}

.button button:hover{
    background: #bbbbbb;
    color: #6b6b6ba6;
}

/*======================================== HEADER ========================================*/
.bd-container{
    max-width: 900px;
    width: calc(100% - 2rem);
    margin-left: 1rem;
    margin-right: 1rem;
}

.bd-grid{
    display: grid;
    gap: 1.5rem;
}

/*color header*/
.l-header{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.739);
}


/*======================================== NAV ========================================*/
.nav{
    max-width: 1024px;
    height: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__item{
    margin-bottom: .5rem;
}

/*color text*/
.nav__link, .nav__logo, .nav__toggle{
    color: #000000;
    font-weight: 500;
}

/*active logo:hover*/
.nav__logo:hover{
    color: #fff;
}

/*link hover*/
.nav__link{
    transition: .3s;
}

.nav__link:hover{
    color: #4FE1EB;
}

.nav__toggle{
    font-size: 1.3rem;
    cursor: pointer;
}

/* Show menu */
.show-menu{
    top: 3rem;
}

/* Active menu */
.active-link{
    color: #1B948B;
}

 
/* Change background header */
.scroll-header{
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.836);
}

/* Scroll top */
.scrolltop{
    position: fixed;
    right: 1rem;
    bottom: -20%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: rgba(51, 51, 51, 0.486);
    border-radius: 50px;
    z-index: 10;
    transition: .4s;
    visibility: hidden;
}

.scrolltop:hover{
    background-color: rgb(0, 223, 253);
}
  
.scrolltop__icon{
    font-size: 1.8rem;
    color: #000000c9;
}
  
/* Show scrolltop */
.show-scroll{
    visibility: visible;
    bottom: 1.5rem;
}

.logo{
    width: 200px;
}


/*======================================== BUTTONS ========================================*/
.buttonn{
    display: inline-block;
    background-color: rgb(152, 158, 160);
    color: #FFF;
    padding: .75rem 1rem;
    border-radius: .5rem;
    transition: .3s;
}  

.buttonn:hover{
    background-color: rgba(143, 148, 148, 0.459);
}

body.dark-theme{
  background-color: rgb(0, 0, 0);
  color: #ffffff;
}



/*===button dark===*/
body.dark-theme{
    background-color: rgb(0, 0, 0);
    color: #ffffff;
}
  
.change-theme{
    position: absolute;
    right: 1rem;
    top: 1.8rem;
    color: #000000e1;
    font-size: 1rem;
    cursor: pointer;
}


/*======================================== HOME ========================================*/
.home__container{
    height: calc(100vh - 3rem);
    align-content: center;
}
  
.home__title{
    font-size: 4rem;
    color: #0f462c;
}
  
.home__subtitle{
    font-size: 1.5rem;
    color: #525252;
    margin-bottom: 2rem;
}
  
.home__img{
    width: 300px;
    justify-self: center;
}


/*======================================== MENU ========================================*/
.menu__container{
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
}
  
.menu__content{
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: rgba(138, 138, 138, 0.425);
    border-radius: .5rem;
    box-shadow: 0 10px 4px rgba(0, 0, 0, 0.801);
    padding: .75rem;
}
  
.menu__img{
    width: 100px;
    align-self: center;
    margin-bottom: 1rem;
}
  
.menu__name, .menu__preci{
    font-weight: #a86262;
    color: #167762d8;
}
  
.menu__name{
    font-size: 1rem;
}
  
.menu__detail, .menu__preci{
    font-size: .813rem;
}
  
.menu__detail{
    margin-bottom: .5rem;
}
  

/*======================================== ABOUT ========================================*/
.section{
    padding: 4rem 0 2rem;
}

.section-title, .section-subtitle{
    text-align: center;
}

.section-title{
    font-size: 1.5rem;
    color: rgb(104, 104, 104);
    margin-bottom: 1.5rem;
    text-shadow: 0 0px 10px;
}

.section-subtitle{
    display: block;
    color: #048654;
    font-weight: 600;
    margin-bottom: .5rem;
}

.img__about{
    box-shadow: #000000;
}


/*======================================== SERVICES ========================================*/
button {
    padding: 10px 30px;
    border-radius: 50px;
    cursor: pointer;
    border: 0;
    background-color: rgb(194, 194, 194);
    box-shadow: rgb(0 0 0 / 5%) 0 0 8px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 10px;
    transition: all 0.5s ease;
    font-family: 'BlackFuture', Arial, sans-serif;
}
  
button:hover {
    letter-spacing: 3px;
    background-color: hsl(180, 100%, 36%);
    color: hsl(0, 0%, 100%);
    box-shadow: rgb(0, 57, 57) 0px 7px 29px 0px;
}
  
button:active {
    letter-spacing: 3px;
    background-color: hsl(180, 97%, 13%);
    color: hsl(0, 0%, 100%);
    box-shadow: rgb(0, 40, 35) 0px 0px 0px 0px;
    transform: translateY(10px);
    transition: 100ms;
}  

.main-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.container-cards{
    display: flex;
}

.card {
    margin-right: 30px;
    margin-left: 30px;
    margin-top:50px;
    margin-bottom:50px;
    width: 190px;
    height: 254px;
    background: rgb(0, 0, 0);
    transition: all 0.4s;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 5px  rgba(46, 46, 46, 0.62);
    font-size: 30px;
    font-weight: 700;
}
  
.card:hover {
    border-radius: 15px;
    cursor: pointer;
    transform: scale(1.2);
    box-shadow: 0px 0px 10px 5px  rgba(0, 0, 0, 0.705);
    background: rgb(255, 255, 255);
    align-items: center;
}
  
.first-content {
    height: 100%;
    width: 100%;
    transition: all 0.4s;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    border-radius: 15px;
}

.first-content img {
    width: 80%;
}
  
.card:hover .first-content {
    height: 0px;
    opacity: 0;
}
  
.second-content {
    height: 10%;
    width: 90%;
    opacity: 0;
    border-radius: 15px;
    transition: all 0.4s;
    font-size: 0px;
    transform: rotate(90deg) scale(-1);
    margin-top: 40%;
    margin-bottom: 40%;
    margin-left: 10px;
    margin-right: 20px;
}
  
.card:hover .second-content {
    opacity: 1;
    height: 100%;
    font-size: 1.8rem;
    transform: rotate(0deg);
}

btn-card {
    margin-top: 10px;
    align-items: center;
}

.services__container{
    row-gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
  
.services__content{
    text-align: center;
}
  
.services__img{
    width: 64px;
    height: 64px;
    fill: #0f462c;
    margin-bottom: 1.5rem;
}
  
.services__title{
    font-size: 1rem;
    margin-bottom: .5rem;
    color: rgb(104, 104, 104);
    font-weight: bold;
    text-shadow: 0 0px 10px;
}
  
.services__description{
    padding: 0 1.5rem;
}

.img_services{
    width: 150px;
}

/*======================================== CONTACT ========================================*/
.contact__container{
    text-align: center;
  }
  
  .contact__description{
    margin-bottom: 3rem;
  }
  
 /*======================================== FOOTER ========================================*/
 .footer__container{
    grid-template-columns: repeat(auto-fit, minmax(190px, 4fr));
    row-gap: 2rem;
    /*background-color: rgba(255, 255, 255, 0.664);*/
    border-radius: 10px;
}
  
.footer__logo{
    font-size: 1rem;
    color: #4d4d4d;
    width: 400px;
    align-items: center;
}
  
.footer__description{
    display: block;
    font-size: 1.5rem;
    margin-bottom: .5rem;
}

.footer__social{
    font-size: 2.5rem;
    color: #54E7C6;
    text-shadow: 0 2px 3px #000000;
    margin-right: 1rem;
}
  
.footer__title{
    font-size: 1.5rem;
    margin-bottom: .5rem;
}
  
.footer__link{
    font-size: 1.25rem;
    display: inline-block;
    color: #54E7C6;
    text-shadow: 0 2px 3px #000000;
    margin-bottom: .2rem;
}
  
.footer__link:hover{
    color:#ffffff
}
  
.footer__copy{
    text-align: center;
    font-size: .813rem;
    color: #000000;
    margin-top: 2rem;
}
  

  
/*======================================== MEDIA QUERIES ========================================*/
@media screen and (max-width: 768px){
    .nav__menu{
      position: fixed;
      top: -100%;
      left: 0;
      width: 100%;
      padding: 1.5rem 0 1rem;
      text-align: center;
      background-color: rgb(207, 206, 206);
      transition: .4s;
      box-shadow: 0 4px 4px rgba(0,0,0,.1);
      border-radius: 0 0 1rem 1rem;
      z-index: 100;
    }
  }

  /*menu*/
  @media screen and (min-width: 768px){
    body{
      margin: 0;
    }
  
    .section{
      padding-top: 8rem;
    }
  
    .nav{
      height: calc(3rem + 1.5rem);
    }
    .nav__list{
      display: flex;
    }
    .nav__item{
      margin-left: 2.5rem;
      margin-bottom: 0;
    }
    .nav__toggle{
      display: none;
    }
  
}


@media screen and (min-width: 576px){
    .home__container,
    .about__container{
      grid-template-columns: repeat(2,1fr);
      align-items: center;
    }
  
    .about__data, .about__initial,
    .app__data, .app__initial,
    .contact__container, .contact__initial{
      text-align: initial;
    }
  
    .about__img, .app__img{
      width: 500px;
      order: -1;
      border-radius: 20px;
      box-shadow: 0 10px 50px;
    }
  
    .contact__container{
      grid-template-columns: 1.75fr 1fr;
      align-items: center;
    }
    .contact__button{
      justify-self: center;
      font-size: 15px;
    }
  }


  @media screen and (min-width: 768px){
    body{
      margin: 0;
    }
  
    .section{
      padding-top: 8rem;
    }
  
    .nav{
      height: calc(3rem + 1.5rem);
    }
    .nav__list{
      display: flex;
    }
    .nav__item{
      margin-left: 2.5rem;
      margin-bottom: 0;
    }
    .nav__toggle{
      display: none;
    }
  
    .change-theme{
      position: initial;
      margin-left: 1rem;
    }
  
    .home__container{
      height: 100vh;
      justify-items: center;
    }
  
    .services__container,
    .menu__container{
      margin-top: 3rem;
    }
  
    .menu__container{
      grid-template-columns: repeat(3, 210px);
      column-gap: 4rem;
    }
    .menu__content{
      padding: 1.5rem;
    }
    .menu__img{
      width: 130px;
    }
  
    .app__store{
      margin: 0 .5rem 0 0;
    }
  }

  @media screen and (min-width: 960px){
    .bd-container{
      margin-left: auto;
      margin-right: auto;
    }
  
    .home__img{
      width: 500px;
    }
  
    .about__container,
    .app__container{
      column-gap: 7rem;
    }
  }

  /* For tall screens on mobiles y desktop*/
  @media screen and (min-height: 721px) {
    .home__container {
        height: 640px;
    }
}

















