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

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

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(19, 64%, 54%);
  --first-color-alt: hsl(19, 64%, 52%);
  --title-color: hsl(19, 16%, 15%);
  --text-color: hsl(19, 16%, 35%);
  --text-color-light: hsl(19, 8%, 55%);
  --body-color: hsl(19, 100%, 96%);
  --container-color: hsl(19, 100%, 97%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --title-font: "Lora", serif;
  --subtitle-font: "Dancing Script", cursive;
  --biggest-font-size: 2.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

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

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}
@media screen and (min-width: 1024px) {
  :root {
    --biggest-font-size: 4rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

/*=============== 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);
  transition: background 0.4s; /* for dark mode animation */
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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


/*=============== THEME ===============*/
/* Alinear los botones del tema */
.nav__buttons {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

/* Icono de cambio de tema */
.change-theme {
  color: var(--title-color);
  font-size: 1.25rem;
  cursor: pointer;
  transition: color 0.3s;
}

/* Variables del tema oscuro */
body.dark-theme {
  --first-color: hsl(19, 64%, 58%);
  --first-color-alt: hsl(19, 64%, 54%);
  --title-color: hsl(19, 24%, 85%);
  --text-color: hsl(19, 16%, 65%);
  --body-color: hsl(19, 12%, 8%);
  --container-color: hsl(19, 10%, 10%);
}

/* Cambios de color en algunas partes del sitio en el tema oscuro */
.dark-theme .bg-header,
.dark-theme .nav__menu,
.dark-theme .scrollup {
  box-shadow: 0 2px 8px hsla(19, 64%, 4%, 0.5);
}

.dark-theme .popular__card {
  box-shadow: 0 8px 20px hsla(19, 64%, 4%, 0.2);
}

.dark-theme .newsletter__content {
  background-color: var(--container-color);
}

.dark-theme .newsletter__form .newsletter__input {
  background-color: var(--body-color);
}

/* Barra de desplazamiento */
.dark-theme::-webkit-scrollbar {
  background-color: hsl(19, 8%, 15%);
}

.dark-theme::-webkit-scrollbar-thumb {
  background-color: hsl(19, 8%, 25%);
}

.dark-theme::-webkit-scrollbar-thumb:hover {
  background-color: hsl(19, 8%, 35%);
}

/* Estilos para el formulario de contacto en el tema oscuro */
.dark-theme .contact-bar__form {
  background-color: var(--container-color); /* Fondo oscuro */
  border-radius: 10px; /* Bordes redondeados */
  padding: 20px; /* Espaciado interno */
}

.dark-theme .contact-bar__input,
.dark-theme .contact-bar__textarea {
  color: var(--title-color); /* Color del texto */
  background-color: var(--body-color); /* Fondo del campo de entrada */
  border: 1px solid var(--text-color); /* Borde del campo de entrada */
}

.dark-theme .contact-bar__button {
  background-color: var(--first-color); /* Color de fondo del botón */
  color: #fff; /* Color del texto del botón */
}

.dark-theme .contact-bar__button:hover {
  background-color: var(--first-color-alt); /* Color de fondo del botón al pasar el mouse */
}
.dark-theme .section__subtitle,
.dark-theme .section__title {
  color: var(--title-color);
  background-color: var(--container-color);
}

.dark-theme .contact-bar__description {
  color: var(--text-color);
  background-color: var(--container-color);
}

.dark-theme .contact-bar__container {
  background-color: var(--container-color);
}

.dark-theme .contact-bar__data br,
.dark-theme .contact-bar__description br {
  color: var(--text-color);
}

.dark-theme .contact-bar {
  background-color: var(--container-color);
}

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

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

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

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

.section__subtitle {
  display: block;
  font-size: var(--h2-font-size);
  font-family: var(--subtitle-font);
  color: var(--first-color);
  margin-bottom: 0.5rem;
}

.section__title,
.section__subtitle {
  text-align: center;
}

.main {
  overflow: hidden; /* For animation ScrollReveal */
}


/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  background-color: var(--body-color);
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: box-shadow 0.3s, background 0.4s;
}

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

.nav__logo,
.nav__toggle,
.nav__close {
  display: flex;
  color: var(--title-color);
}

.nav__logo {
  align-items: center;
  column-gap: 0.5rem;
  font-family: var(--title-font);
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  transition: color 0.3s;
}

.nav__logo img {
  width: 25px;
}

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

.nav__toggle {
  font-size: 1.25rem;
  cursor: pointer;
}

.nav__menu {
  position: fixed;
  top: -100%;
  left: 0;
  background-color: var(--body-color);
  width: 100%;
  box-shadow: 0 8px 20px hsla(19, 64%, 24%, 0.1);
  padding-block: 3.5rem;
  transition: top 0.4s;
}

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

.nav__item {
  /* Agregué esto para asegurarme de que los elementos de la lista se vean correctamente */
  margin-bottom: 1rem;
}

.nav__link {
  color: var(--title-color);
  font-weight: var(--font-medium);
  transition: color 0.4s;
}

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

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.nav__img-1,
.nav__img-2 {
  position: absolute;
  opacity: 0.2;
}

.nav__img-1 {
  width: 100px;
  top: -75rem;
  left: -2rem;
  transform: rotate(165deg);
}

.nav__img-2 {
  width: 50px;
  right: -1rem;
  bottom: 0rem;
  transform: rotate(-30deg);
}

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

/* Change background header */
bg-header {
  box-shadow: 0 4px 20px hsla(19, 64%, 24%, 0.1);
}

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

/* Media query para pantallas más grandes */
@media screen and (min-width: 767px) {
  .nav__menu {
    position: relative; /* Cambié la posición a relativa para que el menú no esté fijo en pantallas más grandes */
    top: auto; /* Removí la propiedad top para evitar que el menú esté fuera de la vista en pantallas más grandes */
    box-shadow: none; /* Removí la sombra del menú en pantallas más grandes */
    padding: 0; /* Removí el padding del menú en pantallas más grandes */
    display: flex; /* Mostrar el menú como una fila en pantallas más grandes */
    justify-content: space-between; /* Alinear elementos en el menú en pantallas más grandes */
    align-items: center; /* Alinear elementos en el menú en pantallas más grandes */
    width: auto; /* Ancho automático en pantallas más grandes */
  }

  .nav__list {
    display: flex; /* Mostrar la lista de navegación como una fila en pantallas más grandes */
    flex-direction: row; /* Alinear la lista de navegación horizontalmente en pantallas más grandes */
  }

  .nav__toggle {
    display: none; /* Ocultar el botón de alternancia del menú en pantallas más grandes */
  }

  .nav__buttons {
    display: flex; /* Mostrar los botones en una fila en pantallas más grandes */
  }
}

/*=============== HOME ===============*/
.home {
  position: relative;
}

.home__container {
  padding-top: 2rem;
  row-gap: 3rem;
}

.home__img {
  width: 100%; /* Ancho completo */
  max-width: 400px; /* Ancho máximo */
  height: auto; /* Altura automática para mantener la proporción */
  display: block; /* Asegura que la imagen se muestre como un bloque */
  margin: 0 auto; /* Centra la imagen horizontalmente */
  border-radius: 10px; /* Añade bordes redondeados */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); /* Sombra */
}

.home__data {
  text-align: center;
}

.home__title {
  font-size: var(--biggest-font-size);
  font-family: var(--title-font);
  margin-bottom: 1rem;
}

.home__title img {
  width: 40px;
}

.home__title div {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.5rem;
}

.home__description {
  padding: 0 1rem;
  margin-bottom: 2.5rem;
}

.home__leaf-1,
.home__leaf-2 {
  position: absolute;
  opacity: 0.4;
}
.home__leaf-1 {
  width: 80px;
  top: 8rem;
  left: -1rem;
  transform: rotate(90deg);
}
.home__leaf-2 {
  width: 100px;
  right: -2rem;
  bottom: 1rem;
  transform: rotate(15deg);
}

/*=============== BUTTON ===============*/
.button {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  background-color: var(--first-color);
  padding: 1rem 1.5rem;
  border-radius: 4rem;
  color: #fff;
  font-weight: var(--font-medium);
  transition: background 0.3s;
}

.button i {
  font-size: 1.5rem;
  transition: transform 0.3s;
}

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

.button:hover i {
  transform: translateX(0.25rem);
}

/*=============== ABOUT ===============*/
.about {
  position: relative;
}

.about__container {
  row-gap: 3rem;
}

.about__data {
  text-align: center;
}

.about__title img {
  width: 30px;
}

.about__title div {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.5rem;
}

.about__img {
  width: 300px;
  justify-self: center;
}

.about__leaf {
  width: 100px;
  opacity: 0.5;
  position: absolute;
  right: -1.5rem;
  bottom: 11rem;
  transform: rotate(-15deg);
}

  .about__locations {
  list-style-type: disc; /* Tipo de viñeta para la lista */
  margin-top: 1rem;
  padding-left: 1.5rem; /* Espaciado a la izquierda para alinear las viñetas */
}

.about__locations li {
  margin-bottom: 0.5rem; /* Espaciado entre cada ítem de la lista */
  color: #333; /* Color de texto para las localidades */
}
/* Estilo para el texto resaltado */
.highlight {
  font-weight: bold;
  text-decoration: underline;
  color: #2c3e50; /* Color oscuro para resaltar */
  margin-bottom: 1rem; /* Margen inferior para separación */
}

/* Estilo para la lista de localidades */
.highlight-list {
  list-style-type: disc; /* Tipo de viñeta para la lista */
  padding-left: 1.5rem; /* Espaciado a la izquierda para alinear las viñetas */
  color: #333; /* Color de texto para las localidades */
}

.highlight-list li {
  margin-bottom: 0.5rem; /* Espaciado entre cada ítem de la lista */
  font-weight: bold;
  color: #2c3e50; /* Color oscuro para resaltar */
}

/*=============== POPULAR ===============*/
/* Estilos para la sección de marcas populares */
/* Estilos para la sección de marcas populares */
/* Estilos para la sección de marcas populares */
.popular__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Ajuste automático de columnas */
  gap: 20px; /* Espaciado entre elementos */
}

