/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap");

/*===== PERFORMANCE OPTIMIZATION =====*/
* {
  box-sizing: border-box;
}

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

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

  /*========== Colors - Paleta Las Leñas ==========*/
  --first-color: #C41E1E;
  --first-color-alt: #8B1515;
  --first-color-light: #E84330;
  --accent-color: #D4A44C;
  --accent-color-alt: #B8802A;
  --title-color: #1A0A05;
  --logo-dark-color: #1A0A05;
  --text-color: #333333;
  --text-color-light: #777777;
  --body-color: #FFFFFF;
  --container-color: #FAFAFA;
  --shadow-color: rgba(0, 0, 0, 0.06);
  --warm-bg: #F9F9F9;

  /*========== Font and Typography ==========*/
  --title-font: "Playfair Display", Georgia, serif;
  --body-font: "Lato", sans-serif;

  --big-font-size: 2.75rem;
  --h1-font-size: 2rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1.063rem;
  --small-font-size: 0.938rem;
  --smaller-font-size: 0.813rem;

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

  /*========== Margins ==========*/
  --mb-1: 0.5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;

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

@media screen and (min-width: 768px) {
  :root {
    --big-font-size: 3.5rem;
    --h1-font-size: 2.5rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.375rem;
    --normal-font-size: 1.125rem;
    --small-font-size: 1rem;
    --smaller-font-size: 0.875rem;
  }
}

/*========== BASE ==========*/
*,
::before,
::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background: var(--body-color);
  color: var(--text-color);
  line-height: 1.7;
}

/*========== CSS Reset ==========*/
h1, h2, h3, p, ul {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
}



/*========== CLASS CSS ==========*/
.section {
  padding: 6rem 0 3rem;
}
.section-title,
.section-subtitle {
  text-align: center;
}
.section-title {
  font-size: var(--h1-font-size);
  font-family: var(--title-font);
  color: var(--title-color);
  margin-bottom: var(--mb-4);
}
.section-subtitle {
  display: block;
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-1);
  font-family: var(--body-font);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: var(--small-font-size);
}

/*========== LAYOUT ==========*/
.bd-container {
  max-width: 1080px;
  width: calc(100% - 3rem);
  margin-left: auto;
  margin-right: auto;
}
.bd-grid {
  display: grid;
  gap: 2rem;
}
.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--body-color);
}

