/* Cafe Menu & Prep Planner — «Pizarra y comanda»: slate chalkboard sections with chalk lettering, paper
   sections laid out like a café menu with dotted leaders, real screens pinned as order tickets. */

@font-face { font-family: "Young Serif"; src: url("/assets/fonts/young-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Karla"; src: url("/assets/fonts/karla-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Karla"; src: url("/assets/fonts/karla-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Karla"; src: url("/assets/fonts/karla-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Karla"; src: url("/assets/fonts/karla-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --paper: #f4efe6;
  --card: #fffdf8;
  --line: #ddd3c2;
  --ink: #24292b;
  --soft: #5c6163;
  --board: #2e3437;
  --slate: #343b3e;
  --chalk: #f6f1e7;
  --chalk-soft: #c9cdc8;
  --orange: #c2410c;
  --orange-bright: #f27a3d;
  --saffron: #e0a526;
  --green: #2e6b4a;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Karla", "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 0.6em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--card); color: var(--ink); padding: 8px 14px; z-index: 10; border-radius: 4px; }
.skip:focus { left: 12px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.muted { color: var(--soft); }
.small { font-size: 0.95rem; }

.kicker { font-weight: 800; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--saffron); margin-bottom: 0.9em; }
.kicker-dark { color: var(--orange); }

/* Header */
.top { background: var(--slate); color: var(--chalk); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--chalk); text-decoration: none; }
.brand img { background: var(--chalk); border-radius: 10px; padding: 3px; }
.brand-name { font-family: var(--serif); font-size: 1.2rem; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.nav a { color: var(--chalk); text-decoration: none; font-weight: 700; font-size: 0.98rem; padding: 10px 2px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--orange-bright); }

/* Chalkboard sections */
.board { position: relative; background: var(--board) url("/assets/app/board.webp") center / cover; color: var(--chalk); }
.board::before { content: ""; position: absolute; inset: 0; background: rgba(46, 52, 55, 0.78); }
.board > * { position: relative; }
.scallop { height: 12px; background: radial-gradient(circle at 10px 12px, var(--paper) 7px, transparent 7.5px) 0 0 / 20px 12px repeat-x; }

.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding-block: 64px 56px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 0.25em; }
.chalk-line { width: 220px; height: 16px; margin: 0 0 22px; }
.chalk-line path { fill: none; stroke: var(--orange-bright); stroke-width: 5; stroke-linecap: round; }
.lead { font-size: 1.15rem; color: var(--chalk); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 26px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; color: var(--chalk-soft); font-weight: 700; font-size: 0.95rem; }
.facts li::before { content: "✓ "; color: var(--saffron); }
.hero-shot { display: flex; justify-content: center; }

/* Store button */
.play { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 16px; border-radius: 10px; background: #111; color: #fff; text-decoration: none; border: 1.5px solid #666; }
.play-mark { width: 0; height: 0; border-top: 13px solid transparent; border-bottom: 13px solid transparent; border-left: 22px solid var(--saffron); }
.play-text { display: flex; flex-direction: column; line-height: 1.15; }
.play-small { font-size: 0.78rem; }
.play-big { font-size: 1.2rem; font-weight: 700; }
.play-soon { opacity: 0.85; cursor: default; }

/* Ticket with a real screen */
.ticket { position: relative; margin: 0; width: min(340px, 78vw); background: var(--card); padding: 12px 12px 14px; border-radius: 4px 4px 0 0; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.ticket::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: radial-gradient(circle at 8px 0, var(--card) 7.5px, transparent 8px) 0 0 / 16px 8px repeat-x; }
.ticket-clip { position: absolute; top: -10px; left: 50%; width: 96px; height: 20px; margin-left: -48px; background: var(--saffron); border-radius: 5px; box-shadow: inset 0 -4px 0 rgba(122, 82, 0, 0.35); }
.ticket img { border-radius: 2px; }
.ticket-hero { width: min(360px, 80vw); transform: rotate(1.2deg); }
.section .ticket { box-shadow: 0 14px 30px rgba(36, 41, 43, 0.18); }

/* Paper sections */
.section { padding-block: 72px; }
.menuboard { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.leaders { list-style: none; margin: 0; padding: 0; }
.leaders li { display: flex; align-items: baseline; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.leader-name { font-family: var(--serif); font-size: 1.22rem; white-space: nowrap; }
.leader-dots { flex: 1; min-width: 24px; border-bottom: 2px dotted #b9ad99; transform: translateY(-5px); }
.leader-detail { color: var(--soft); text-align: right; max-width: 52%; font-size: 0.98rem; }

.costing { background: var(--card); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.split-shot { display: flex; justify-content: center; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 6px 0 6px 30px; position: relative; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 12px; height: 7px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }

.timeline { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 64px; }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.step-flip .step-copy { order: 2; }
.step-time { font-family: var(--serif); font-size: 2.2rem; color: var(--orange); margin-bottom: 0.2em; }
.step-shot { display: flex; justify-content: center; }
.step-shot .ticket, .strip .ticket { width: min(300px, 70vw); }
.step-copy p:last-child { color: var(--soft); max-width: 32em; }

.gallery { padding-top: 0; }
.strip { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; margin-top: 24px; }

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; padding: 14px 0; list-style-position: outside; }
.faq details p { color: var(--soft); margin: 0 0 16px; }

.download-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-block: 56px; }
.download-inner > div { flex: 1; min-width: 240px; }
.download h2 { margin-bottom: 0.3em; }
.download a { color: var(--saffron); }
.download-icon { border-radius: 22px; }

/* Legal and 404 */
.page { padding-block: 56px 72px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.45rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.4em; }
.lost { text-align: center; padding-block: 40px; }

/* Footer */
.foot { background: var(--slate); color: var(--chalk-soft); padding-block: 36px 28px; }
.foot-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand img { background: var(--chalk); border-radius: 10px; padding: 3px; }
.foot-name { font-family: var(--serif); color: var(--chalk); font-size: 1.2rem; margin: 0; }
.foot-small { margin: 0; font-size: 0.92rem; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; }
.foot-links a { color: var(--chalk); font-weight: 700; display: inline-block; padding: 8px 0; }
.foot-note { margin: 20px 0 0; font-size: 0.85rem; color: #9ea3a0; }

@media (max-width: 900px) {
  .hero-grid, .menuboard, .split, .step { grid-template-columns: 1fr; gap: 36px; }
  .hero-grid { padding-block: 44px 48px; }
  .step-flip .step-copy { order: 0; }
  .section { padding-block: 56px; }
  .timeline { gap: 56px; }
}

@media (max-width: 560px) {
  .leaders li { flex-wrap: wrap; gap: 2px 10px; }
  .leader-name { white-space: normal; }
  .leader-dots { display: none; }
  .leader-detail { text-align: left; max-width: none; flex-basis: 100%; }
  .nav { gap: 0 14px; }
  .brand-name { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticket-hero { transform: none; }
}
