@charset "utf-8";

/* ═══════════════════════════════════════════════════════════════════════════
   forndebarri — vista previa PixelUno

   El estándar de la categoría, hecho a conciencia: papel cálido, fotografía
   grande, una sola tipografía, mucho aire. Sin ironía y sin florituras.
   Nivel de referencia: Blue Bottle, Tartine, Ottolenghi, Bread Ahead.
   ═══════════════════════════════════════════════════════════════════════════ */

/* --- Tipografía, alojada aquí mismo ---------------------------------------- */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('assets/fonts/schibsted-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('assets/fonts/schibsted-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/schibsted-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Sistema ---------------------------------------------------------------- */
:root {
  /* papel */
  --paper:     #F8F4ED;
  --paper-2:   #F1EAE0;
  --paper-3:   #EAE0D2;
  --rule:      #DFD4C3;
  --rule-soft: #EBE2D6;

  /* tinta cálida */
  --ink:       #221B14;
  --ink-2:     #574A3D;
  --ink-3:     #6F6052;

  /* un solo acento: corteza */
  --crust:     #A44E24;
  --crust-dk:  #7E3A17;
  --crust-lt:  #F7EBE2;

  /* la única banda oscura de la página */
  --night:     #1A140F;
  --night-ink: #F3EDE4;
  --night-2:   #B9AB9B;

  /* estados */
  --open:      #2C6641;  --open-bg:  #E6EFE8;
  --shut:      #8E3E2C;  --shut-bg:  #F6E7E2;

  --gutter: clamp(1.15rem, 4.5vw, 3.5rem);
  --strip-h: 2.15rem;
  --head-h: 4.75rem;
  --maxw: 78rem;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;

  --sh-1: 0 1px 2px rgb(34 27 20 / .05), 0 4px 14px rgb(34 27 20 / .05);
  --sh-2: 0 2px 6px rgb(34 27 20 / .06), 0 16px 36px rgb(34 27 20 / .09);
  --sh-3: 0 4px 10px rgb(34 27 20 / .07), 0 28px 60px rgb(34 27 20 / .12);

  --ease: cubic-bezier(.2, .7, .3, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  color-scheme: light;
}

/* --- Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--strip-h) + var(--head-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1rem, .97rem + .2vw, 1.07rem);
  line-height: 1.68;
  padding-top: calc(var(--strip-h) + var(--head-h));
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

figure { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

svg[viewBox] {
  fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--crust);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Botones ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; line-height: 1.2;
  padding: .88rem 1.5rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease),
              transform .2s var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--fill {
  background: var(--crust); color: #fff;
  box-shadow: var(--sh-1);
}
.btn--fill:hover { background: var(--crust-dk); box-shadow: var(--sh-2); transform: translateY(-1px); }
.btn--fill:active { transform: translateY(0); box-shadow: var(--sh-1); }

.btn--line {
  background: transparent; color: var(--ink);
  border-color: var(--rule);
}
.btn--line:hover { border-color: var(--ink); background: rgb(34 27 20 / .04); }

.btn--sm { padding: .6rem 1.05rem; font-size: .88rem; }

/* --- Franja de vista previa -------------------------------------------------- */
.strip {
  position: fixed; inset: 0 0 auto 0; z-index: 140;
  min-height: var(--strip-h);
  background: linear-gradient(90deg, #4c1d95, #6d28d9 55%, #5b21b6);
  color: #f3eeff;
  font-size: .74rem; font-weight: 500; letter-spacing: .02em; line-height: 1.3;
  text-align: center;
  padding: .4rem var(--gutter);
  display: flex; align-items: center; justify-content: center; gap: .55rem;
}
.strip__dot { width: .4rem; height: .4rem; border-radius: 50%; background: #c4b5fd; flex: none; }

.skip {
  position: fixed; left: 50%; z-index: 200;
  top: calc(var(--strip-h) + .5rem);
  translate: -50% calc(-100% - var(--strip-h) - 1.5rem);
  background: var(--crust); color: #fff;
  font-weight: 600; font-size: .9rem;
  padding: .7rem 1.15rem; text-decoration: none; border-radius: var(--r-sm);
  transition: translate .2s var(--ease);
}
.skip:focus-visible { translate: -50% 0; }

/* --- Cabecera ---------------------------------------------------------------- */
.fascia {
  position: fixed; top: var(--strip-h); inset-inline: 0; z-index: 130;
  height: var(--head-h);
  background: rgb(248 244 237 / .88);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--rule-soft);
}
.fascia__rule { display: none; }

.fascia__in {
  height: 100%;
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
}

.brand { text-decoration: none; display: grid; gap: .05rem; flex: none; }
.brand__mark {
  font-weight: 800; font-size: 1.4rem;
  letter-spacing: -.045em; line-height: 1.1;
  color: var(--ink);
  margin: 0;
}
.brand__trade {
  margin: 0;
  font-size: .58rem; font-weight: 600;
  letter-spacing: .19em; text-transform: uppercase;
  color: var(--ink-3);
}

.nav { display: flex; align-items: center; gap: clamp(.9rem, 2.2vw, 2rem); margin-inline-start: auto; }
.nav a {
  text-decoration: none;
  font-size: .93rem; font-weight: 500;
  color: var(--ink-2);
  padding: .35rem 0;
  border-bottom: 1.5px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--crust); }

.fascia__end { display: flex; align-items: center; gap: .85rem; }

.langs { display: flex; gap: .18rem; background: var(--paper-2); border-radius: var(--r-sm); padding: .18rem; }
.langs a {
  display: block;
  font-size: .7rem; font-weight: 600; letter-spacing: .06em;
  padding: .3rem .5rem;
  text-decoration: none;
  color: var(--ink-3);
  border-radius: 5px;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.langs a:hover { color: var(--ink); }
.langs a[aria-current] { color: var(--ink); background: var(--paper); box-shadow: var(--sh-1); }

.burger {
  display: none;
  width: 2.6rem; height: 2.6rem;
  background: none; border: 1px solid var(--rule); border-radius: var(--r-sm);
  cursor: pointer; padding: .72rem .62rem;
  flex-direction: column; justify-content: space-between;
}
.burger span { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; transition: .25s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- Portada ----------------------------------------------------------------- */
.hero { background: var(--paper); }
.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 6vw, 5rem);
}

.hero__h {
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -.032em;
  line-height: 1.04;
  margin-bottom: 1.35rem;
  max-width: 15ch;
}
.hero__lead {
  font-size: clamp(1.1rem, 1.4vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 44ch;
  margin-bottom: 2.1rem;
}
.hero__acts { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.9rem; }
.hero__meta {
  font-size: .82rem; font-weight: 500; letter-spacing: .04em;
  color: var(--ink-3);
}
.hero__meta span { color: var(--rule); margin-inline: .28em; }

.hero__shot {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-3);
  aspect-ratio: 5 / 6;
  background: var(--paper-3);
}
.hero__shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }

/* --- Barra de estado ---------------------------------------------------------- */
.status {
  border-block: 1px solid var(--rule-soft);
  background: var(--paper-2);
}
.status__in {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1rem clamp(1.5rem, 4vw, 3rem);
  padding-block: 1.1rem;
}
.status__now { display: flex; align-items: baseline; gap: .7rem; flex: none; }
.status__h {
  font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3);
}
.status__time {
  display: flex; align-items: center; gap: .38rem;
  margin: 0; font-size: .9rem; color: var(--ink-3);
}
.status__time svg { width: 1rem; height: 1rem; }
.status__time [data-now] { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.status__list {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .5rem clamp(1rem, 2.5vw, 2rem);
  margin-inline-start: auto;
}
.status__list li { display: flex; align-items: center; gap: .55rem; }
.status__town { font-weight: 600; color: var(--ink); font-size: .95rem; }
.status__next { font-size: .85rem; color: var(--ink-3); }

/* Estado: pastilla, no chapa */
.state {
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  padding: .24rem .6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.state--open    { color: var(--open); background: var(--open-bg); }
.state--closed  { color: var(--shut); background: var(--shut-bg); }
.state--unknown { color: var(--ink-3); background: var(--paper-3); }
.state--big { font-size: .76rem; padding: .3rem .7rem; }

/* --- Encabezado de sección ----------------------------------------------------- */
.board { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 46rem; margin-inline: auto; }
.board__h { font-size: clamp(1.9rem, 3.8vw, 2.9rem); letter-spacing: -.028em; }
.board__sub { margin: 1rem auto 0; max-width: 48ch; color: var(--ink-3); font-size: 1.05rem; }

.h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); letter-spacing: -.028em; margin-bottom: 1.15rem; }
.lead { font-size: 1.14rem; line-height: 1.6; color: var(--ink-2); }

