:root {
  --primary: #25233a;
  --accent: #e9a23b;
  --ink: #20212a;
  --muted: #686977;
  --paper: #fffdf9;
  --line: #e8e4da;
  --radius: 20px;
  --shadow: 0 14px 40px rgba(20, 20, 35, .10);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-bottom: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 76px);
  background: rgba(255, 253, 249, .96);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 850;
  font-size: 1.08rem;
  letter-spacing: -.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: #f4ead7;
  border-radius: 14px;
  font-size: 1.35rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 34px);
  font-size: .92rem;
  font-weight: 650;
}

.nav a:not(.nav-cta):hover,
.contact-card a:hover {
  color: var(--accent);
}

.nav-cta {
  background: var(--primary);
  color: white;
  padding: 11px 17px;
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.7rem;
  color: var(--primary);
  cursor: pointer;
}

.hero {
  min-height: 570px;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  color: white;
  background: #333 center / cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(16, 14, 28, .86),
    rgba(16, 14, 28, .52) 52%,
    rgba(16, 14, 28, .12)
  );
}

.hero-content {
  width: min(760px, 100%);
  padding: 90px clamp(22px, 8vw, 120px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .16em;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, .87);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px 21px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s, opacity .2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #21190d;
}

.button-light {
  background: white;
  color: var(--primary);
}

.section {
  padding: 86px clamp(20px, 7vw, 100px);
}

.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
}

.intro-photo {
  min-height: 390px;
  background: #eee center / cover no-repeat;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.intro-text h2,
.section-heading h2,
.banner h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -.045em;
  margin-bottom: 18px;
}

.intro-text > p:not(.eyebrow),
.section-heading > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 650px;
}

.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.info-pills span {
  padding: 9px 13px;
  background: #f2eee4;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 700;
}

.menu-section {
  background: #f5f2f9;
}

.section-heading {
  text-align: center;
  margin: 0 auto 30px;
  max-width: 750px;
}

.section-heading .eyebrow {
  margin-bottom: 10px;
}

.section-heading h2 {
  margin-bottom: 12px;
}

.category-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 auto 28px;
}

.category-filter {
  border: 1px solid #d8d5e2;
  border-radius: 999px;
  padding: 9px 15px;
  min-height: 44px;
  background: white;
  color: var(--primary);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.category-filter.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto;
}

/* ===== Tarjeta de una línea: carrusel automático de modelos ===== */

.line-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 8px 26px rgba(20, 20, 35, .07);
}

.line-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
}

.line-title {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -.02em;
}

.line-count {
  padding: 4px 11px;
  background: #f2eee4;
  border-radius: 999px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.line-stage {
  position: relative;
  background: #f7f6f4;
}

.viewport {
  display: flex;
  height: clamp(210px, 34vh, 330px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.viewport::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}

.slide .ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #a29d92;
  font-weight: 700;
}

.arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #222;
  font-size: 1.6rem;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  cursor: pointer;
}

.arrow:hover {
  background: var(--primary);
  color: white;
}

.arrow.prev {
  left: 10px;
}

.arrow.next {
  right: 10px;
}

.pause-btn {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  min-height: 34px;
  padding: 5px 13px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: #222;
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .16);
  cursor: pointer;
}

.thumbs {
  position: relative;
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  background: white;
  scrollbar-width: thin;
}

.thumb {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #f2eee4;
  opacity: .7;
  cursor: pointer;
}

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

.thumb[aria-current="true"] {
  border-color: var(--primary);
  opacity: 1;
}

.line-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px 14px;
}

.product-brand {
  margin: 0;
  font-size: .9rem;
  font-weight: 700;
  opacity: .8;
}

.product-name {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.product-desc {
  display: -webkit-box;
  height: 2.8em;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  line-clamp: 2;

  -webkit-box-orient: vertical;
}

.product-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.price {
  flex-shrink: 0;
  color: var(--primary);
  font-weight: 850;
  font-size: 1.2rem;
  white-space: nowrap;
}

.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.opt-label {
  flex: 0 0 44px;
  margin: 0;
  font-size: .84rem;
  font-weight: 750;
}

.opts-row {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.color-name {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
}

.size-chip {
  min-width: 40px;
  min-height: 34px;
  padding: 4px 10px;
  border: 1.5px solid #d7d4df;
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  font: inherit;
  font-size: .9rem;
  font-weight: 750;
  cursor: pointer;
}

.size-chip[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.swatch {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  outline: 1.5px solid #cfcbd8;
  cursor: pointer;
}

.swatch[aria-pressed="true"] {
  outline: 3px solid var(--primary);
}

/* En pantallas táctiles los botones se dejan un poco más grandes. */
@media (pointer: coarse) {
  .size-chip {
    min-width: 44px;
    min-height: 42px;
  }

  .swatch {
    width: 34px;
    height: 34px;
  }
}

.line-body .add-to-cart {
  min-height: 42px;
  margin-top: 8px;
}

.card-msg {
  margin: 6px 0 0;
  padding: 9px 12px;
  background: #fdecea;
  border-radius: 9px;
  color: #8b2525;
  font-size: .9rem;
  font-weight: 700;
}

.arrow:focus-visible,
.thumb:focus-visible,
.size-chip:focus-visible,
.swatch:focus-visible,
.pause-btn:focus-visible,
.viewport:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Foto ampliada */

dialog.lightbox {
  width: 100%;
  max-width: 100vw;
  height: 100%;
  max-height: 100vh;
  padding: 0;
  border: 0;
  background: transparent;
}

dialog.lightbox::backdrop {
  background: rgba(10, 10, 14, .92);
}

.lb-inner {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 60px 12px 56px;
}

.lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.lb-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: white;
  color: #222;
  font-size: 1.6rem;
  cursor: pointer;
}

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  padding: 0 0 3px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #222;
  font-size: 1.7rem;
  cursor: pointer;
}

.lb-prev {
  left: 10px;
}

.lb-next {
  right: 10px;
}

.lb-caption {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  margin: 0;
  color: white;
  text-align: center;
  font-weight: 700;
}

/* ===== Resto de la página ===== */

.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 58px clamp(22px, 8vw, 110px);
  background: var(--primary);
  color: white;
}

