/* Hallmark · macrostructure: Photographic (adaptado a negocio local) · tone: nocturno urbano · anchor hue: neutral + latón
 * theme: custom · vibe: "negro, listones de luz blanca, latón de silla" · paper oklch(15% 0.006 70) · accent oklch(80% 0.12 88) latón
 * display: Big Shoulders Display · body: Geist · axes: dark / display-condensed / neutral
 * nav: masthead mínimo + dock inferior · footer: Ft statement corto
 * Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V4
 */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("/fonts/big-shoulders.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --color-paper: oklch(15% 0.006 70);
  --color-paper-2: oklch(19% 0.006 70);
  --color-rule: oklch(30% 0.006 70);
  --color-ink: oklch(95% 0.008 85);
  --color-ink-2: oklch(76% 0.01 85);
  --color-led: oklch(97% 0.012 240);
  --color-led-glow: oklch(97% 0.012 240 / 0.45);
  --color-brass: oklch(80% 0.12 88);
  --color-open: oklch(78% 0.14 150);
  --color-closed: oklch(70% 0.02 70);
  --color-scrim: oklch(15% 0.006 70 / 0.92);
  --color-veil: oklch(15% 0.006 70 / 0.5);
  --color-paper-0: oklch(15% 0.006 70 / 0);
  --color-led-halo: oklch(97% 0.012 240 / 0.15);
  --color-focus: oklch(80% 0.12 88);

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;

  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.1875rem;
  --text-h2: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
  --text-addr: clamp(2rem, 1.4rem + 3vw, 3.25rem);

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --gutter: 1rem;
  --dock-space: 5.5rem;
  --led-gap: 0.75rem;

  --radius: 2px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 140ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  padding-bottom: var(--dock-space); /* espacio del dock en móvil */
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* ——— Cabecera ——— */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
  padding: var(--space-md) var(--gutter);
}
.top__brand {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-width: 2.75rem; min-height: 2.75rem; margin-left: -0.8rem;
  text-decoration: none; font-family: var(--font-display); font-weight: 800;
  font-size: 1.25rem; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap;
}
.top__brand img { width: 1.1rem; }
.status {
  margin: 0; display: inline-flex; align-items: center; gap: var(--space-xs);
  font-size: var(--text-sm); color: var(--color-ink); white-space: nowrap;
  background: var(--color-scrim); padding: var(--space-2xs) var(--space-sm); border-radius: 99px;
}
.status__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--color-closed); flex: none; }
.status[data-open="true"] .status__dot { background: var(--color-open); }

/* ——— Hero ———
 * Móvil: la foto arriba SIN nada encima (se ve el trabajo); debajo, en un eje central como el propio logo:
 * logo, "Montería · La Granja" entre filetes LED, servicios, botón y "Cómo llegar". Los precios viven en Servicios.
 * Escritorio: split, texto a la izquierda y foto a la derecha. */
.hero { display: grid; grid-template-rows: auto 1fr; min-height: 100svh; }
.hero__photo { position: relative; display: block; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; max-height: 54svh; object-fit: cover; object-position: 50% 62%; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, var(--color-veil) 0%, transparent 16%, transparent 88%, var(--color-paper) 100%);
}
.hero__text {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: var(--space-md) var(--gutter) var(--space-xl);
}
.hero__logo { margin: 0; }
.hero__logo img { width: min(84vw, 22rem); }
.hero__lugar {
  display: flex; align-items: center; gap: var(--space-sm); width: min(100%, 22rem); margin: var(--space-lg) 0 var(--space-xs);
  font-size: 0.9375rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-ink-2); white-space: nowrap;
}
.hero__lugar::before, .hero__lugar::after { content: ""; flex: 1; height: 1px; background: var(--color-led); box-shadow: 0 0 6px var(--color-led-glow); }
.hero__serv { margin: 0 0 var(--space-xl); color: var(--color-ink-2); font-size: var(--text-base); }
.hero__acc { display: flex; flex-direction: column; align-items: center; gap: var(--space-xs); width: min(100%, 22rem); }
.hero__acc .btn { width: 100%; }
/* Teléfonos bajos (≤760px de alto: Safari con barras): foto más corta para que el botón y "Cómo llegar" quepan. */
@media (max-width: 959px) and (orientation: portrait) and (max-height: 760px) {
  .hero__photo img { max-height: 44svh; }
  .hero__text { padding-top: var(--space-sm); padding-bottom: var(--space-md); }
  .hero__lugar { margin-top: var(--space-md); font-size: 0.875rem; }
  .hero__serv { margin-bottom: var(--space-lg); }
}