/* --- El día -------------------------------------------------------------------- */
.day { background: var(--paper); padding-block: clamp(4rem, 8vw, 6.5rem); }

.rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(1rem, 2.2vw, 1.9rem); }
.stop__tick { display: none; }

.arch {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--paper-3);
  box-shadow: var(--sh-1);
}
.arch img {
  width: 100%; height: 100%; object-fit: cover;
  transition: scale .6s var(--ease-out);
}
.stop:hover .arch img { scale: 1.04; }

.stop__h { font-size: 1.1rem; font-weight: 700; margin: 1rem 0 .35rem; letter-spacing: -.015em; }
.stop p { font-size: .93rem; line-height: 1.55; color: var(--ink-3); }

.rail__ends {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule-soft);
  font-size: .8rem; font-weight: 500;
  color: var(--ink-3);
}
.rail__ends span:first-child { color: var(--crust); font-weight: 600; }

/* --- Masa madre ----------------------------------------------------------------- */
.madre { background: var(--paper-2); padding-block: clamp(4rem, 8vw, 6.5rem); }
.madre__in {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: clamp(2rem, 5vw, 4.5rem);
}
.madre__frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); }
.madre__frame img { width: 100%; }
.madre__text p { color: var(--ink-2); max-width: 54ch; }

