/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&family=Saira:wght@100..900&display=swap");

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

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(317, 80%, 39%);
  --first-color-alt: hsl(55, 100%, 50%);
  --title-color: hsl(296, 100%, 50%);
  --text-color: hsl(166, 12%, 40%);
  --white-color: hsl(166, 100%, 99%);
  --dark-color: hsl(284, 100%, 70%);
  --body-color: hsl(316, 100%, 76%);
  --body-white-color: hsl(0, 0%, 100%);
  --body-first-color: hsl(175, 100%, 50%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", serif;
  --second-font: "Saira", serif;
  --biggest-font-size: 3.5rem;
  --big-font-size: 2.5rem;
  --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: 9.5rem;
    --big-font-size: 4rem;
    --h1-font-size: 2rem;
    --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;
}

input,
button,
body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
}

input,
button {
  outline: none;
  border: none;
}

h1, h2, h3, h4 {
  font-family: var(--second-font);
  font-weight: var(--font-medium);
  line-height: 110%;
}

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 4rem;
}

.section__title {
  text-align: center;
  font-size: var(--big-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 2.5rem;
}

.main {
  overflow: hidden;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: var(--body-color);
  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 {
  color: var(--white-color);
  font-family: var(--second-font);
  font-weight: var(--font-semi-bold);
  transition: color .4s;
}

.nav__logo:hover {
  color: var(--first-color)
}

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

.nav_logo a,
img {
  width: 18%;
  height: auto;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1150px){
  .nav__menu {
    position: fixed;
    top: -120%;
    left: 0;
    background-color: var(--body-color);
    width: 100%;
    padding-block: 4rem;
    box-shadow: 0 8px 16px hsla(166, 85%, 80%, .3);
    transition: top .4s;
  }
}

.nav__list {
  text-align: center;
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
}

.nav__link {
  color: var(--white-color);
  font: var(--font-medium) var(--h1-font-size) var(--second-font);
  line-height: 110%;
  transition: color .4s;
}

.nav__list:hover {
  color: var(--first-color);
}

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

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

/* Add shadow header */
.shadow-header {
  box-shadow: 0 4px 16px hsla(187, 100%, 50%, 0.732);
}

/* Active link */
.active-link {
  color: var(--first-color);
}

/*=============== HOME ===============*/
.home__container {
  position: relative;
  padding-top: 2rem;
  row-gap: 0;
}

.home__title {

  color: var(--white-color);
  font-size: var(--biggest-font-size);
  font-weight: var(--font-semi-bold);
  text-align: center;
  
}

.home__images {
  position: relative;
  display: grid;
  justify-items: center;
  justify-self: center;
} 

.home__shape {
  width: 280px;
  height: 280px;
  background-color: var(--first-color);
  border-radius: 50%;
  clip-path: inset(100% 0 0 0);
}

.home__images img {
  position: absolute;
}

.home__coffee {
  width: 160px;
  top: -3.5rem;
  rotate: 10deg;
}

.home__splash {
  max-width: initial;
  width: 350px;
  rotate: 10deg;
  left: -3rem;
  bottom: .5rem;
}

.home__bean-1,
.home__bean-2 {
  width: 80px;
}

.home__bean-1 {
  left: 1.5rem;
  top: 1.5rem;
}

.home__bean-2 {
  right: 3.5rem;
  bottom: 6.5rem;
  rotate: -90deg;
  filter: blur(2px);
}

.home__ice-1 {
  width: 50px;
  left: 1.5rem;
  bottom: 3rem;
}

.home__ice-2 {
  width: 40px;
  top: 4rem;
  right: 1.25rem;
  rotate: 60deg;
}

.home__leaf {
  width: 50px;
  right: 6rem;
  bottom: -1rem;
  rotate: -15deg;
}

.home__sticker {
  position: absolute;
  width: 50px;
  right: .5rem;
  top: 29rem;
  rotate: 15deg;
}

.home__data {
  margin-top: 2.5rem;
  text-align: center;
}

.home__data p {
  padding-top: 3rem;
  text-align: left;
}

.home__description {
  color: var(--white-color);
  margin-bottom: 1rem;
}

/*=============== BUTTON ===============*/
.button {
  display: inline-flex;
  justify-content: center;
  background-color: var(--first-color);
  color: var(--white-color);
  padding: 1rem 2rem;
  font-weight: var(--font-semi-bold);
  transition: backgroud .4s, box-shadow .4s;
}

.button:hover {
  background-color: var(--first-color-alt);
  box-shadow: 0 8px 24px hsla(166, 85%, 80%, .2);
}

.button-dark {
  background-color: var(--dark-color);
}

.button-dark:hover {
  background-color: var(--dark-color);
}



/*=============== MODELOS VELAS CUMPLEAÑOS===============*/
.popular {
  background-color: var(--body-first-color);
}

.popular .section__title {
  color: var(--title-color);
}

.popular__swiper {
  padding-top: 1.5rem;
}

.popular__card {
  width: 270px;
  display: grid;
  row-gap: 1.5rem;
}

.popular__images {
  width: 100%;
  margin-bottom: 25rem;
  
  position: relative;
  display: grid;
  justify-items: center;
  justify-self: center;
}

.popular__images img:hover{
  width: 360px
}

.popular__shape {
  width: 70px;
  height: 70px;
  background-color: var(--first-color);
  border-radius: 5%;
  clip-path: inset(20% 50% 50% 0);
}

.popular__images img {
  width: 100%;
  position: absolute;
}

.popular__coffee {
  width: 130px;
  top: -1.5rem;
}

.popular__bean-1{
  width: 30px;
  top: 3rem;
  left: .5rem;
  transition: transform .5s .1s;
}

.popular__bean-2 {
  width: 20px;
  right: 2rem;
  bottom: 2rem;
  rotate: 75deg;
  filter: blur(1px);
  transition: transform .5s .1s;
}

.popular__data {
  text-align: center;
}

.popular__name {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: .5rem;
}

.popular__description {
  font-size: 40px;
  margin-top: .3rem;
  margin-bottom: .5rem;
  color: white;
}

.popular__card:hover .popular__bean-1 {
  transform: translate(-.5rem, -.25rem);
}

.popular__card:hover .popular__bean-2 {
  transform: translate(-.5rem, -.25rem);
}



/* Swiper class */
.swiper {
    overflow: visible;
    margin-inline: initial;
  }

/*=============== ABOUT ===============*/
.about__container {
  row-gap: 3rem;
}

.about__data {
  text-align: center;
}

.about .section__title,
.about__description {
  text-align: justify;
  color: var(--white-color);
  margin-bottom: 1.5rem;
}

.about__images {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
}

.about__shape {
  width: 300px;
  height: 300px;
  background-color: var(--first-color);
  border-radius: 50%;
}

.about__images img {
  position: absolute;
}

.about__coffee {
  width: 280px;
  filter: drop-shadow(0 8px 16px hsla(166, 85%, 8%, .5));
}

.about__leaf-1,
.about__leaf-2 {
  width: 50px;
}

.about__leaf-1 {
  top: .5rem;
  left: 3.5rem;
  rotate: -105deg;
}

.about__leaf-2 {
  top: 7.75rem;
  right: 2.5rem;
  rotate: -15deg;
}


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

.products {
  background-color: var(--body-first-color);
}

.products .section__title {
  color: var(--dark-color);
}

.products__container {
  grid-template-columns: repeat(2, 1fr);
}

.products__card {
  position: relative;
  background-color: var(--dark-color);
  padding: 1rem .5rem 1.25rem;
}

.products__images {
  position: relative;
  display: grid;
  justify-items: center;
  justify-self: center;
}


.products__shape {
  width: 120px;
  height: 120px;
  background-color: var(--first-color);
  border-radius: 50%;
  clip-path: inset(50% 0 0 0);
}

.products__images img {
  position: absolute;
}

.products__coffee {
  width: 80px;
  top: 0;
  transition: transform .4s;
}

.products__ice-1 {
  width: 30px;
  left: .5rem;
  bottom: 0;
  transition: transform .5s .1s;
}

.products__ice-2 {
  width: 20%;
  top: 3.25rem;
  right: .75rem;
  rotate: 60deg;
  transition: transform .5s .1s;
}

.products__data {
  margin-top: 1.25rem;
}

.products__name {
  color: var(--white-color);
  font-size: var(--h3-font-size);
  margin-bottom: .75rem;
}

.products__price {
  color: var(--first-color);
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
}

.products__button {
  position: absolute;
  right: .5rem;
  bottom: 1.25rem;
  width: 32px;
  height: 32px;
  background-color: var(--first-color);
  color: var(--dark-color);
  font-size: 1.5rem;
  border-radius: 50%;
  box-shadow: 0 4px 8px hsla(166, 85%, 8%, .4);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.products__card:hover .products__coffee {
  transform: translateY(-.25rem);
}

.products__card:hover .products__ice-1 {
  transform: translate(-.25rem, -.25rem)
}

.products__card:hover .products__ice-2 {
  transform: translate(-.5rem, -.5rem)
}

/*=============== CONTACT ===============*/
.contact .section__titel {
  color: var(--white-color);
}

.contact__container,
.contact__info {
  row-gap: 2rem;
}

.contact__info {
  color: var(--white-color);
  text-align: center;
}

.contact__title {
  font-size: var(--h1-font-size);
  margin-bottom: .5rem;
}

.contact__social {
  justify-content: center;
  position: relative;
  display: flex;
  justify-items: center;
  margin-top: 3rem;
  gap: 18px;
  
}

.ri-whatsapp-fill {
  font-size: 50px;
}

.ri-facebook-fill {
  font-size: 50px;
}

.ri-telegram-2-fill {
  font-size: 50px;
}

.ri-instagram-fill {
  font-size: 50px;
}

.ri-tiktok-fill {
  font-size: 50px;
}

.contact__address {
  font-size: 25px;
}

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

.contact__images {
      margin-top: 0;
    }


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

.contact__address {
  font-style: normal;
}

.contact__map {
  color: var(--first-color);
  display: inline-flex;
  align-items: center;
  column-gap: .5rem;
  margin-top: .5rem;
  font-size: 1rem;
}

.contact__map span {
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
}

.contact__images {
  position: relative;
  display: grid;
  justify-items: center;
  margin-top: 3rem;
}

.contact__shape {
  width: 150px;
  height: 150px;
  background-color: var(--first-color);
  border-radius: 25%;
}

.contact__delivery {
  width: 230px;
  position: absolute;
  top: -2.5rem;
  mask-image: linear-gradient(to bottom,
              var(--first-color) 80%,
              transparent 100%);
}


/*=============== FOOTER ===============*/
.footer {
  background-color: var(--body-first-color);
  padding-block: 4rem 2rem;
}

.footer__container {
  row-gap: 3rem;
}

.footer__title {
  font-size: var(--h2-font-size);
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.footer__social,
.footer__pay,
.footer__form {
  display: flex;
  column-gap: 1rem;
  justify-items: center;
}

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

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

.footer__pay-card {
  width: 30px;
}

.footer__form {
  background-color: var(--dark-color);
  padding: .5rem;
}

.footer__input {
  width: 100%;
  background: transparent;
  padding-left: .75rem;
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
}

.footer__input::placeholder {
  color: var(--white-color);
}

.footer__button {
  padding: .75rem 1.5rem;
  color: var(--dark-color);
  cursor: pointer;
}

.footer__copy {
  display: block;
  margin-top: .5rem;
  color: var(--dark-color);
  text-align: center;
  font-size: var(--small-font-size);
}


/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: .6rem;
  background-color: hsl(166, 20%, 30%);
}

::-webkit-scrollbar-thumb {
  
  background-color: hsl(166, 20%, 40%);
}

::-webkit-scrollbar-thumb:hover {
  
  background-color: hsl(166, 20%, 50%);
}




/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--body-color);
  box-shadow: 0 4px 8px hsla(166, 85%, 8%, .4);
  color: var(--white-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: 330px) {
  .container {
    margin-inline: 1rem;
   } 
    
  .section__title {
      font-size: 2rem;
    }
  
  .home__title {
      font-size: 3.5rem;
    }

  .home__shape {
    width: 250px;
    height: 250px;
    }

  .home__coffee {
    width: 145px;
    }

  .home__splash {
    width: 310px;
  }

  .home__sticker {
    top: 25rem;
  }

  .about__shape {
    width: 250px;
    height: 250px;
  }

  .about__coffee {
    width: 240px;
  }

  .products__container {
    grid-template-columns: 160px;
    justify-content: center;
  }

  .contact__shape {
    width: 250px;
    height: 250px;
  } 

  .contact__delivery {
    width: 190px;
  }
}

/* For medium devices */

@media screen and (min-width: 576px) {
  .home__container,
  .about__container {
    grid-template-columns: 400px;
    justify-content: center;
  }

  .products__container {
    grid-template-columns: repeat(2, 160px);
    justify-content: center;
  }

  .footer__form {
    width: 360px;
  }

}

@media screen and (min-width:768px) {
  .popular__swiper {
    width: 850px;
    overflow-x: clip;
    justify-self: center;
  }

  .products__container {
    grid-template-columns: repeat(3, 160px);
  }

  .contact__container {
    justify-content: center;
  }

  .contact__info {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    column-gap: 6rem;
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
  }

  .footer div:nth-child(3) {
    grid-column: 1/3;
  }

  .footer__title {
    text-align: center;
  }

}

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

    .section {
      padding-block: 7rem 5rem;
    }

    .section__title {
      margin-bottom: 4rem;
    }

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

    .nav_logo a,
    img {
    width: 100%;
    height: auto;
    }

    .nav__toggle,
    .nav__close {
      display: none;
    }

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

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

    .home__container {
      grid-template-columns: 970px;
      max-width: 970px;
      padding-top: 2.5rem;
    }

    .home__images {
      transform: translate(1rem, -2rem);
    }

    .home__shape {
      width: 490px;
      height: 490px;
    }

    .home__coffee {
      width: 280px;
      top: -6rem;
    }

    .home__splash {
      width: 615px;
      left: -5rem;
      bottom: .75rem;
    }

    .home__bean-1,
    .home__bean-2 {
      width: 70px;
    }

    .home__bean-1 {
      left: 3rem;
      top: 3.5rem;
    }

    .home__bean-2 {
      bottom: 10.75rem;
      right: 6.5rem;
    }

    .home__ice-1 {
      width: 90px;
      left: 2.5rem;
      bottom: 5rem;
    }

    .home__ice-2 {
      width: 70px;
      top: 6.5rem;
      right: 2rem;
    }

    .home__leaf {
      width: 90px;
      right: 10rem;
      bottom: -2.5rem;
    }

    .home__data {
      position: absolute;
      top: 20rem;
      left: 0;
      width: 230px;
      text-align: initial;
      margin-top: 0;
    }

    .home__description {
      margin-bottom: 6rem;
    }

    .home__sticker {
      width: 150px;
      top: 23rem;
      right: 0;
    }

    .popular__container {
      padding-bottom: 2rem;
    }

    .popular__swiper {
      width: 1000px;
    }

    .popular__card {
      width: 280px;
    }

    .popular__shape {
      width: 280px;
      height: 280px;
    }

    .popular__coffee {
      width: 185px;
      top: -2rem;
    }

    .popular__images img{
      width: 100%;
      height: auto;
      border-radius: 8px; /* Opcional: bordes redondeados para la imagen */

    }

    .popular__data {
      margin-top: 12px; /* Espacio obligatorio entre la imagen y el párrafo */
      text-align: center; /* Alineación del texto */
      color: #333; /* Color del texto */
      font-size: 16px; 
    }

    
    .about__container {
      grid-template-columns: 430px 500px;
      align-items: center;
      column-gap: 6rem;
      padding-block: 2rem;
    }

    .about__data,
    .about .section__title {
      text-align: initial;
    }

    .about__description {
      margin-bottom: 4rem;
    }

    .about__shape {
      width: 500px;
      height: 500px;
    }

    .about__coffee {
      width: 480px;
    }

    .about__leaf-1,
    .about__leaf-2 {
      width: 85px;
    }

    .about__leaf-1 {
      top: .75rem;
      left: 6rem;
    }

    .about__leaf-2 {
      top: 13rem;
      right: 3.5rem;
    }

    

    .contact .section__title {
      font-size: var(--biggest-font-size);
    }

    .contact__container {
      grid-template-columns: repeat(3, max-content);
      align-items: flex-start;
      column-gap: 3rem;
    }

    .contact__info {
      grid-template-columns: max-content;
      row-gap: 6rem;
      margin-top: 7rem;
    }

    .contact__info:nth-child(2) {
      order: 2;
    }

    .contact__title {
      flex-wrap: 10px;
      font-size: 20px;
      margin-bottom: 1rem;
      margin-left: 50px;
    }

    .contact__address {
      font-size: 20px;
      margin-right: -5px;
    }

    

    .contact__social {
    justify-content: right;
    position: relative;
    display: flex;
    justify-items: center;
    margin-top: 2rem;
    gap: 1px;
    }

    .ri-whatsapp-fill {
      font-size: 50px;
    }

    .ri-facebook-fill {
      font-size: 50px;
    }

    .ri-telegram-2-fill {
      font-size: 50px;
    }

    .ri-instagram-fill {
      font-size: 50px;
    }

    .ri-tiktok-fill {
      font-size: 50px;
    }

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

    .contact__images {
      margin-top: 0;
    }

    .contact__shape {
      width: 500px;
      height: 500px;
    }

    .contact__delivery {
      width: 380px;
      top: -3.5rem;
    }

    .footer__container {
      grid-template-columns: repeat(3, 1fr);
    }

    .footer__container div:nth-child(3) {
      grid-column: initial;
    }

    .footer__container div:nth-child(2) {
      order: 1;
      justify-self: end;
      
    }

    .footer__container div:nth-child(1) {
      justify-self: start;
    }

    .footer__social,
    .footer__pay{
      margin-inline: auto;
      justify-content: center;
    }

    .footer__copy {
      margin-top: 5rem;
    }

    .scrollup {
      right: 3rem;
    }
   
}

/* For 2K resolutions (2048 x 1152, 2048 x 1536) */

@media screen and (min-width: 2048px) {
  body {
    zoom: 1.3;
  }

  .nav_logo a,
  img {
  width: 100%;
  height: auto;
  }

}
