*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; }

.page {
  --espresso: #2a1b14;
  --kraft: #e4d2b3;
  --kraft-deep: #cdb38a;
  --foam: #fbf7ef;
  --board: #24382e;
  --chalk: #f2efe6;
  --stamp: #b8322a;
  --ink-soft: #6e5646;

  min-height: 100vh;
  background: var(--kraft);
  color: var(--espresso);
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.page a:focus-visible {
  outline: 3px solid var(--stamp);
  outline-offset: 3px;
}

.inner {
  max-width: 1120px;
  margin: 0 auto;
}

/* ============= HERO CON FOTO ============= */
.heroWrap {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--espresso);
  color: var(--foam);
}

.heroWrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(42, 27, 20, 0.92) 0%, rgba(42, 27, 20, 0.78) 50%, rgba(42, 27, 20, 0.55) 100%);
}

.heroPhoto {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

.heroWrap .brand,
.heroWrap .navCta {
  color: var(--foam);
}

.heroWrap .navCta {
  border-bottom-color: var(--foam);
}

.heroWrap .navLinks a {
  color: rgba(251, 247, 239, 0.75);
}

.heroWrap .navLinks a:hover {
  color: var(--foam);
}

.heroWrap .heroLead {
  color: rgba(251, 247, 239, 0.8);
}

.heroWrap .btnPrimary {
  background: var(--foam);
  color: var(--espresso);
}

.heroWrap .btnPrimary:hover {
  background: var(--kraft);
}

.heroWrap .btnGhost {
  color: var(--foam);
  box-shadow: inset 0 0 0 2px var(--foam);
}

.heroWrap .btnGhost:hover {
  background: rgba(251, 247, 239, 0.12);
}

.heroWrap .ticket {
  box-shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.7);
}

.heroWrap .printerSlot {
  background: #120b08;
  box-shadow: inset 0 -6px 0 #000, 0 0 0 1px rgba(251, 247, 239, 0.15);
}

/* ============= NAV ============= */
.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  font-family: 'Gloock', Georgia, serif;
  font-size: 1.5rem;
  color: var(--espresso);
  text-decoration: none;
  margin-right: auto;
}

.navLinks {
  display: flex;
  gap: 1.75rem;
}

.navLinks a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}

.navLinks a:hover {
  color: var(--espresso);
}

.navCta {
  color: var(--espresso);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--espresso);
  padding-bottom: 2px;
}

/* ============= HERO ============= */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: start;
}

.heroText {
  padding-top: 2rem;
}

.heroTitle {
  font-family: 'Gloock', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 1.75rem;
  max-width: 14ch;
}

.heroLead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0 0 2.25rem;
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btnPrimary,
.btnGhost,
.btnGhostLight {
  display: inline-block;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.btnPrimary {
  background: var(--espresso);
  color: var(--foam);
}

.btnPrimary:hover {
  background: #452c20;
}

.btnGhost {
  color: var(--espresso);
  box-shadow: inset 0 0 0 2px var(--espresso);
}

.btnGhost:hover {
  background: rgba(42, 27, 20, 0.08);
}

.btnGhostLight {
  color: var(--foam);
  box-shadow: inset 0 0 0 2px var(--foam);
}

.btnGhostLight:hover {
  background: rgba(251, 247, 239, 0.12);
}

/* ── Comanda ── */
.printer {
  position: relative;
  justify-self: center;
  width: min(100%, 340px);
}

.printerSlot {
  height: 22px;
  border-radius: 6px;
  background: var(--espresso);
  box-shadow: inset 0 -6px 0 #120b08;
  position: relative;
  z-index: 2;
}

.ticketClip {
  overflow: hidden;
  margin: -6px 18px 0;
  padding-bottom: 24px;
}

.ticket {
  position: relative;
  background: var(--foam);
  padding: 1.75rem 1.4rem 2.25rem;
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #2b2520;
  box-shadow: 0 18px 30px -18px rgba(42, 27, 20, 0.55);
  animation: print 2.4s cubic-bezier(0.25, 0.8, 0.3, 1) 0.3s both;
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 20px 10px repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 20px 10px repeat-x;
}

@keyframes print {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.ticket p {
  margin: 0;
}

.ticket hr {
  border: 0;
  border-top: 1px dashed #9c8f82;
  margin: 0.75rem 0;
}

.ticketShop {
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
}

.ticketMuted {
  color: #7a6e63;
  text-align: center;
}

.ticketRow {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.ticketNote {
  color: #7a6e63;
  font-style: italic;
  padding-left: 1rem;
}

.ticketTotal {
  font-weight: 700;
  font-size: 1.05rem;
}

.stamp {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  transform: rotate(-12deg);
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--stamp);
  border: 3px solid var(--stamp);
  border-radius: 6px;
  padding: 0.1rem 0.6rem;
  opacity: 0.85;
  animation: stamp 0.35s ease-out 2.7s both;
}

@keyframes stamp {
  from { opacity: 0; transform: rotate(-12deg) scale(1.6); }
  to { opacity: 0.85; transform: rotate(-12deg) scale(1); }
}

/* ============= TENANTS ============= */
.tenants {
  background: var(--foam);
  padding: 6rem 1.5rem;
}

.sectionTitle {
  font-family: 'Gloock', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  max-width: 20ch;
}

.sectionLead {
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 3.5rem;
}

.packets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4.5rem;
}

.packet {
  position: relative;
  padding: 2.25rem 1.5rem 2rem;
  min-height: 170px;
  border-radius: 3px;
}

.packet::before,
.packet::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 12px;
  background: repeating-linear-gradient(90deg, rgba(42, 27, 20, 0.14) 0 2px, transparent 2px 6px);
}