/* ——— Botones ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 var(--space-lg);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-base);
  text-decoration: none; white-space: nowrap; border-radius: var(--radius);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.ico { width: 1.25rem; height: 1.25rem; margin-right: var(--space-xs); flex: none; }
.btn--primary { background: var(--color-ink); color: var(--color-paper); }
.btn--primary:hover { background: var(--color-brass); }
.btn--ghost { border: 1px solid var(--color-rule); color: var(--color-ink); }
.btn--ghost:hover { border-color: var(--color-ink-2); background: var(--color-paper-2); }
.link { font-weight: 600; text-underline-offset: 0.3em; text-decoration-thickness: 1px; padding: var(--space-sm) 0; }
.link:hover { text-decoration-color: var(--color-brass); }

/* ——— Línea de luz (firma: los listones LED del techo) ——— */
.led {
  border: 0; height: 2px; margin: var(--space-2xl) 0 var(--space-2xl) var(--gutter);
  width: 62%; background: var(--color-led); border-radius: 2px;
  box-shadow: 0 0 10px 1px var(--color-led-glow), 0 0 28px 2px var(--color-led-halo);
  position: relative; overflow: visible;
}
/* Tras el hero, la línea va más cerca: con el margen completo quedaban ~100px muertos bajo "Cómo llegar". */
.hero + .led { margin-top: var(--space-lg); }
.led::after {
  content: ""; position: absolute; top: var(--led-gap); left: 38%; width: 48%; height: 2px;
  background: var(--color-led); border-radius: 2px; box-shadow: 0 0 10px 1px var(--color-led-glow);
  opacity: 0.55;
}

/* ——— Tipos ——— */
.h2 {
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-h2);
  line-height: 1.02; letter-spacing: 0.005em; text-transform: uppercase;
  margin: 0 0 var(--space-lg); overflow-wrap: anywhere; min-width: 0;
}
.h2--sub { margin-top: var(--space-xl); }
.pad { padding: 0 var(--gutter); }

/* ——— Carta ——— */
.carta { display: grid; gap: var(--space-2xl); padding: 0 var(--gutter); }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-rule); }
.rows li {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md);
  padding: var(--space-sm) 0; border-bottom: 1px solid var(--color-rule); font-size: var(--text-lg);
}
.rows li > span:last-child:not(:first-child) { color: var(--color-ink-2); text-align: right; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rows li > .precio:last-child:not(:first-child) { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1; letter-spacing: 0.01em; color: var(--color-ink); }
.note { margin: var(--space-md) 0 0; color: var(--color-ink-2); font-size: var(--text-sm); }
.note--top { margin: calc(-1 * var(--space-sm)) 0 var(--space-lg); font-size: var(--text-base); max-width: 45ch; }
.carta__photo { margin: 0; }
.carta__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
figcaption { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); }

/* ——— El trabajo: tira deslizable ——— */
.trabajo { padding-bottom: var(--space-2xl); }
.strip {
  list-style: none; margin: 0; padding: 0 var(--gutter);
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: var(--space-sm);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  overscroll-behavior-x: contain; scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip li { scroll-snap-align: start; min-width: 0; }
.strip img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); }