/*========== NAV ==========*/
.nav {
  max-width: 1080px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media screen and (max-width: 768px) {
  .nav_menu {
    position: fixed;
    top: -100%;
    left: 5%;
    width: 90%;
    padding: 2.5rem 0 1.5rem;
    text-align: center;
    background-color: var(--container-color);
    transition: 0.4s;
    box-shadow: 0 4px 20px var(--shadow-color);
    border-radius: 1.25rem;
    z-index: var(--z-fixed);
  }
}
.nav_item {
  margin-bottom: var(--mb-3);
}
.nav_link {
  color: var(--text-color);
  font-weight: var(--font-semi-bold);
  font-size: var(--normal-font-size);
  transition: 0.3s;
}
.nav_link:hover {
  color: var(--first-color);
}
.hidden_item {
  display: none;
}
.menu {
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  padding: 0;
  visibility: visible;
  z-index: 100;
}
.line {
  fill: none;
  stroke: var(--text-color);
  stroke-width: 6;
  transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.line1 { stroke-dasharray: 60 207; stroke-width: 6; }
.line2 { stroke-dasharray: 60 207; stroke-width: 6; }
.line3 { stroke-dasharray: 60 207; stroke-width: 6; }
.opened .line1 { stroke-dasharray: 90 207; stroke-dashoffset: -134; stroke-width: 6; }
.opened .line2 { stroke-dasharray: 1 60; stroke-dashoffset: -30; stroke-width: 6; }
.opened .line3 { stroke-dasharray: 90 207; stroke-dashoffset: -134; stroke-width: 6; }

.nav_logo {
  display: flex;
  align-items: center;
}
.nav_logo-img {
  height: 55px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.nav_logo:hover .nav_logo-img {
  transform: scale(1.05);
}

/* Show Menu */
.show-menu {
  top: calc(var(--header-height) + 1rem);
}

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

/* Change background header */
.scroll-header {
  box-shadow: 0 2px 10px var(--shadow-color);
}

/* Scroll Top */
.scrollTop {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  background: var(--first-color);
  border-radius: 0.5rem;
  z-index: var(--z-tooltip);
  transition: 0.4s;
  visibility: hidden;
}
.scrollTop:hover {
  background-color: var(--first-color-alt);
}
.scrollTop_icon {
  font-size: 2rem;
  color: #fff;
}
.show-scroll {
  visibility: visible;
  bottom: 1.5rem;
}

/*========== HOME ==========*/
.home_container {
  height: calc(100vh - var(--header-height));
  align-content: center;
  padding: 2rem 0;
}
.home_title {
  font-size: var(--big-font-size);
  font-family: var(--title-font);
  color: var(--first-color);
  margin-bottom: var(--mb-2);
  line-height: 1.15;
}
.home_subtitle {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-2);
  font-family: var(--body-font);
  font-weight: 300;
}
.home_description {
  font-size: var(--normal-font-size);
  color: var(--text-color-light);
  margin-bottom: var(--mb-4);
  max-width: 440px;
  line-height: 1.8;
}
.home_buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.home_img-wrapper {
  justify-self: center;
  display: flex;
  align-items: center;
}
.home_img {
  width: 380px;
  border-radius: 2rem;
  box-shadow: 0 20px 60px rgba(196, 30, 30, 0.15);
  object-fit: cover;
}

/*========== BUTTONS ==========*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 0.75rem;
  transition: 0.3s;
  font-family: var(--body-font);
  font-weight: 700;
  font-size: var(--normal-font-size);
  border: none;
  cursor: pointer;
}
.button:hover {
  background-color: var(--first-color-alt);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 30, 30, 0.3);
}
.button i {
  font-size: 1.2rem;
  vertical-align: middle;
  margin-right: 0.3rem;
}
.button--outline {
  background: transparent;
  border: 2px solid var(--first-color);
  color: var(--first-color);
}
.button--outline:hover {
  background: var(--first-color);
  color: #fff;
}

/* WhatsApp button variant */
.whatsapp-btn {
  background-color: #25D366;
}
.whatsapp-btn:hover {
  background-color: #1DA851;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}
.phone-btn {
  background-color: var(--accent-color);
}
.phone-btn:hover {
  background-color: var(--accent-color-alt);
  box-shadow: 0 6px 20px rgba(212, 164, 76, 0.3);
}

/*========== ABOUT ==========*/
.about_data {
  text-align: center;
}
.about_description {
  margin-bottom: var(--mb-4);
  font-size: var(--normal-font-size);
  line-height: 1.8;
}
.about_images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  justify-self: center;
}
.about_img {
  width: 100%;
  height: 280px;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  transition: 0.3s;
}
.about_img:first-child {
  border-radius: 1rem 0.25rem 0.25rem 1rem;
}
.about_img:last-child {
  border-radius: 0.25rem 1rem 1rem 0.25rem;
}
.about_img:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

/*========== SERVICES ==========*/
.services_container {
  row-gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.services_content {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--container-color);
  border-radius: 1.25rem;
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: 0.3s;
}
.services_content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(196, 30, 30, 0.12);
}
.services_icon {
  font-size: 3.5rem;
  color: var(--first-color);
  margin-bottom: var(--mb-3);
}
.services_title {
  font-size: var(--h3-font-size);
  font-family: var(--title-font);
  color: var(--title-color);
  margin-bottom: var(--mb-2);
}
.services_description {
  padding: 0 1rem;
  color: var(--text-color-light);
  font-size: var(--normal-font-size);
  line-height: 1.7;
}

/*========== FOODS ==========*/
.foods_container {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  justify-content: center;
  gap: 2rem;
}
.foods_content {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--container-color);
  border-radius: 1.25rem;
  box-shadow: 0 4px 20px var(--shadow-color);
  padding: 1.25rem;
  transition: 0.3s;
  overflow: hidden;
}
.foods_content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(196, 30, 30, 0.12);
}
.foods_img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: var(--mb-2);
}
.foods_name,
.foods_price {
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}
.foods_name {
  font-size: var(--h3-font-size);
  font-family: var(--title-font);
  margin-bottom: var(--mb-1);
}
.foods_detail {
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-1);
  color: var(--text-color-light);
}
.foods_price {
  font-size: var(--h3-font-size);
  color: var(--first-color);
  font-weight: 700;
}
.foods_button {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  padding: 0.75rem 1rem;
  border-radius: 1.25rem 0 1.25rem 0;
  font-size: 1.2rem;
}