.popular__card {
  position: relative;
  background-color: var(--container-color);
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 20px hsla(19, 64%, 48%, 0.8);
  transition: transform 0.4s;
  text-align: center;
}

.popular__img {
  position: relative;
  width: 100%;
  max-width: 220px;
  margin: 0 auto 1rem; /* Margen inferior aumentado para separar la imagen del texto */
  display: block;
  transition: transform 0.4s;
}

.popular__name {
  font-size: var(--h3-font-size);
  font-family: var(--title-font);
  margin-bottom: 0.5rem; /* Incrementado para separar el nombre de la descripción */
}

.popular__description {
  font-size: var(--small-font-size);
  margin-bottom: 0.75rem; /* Incrementado para separar la descripción del precio */
}

.popular__price {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  color: var(--first-color);
  margin-bottom: 1.25rem; /* Incrementado para separar el precio del botón */
}

.popular__button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--first-color);
  color: #fff;
  font-size: 1.25rem;
  padding: 0.6rem;
  border-radius: 50%;
  border: none;
  outline: none;
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
}

.popular__card:hover .popular__img {
  transform: translateY(-0.25rem);
}

.popular__card:hover {
  transform: translateY(-0.25rem);
  transition: transform 0.3s ease;
}



/*=============== RECENTLY ===============*/
.recently {
  position: relative;
}

