/* CAFÉ CON LENTES · pizarrón, tiza y cobre */
:root {
  --board: #141312;
  --board-2: #1d1b19;
  --board-3: #262320;
  --chalk: #efe8dc;
  --chalk-dim: #b8afa2;
  --copper: #d48b55;
  --copper-hi: #e9a56f;
  --olive: #a3ad70;
  --ink: #141312;
  --line: rgba(239, 232, 220, .18);
  --f-sans: "Bricolage Grotesque", system-ui, sans-serif;
  --f-hand: "Caveat", "Bradley Hand", cursive;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --pad: clamp(20px, 5vw, 72px);
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--board); color: var(--chalk);
  font-family: var(--f-sans); font-size: clamp(1rem, .95rem + .25vw, 1.125rem); line-height: 1.55;
  font-variation-settings: "wdth" 100; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0; background-image: var(--grain); pointer-events: none; z-index: 60; opacity: .9; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--copper-hi); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--copper); color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.5em; border-radius: 999px; text-decoration: none;
  font-weight: 650; font-size: 1rem; letter-spacing: .01em; transition: background-color .2s, color .2s, translate .2s;
}
.btn:hover { translate: 0 -2px; }
.btn--copper { background: var(--copper); color: var(--ink); }
.btn--copper:hover { background: var(--copper-hi); }
.btn--line { border: 1.5px solid var(--line); color: var(--chalk); }
.btn--line:hover { border-color: var(--chalk); }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: 14px var(--pad); transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent;
}
.top.is-solid { background: rgba(20, 19, 18, .92); backdrop-filter: blur(10px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; }
.brand img { border-radius: 50%; width: 44px; height: 44px; }
.brand em { font-family: var(--f-hand); font-style: normal; color: var(--copper); font-size: 1.35em; font-weight: 700; }
.top__nav { margin-left: auto; display: flex; gap: 28px; }
.top__nav a { text-decoration: none; font-size: .92rem; color: var(--chalk-dim); transition: color .2s; }
.top__nav a:hover { color: var(--chalk); }
.top__cta { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 10px 18px; border-radius: 999px; background: var(--copper); color: var(--ink); font-weight: 650; font-size: .92rem; }

/* ---------- hero · optotipo ---------- */
.hero {
  min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding: 96px var(--pad) 32px;
  background:
    radial-gradient(60% 50% at 30% 30%, rgba(255, 255, 255, .045), transparent 70%),
    radial-gradient(40% 40% at 80% 70%, rgba(212, 139, 85, .07), transparent 70%),
    var(--board);
  position: relative;
}
.hero__board { position: relative; display: grid; align-content: center; justify-items: center; }
.chart {
  margin: 0; display: grid; justify-items: center; gap: clamp(6px, 1.3vh, 15px); font-weight: 700; text-transform: uppercase; line-height: .9; text-align: center;
  width: 100%; max-width: 1060px; padding: clamp(22px, 3.4vh, 40px) clamp(18px, 2.4vw, 34px); position: relative;
  border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(180deg, rgba(239, 232, 220, .035), rgba(239, 232, 220, 0));
}
.chart::before, .chart::after { content: ""; position: absolute; left: 50%; width: 46px; height: 4px; translate: -50% 0; border-radius: 2px; background: linear-gradient(90deg, #c2563f 50%, #6f9a5b 50%); }
.chart::before { top: -2px; }
.chart::after { bottom: -2px; }
.row { display: grid; grid-template-columns: 3ch 1fr 3ch; align-items: center; width: 100%; gap: 12px; }
.row > i { font-style: normal; font-size: .72rem; font-weight: 500; letter-spacing: .08em; color: var(--chalk-dim); font-variation-settings: "wdth" 100; }
.row > i:last-child { text-align: right; }
.row .t { display: block; font-variation-settings: "wdth" 75, "opsz" 96; text-shadow: 0 0 1px rgba(239, 232, 220, .55), 0 0 18px rgba(239, 232, 220, .06); }
.r1 .t { font-size: clamp(5.6rem, 15vw, 14rem); letter-spacing: .1em; color: var(--copper); text-shadow: 0 0 1px rgba(233, 165, 111, .7), 0 0 30px rgba(212, 139, 85, .18); }
.r2 .t { font-size: clamp(2.7rem, 7.4vw, 7rem); letter-spacing: .08em; }
.r3 .t { font-size: clamp(1.7rem, 4.3vw, 4.1rem); letter-spacing: .07em; }
.r4 .t { font-size: clamp(1.25rem, 2.9vw, 2.7rem); letter-spacing: .08em; }
.r5 .t { font-size: clamp(.92rem, 1.75vw, 1.65rem); letter-spacing: .12em; color: var(--olive); }
.r6 .t { font-size: clamp(.8rem, 1.15vw, 1.1rem); letter-spacing: .2em; font-weight: 600; }
.hero__note { margin: clamp(12px, 2.2vh, 26px) 0 0; font-family: var(--f-hand); font-size: clamp(1.2rem, 1.8vw, 1.6rem); color: var(--copper-hi); rotate: -2deg; }
.hero__dial { position: absolute; top: -6px; right: 0; margin: 0; display: flex; gap: 10px; align-items: baseline; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--chalk-dim); }
.hero__dial b { font-variant-numeric: tabular-nums; color: var(--chalk); font-size: 1rem; letter-spacing: .04em; min-width: 5ch; text-align: right; }
.hero__foot { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px 40px; padding-top: 24px; border-top: 1px dashed var(--line); }
.hero__lead { margin: 0; max-width: 42ch; color: var(--chalk-dim); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__rate { margin: 0; color: var(--chalk-dim); font-size: .95rem; white-space: nowrap; }
.hero__rate b { color: var(--chalk); font-size: 1.2rem; }
.stars { color: var(--copper); letter-spacing: .1em; }
.js .row .t { filter: blur(7px); opacity: .55; }
.js .hero__note { opacity: 0; }
.js .reveal { opacity: 0; }

/* ---------- frase ---------- */
.phrase { padding: clamp(110px, 18vh, 200px) var(--pad); background: var(--board-2); border-block: 1px solid var(--line); }
.phrase__in { width: fit-content; max-width: 100%; margin: 0 auto; }
.phrase__text { margin: 0; max-width: 17ch; font-size: clamp(2.3rem, 6.3vw, 6.2rem); line-height: 1.02; font-weight: 700; letter-spacing: -.02em; font-variation-settings: "wdth" 80, "opsz" 96; text-wrap: balance; }
.phrase__text .w { opacity: 1; }
.js .phrase__text .w { opacity: .16; }
.phrase__text .w.is-hot { color: var(--copper); }
.phrase__sig { margin: 28px 0 0; font-family: var(--f-hand); font-size: clamp(1.4rem, 2.2vw, 2rem); color: var(--olive); }
@media (min-width: 900px) { .phrase__text { max-width: 20ch; } }

/* ---------- taller · stack ---------- */
.taller { padding: clamp(90px, 14vh, 160px) var(--pad) clamp(60px, 10vh, 120px); }
.kicker { margin: 0 0 14px; font-family: var(--f-hand); font-size: 1.6rem; color: var(--copper); }
.h2 { margin: 0; font-size: clamp(2.4rem, 5.6vw, 5.2rem); line-height: .98; letter-spacing: -.02em; font-variation-settings: "wdth" 78, "opsz" 96; font-weight: 750; text-transform: uppercase; }
.h2 em { font-style: normal; color: var(--copper); }
.taller__head { max-width: 1240px; margin: 0 auto clamp(40px, 7vh, 80px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px 60px; align-items: end; }
.taller__head .kicker { grid-column: 1 / -1; margin-bottom: -10px; }
.taller__intro { margin: 0; color: var(--chalk-dim); max-width: 36ch; }
.stack { list-style: none; margin: 0 auto; padding: 0; max-width: 1240px; display: grid; gap: 28px; }
.card {
  position: sticky; top: calc(96px + var(--i) * 18px);
  display: grid; grid-template-columns: 1.1fr .9fr; min-height: min(68vh, 560px);
  background: var(--board-3); border: 1px solid var(--line); border-radius: 28px; overflow: hidden;
  box-shadow: 0 -18px 50px rgba(0, 0, 0, .45);
}
.card__txt { padding: clamp(28px, 4.4vw, 64px); display: grid; align-content: space-between; gap: 28px; }
.card__n { font-family: var(--f-hand); font-size: 2.6rem; color: var(--olive); line-height: 1; }
.card h3 { margin: 0 0 16px; font-size: clamp(2rem, 4.2vw, 4rem); line-height: .95; text-transform: uppercase; font-variation-settings: "wdth" 76, "opsz" 96; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--chalk-dim); max-width: 34ch; font-size: 1.08rem; }
.card img { width: 100%; height: 100%; object-fit: cover; border-left: 1px solid var(--line); }
.card:nth-child(4) img { object-position: 50% 70%; }

/* ---------- orden ---------- */
.orden {
  padding: clamp(90px, 14vh, 160px) var(--pad); background: var(--chalk); color: var(--ink);
  display: grid; grid-template-columns: 1fr 1fr minmax(300px, 420px); gap: 40px 56px; align-items: start;
}
.orden .kicker { color: #a35a27; }
.orden .h2 em { color: #a35a27; }
.orden__intro { grid-column: 1 / 3; }
.orden__intro p:last-child { max-width: 46ch; margin: 22px 0 0; color: #4b443c; }
.orden__form { grid-column: 1 / 3; display: grid; gap: 30px; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { width: 100%; margin-bottom: 14px; font-family: var(--f-hand); font-size: 1.7rem; color: #a35a27; line-height: 1; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px; border-radius: 999px;
  border: 1.5px solid rgba(20, 19, 18, .3); font-weight: 600; transition: background-color .2s, color .2s, border-color .2s;
}
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); color: var(--chalk); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid #a35a27; outline-offset: 3px; }
.field { display: grid; gap: 8px; max-width: 380px; font-weight: 600; }
.field input { font: inherit; padding: 14px 16px; min-height: 50px; border-radius: 14px; border: 1.5px solid rgba(20, 19, 18, .3); background: #fff; color: var(--ink); }
.ticket {
  grid-column: 3; grid-row: 1 / 3; position: sticky; top: 100px;
  background: var(--board); color: var(--chalk); border-radius: 22px; padding: 28px 26px 26px;
  box-shadow: 0 30px 60px rgba(20, 19, 18, .28); rotate: 1.5deg;
  -webkit-mask: radial-gradient(10px at 50% 0, #0000 98%, #000) 50% 0 / 28px 100% repeat-x;
          mask: radial-gradient(10px at 50% 0, #0000 98%, #000) 50% 0 / 28px 100% repeat-x;
}
.ticket__head { display: flex; gap: 14px; align-items: center; padding: 8px 0 18px; border-bottom: 1px dashed var(--line); }
.ticket__head img { border-radius: 50%; }
.ticket__head b { display: block; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .06em; font-variation-settings: "wdth" 80; }
.ticket__head span { font-size: .85rem; color: var(--chalk-dim); }
.ticket__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; min-height: 90px; }
.ticket__list li { display: flex; gap: 10px; font-family: var(--f-hand); font-size: 1.55rem; line-height: 1.1; }
.ticket__list li::before { content: "✓"; color: var(--olive); font-family: var(--f-sans); font-size: 1rem; padding-top: 4px; }
.ticket__list li.is-empty { color: var(--chalk-dim); }
.ticket__list li.is-empty::before { content: "·"; }
.ticket__cafe { margin: 12px 0 0; font-family: var(--f-hand); font-size: 1.45rem; color: var(--copper-hi); }
.ticket__cafe[hidden] { display: none; }
.ticket__foot { margin: 20px 0 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: .92rem; color: var(--chalk-dim); }
.ticket__foot b { color: var(--chalk); }
.ticket__go { width: 100%; }
.ticket__go[aria-disabled="true"] { opacity: .5; }

/* ---------- pizarrón ---------- */
.pizarron {
  padding: clamp(90px, 14vh, 160px) var(--pad); display: grid; max-width: 1320px; margin: 0 auto;
  grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(40px, auto); gap: 20px;
}
.pizarron__t { grid-column: 1 / 8; grid-row: 1; margin: 0; font-size: clamp(3rem, 9vw, 9rem); line-height: .85; text-transform: uppercase; font-variation-settings: "wdth" 75, "opsz" 96; }
.pizarron__t em { font-family: var(--f-hand); text-transform: none; font-style: normal; color: var(--copper); font-size: 1.1em; display: block; }
.pz { margin: 0; }
.pz img { border-radius: 18px; box-shadow: 0 24px 50px rgba(0, 0, 0, .5); width: 100%; }
.pz--a { grid-column: 8 / 13; grid-row: 1 / 4; rotate: 2.5deg; }
.pz--b { grid-column: 2 / 6; grid-row: 3 / 6; rotate: -3deg; margin-top: 30px; }
.pz--q { grid-column: 6 / 12; grid-row: 4 / 6; align-self: center; padding: 10px 0 0 30px; }
.pz--q p { margin: 0; font-family: var(--f-hand); font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.05; color: var(--chalk); }
.pz--q cite { display: block; margin-top: 16px; font-style: normal; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); }
.pz--c { grid-column: 1 / 3; grid-row: 2 / 3; align-self: end; width: 120px; rotate: -8deg; }
.pz--c img { border-radius: 50%; }

/* ---------- visitanos ---------- */
.visit { padding: clamp(90px, 14vh, 170px) var(--pad) clamp(110px, 14vh, 170px); background: var(--board-2); border-top: 1px solid var(--line); text-align: center; }
.visit__addr { margin: 0; font-size: clamp(3.2rem, 11vw, 11.5rem); line-height: .86; text-transform: uppercase; font-variation-settings: "wdth" 75, "opsz" 96; letter-spacing: -.01em; }
.visit__addr span { display: block; }
.visit__addr .num { color: var(--copper); }
.visit__city { margin: 18px 0 0; font-family: var(--f-hand); font-size: 2rem; color: var(--olive); }
.visit__grid { max-width: 1080px; margin: clamp(50px, 8vh, 80px) auto; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px dashed var(--line); text-align: left; }
.visit__item { padding: 28px 28px; }
.visit__item + .visit__item { border-left: 1px dashed var(--line); }
.visit__item h3 { margin: 0 0 10px; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--chalk-dim); font-weight: 600; }
.visit__item p { margin: 0; }
.visit__item a { text-underline-offset: 4px; }
.visit__item .big { font-size: 2.2rem; line-height: 1; }
.visit__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.foot { padding: 28px var(--pad) 32px; text-align: center; font-size: .9rem; color: var(--chalk-dim); border-top: 1px solid var(--line); }
.foot p { margin: 0; }
.foot a { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- dock mobile ---------- */
.dock { display: none; }

@media (max-width: 1080px) {
  .top__nav { display: none; }
  .top__cta { margin-left: auto; }
  .hero__foot { grid-template-columns: 1fr; justify-items: start; }
  .orden { grid-template-columns: 1fr; }
  .orden__intro, .orden__form, .ticket { grid-column: 1; grid-row: auto; }
  .ticket { position: relative; top: 0; rotate: 0deg; max-width: 460px; }
}
@media (max-width: 760px) {
  .top { padding: 10px 16px; }
  .top__cta { padding: 9px 14px; }
  .brand span { font-size: .98rem; }
  .hero { padding: 84px 16px 24px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .row > i { display: none; }
  .r1 .t { font-size: 25vw; letter-spacing: .06em; }
  .r2 .t { font-size: 12.4vw; }
  .r3 .t { font-size: 7.6vw; }
  .r4 .t { font-size: 6vw; }
  .r5 .t { font-size: 3.6vw; letter-spacing: .08em; }
  .r6 .t { font-size: 3.3vw; letter-spacing: .14em; }
  .hero__dial { position: static; justify-self: center; margin-bottom: 14px; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__lead { font-size: .98rem; }
  .taller, .orden, .pizarron, .visit, .phrase { padding-left: 16px; padding-right: 16px; }
  .taller__head { grid-template-columns: 1fr; }
  .card { grid-template-columns: 1fr; grid-template-rows: auto 220px; min-height: 0; top: calc(76px + var(--i) * 12px); }
  .card img { border-left: 0; border-top: 1px solid var(--line); }
  .card__txt { gap: 14px; padding: 24px 22px; }
  .card__n { font-size: 2rem; }
  .pizarron { grid-template-columns: repeat(6, 1fr); gap: 14px; }
  .pizarron__t { grid-column: 1 / -1; }
  .pz--a { grid-column: 2 / 7; grid-row: 2; }
  .pz--b { grid-column: 1 / 5; grid-row: 3; margin-top: -40px; }
  .pz--q { grid-column: 1 / -1; grid-row: 4; padding: 20px 0 0; }
  .pz--c { grid-column: 5 / 7; grid-row: 3; width: 84px; align-self: end; justify-self: end; }
  .visit__grid { grid-template-columns: 1fr; }
  .visit__item + .visit__item { border-left: 0; border-top: 1px dashed var(--line); }
  .visit__ctas .btn { flex: 1 1 100%; }
  .dock {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; position: fixed; z-index: 55; left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom)); padding: 8px; border-radius: 999px;
    background: rgba(20, 19, 18, .94); border: 1px solid var(--line); backdrop-filter: blur(10px);
    transition: translate .35s, opacity .35s;
  }
  .dock:not(.is-on) { translate: 0 140%; opacity: 0; }
  .dock:focus-within { translate: 0 0; opacity: 1; }
  .dock a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; text-decoration: none; font-weight: 650; font-size: .95rem; }
  .dock__main { background: var(--copper); color: var(--ink); }
  .foot { padding-bottom: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .chips span { transition: none; }
  .btn:hover { translate: none; }
}