/* --- El mostrador ---------------------------------------------------------------- */
.shelf { background: var(--paper); padding-block: clamp(4rem, 8vw, 6.5rem); }

.tiles { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.1rem, 2.2vw, 1.9rem); }
.tile {
  grid-column: span 6;
  display: grid; grid-template-rows: auto 1fr;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.tile--wide { grid-column: span 6; }
.tile:hover { box-shadow: var(--sh-2); transform: translateY(-3px); }
.tile__img { overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper-3); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease-out); }
.tile:hover .tile__img img { scale: 1.045; }
.tile__plate { padding: 1.4rem 1.55rem 1.7rem; }
.tile__plate h3 { font-size: 1.32rem; margin-bottom: .5rem; letter-spacing: -.02em; }
.tile__plate p { font-size: .94rem; line-height: 1.6; color: var(--ink-3); }

.note { margin-top: clamp(1.8rem, 3.5vw, 2.6rem); text-align: center; font-size: .98rem; color: var(--ink-3); }
.note a { color: var(--crust); font-weight: 600; text-underline-offset: .22em; }

/* --- Las tres tiendas -------------------------------------------------------------- */
.street { background: var(--paper-2); padding-block: clamp(4rem, 8vw, 6.5rem); }

.shops { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2.4vw, 1.9rem); align-items: start; }
.shop {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r);
  padding: 0 0 1.6rem;
  box-shadow: var(--sh-1);
  overflow: hidden;
}
.shop__top {
  padding: 1.4rem 1.5rem 1.15rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: .8rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--rule-soft);
}
.shop__name { font-size: 1.5rem; letter-spacing: -.025em; }
.shop__what { padding: 1.25rem 1.5rem 0; color: var(--ink-3); font-size: .95rem; }

.rajola {
  display: flex; gap: .6rem; align-items: flex-start;
  margin: 1.2rem 1.5rem;
  padding: .85rem .95rem;
  background: var(--crust-lt);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: .93rem; line-height: 1.45; font-weight: 500;
}
.rajola svg { width: 1.1rem; height: 1.1rem; flex: none; margin-top: .15rem; color: var(--crust); }
.rajola--blank { background: var(--paper-2); color: var(--ink-3); }

.blank {
  display: inline-block;
  min-width: 8.5rem; height: .95em;
  vertical-align: -.15em;
  border-bottom: 1px dashed var(--ink-3);
  opacity: .55;
}