.banner .eyebrow {
  color: var(--accent);
}

.banner h2 {
  max-width: 700px;
  margin-bottom: 10px;
}

.banner p:not(.eyebrow) {
  color: #e6e4ee;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 15px;
  background: #f4ead7;
  font-size: 1.35rem;
}

.contact-card h3 {
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--muted);
  margin-bottom: 10px;
}

.contact-card a {
  color: var(--primary);
  font-weight: 800;
}

.delivery-note {
  text-align: center;
  color: var(--muted);
  margin: 24px auto 0;
  max-width: 850px;
}

.footer {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 34px 20px;
  background: #191827;
  color: white;
  text-align: center;
}

.footer-brand {
  color: white;
}

.footer p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
}

.footer small {
  color: rgba(255, 255, 255, .52);
}

/* Carrito: lateral en computador y panel inferior en móvil. */

.order-link,
.add-to-cart,
.cart-action,
.send-order {
  display: inline-block;
  border: 0;
  border-radius: 9px;
  padding: 11px 15px;
  background: var(--primary);
  color: white;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.add-to-cart {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
}

.product-option {
  display: block;
  margin: 10px 0 5px;
  font-size: .86rem;
  font-weight: 750;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 24px;
  align-items: start;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.order-layout #menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  min-width: 0;
  max-width: none;
  margin: 0;
}

#order-cart {
  position: sticky;
  top: 90px;
  margin: 0;
  padding: 22px;
  border: 1px solid #ddd;
  border-radius: 16px;
  width: 100%;
  min-width: 0;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  background: #fff;
  color: #222;
}

#order-cart h2 {
  margin-top: 0;
}

.cart-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cart-close {
  display: none;
  border: 0;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  background: #eee;
  color: #222;
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-line {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #e5e5e5;
}

.cart-line img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
}

.cart-line-title {
  font-weight: 800;
}

.cart-line-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.cart-action {
  padding: 5px 12px;
  min-width: 36px;
}

.remove-item {
  background: #8b2525;
}

#order-comments,
#customer-name,
#customer-address,
#payment-method {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 8px 0 12px;
  padding: 12px;
  border: 1px solid #bbb;
  border-radius: 9px;
  font: inherit;
}

#order-comments {
  min-height: 75px;
}

.cart-total {
  margin: 20px 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.cart-empty {
  color: #555;
}

.send-order {
  width: 100%;
  padding: 14px;
}

.cart-note {
  font-size: .88rem;
  color: #555;
}

.mobile-cart-bar,
.cart-overlay {
  display: none;
}

.cart-delivery-note {
  font-size: .88rem;
  color: #555;
  background: #f7f3ea;
  padding: 10px;
  border-radius: 9px;
}

@media (max-width: 1000px) {
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .order-layout #menu-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 14px;
    right: 14px;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav-cta {
    text-align: center;
  }

  .hero {
    min-height: 540px;
  }

  .hero-content {
    padding-top: 72px;
    padding-bottom: 72px;
  }

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

  .intro-photo {
    min-height: 300px;
    order: 2;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .viewport {
    height: clamp(240px, 42vh, 380px);
  }

  .banner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .order-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .order-layout #menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  #order-cart {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-width: 600px;
    max-height: 82vh;
    max-height: 82dvh;
    overflow-y: auto;
    margin: 0 auto;
    padding: 20px 18px calc(24px + env(safe-area-inset-bottom));
    border: 1px solid #ddd;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .2);
  }

  #order-cart.cart-open {
    display: block;
  }

  .cart-close {
    display: inline-block;
    flex-shrink: 0;
  }

  .cart-overlay.visible {
    display: block;
    position: fixed;
    z-index: 1001;
    inset: 0;
    background: rgba(0, 0, 0, .48);
  }

  .mobile-cart-bar {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    border: 0;
    border-radius: 14px;
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 24px rgba(0, 0, 0, .24);
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  .mobile-cart-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .mobile-cart-label {
    font-size: .9rem;
    font-weight: 800;
  }

  .mobile-cart-total {
    font-size: .85rem;
    opacity: .92;
  }

  .mobile-cart-action {
    flex-shrink: 0;
    font-weight: 800;
  }

  body {
    padding-bottom: 90px;
  }
}

@media (max-width: 480px) {
  .line-body {
    padding: 10px 12px 14px;
  }

  .cart-line {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 10px;
  }

  .cart-line img {
    width: 60px;
    height: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}