.packet::before { top: 0; }
.packet::after { bottom: 0; }

.packet:nth-child(1) { transform: rotate(-2deg); }
.packet:nth-child(2) { transform: rotate(1.5deg) translateY(12px); }
.packet:nth-child(3) { transform: rotate(-1deg); }

.packet h3 {
  font-family: 'Gloock', Georgia, serif;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.packetDetail {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.98rem;
}

.white {
  background: #ffffff;
  box-shadow: 0 2px 0 rgba(42, 27, 20, 0.08), 0 12px 24px -16px rgba(42, 27, 20, 0.4);
}

.kraft {
  background: var(--kraft-deep);
  box-shadow: 0 12px 24px -16px rgba(42, 27, 20, 0.5);
}

.pink {
  background: #f1cdc6;
  box-shadow: 0 12px 24px -16px rgba(42, 27, 20, 0.45);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  border-top: 2px solid var(--espresso);
  padding-top: 2.5rem;
}

.splitTitle {
  font-family: 'Gloock', Georgia, serif;
  font-weight: 400;
  font-size: 1.6rem;
  margin: 0 0 1rem;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(42, 27, 20, 0.15);
}

/* ============= PIZARRÓN ============= */
.board {
  background: var(--board);
  color: var(--chalk);
  padding: 6rem 1.5rem;
  border-top: 14px solid #5a3e2b;
  border-bottom: 14px solid #5a3e2b;
}

.boardTitle {
  font-family: 'Gloock', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin: 0 0 3rem;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: block;
  font-family: 'Gloock', Georgia, serif;
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(242, 239, 230, 0.35);
  margin-bottom: 1rem;
}

.steps h3 {
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.steps p {
  margin: 0;
  color: rgba(242, 239, 230, 0.75);
}

/* ============= CARTA ============= */
.menuSection {
  max-width: 1120px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: stretch;
}

.menuPhoto {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 40px -28px rgba(42, 27, 20, 0.7);
}

.menuPhoto img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: 40% center;
}

.menuCard {
  background: var(--foam);
  padding: 3.5rem 3rem 3rem;
  outline: 1px solid var(--espresso);
  outline-offset: -14px;
  box-shadow: 0 24px 40px -28px rgba(42, 27, 20, 0.6);
}

.menuTitle {
  font-family: 'Gloock', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  text-align: center;
  margin: 0 0 2.25rem;
}

.menuList {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menuList li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.55rem 0;
}

.leader {
  flex: 1;
  border-bottom: 2px dotted rgba(42, 27, 20, 0.35);
  transform: translateY(-4px);
}

.menuPrice {
  font-style: italic;
  color: var(--ink-soft);
}

.menuFoot {
  text-align: center;
  color: var(--ink-soft);
  margin: 2rem 0 0;
  font-size: 0.95rem;
}

/* ============= CIERRE ============= */
.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--espresso);
  color: var(--foam);
  padding: 8rem 1.5rem;
  text-align: center;
}

.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(42, 27, 20, 0.8);
}

.closingPhoto {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closingTitle {
  font-family: 'Gloock', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.08;
  margin: 0 auto 1rem;
  max-width: 18ch;
}

.closing p {
  color: rgba(251, 247, 239, 0.75);
  max-width: 46ch;
  margin: 0 auto 2.25rem;
}

.closing .heroActions {
  justify-content: center;
}

.closing .btnPrimary {
  background: var(--foam);
  color: var(--espresso);
}

.closing .btnPrimary:hover {
  background: var(--kraft);
}

.footer {
  background: var(--espresso);
  color: rgba(251, 247, 239, 0.5);
  border-top: 1px solid rgba(251, 247, 239, 0.12);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
  }

  .heroText {
    padding-top: 0;
  }

  .packets {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .packet:nth-child(2) {
    transform: rotate(1.5deg);
  }

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

  .menuSection {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .menuPhoto img {
    height: 280px;
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .navLinks {
    display: none;
  }

  .split,
  .steps {
    grid-template-columns: 1fr;
  }

  .menuCard {
    padding: 2.75rem 1.5rem 2rem;
  }

  .tenants,
  .board,
  .menuSection,
  .closing {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticket,
  .stamp {
    animation: none;
  }
}