.hours { width: calc(100% - 3rem); margin: 0 1.5rem; border-collapse: collapse; }
.hours th, .hours td {
  text-align: left; padding: .5rem 0;
  font-size: .9rem; font-weight: 400;
  border-bottom: 1px solid var(--rule-soft);
}
.hours th { color: var(--ink-3); font-weight: 500; }
.hours td { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

.shop__acts { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.35rem 1.5rem 0; }

.pending {
  margin: 1.3rem 1.5rem 0;
  padding: .9rem 1rem;
  background: var(--paper-2);
  border-radius: var(--r-sm);
  font-size: .84rem; line-height: 1.55; color: var(--ink-3);
}

/* --- La historia — la única banda oscura -------------------------------------------- */
.story { background: var(--night); color: var(--night-ink); padding-block: clamp(4rem, 8vw, 6.5rem); }
.story__in { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.story__frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 60px rgb(0 0 0 / .4); }
.story__frame img { width: 100%; }
.story__text h2 { color: var(--night-ink); }
.story__text p { color: var(--night-2); max-width: 56ch; }
.story__text .lead { color: var(--night-ink); }

.plaques { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.1rem; }
.plaques li {
  display: flex; align-items: baseline; gap: .45rem;
  padding: .55rem .9rem;
  background: rgb(243 237 228 / .07);
  border: 1px solid rgb(243 237 228 / .14);
  border-radius: 999px;
}
.plaques strong { font-weight: 700; font-size: .96rem; color: var(--night-ink); }
.plaques span { font-size: .8rem; color: var(--night-2); }

/* --- Encargos ------------------------------------------------------------------------ */
.order { background: var(--paper); padding-block: clamp(4rem, 8vw, 6.5rem); }
.order__in { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.order__say .lead { margin-bottom: 1.5rem; }
.order__how { font-size: .92rem; color: var(--ink-3); max-width: 44ch; }
.order__how a { color: var(--crust); font-weight: 600; text-underline-offset: .2em; }

.slip {
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--sh-1);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.2rem 1.25rem;
}
.slip__head {
  grid-column: 1 / -1; margin: 0;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3);
}

.field { display: grid; gap: .4rem; margin: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .84rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: .7rem .8rem;
  width: 100%;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 4.2rem; line-height: 1.55; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23574A3D' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 1.05rem;
  padding-right: 2.2rem;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: .75; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--crust);
  box-shadow: 0 0 0 3px rgb(164 78 36 / .16);
}
.field :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--shut); }

.slip__err { grid-column: 1 / -1; margin: 0; font-size: .88rem; color: var(--shut); min-height: 1.2em; }
.slip__err:empty { min-height: 0; }
.slip__acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .7rem; }
.slip__foot { grid-column: 1 / -1; margin: 0; font-size: .8rem; color: var(--ink-3); }

/* --- Trabajar aquí --------------------------------------------------------------------- */
.jobs { background: var(--paper-2); padding-block: clamp(3.4rem, 7vw, 5.5rem); border-top: 1px solid var(--rule-soft); }
.jobs__in { max-width: 56ch; text-align: center; }
.jobs__in p { color: var(--ink-2); }
.jobs__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1.8rem; }

/* --- Pie --------------------------------------------------------------------------------- */
.foot { background: var(--paper); border-top: 1px solid var(--rule); }
.foot__in {
  display: grid; grid-template-columns: 1.45fr 1.35fr 1fr 1.1fr;
  gap: clamp(1.6rem, 3.2vw, 3rem);
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
}
.foot__brand .brand__mark { font-size: 1.55rem; display: block; margin-bottom: .75rem; }
.foot__trade {
  font-size: .74rem; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ink-3); line-height: 1.9;
  margin-bottom: 1.1rem;
}
.foot__ig {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .92rem; color: var(--ink-2); text-decoration: none;
  transition: color .18s var(--ease);
}
.foot__ig svg { width: 1.1rem; height: 1.1rem; }
.foot__ig:hover { color: var(--crust); }

.foot__col h2 {
  font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 1rem;
}
.foot__col ul { display: grid; gap: .6rem; }
.foot__col a {
  font-size: .93rem; color: var(--ink-2); text-decoration: none;
  transition: color .18s var(--ease);
}
.foot__col a:hover { color: var(--crust); }

.foot__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem 1.5rem;
  padding-block: 1.3rem 1.6rem;
  border-top: 1px solid var(--rule-soft);
  font-size: .84rem; color: var(--ink-3);
}
.madeby { margin: 0; }
.madeby a { color: var(--crust); text-decoration: none; font-weight: 600; }
.madeby a:hover { text-decoration: underline; text-underline-offset: .22em; }
.madeby__heart { color: var(--crust); }