/*========== MENÚ COMPLETO ==========*/
.menu-full {
  padding-bottom: 4rem;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.menu-category {
  background: var(--container-color);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 4px 20px var(--shadow-color);
}
.menu-category_title {
  font-family: var(--title-font);
  color: var(--first-color);
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-3);
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--first-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.menu-category_title i {
  font-size: 1.75rem;
}
.menu-items {
  list-style: none;
  padding: 0;
}
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px dotted #e0d5cc;
  color: var(--text-color);
  font-size: var(--normal-font-size);
}
.menu-item:last-child {
  border-bottom: none;
}
.menu-price {
  color: var(--first-color);
  font-weight: 700;
  white-space: nowrap;
  margin-left: 1rem;
  font-size: var(--normal-font-size);
}

/* hide price elements when removed and keep list centered */
.foods_price,
.menu-price {
  display: none;
}

.menu-item {
  justify-content: center;
}

.menu-item span:first-child {
  flex: 1;
  text-align: center;
}

/*========== GALLERY ==========*/
.gallery {
  padding-bottom: 4rem;
}
.gallery_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  max-width: 1080px;
  margin: 0 auto;
}
.gallery_card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-color);
  cursor: pointer;
  transition: 0.3s;
}
.gallery_card--wide {
  grid-column: span 2;
}
.gallery_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(196, 30, 30, 0.15);
}
.gallery_card:hover .gallery_overlay {
  opacity: 1;
}
.gallery_img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.gallery_card--wide .gallery_img {
  height: 280px;
}
.gallery_card:hover .gallery_img {
  transform: scale(1.05);
}
.gallery_overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(26, 10, 5, 0.85));
  padding: 2rem 1rem 1rem;
  opacity: 0;
  transition: 0.3s;
}
.gallery_caption {
  color: #fff;
  font-size: var(--normal-font-size);
  font-weight: 700;
}