.recently__container {
  row-gap: 4rem;
}

.recently__data {
  position: relative;
  text-align: center;
}

.recently__description {
  margin-bottom: 2rem;
}

.recently__data-img {
  width: 25px;
  position: absolute;
  top: 3.5rem;
  right: 1.5rem;
  transform: rotate(30deg);
}

.recently__img {
  width: 300px;
  justify-self: center;
}

.recently__leaf-1,
.recently__leaf-2 {
  position: absolute;
  opacity: 0.2;
}

.recently__leaf-1 {
  width: 80px;
  top: 17rem;
  left: -1rem;
  transform: rotate(15deg);
}

.recently__leaf-2 {
  width: 40px;
  right: -1.5rem;
  bottom: 12rem;
  transform: rotate(-30deg);
}

/* Estilos para la sección de la barra de contacto */
.contact-bar {
  background-color: #f8f9fa; /* Color de fondo */
  padding: 20px 0; /* Espaciado interno */
}

.contact-bar__container {
  max-width: 1200px; /* Ancho máximo */
  margin: 0 auto; /* Centrar en la página */
}

.contact-bar__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px; /* Espacio entre elementos */
  align-items: center;
}

.contact-bar__data {
  text-align: center;
}

.contact-bar__form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px; /* Espacio entre campos */
}