/* --- Barra móvil ------------------------------------------------------------------------- */
.dock {
  display: none;
  position: fixed; inset: auto 0 0 0; z-index: 120;
  background: rgb(248 244 237 / .95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--rule);
  padding: .55rem var(--gutter) calc(.55rem + env(safe-area-inset-bottom));
  gap: .55rem;
}
.dock a {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .85rem .5rem;
  font-weight: 600; font-size: .93rem;
  text-decoration: none; color: var(--ink);
  border: 1px solid var(--rule); border-radius: var(--r-sm);
}
.dock a svg { width: 1.15rem; height: 1.15rem; }
.dock a.is-primary { background: var(--crust); color: #fff; border-color: var(--crust); }

/* --- Revelado al desplazar ---------------------------------------------------------------- */
.js .reveal--armed { opacity: 0; transform: translateY(16px); }
.js .reveal--armed.is-in {
  opacity: 1; transform: none;
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}

/* --- Páginas legales ------------------------------------------------------------------------ */
.legal-page .fascia { position: static; backdrop-filter: none; background: var(--paper); }
.legal-page { padding-top: var(--strip-h); }
.legal { background: var(--paper); padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); }
.legal__in { max-width: 44rem; }
.legal h1 { margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.legal__block { margin-bottom: clamp(1.8rem, 3.5vw, 2.4rem); }
.legal__block h2 {
  font-size: .76rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3);
  padding-bottom: .7rem; margin-bottom: 1rem;
  border-bottom: 1px solid var(--rule-soft);
}
.legal__block p { color: var(--ink-2); font-size: .98rem; max-width: 68ch; }
.legal__back { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule-soft); }
.legal__back a { color: var(--crust); font-weight: 600; text-underline-offset: .22em; }
.blank--ink { min-width: 11rem; border-bottom-color: var(--crust); opacity: .8; }

/* ═══ Adaptación ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1000px) {
  .hero__in { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero__h { max-width: 18ch; }
  .hero__shot { aspect-ratio: 16 / 10; }
  .status__list { margin-inline-start: 0; }
}

@media (max-width: 900px) {
  .madre__in, .story__in, .order__in { grid-template-columns: 1fr; }
  .story__frame { max-width: 24rem; }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .tile, .tile--wide { grid-column: span 12; }
  .tile__img { aspect-ratio: 16 / 9; }
  .shops { grid-template-columns: 1fr; }
  .shop { max-width: 34rem; }
}

@media (max-width: 780px) {
  :root { --head-h: 4.1rem; }

  .burger { display: flex; }
  .fascia__end { margin-inline-start: auto; }

  .nav {
    position: fixed; inset: calc(var(--strip-h) + var(--head-h)) 0 auto 0;
    display: grid; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: .3rem var(--gutter) 1.1rem;
    margin: 0;
    transform: translateY(calc(-100% - 10rem));
    visibility: hidden;
    transition: transform .32s var(--ease), visibility 0s .32s;
    box-shadow: var(--sh-2);
  }
  .nav.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .nav a { padding: .95rem 0; font-size: 1rem; border-bottom: 1px solid var(--rule-soft); }
  .nav a:last-child { border-bottom: 0; }

  .fascia__end .btn--fill { display: none; }

  body { padding-bottom: 4.7rem; }
  .dock { display: flex; }
}

@media (max-width: 720px) {
  .rail { grid-template-columns: 1fr; gap: 1.5rem; }
  .stop { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0 1.15rem; align-items: start; }
  .arch { grid-row: 1 / span 3; }
  .stop__h { margin-top: 0; }
  .rail__ends { flex-direction: column; gap: .4rem; }
  .status__in { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .status__list { flex-direction: column; align-items: flex-start; gap: .55rem; }
}

@media (max-width: 560px) {
  .slip { grid-template-columns: 1fr; }
  .hero__acts { display: grid; }
  .plaques li { flex: 1 1 9rem; }
  .slip__acts .btn { flex: 1 1 100%; }
}

@media (max-width: 480px) {
  .brand__trade { display: none; }
  .langs a { padding: .3rem .4rem; }
}

/* --- Preferencias del usuario -------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal--armed { opacity: 1; transform: none; }
}

@media (prefers-contrast: more) {
  :root { --ink-2: #3B3128; --ink-3: #4E4237; --rule: #B9A992; --rule-soft: #CFC0A9; }
}

@media print {
  .strip, .fascia, .dock, .skip, .status { display: none !important; }
  body { background: #fff; color: #000; padding-top: 0; }
  .story { background: #fff; color: #000; }
  .story__text h2, .story__text p, .story__text .lead { color: #000; }
  .day, .shelf, .street, .jobs, .madre, .order, .foot { background: #fff; }
}
