:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --ink: #201b18;
  --muted: #6f6660;
  --line: #e7e1db;
  --accent: #c94322;
  --accent-dark: #9f2f18;
  --footer: #1b1715;
  --shadow: 0 18px 45px rgba(35, 24, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f7f5f1;
  background-image: url("assets/fondo-pattern.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: top center;
  min-height: 100vh;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.site-header {
  padding: 28px 24px 14px;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  width: min(1120px, 100%);
  min-height: 112px;
  margin: 0 auto;
}

.header-spacer {
  min-width: 0;
}

.brand {
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-logo {
  width: min(220px, 58vw);
  height: auto;
  object-fit: contain;
}

.order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(201, 67, 34, 0.22);
  transition: transform 160ms ease, background-color 160ms ease;
}

.order-button:hover,
.order-button:focus-visible {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.top-order {
  white-space: nowrap;
}

main {
  padding: 0 18px 56px;
}

.menu-section,
.products-section {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  margin: 10px auto 22px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 4vw, 2.45rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.menu-gallery {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 14px;
}

.menu-image-button {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  overflow: hidden;
}

.menu-main-image {
  width: 100%;
  height: auto;
  background: #fff;
}

.gallery-arrow,
.product-arrow,
.lightbox-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(35, 24, 18, 0.1);
  transition: transform 160ms ease, border-color 160ms ease;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible,
.product-arrow:hover,
.product-arrow:focus-visible,
.lightbox-arrow:hover,
.lightbox-arrow:focus-visible {
  border-color: rgba(201, 67, 34, 0.45);
  transform: translateY(-1px);
}

.gallery-arrow svg,
.product-arrow svg,
.lightbox-arrow svg,
.step-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.menu-thumbnails {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 18px auto 0;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
}

.thumb-button {
  flex: 0 0 auto;
  width: 86px;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.72;
  transition: opacity 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.thumb-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-button.is-active,
.thumb-button:hover,
.thumb-button:focus-visible {
  border-color: var(--accent);
  opacity: 1;
  transform: translateY(-1px);
}

.steps-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 24px auto 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 32px rgba(35, 24, 18, 0.08);
  overflow: hidden;
}

.step-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 20px;
  min-width: 0;
}

.step-item + .step-item {
  border-left: 1px solid var(--line);
}

.step-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--accent);
  background: rgba(201, 67, 34, 0.08);
}

.step-item h2 {
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.step-item p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.35;
}

.products-section {
  margin-top: 6px;
}

.products-carousel-wrap {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  gap: 12px;
  align-items: center;
}

.products-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 31%);
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 22px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.product-card {
  display: block;
  scroll-snap-align: start;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #fffaf5;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  cursor: zoom-in;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.products-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  text-align: center;
  padding: 26px 12px;
}

.site-footer {
  color: #fff;
  background: linear-gradient(180deg, #1d1816 0%, #11100f 100%);
  padding: 26px 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.footer-block,
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  text-align: left;
}

.footer-block + .footer-block,
.footer-social {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #f2b19e;
  background: rgba(201, 67, 34, 0.12);
}

.footer-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.footer-label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
}

.footer-link {
  display: inline-block;
  margin-top: 6px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
}

.footer-link:hover,
.footer-link:focus-visible,
.social-links a:hover,
.social-links a:focus-visible {
  color: #f2b19e;
}

.footer-note {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  line-height: 1.25;
}

.footer-social {
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.social-links svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.social-links a[aria-label="Facebook"] svg {
  fill: currentColor;
  stroke: none;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: rgba(242, 177, 158, 0.5);
  background: rgba(201, 67, 34, 0.12);
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  background: #25d366;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.28);
  transition: transform 160ms ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-2px);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  stroke: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 12px;
  padding: 70px 24px 30px;
  background: rgba(12, 10, 9, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-image {
  justify-self: center;
  max-width: min(980px, 100%);
  max-height: calc(100vh - 110px);
  width: auto;
  height: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-arrow {
  justify-self: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

@media (max-width: 760px) {
  body {
    background-size: cover;
    background-position: top center;
    background-attachment: scroll;
  }

  .site-header {
    padding: 18px 14px 8px;
  }

  .header-inner {
    grid-template-columns: 1fr auto 1fr;
    min-height: 96px;
  }

  .top-order {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.8rem;
  }

  .brand {
    min-height: 78px;
  }

  main {
    padding-inline: 10px;
  }

  .menu-gallery {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 6px;
  }

  .gallery-arrow,
  .product-arrow,
  .lightbox-arrow {
    width: 38px;
    height: 38px;
  }

  .thumb-button {
    width: 68px;
  }

  .steps-strip {
    grid-template-columns: 1fr;
    margin-bottom: 42px;
  }

  .step-item + .step-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .products-carousel-wrap {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 6px;
  }

  .products-carousel {
    grid-auto-columns: minmax(190px, 78%);
    gap: 12px;
  }

  .site-footer {
    padding: 28px 18px 90px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-block,
  .footer-social {
    border-left: 0;
  }

  .footer-block {
    text-align: center;
  }

  .footer-block + .footer-block,
  .footer-social {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .lightbox {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 4px;
    padding: 68px 8px 22px;
  }
}

@media (max-width: 440px) {
  .header-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
  }

  .header-spacer {
    display: none;
  }

  .header-actions {
    justify-content: center;
  }

  .menu-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-arrow {
    position: absolute;
    z-index: 2;
  }

  .menu-gallery .prev {
    left: 12px;
  }

  .menu-gallery .next {
    right: 12px;
  }

  .menu-image-button {
    grid-row: 1;
  }

  .products-carousel-wrap {
    grid-template-columns: 1fr;
  }

  .product-arrow {
    display: none;
  }
}