.contact-bar__input,
.contact-bar__textarea {
  width: 100%; /* Ancho completo */
  padding: 10px; /* Espaciado interno */
  border: 1px solid #ccc; /* Borde */
  border-radius: 5px; /* Bordes redondeados */
}

.contact-bar__button {
  display: inline-block;
  padding: 10px 20px; /* Espaciado interno */
  background-color: var(--first-color); /* Color de fondo */
  color: #fff; /* Color del texto */
  border: none; /* Sin borde */
  border-radius: 5px; /* Bordes redondeados */
  cursor: pointer; /* Cursor al pasar */
}

.contact-bar__button:hover {
  background-color: var(--title-color); /* Color de fondo al pasar */
}


/*=============== FOOTER ===============*/
.footer {
  position: relative;
  padding-block: 3rem 2rem;
  overflow: hidden;
}

.footer__container {
  row-gap: 3rem;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  color: var(--title-color);
  font-family: var(--title-font);
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.footer__logo img {
  width: 25px;
}

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

.footer__description .footer__link .footer__information {
  font-size: var(--small-font-size);
}

.footer__content,
.footer__links {
  display: grid;
}

.footer__content {
  grid-template-columns: repeat(2, max-content);
  gap: 2.5rem 3.5rem;
}

.footer__title {
  font-size: var(--h3-font-size);
  margin-bottom: 1.5rem;
}

.footer__links {
  row-gap: 0.5rem;
}

.footer__link {
  color: var(--text-color);
  font-size: var(--small-font-size);
  transition: color 0.3s;
}

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

.footer__social {
  display: flex;
  column-gap: 1.25rem;
}

.footer__social-link {
  color: var(--first-color);
  font-size: 1.25rem;
  transition: color 0.3s, transform 0.3s;
}

.footer__social-link:hover {
  color: var(--first-color-alt);
  transform: translateY(-2px);
}

.footer__onion,
.footer__spinach {
  width: 30px;
  position: absolute;
}

.footer__onion {
  top: 7.5rem;
  right: 5rem;
  transform: rotate(-45deg);
}

.footer__spinach {
  bottom: 8rem;
  left: 3rem;
  transform: rotate(30deg);
}

.footer__leaf {
  width: 100px;
  opacity: 0.2;
  position: absolute;
  bottom: 6rem;
  right: -2rem;
  transform: rotate(-15deg);
}

.footer__info,
.footer__card {
  display: flex;
}

.footer__info {
  margin-top: 6.5rem;
  flex-direction: column;
  row-gap: 1.5rem;
}

.footer__card {
  column-gap: 1rem;
  justify-content: center;
}

.footer__card img {
  width: 35px;
}
.footer__copy {
  text-align: center;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

.footer__iframe-container {
  position: relative;
  overflow: hidden;
  width: 200%;
  padding-top: 150%; /* Aspect ratio ajustado para mostrar el mapa completo */
}

.footer__iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/*=============== SCROLL BAR ===============*/

::-webkit-scrollbar {
  width: 0.6rem;
  border-radius: 0.5rem;
  background-color: hsl(19, 8%, 75%);
}

::-webkit-scrollbar-thumb {
  width: 0.6rem;
  border-radius: 0.5rem;
  background-color: hsl(19, 8%, 65%);
}

::-webkit-scrollbar {
  background-color: hsl(19, 8%, 55%);
}

/*=============== SCROLL UP ===============*/

.scrollup {
  position: fixed;
  right: 1rem;
  bottom: 3rem;
  background-color: var(--container-color);
  box-shadow: 0 4px 12px hsla(19, 64%, 24%, 0.1);
  display: none; /* Ocultarlo por defecto */
  padding: 0.35rem;
  border-radius: 0.25rem;
  font-size: 1.1rem;
  color: var(--title-color);
  z-index: var(--z-tooltip);
  transition: bottom 0.3s, transform 0.3s, background 0.4s;
}

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

/* Mostrar Scroll Up */
.show-scroll {
  display: inline-flex; /* Mostrar cuando se añade la clase */
}

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

/* Show Scroll Up*/

.show-scroll {
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/

/* For small devices (mobile) */
@media screen and (max-width: 576px) {
  :root {
    --biggest-font-size: 1.75rem;
    --h1-font-size: 1.25rem;
    --h2-font-size: 1.125rem;
    --h3-font-size: 0.875rem;
    --normal-font-size: 0.75rem;
    --small-font-size: 0.688rem;
    --smaller-font-size: 0.625rem;
  }

  .section {
    padding-block: 3rem 1rem;
  }

  .home__container {
    row-gap: 2rem;
  }

  .home__img {
    width: 250px;
  }

  .about__container {
    row-gap: 2rem;
  }

  .about__img {
    width: 250px;
  }

  .popular_container {
    grid-template-columns: 1fr;
  }

  .popular__card {
    padding: 6rem 1.5rem 1rem;
  }

  .recently__container {
    row-gap: 2rem;
  }

  .newsletter__content {
    padding: 3rem 1rem;
  }
}

/* For medium devices (tablets) */
@media screen and (min-width: 576px) and (max-width: 1024px) {
  :root {
    --biggest-font-size: 2.25rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.813rem;
    --smaller-font-size: 0.75rem;
  }

  .home__container {
    row-gap: 2.5rem;
  }

  .home__img {
    width: 280px;
  }

  .about__container {
    row-gap: 2.5rem;
  }

  .about__img {
    width: 280px;
  }

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

  .popular__card {
    padding: 6.5rem 1.5rem 1rem;
  }

  .recently__container {
    row-gap: 2.5rem;
  }

  .newsletter__content {
    padding: 4rem 1rem;
  }

  nav__close {
    visibility: hidden;
  }
}

/* For large devices (desktops) */
@media screen and (min-width: 1024px) {
  :root {
    --biggest-font-size: 3rem;
    --h1-font-size: 2rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }

  .home__container {
    row-gap: 3rem;
  }

  .home__img {
    width: 300px;
  }

  .about__container {
    row-gap: 3rem;
  }

  .about__img {
    width: 300px;
  }

  .popular_container {
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
  }

  .popular__card {
    padding: 7rem 2rem 1.5rem;
  }

  .recently__container {
    row-gap: 3rem;
  }

  .newsletter__content {
    padding: 5rem 1rem;
  }

  .nav__close {
    visibility: hidden;
  }
}

