/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Aclonica&family=Montserrat:wght@100..900&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(45, 99%, 55%);
  --first-color-alt: hsl(45, 99%, 48%);
  --second-color: hsl(22, 100%, 8%);
  --white-color: hsl(34, 100%, 96%);
  --title-color: hsl(22, 100%, 8%);
  --text-color: hsl(22, 24%, 32%);
  --text-color-light: hsl(23, 16%, 40%);
  --body-color: hsl(34, 100%, 92%);
  --body-color-alt: hsl(34, 100%, 88%);
  --container-color: hsl(34, 100%, 96%);
  --shadow-small-img: drop-shadow(0 4px 16px hsla(22, 100%, 8%, .2));
  --shadow-big-img: drop-shadow(0 8px 24px hsla(22, 100%, 8%, .2));

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --second-font: "Aclonica", sans-serif;
  --biggest-font-size: 3rem;
  --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;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 4.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: var(--body-color);
  color: var(--text-color);
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-family: var(--second-font);
  font-weight: var(--font-regular);
}

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 {
  text-align: center;
  font-size: var(--h1-font-size);
  margin-bottom: 2rem;
}

.sede__title {
  text-align: center;
  font-size: var(--h1-font-size);
  margin-bottom: 2rem;
}


.main {
  overflow: hidden;
}

/*=============== HEADER & NAV ===============*/

.header{
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
    background-color: white;
  z-index: var(--z-fixed);
  transition: box-shadow .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: .5rem;
  font-family: var(--second-font);
  columns: var(--title-color);
   
}

.nav__logo img {
 width: 80px;
}

/* .nav__logo div{
  background-color: var(--first-color);
  padding: 6px;
  border-radius: .5rem;
} */

.nav__toggle,
.nav__close{
  display: inline-flex;
  font-size: 1.5rem;
  cursor:pointer;
  color: var(--title-color);

}




/* Navigation for mobile devices */


@media screen and (max-width:1150px){
.nav__menu{

position: fixed;
top: -100%;
left: 0;
background-color: var(--body-color);
width: 100%;
padding-block: 4.5rem 3.5rem;
box-shadow: 0 4px 16px hsl(22, 100%, 8%, .2);
border-radius: 0 0 1.5rem 1.5rem;
transition: top .4s;
}


}


.nav__list{
  text-align: center;
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
}

.nav__link{
  position: relative;
  font-weight: var(--second-font);
  color: var(--title-color);
}



.nav__link::after{
  content: '';
  width: 0;
  height: 2px;
  background-color: var(--title-color);
  position: absolute;
  left: 0;
  bottom: -.5rem;
  transition: width .4s;
}

.nav__link:hover::after{
  width: 60%;
}

.nav__close{
  color: var(--title-color);
  position: absolute;
  top: 1rem;
  right: 1.5rem;

}



.nav__social{
  display: flex;
  justify-content: center;
  column-gap: 1rem;
}

.nav__social a{
  width: 32px;
  height: 32px;
  background-color: var(--first-color);
  color: var(--second-color);
  font-size: 1.5rem;
  border-radius: .5rem;
  display: grid;
  place-items: center;
  transition: transform .4s;
}


/* Show menu */
.show-menu{
  top: 0;
}


.shadow-header{
  box-shadow: 0 4px 16px hsla(22, 100%, 8%, .1);

}




/*active link*/

.active-link::after{

width: 60%;
}




/*=============== BUTTON ===============*/

.button{
  display: inline-flex;
  background-color: var(--first-color);
  color: var(--title-color);
  padding: 1rem 1.5rem;
  font-family: var(--second-font);
  border-radius: 4rem;
  transition: box-shadow .4s;
}

.buttom__menu {
  text-align: center;
  margin-top: 2rem;
}

.button-menu {
  background-color: #ff9f1c;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.button-menu:hover {
  background-color: #e88c12;
}


.button:hover{
  box-shadow: 0 8px 24px hsla(22, 100%, 8%, .2);
}


/*=============== POPULAR ===============*/