/* ——— El local ——— */
.local { display: grid; }
.local__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.local__text { padding: var(--space-xl) var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
.local__text .h2 { margin-bottom: 0; }
.local__text p { margin: 0; font-size: var(--text-lg); max-width: 32ch; color: var(--color-ink); }
.local__detail { width: 55%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); justify-self: end; margin-top: var(--space-md); }

/* ——— Ubicación ——— */
.ubicacion { padding: 0 var(--gutter); }
.addr {
  font-style: normal; font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-addr); line-height: 1.08; text-transform: uppercase; margin-bottom: var(--space-xl);
}
.addr span { color: var(--color-ink-2); }
.ubicacion__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.ubicacion__actions .btn { flex: 1 1 12rem; }

/* ——— Pie ——— */
.foot {
  margin-top: var(--space-3xl); padding: var(--space-2xl) var(--gutter);
  border-top: 1px solid var(--color-rule); color: var(--color-ink-2); font-size: var(--text-sm);
}
.foot p { margin: 0 0 var(--space-md); }
.foot__mark { width: 1.5rem; margin-bottom: var(--space-md); }
.foot__name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; color: var(--color-ink); }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); }
.foot__links a { display: inline-block; padding: var(--space-sm) 0; color: var(--color-ink); text-underline-offset: 0.3em; }

/* ——— Dock inferior (solo móvil) ——— */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: var(--space-sm) var(--gutter) var(--space-md);
  background: linear-gradient(to top, var(--color-paper) 60%, var(--color-paper-0));
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.dock .btn { width: 100%; max-width: 22rem; margin: 0 auto; display: flex; }
.dock[data-hidden="true"] { transform: translateY(110%); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .dock { transition: opacity 120ms linear; } .dock[data-hidden="true"] { transform: none; } }

/* ——— Teléfono acostado: el mismo split del escritorio ——— */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 959px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100svh; min-height: 20rem; }
  .hero__photo { grid-area: 1 / 2; min-height: 0; }
  .hero__photo img { height: 100%; aspect-ratio: auto; max-height: none; object-position: 50% 58%; }
  .hero__photo::after { background: linear-gradient(to right, var(--color-paper) 0%, transparent 10%); }
  .hero__text { grid-area: 1 / 1; align-self: center; padding: var(--space-xl) var(--gutter) var(--space-md); }
  .hero__logo img { width: min(30vw, 15rem); }
  .hero__lugar { width: min(100%, 17rem); margin: var(--space-sm) 0 0; font-size: 0.8125rem; }
  .hero__serv { margin: var(--space-xs) 0 var(--space-md); font-size: var(--text-sm); }
  .hero__acc { width: min(100%, 17rem); gap: var(--space-xs); }
  .hero__acc .link { min-height: 2.75rem; display: inline-flex; align-items: center; padding: 0; }
}

/* ——— Escritorio ——— */
@media (min-width: 960px) {
  :root { --gutter: clamp(2rem, 5vw, 5rem); }
  body { padding-bottom: 0; }
  .dock { display: none; }
  .top { position: absolute; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: max(100svh, 40rem); }
  .hero__photo { grid-area: 1 / 2; min-height: 0; }
  .hero__photo img { height: 100%; aspect-ratio: auto; max-height: none; object-position: 50% 40%; }
  .hero__photo::after { background: linear-gradient(to right, var(--color-paper) 0%, transparent 8%); }
  .hero__text { grid-area: 1 / 1; align-self: center; padding: var(--space-3xl) var(--gutter); }
  .hero__logo img { width: min(36vw, 30rem); }
  .hero__lugar, .hero__acc { width: min(100%, 26rem); }
  .carta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.8fr); gap: var(--space-2xl); align-items: start; }
  .strip { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; }
  .local { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; }
  .local__photo img { max-height: 90svh; }
  .local__text { padding: 0 var(--gutter) 0 var(--space-2xl); }
  .led { width: 44%; }
  .ubicacion__actions { max-width: 44rem; }
}