/*========== APP / PEDIDOS ==========*/
.app_data {
  text-align: center;
}
.app_description {
  margin-bottom: var(--mb-5);
  font-size: var(--normal-font-size);
  line-height: 1.8;
}
.app_stores {
  margin-bottom: var(--mb-4);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.app_img {
  width: 320px;
  justify-self: center;
  border-radius: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/*========== CONTACT ==========*/
.contact_container {
  text-align: center;
}
.contact_info {
  display: grid;
  gap: 1.5rem;
  text-align: left;
  margin-top: var(--mb-4);
}
.contact_info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.contact_info-item i {
  font-size: 2rem;
  color: var(--first-color);
  margin-top: 0.2rem;
}
.contact_info-item h4 {
  font-family: var(--title-font);
  color: var(--title-color);
  font-size: var(--h3-font-size);
  margin-bottom: 0.3rem;
}
.contact_info-item p {
  color: var(--text-color-light);
  font-size: var(--normal-font-size);
  line-height: 1.6;
}
.contact_link {
  color: var(--first-color);
  font-weight: 700;
  transition: 0.3s;
}
.contact_link:hover {
  color: var(--first-color-alt);
}
.contact_map {
  margin-top: var(--mb-4);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.contact_map iframe {
  display: block;
}

/*========== WHATSAPP FLOATING BUTTON ==========*/
.whatsapp-float {
  position: fixed;
  bottom: 5rem;
  right: .5rem;
  width: 64px;
  height: 64px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: var(--z-tooltip);
  transition: 0.3s;
  animation: whatsapp-pulse 2s infinite;
}
.whatsapp-float:hover {
  background-color: #1DA851;
  transform: scale(1.1);
}
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

/*========== FOOTER ==========*/
.footer {
  background-color: var(--warm-bg);
}
.footer_container {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  row-gap: 2.5rem;
}
.footer_logo {
  color: var(--logo-dark-color);
  font-size: 1.5rem;
  font-family: var(--title-font);
}
.footer_logo span {
  margin-top: -0.8rem;
  color: var(--first-color);
}
.footer_description {
  display: block;
  font-size: var(--normal-font-size);
  margin: 0.5rem 0 var(--mb-3);
}
.footer_social {
  font-size: 1.8rem;
  color: var(--title-color);
  margin-right: var(--mb-2);
  transition: 0.3s;
}
.footer_social:hover {
  color: var(--first-color);
}
.footer_title {
  font-size: var(--h2-font-size);
  font-family: var(--title-font);
  color: var(--title-color);
  margin-bottom: var(--mb-2);
}
.footer_link {
  display: inline-block;
  color: var(--text-color);
  margin-bottom: var(--mb-1);
  font-size: var(--normal-font-size);
}
.footer_link:hover {
  color: var(--first-color);
}
.footer_content ul li {
  font-size: var(--normal-font-size);
  margin-bottom: 0.4rem;
  color: var(--text-color);
}
.footer_copy {
  text-align: center;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  margin-top: 3.5rem;
}

/*========== SCROLL BAR ==========*/
::-webkit-scrollbar {
  width: 0.62rem;
  background-color: var(--container-color);
  border-radius: 0.5rem;
}
::-webkit-scrollbar-thumb {
  background-color: var(--first-color);
  border-radius: 0.5rem;
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--first-color-alt);
}

/*========== MEDIA QUERIES ==========*/
@media screen and (max-width: 480px) {
  .foods_container {
    grid-template-columns: 1fr;
  }
  .menu-grid {
    grid-template-columns: 1fr;
  }
  .gallery_grid {
    grid-template-columns: 1fr;
  }
  .gallery_card--wide {
    grid-column: span 1;
  }
  .app_stores {
    flex-direction: column;
    align-items: center;
  }
  .home_buttons {
    flex-direction: column;
    align-items: flex-start;
  }
  .home_img {
    width: 280px;
  }
}

@media screen and (min-width: 590px) {
  .home_container,
  .about_container,
  .app_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_images {
    width: 380px;
    order: -1;
  }
  .app_img {
    width: 380px;
    order: -1;
  }

  .app_stores {
    justify-content: flex-start;
  }

  .contact_container {
    grid-template-columns: 1.75fr 1fr;
    align-items: center;
  }
  .contact_button {
    justify-self: center;
  }
}

@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }

  .section {
    padding-top: 8rem;
  }

  .nav_logo-img {
    height: 60px;
  }
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav_list {
    display: flex;
  }
  .nav_item {
    margin-left: var(--mb-5);
    margin-bottom: 0;
  }
  .nav_toggle {
    display: none;
  }
  .change-theme {
    position: initial;
    margin-top: 2px;
    margin-left: 2.5rem;
  }

  .home_container {
    height: 100vh;
    justify-items: center;
    margin-bottom: -3rem;
  }
  .services_container,
  .foods_container {
    margin-top: var(--mb-6);
  }

  .foods_container {
    grid-template-columns: repeat(3, 1fr);
  }
  .foods_content {
    padding: 1.5rem;
  }

  .gallery_grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery_img {
    height: 250px;
  }
  .gallery_card--wide .gallery_img {
    height: 320px;
  }
}

@media screen and (min-width: 960px) {
  .home_container {
    margin-top: 1rem;
  }

  .nav_logo-img {
    height: 70px;
  }
  .nav_link {
    font-size: var(--normal-font-size);
  }

  .bd-container {
    margin-left: auto;
    margin-right: auto;
  }

  .home_img {
    width: 450px;
  }

  .about_container,
  .app_container {
    column-gap: 5rem;
  }

  .about_images {
    width: 460px;
  }
  .about_img {
    height: 320px;
  }

  .app_img {
    width: 400px;
  }

  .gallery_img {
    height: 280px;
  }
  .gallery_card--wide .gallery_img {
    height: 360px;
  }
}