.popular{
  background-color: var(--body-color-alt);
  background-image: url("../img/burgerbg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; 


}



.title__burger{
  color: var(--white-color);
  text-align: center;
  font-size: var(--h1-font-size);
  margin-bottom: 6rem;


}

.popular__container{
  padding-block: 2rem;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem 1.5rem;
}


.popular__card{
  position: relative;
  background-color: var(--first-color);
  padding: 6rem .75rem 1rem;
  border-radius: 1rem;
  border: 4px solid var(--container-color);
}


.popular__img{
  position: absolute;
  top: -2rem;
  left: 0;
  right: 0;
  width: 120px;
  margin: 0 auto;
  filter: var(--shadow-small-img);
  transition: transform .4s;
}

.popular__title{
  font-size: var(--normal-font-size);
  margin-bottom: .75rem;
}

.popular__price{
  color: var(--title-color);
  font-family: var(--second-font);
  font-size: var(--h2-font-size);
}


.popular__button{
  position: absolute;
  right: .75rem;
  bottom: 1rem;
  outline: none;
  border: none;
  background-color: var(--second-color);
  color: var(--white-color);
  padding: 6px;
  border-radius: .5rem;
  font-size: 1.25rem;
  display: inline-flex;
  cursor: pointer;

}


.popular__card:hover .popular__img{
  transform: translateY(-.5rem);
}


.last__article{
    margin-bottom: 25rem;
}
/*=============== CONTACT ===============*/

.contact__container{
  position:relative;
  background-color: var(--second-color);
  padding-top: 3.5rem;
  border-radius: 3rem;
  overflow: hidden;
}


.contact__content{
  row-gap: 3rem;
}

.contact__container .section__title,
.contact__title,
.contact__info{

  color: var(--white-color);
}


.contact__data{
  text-align: center;
  row-gap: 2rem;
}

.contact__title{
  font-size: var(--h2-font-size);
  margin-bottom: .75rem;

}


.contact__social{
  display: flex;
  justify-content: center;
  column-gap: 1rem;
}

.contact__social a{
  width: 32px;
  height: 32px;
  background-color: var(--first-color);
  color: var(--second-color);
  font-size: 1.5rem;
  border-radius: .5rem;
  display: grid;
  place-items: center;
  transition: transform .4s;
}

.contact__social a:hover{
transform: translateY(-.25rem);
}

.contact__info{
  font-style: normal;
}



.contact__image{
  justify-self: center;
}


.contact__img{
  width: 280px;
}

.contact__sticker-1,
.contact__sticker-2{

  position: absolute;
  opacity: .5;
}


.contact__sticker-1{
  width: 40px;
  top: 6.5rem;
  left: 1.5rem;
}

.contact__sticker-2{
  width: 30px;
  right: 3rem;
  bottom: 12rem;
}


/*=============== FOOTER ===============*/
.footer{
  padding-block: 3rem 2rem;
}


.footer__container{
  row-gap: 2rem;
}

.footer__logo{
  font-size: var(--h1-font-size);
  font-family: var(--second-font);
  color: var(--title-color);
  justify-self: center;

}


.footer__content{
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
}

.footer__link{
  color: var(--text-color);
}


.footer__social{
  grid-column: 1/3;
  display: flex;
  justify-content: center;
  column-gap: 1rem;
}


.footer__social a{

  width: 32px;
  height: 32px;
  background-color: var(--first-color);
  color: var(--second-color);
  font-size: 1.5rem;
  border-radius: .5rem;
  display: grid;
  place-items: center;
  transition:  transform .4s;
}


.footer__social a:hover{
  transform: translateY(-.25rem);
}


.footer__copy{
  display: block;
  text-align-last:center ;
  font-size: var(--small-font-size);
  margin-top: 3.5rem;
}



/*=============== SCROLL BAR ===============*/


::webkit-scrollbar{
  width: .6rem;
  background-color: hsl(34, 16%, 75%);
}

::webkit-scrollbar-thumb{
  background-color: hsl(34, 16%, 65%);
}

::webkit-scrollbar-thumb::hover{
  background-color: hsl(34, 16%, 55%);
}


/*=============== SCROLL UP ===============*/

.scrollup{
  position: fixed;
  right: 1rem;
  bottom: -50rem;
  background-color: var(--body-color);
  box-shadow: 0 4px 16px hsla(22, 100%, 8%, .2);
  color: var(--title-color);
  display: inline-flex;
  padding: 6px;
  font-size: 1.25rem;
  border-radius: .35rem;
  z-index: var(--z-tooltip);
  transition: bottom .4s, transform .4s;
}


.scrollup:hover{
  transform: translateY(-.5rem);
}

/* Show Scroll Up */
.show-scroll{
  bottom: 3rem;
}



/* Fondo general */
.contact-section {
  background-color: #000;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;

  position: relative;
  background-image: url("../img/fachada.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 120vh; /* o el alto que necesites */
  z-index: 1;
}

textarea {
  resize: none;
}


/* Contenedor del formulario */
.form-container {
  margin-top: 8rem;
  background-color: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Título */
.form-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #000;
  font-weight: bold;
}

/* Inputs */
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  color: #000;
}

/* Botón */
.btn-submit {
  background-color: #000;
  color: #fff;
  border: none;
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: #333;
}

/* Animación de entrada */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease-out;
}


/*=============== BREAKPOINTS ===============*/
/* For small devices */

@media screen and (min-width:330px){
  .container{
    margin-inline: 1rem;
  }



  .popular__container{
    grid-template-columns: 260px;
    justify-content: center;
  }

  .footer__social{
    grid-column: 1;
  }

  .footer__content{
    grid-template-columns: 1fr;
    justify-items: center;
  }

}

/* For medium devices */


@media screen and (min-width:540px){



.recipe__container{
  grid-template-columns: 200px 230px;
  justify-content: center;
  column-gap: 3rem;
}

.popular__container{

  grid-template-columns: repeat(2, 260px);
  justify-content: center;

}

.contact{
  max-width: 500px;
  margin: 0 auto;

}



}


@media screen and (min-width:768px){


  .popular__container{
    grid-template-columns: repeat(2, 260px);
  }


  .footer__social{
    grid-column: initial;
  }


  .footer__content{
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
  }

  .footer__link:nth-child(1){
   justify-self: start;
  }

   .footer__link:nth-child(1){
   order: 2;
   justify-self: end;
  }

  
}



@media screen and (max-width: 1149px){
 .nav__social{
  display: none;
 }
  .nav__logo{
  /* margin-top: 5x; */
  width: 60px;
 }



 .nav__toggle{
  color: black;
 }


 
.shadow-header .nav__toggle{
  color: rgb(0, 0, 0);

}

.shadow-header {
  background-color:white;

}


}


@media screen and (max-width: 768px){


.popular{
  background-image: url("../img/burgerbg.png");

  

}

.section__title{
  color: var(--white-color);

}


}


@media screen and (max-width: 540px){


.popular {
  background-image: url("../img/bg_menu.png");


}

.section__title{
  color: var(--white-color);

}


}





/* For large devices */


@media screen and (min-width:1150px){

.container{
  margin-inline: auto;
}

.section{
  padding-block: 7rem 2rem;
}

.section__title{
  margin-bottom: 4.5rem;

}


.nav{
  height: calc(var(--header-height) + 2rem);
}

.nav__toggle,
.nav__close{
  display: none;
}

.nav__list{
  flex-direction: row;
  column-gap: 4rem;
}




.popular__container{
  grid-template-columns: repeat(3, 250px);
  gap: 6.5rem 4rem;
  padding-block: 3rem;
}


.popular__card{
  padding: 9.5rem 1.25rem 1.25rem;
  border-radius: 2rem;
  border-width: 6px;
}

.popular__img{
  width: 200px;
  top: -3.5rem;
}


.popular__title{
  font-size: var(--h2-font-size);
}


.popular__price{
  font-size: var(--h1-font-size);
}


.popular__button{
  font-size: 1.5rem;
  right: 1.25rem;
  bottom: 1.25rem;
}



.contact{
  max-width: initial;
}

.contact__container{
  border-radius: 4rem;
  padding-block: 4rem 6.5rem;
}


.contact__content{
  grid-template-columns: 500px 435px;
  justify-content: center;
  column-gap: 6.5rem;
}

.contact__data{
  grid-template-columns: repeat(2, max-content);
  text-align: initial;
  gap: 4.5rem 2rem;
  order: 1;
}

.contact__social{
  justify-content: initial;
}
.contact__title{
  margin-bottom: 1rem;
}

.contact__image{
  position: relative;
  width: 100%;
  
}

.contact__img{
  width: 500px;

  position: absolute;
  top: -0.5rem;
}

.contact__sticker-1{
  width: 70px;
  left: 27rem;
  top: 10rem;
}

.contact__sticker-2{
  width: 40px;
  right: 10rem;
  bottom: 5.5rem;
}






.footer__container{
  row-gap: 3.5rem;
}

.footer__copy{
  margin-top: 4rem;
}

.scrollup{
  right: 3rem;
}





}






  .modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center; align-items: center;
  }

  .modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    max-width: 90%;
    width: 320px;
  }

  .modal-buttons button {
    margin: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #ff9f1c;
    color: #fff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
  }

  .modal-buttons button:hover {
    background-color: #e88c12;
  }

  .modal-close {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
  }

  .modal-close:hover {
    color: #000;
  }