/* =============================================================
   Suministros José Luis Cabrera: «carta de colores»
   Negro picón, rojo Montaña Roja y la rampa de tonos RAL de la obra.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
/* Instrument Serif: la voz editorial (titulares, eslogan, teléfonos, reseñas) */
@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
/* Barlow Condensed: la línea fuerte de los titulares */
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
/* Geist Mono: datos con precisión (códigos RAL, horario, mapa) */
@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/geist-mono-variable.woff2") format("woff2-variations"), url("assets/fonts/geist-mono-variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
/* Geist: texto, botones y etiquetas (peso variable) */
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-variable.woff2") format("woff2-variations"), url("assets/fonts/geist-variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* Tonos del Atlántico: el azul marino sustituye al negro cerrado */
  --tono-hondo: #1a2634;
  --tono-acero: #263749;
  --tono-marino: #2f4a6b;
  --tono-bruma: #526d8c;
  --tono-niebla: #8fa1b8;
  --tono-rojo: #a5301f;
  --tono-teja: #7a2b20;

  /* Materiales de la isla */
  --marea: #16202c;
  --fondeo: #0f1720;
  --basalto: #1c2836;
  --ceniza: #253343;
  --oxido: #6e2a21;
  --montana: #b0402f;
  --cal: #eaedf2;

  --bg: var(--marea);
  --surface: var(--basalto);
  --raised: var(--ceniza);
  --text: var(--cal);
  --text-dim: #9fadbf;
  --ink-dark: #111a25;
  --red: var(--montana);
  --red-ink: #e8836f;
  --line: rgba(234, 237, 242, 0.13);
  --line-strong: rgba(234, 237, 242, 0.32);

  --font: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-display: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --wide: 100%;
  --semi-wide: 100%;
  --condensed: 100%;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2.1rem);
  --step-3: clamp(2rem, 1.55rem + 2vw, 3.25rem);
  --step-4: clamp(2.6rem, 1.7rem + 4.4vw, 6rem);

  --gutter: clamp(16px, 4.2vw, 64px);
  --maxw: 1360px;
  --nav-h: 68px;
  --hair: 1px;
  --radius-strip: 999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset y base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  color-scheme: dark;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  scrollbar-color: var(--tono-marino) var(--marea);
  scrollbar-width: thin;
}
body {
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  caret-color: var(--red);
  accent-color: var(--red);
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; }

::selection { background: var(--red); color: var(--cal); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--marea); }
::-webkit-scrollbar-thumb { background: var(--tono-marino); border-radius: 10px; border: 2px solid var(--marea); }
::-webkit-scrollbar-thumb:hover { background: var(--tono-teja); }

:focus-visible {
  outline: 2px solid var(--red-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   3. Utilidades
   ============================================================= */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 1000;
  padding: 0.7rem 1.1rem; border-radius: 999px;
  background: var(--cal); color: var(--ink-dark); font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* =============================================================
   4. Componentes
   ============================================================= */

/* Cinta métrica de progreso */
/* Opaca a propósito: si la cinta deja ver la página por debajo parece que la web
   está cortada por arriba. Va pegada a la barra de navegación, sin junta. */
.tape {
  position: fixed; inset: 0 0 auto 0; height: 7px; z-index: 60; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(234,237,242,.42) 0 var(--hair), transparent var(--hair) 40px) 0 0 / 100% 7px no-repeat,
    repeating-linear-gradient(90deg, rgba(234,237,242,.22) 0 var(--hair), transparent var(--hair) 8px) 0 0 / 100% 3px no-repeat,
    linear-gradient(var(--fondeo), var(--fondeo));
}
.tape-fill {
  height: 100%; background: var(--red);
  transform-origin: left; transform: scaleX(var(--progress, 0));
}

/* Botón «tira»: una tira corta de la carta, con su agujero de tornillo */
.strip-btn {
  --strip: var(--raised);
  position: relative;
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 50px;
  padding: 0 1.4rem 0 2.6rem;
  border-radius: var(--radius-strip);
  background: var(--strip);
  color: var(--text);
  box-shadow: inset 0 0 0 var(--hair) var(--line-strong), 0 10px 24px -14px rgba(0,0,0,.8);
  font-weight: 650;
  font-stretch: var(--semi-wide);
  letter-spacing: 0.005em;
  line-height: 1.15;
  transform-origin: 1.3rem 50%;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform .5s var(--ease-out), background-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.strip-btn::before {
  content: ""; position: absolute; left: 0.95rem; top: 50%;
  width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%;
  background: var(--marea);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.9), 0 0 0 var(--hair) rgba(234,237,242,.18);
}
.strip-btn--red { --strip: var(--red); color: #fff3ee; box-shadow: 0 12px 26px -14px rgba(0,0,0,.85); }
.strip-btn-icon { width: 18px; height: 18px; flex: none; }
@media (hover: hover) {
  .strip-btn:hover { transform: translate(var(--mx, 0px), var(--my, 0px)) rotate(-3deg); }
  .strip-btn:not(.strip-btn--red):hover { background: var(--tono-marino); }
  .strip-btn--red:hover { background: #a2372a; }
}
.strip-btn:active { transform: translate(var(--mx, 0px), var(--my, 0px)) rotate(-1deg) scale(.98); }

/* Enlace subrayado con cota */
.link-line {
  display: inline-block; font-weight: 650; font-stretch: var(--semi-wide);
  text-decoration: underline; text-decoration-thickness: var(--hair); text-underline-offset: 0.35em;
  text-decoration-color: var(--red-ink);
  transition: color .25s var(--ease-out), text-underline-offset .25s var(--ease-out);
}
.link-line:hover { color: var(--red-ink); text-underline-offset: 0.5em; }

/* Etiquetas: tiras pequeñas */
.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tags li {
  padding: 0.3rem 0.8rem 0.32rem;
  border-radius: 999px;
  font-size: var(--step--1);
  font-stretch: var(--condensed);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  background: rgba(234,237,242,.07);
  box-shadow: inset 0 0 0 var(--hair) var(--line);
}

/* Navegación */
.nav {
  position: fixed; inset: 7px 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  background: rgba(15,23,32,.94);
  box-shadow: 0 var(--hair) 0 var(--line);
  transition: transform .6s var(--ease-out), opacity .4s var(--ease-out);
}
@supports (backdrop-filter: blur(12px)) {
  .nav { background: rgba(15,23,32,.72); backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%); }
}
.nav.is-solid { box-shadow: 0 var(--hair) 0 var(--line), 0 18px 34px -30px rgba(0,0,0,.9); }
.nav-brand { display: flex; align-items: center; gap: 0.7rem; margin-right: auto; font-weight: 800; font-stretch: var(--wide); font-size: 0.95rem; letter-spacing: -0.01em; }
.nav-brand img { width: 44px; height: auto; }
.nav-links ul { display: flex; gap: 0.3rem; }
.nav-links a {
  position: relative; display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 0.8rem; border-radius: 999px;
  font-weight: 600; font-stretch: var(--semi-wide); font-size: 0.95rem;
  color: var(--text-dim);
  transition: color .25s var(--ease-out), background-color .25s var(--ease-out);
}
.nav-links a::before {
  content: ""; width: 7px; height: 18px; border-radius: 4px; background: var(--swatch);
  box-shadow: inset 0 0 0 var(--hair) rgba(234,237,242,.25);
  transform-origin: 50% 100%;
  transition: transform .45s var(--ease-out);
}
.nav-links a:hover, .nav-links a.is-current { color: var(--text); }
.nav-links a:hover::before, .nav-links a.is-current::before { transform: rotate(18deg); }
.nav-call { min-height: 44px; }
.nav-toggle { display: none; }

@media (max-width: 959px) {
  .nav-call { padding: 0 1rem 0 2.3rem; }
  .nav-call .strip-btn-icon { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.55rem;
    min-height: 44px; padding: 0 0.9rem;
    border-radius: 999px; font-weight: 650; font-stretch: var(--semi-wide);
    box-shadow: inset 0 0 0 var(--hair) var(--line-strong);
  }
  .nav-toggle-bolt { width: 14px; height: 14px; border-radius: 3px; background: var(--tono-niebla); clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); transition: transform .5s var(--ease-out); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bolt { transform: rotate(90deg); }
  .nav-links {
    position: fixed; inset: calc(var(--nav-h) + 7px) 0 auto 0;
    padding: 1.2rem var(--gutter) 2rem;
    background: var(--marea);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.9), 0 var(--hair) 0 var(--line) inset;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--ease-out), transform .45s var(--ease-out), visibility 0s linear .45s;
  }
  .nav-links.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-links ul { flex-direction: column; gap: 0.55rem; }
  .nav-links a {
    width: 100%; min-height: 56px; padding: 0 1.2rem 0 2.8rem;
    border-radius: 999px; background: var(--swatch); color: var(--cal);
    font-size: 1.15rem; font-weight: 700;
    transform-origin: 1.4rem 50%;
  }
  .nav-links a::before {
    position: absolute; left: 1rem; width: 11px; height: 11px; border-radius: 50%;
    background: var(--marea); box-shadow: inset 0 1px 2px rgba(0,0,0,.9);
  }
  .nav-links.is-open li { animation: menuFan .6s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 45ms); }
  .nav-links li:nth-child(1) { --n: 0; } .nav-links li:nth-child(2) { --n: 1; } .nav-links li:nth-child(3) { --n: 2; }
  .nav-links li:nth-child(4) { --n: 3; } .nav-links li:nth-child(5) { --n: 4; }
  .nav-brand span { display: none; }
}
@keyframes menuFan { from { transform: rotate(-9deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* Cota: línea de medida de plano con su dato */
.cota {
  position: relative; display: flex; justify-content: center;
  max-width: 440px; height: 20px; margin-top: 1.6rem;
  color: var(--text-dim);
  font-size: 0.78rem; font-stretch: var(--condensed); font-weight: 600; letter-spacing: 0.04em;
}
.cota::before {
  content: ""; position: absolute; inset: 50% 0 auto 0; height: 9px; margin-top: -4.5px;
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) 0 50% / 100% var(--hair) no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) 0 0 / var(--hair) 100% no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) 100% 0 / var(--hair) 100% no-repeat;
  transform-origin: left; transform: scaleX(var(--cota, 1));
  transition: transform 1.2s var(--ease-out);
}
.cota span { position: relative; padding: 0 0.7rem; background: var(--bg); line-height: 20px; }
html.js .cota { --cota: 0; }
html.js .is-in .cota, html.js .cota.is-in { --cota: 1; }

/* Tornillos decorativos: rematan cada cota y giran con el scroll */
.screw { width: 18px; height: 18px; flex: none; color: #9a9da1; --screw-slot: var(--marea); --screw-rim: rgba(0,0,0,.45); transform: rotate(var(--turn, 0deg)); }
.cota .screw { position: absolute; top: 1px; }
.cota .screw:first-child { left: -9px; }
.cota .screw:last-child { right: -9px; }

/* =============================================================
   5. Secciones
   ============================================================= */
.section {
  position: relative;
  padding: clamp(72px, 8vw, 132px) var(--gutter);
}
.section > * { max-width: var(--maxw); margin-inline: auto; }
.section-head { margin-bottom: clamp(40px, 6vw, 80px); }
.section-head h2, .contacto-head h2, .nosotros-copy h2 {
  font-size: var(--step-3);
  font-stretch: var(--wide);
  max-width: 18ch;
}
.section-lead { margin-top: 0.9rem; max-width: 46ch; color: var(--text-dim); font-size: var(--step-1); line-height: 1.45; }

/* ---------- 5.1 Portada ---------- */
.hero {
  position: relative;
  display: grid; align-items: center;
  gap: clamp(28px, 4vw, 64px);
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(44px, 8vh, 88px)) max(var(--gutter), calc((100% - var(--maxw)) / 2)) clamp(44px, 7vh, 88px);
  background:
    radial-gradient(115% 95% at 16% 18%, #223247 0%, var(--marea) 58%),
    var(--marea);
  overflow: clip;
}
.hero::before {
  /* trama de plano, muy tenue y apagándose hacia los bordes */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .55;
  background:
    linear-gradient(var(--line) var(--hair), transparent var(--hair)) 0 0 / 100% 92px,
    linear-gradient(90deg, var(--line) var(--hair), transparent var(--hair)) 0 0 / 92px 100%;
  -webkit-mask-image: radial-gradient(85% 70% at 26% 38%, #000 0%, transparent 78%);
  mask-image: radial-gradient(85% 70% at 26% 38%, #000 0%, transparent 78%);
}
.hero-copy { position: relative; z-index: 2; max-width: 780px; }
.hero-brand { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px); }
/* El logotipo de la portada, en relieve: una pila de sombras duras dibuja el canto de acero
   y una blanda lo apoya sobre el fondo. Postura fija: ni se anima ni cambia de tamaño. */
.hero-logo {
  --canto: 1px;
  width: clamp(88px, 11vw, 164px); flex: none;
  transform: perspective(820px) rotateY(-8deg) rotateX(3deg) scale(1.05);
  transform-origin: 62% 50%;
  filter:
    drop-shadow(var(--canto) var(--canto) 0 #5c6878)
    drop-shadow(var(--canto) var(--canto) 0 #5c6878)
    drop-shadow(var(--canto) var(--canto) 0 #4e5967)
    drop-shadow(var(--canto) var(--canto) 0 #414b57)
    drop-shadow(var(--canto) var(--canto) 0 #353e49)
    drop-shadow(0 18px 26px rgba(0,0,0,.6));
}
@media (max-width: 539px) { .hero-logo { --canto: 0.6px; } }
.hero-title { display: grid; gap: 0.4rem; min-width: 0; }
.hero-slogan { margin-top: clamp(26px, 4.5vh, 54px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: clamp(24px, 4vh, 40px); }
.hero-meta {
  margin-top: clamp(20px, 3vh, 34px); padding-top: 1rem;
  border-top: var(--hair) solid var(--line);
  max-width: 24ch; color: var(--text-dim);
}
.hero-shot { position: relative; z-index: 1; margin: 0; }
.hero-shot img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 40px 80px -46px rgba(0,0,0,.95), inset 0 0 0 var(--hair) var(--line);
}
.hero-shot::after {
  /* el filete rojo de la marca, apoyado en la esquina de la foto */
  content: ""; position: absolute; left: -10px; bottom: 26px; width: 84px; height: 5px;
  border-radius: 3px; background: var(--red);
  box-shadow: 0 10px 20px -8px rgba(176,64,47,.8);
}
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); }
  .hero-shot img { aspect-ratio: 4 / 3.6; }
}

/* ---------- 5.2 Lo que hacemos ---------- */
/* Directorio: el índice de las ocho especialidades, como el lomo de un catálogo */
.directorio { margin-bottom: clamp(48px, 6vw, 84px); }
.directorio ul {
  /* Ocho fichas: 2, 4 u 8 columnas, siempre en filas completas y sin huecos */
  display: grid; gap: var(--hair);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--line); border: var(--hair) solid var(--line);
  border-radius: 16px; overflow: hidden;
}
@media (min-width: 760px) { .directorio ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Son siete: la última ficha ocupa el hueco que sobra para que ninguna fila quede coja. */
.directorio li:last-child { grid-column: span 2; }
/* La ficha llena su hueco: si una etiqueta ocupa dos líneas, su vecina crece con ella
   y no asoma la línea del fondo. */
.directorio li { display: grid; }
.directorio a {
  display: flex; align-items: baseline; gap: 0.8rem;
  min-height: 64px; height: 100%; padding: 0.9rem 1.2rem;
  background: var(--surface);
  font-weight: 600; letter-spacing: -0.005em;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.directorio-n {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em;
  color: var(--red-ink); transition: color .3s var(--ease-out);
}
.directorio a:hover, .directorio a:focus-visible { background: var(--raised); color: #fff; }
.directorio a:hover .directorio-n { color: var(--cal); }

.deck { display: grid; gap: clamp(56px, 8vw, 104px); position: relative; }
.cat { display: grid; gap: 1.4rem; grid-template-columns: minmax(0, 1fr); scroll-margin-top: calc(var(--nav-h) + 28px); }
.cat-media {
  position: relative; margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 22px; overflow: hidden;
  background: var(--surface);
  box-shadow: 0 30px 60px -36px rgba(0,0,0,.95), inset 0 0 0 var(--hair) var(--line);
  isolation: isolate;
}
.cat-media > img { width: 100%; height: 100%; object-fit: cover; }
.cat-body p { margin-top: 0.7rem; max-width: 40ch; font-size: var(--step-1); line-height: 1.45; color: var(--text); }
.cat-body .tags { margin-top: 1.2rem; }

@media (min-width: 720px) {
  .cat { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; column-gap: clamp(28px, 4vw, 64px); }
  /* En pares, la foto pasa a la derecha: el ojo hace zigzag y la lista no cansa */
  .cat:nth-child(even) .cat-media { order: 2; }
}

/* Efectos por categoría */
.fx-tape { position: absolute; left: 6%; right: 5%; bottom: 7%; height: 64px; pointer-events: none; filter: drop-shadow(0 10px 14px rgba(0,0,0,.65)); }
.fx-tape-blade {
  position: absolute; right: 44px; bottom: 12px; height: 26px; width: calc(100% - 44px);
  border-radius: 2px 0 0 2px;
  background:
    repeating-linear-gradient(90deg, var(--ink-dark) 0 1.5px, transparent 1.5px 60px) 0 0 / 100% 13px no-repeat,
    repeating-linear-gradient(90deg, var(--ink-dark) 0 1px, transparent 1px 12px) 0 0 / 100% 7px no-repeat,
    linear-gradient(180deg, #f1ede6, #d9d3ca);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.18);
  transform-origin: right; transform: scaleX(0.02);
  transition: transform 1.7s var(--ease-out) .15s;
}
.fx-tape-blade::before { content: ""; position: absolute; left: -3px; top: -4px; bottom: -4px; width: 5px; border-radius: 1px; background: #8a8d91; }
.fx-tape-case {
  position: absolute; right: 0; bottom: 0; width: 64px; height: 64px; border-radius: 16px;
  background: radial-gradient(circle at 50% 50%, #3a3d40 0 22%, transparent 23%), linear-gradient(145deg, var(--tono-rojo), #6f1f15);
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.25), inset 0 2px 0 rgba(255,255,255,.12);
  transition: transform 1.7s var(--ease-out) .15s;
}
.is-active .fx-tape-blade { transform: scaleX(1); }
.is-active .fx-tape-case { transform: rotate(-200deg); }

.cat-media--art { background: radial-gradient(90% 80% at 30% 20%, #2a2522, var(--surface)); }
.fx-paint svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx-paint-stroke {
  fill: none; stroke: var(--tono-rojo); stroke-width: 58; stroke-linecap: round;
  stroke-dasharray: 520; stroke-dashoffset: 520;
  transition: stroke-dashoffset 1.6s var(--ease-soft);
}
.fx-paint-drip { fill: none; stroke: var(--tono-rojo); stroke-width: 12; stroke-linecap: round; transform-box: fill-box; transform-origin: top; transform: scaleY(0); transition: transform 1.4s var(--ease-out) 1.2s; }
.fx-paint-drip--b { transition-delay: 1.45s; } .fx-paint-drip--c { transition-delay: 1.7s; }
.is-active .fx-paint-stroke { stroke-dashoffset: 0; }
.is-active .fx-paint-drip { transform: scaleY(1); }
.fx-roller {
  position: absolute; top: 24%; left: -12%; width: 30px; height: 36%;
  border-radius: 12px;
  background: linear-gradient(90deg, #d8d2c9, var(--cal) 45%, #b9b2a8);
  box-shadow: 0 10px 20px -8px rgba(0,0,0,.8);
  transition: left 1.6s var(--ease-soft);
}
.fx-roller::after {
  content: ""; position: absolute; left: 50%; bottom: 100%; width: 4px; height: 70%;
  margin-left: -2px; background: #8a8580; border-radius: 2px; transform-origin: bottom; transform: rotate(18deg);
}
.is-active .fx-roller { left: 92%; }

.fx-door-slats {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(180deg, #1b1c1e 0 34px, #0c0c0d 34px 36px, #2a2b2e 36px 38px),
    var(--tono-hondo);
  box-shadow: inset 0 -6px 0 #0a0a0a;
  transform-origin: top; transform: scaleY(1);
  transition: transform 2.2s var(--ease-out) .2s;
}
.is-active .fx-door-slats { transform: scaleY(0.07); }

.fx-caustics { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: soft-light; opacity: .55; pointer-events: none; }

.fx-pipe-run { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fx-pipe-run path { fill: none; stroke-linecap: butt; stroke-dasharray: 720; stroke-dashoffset: 720; transition: stroke-dashoffset 1.8s var(--ease-out); }
.fx-pipe-shade { stroke: #2d2e2e; stroke-width: 30; filter: drop-shadow(0 10px 12px rgba(0,0,0,.65)); }
.fx-pipe-wall { stroke: var(--tono-niebla); stroke-width: 24; }
.fx-pipe-light { stroke: rgba(234,237,242,.38); stroke-width: 5; }
.fx-pipe-run .fx-pipe-flow { stroke: rgba(255,255,255,.9); stroke-width: 5; stroke-dasharray: 36 684; stroke-dashoffset: 0; opacity: 0; transition: opacity .6s 1.6s; animation: pipeGlint 3.2s var(--ease-soft) infinite; }
.is-active .fx-pipe-run path { stroke-dashoffset: 0; }
.is-active .fx-pipe-run .fx-pipe-flow { opacity: .75; }
@keyframes pipeGlint { from { stroke-dashoffset: 36; } to { stroke-dashoffset: -684; } }

.fx-grate-plate {
  position: absolute; right: 7%; bottom: 9%; width: 30%; aspect-ratio: 1;
  border-radius: 14px;
  background:
    radial-gradient(circle at 11% 11%, #9a9d9f 0 5%, #3a3b3d 5.5% 7.5%, transparent 8%),
    radial-gradient(circle at 89% 11%, #9a9d9f 0 5%, #3a3b3d 5.5% 7.5%, transparent 8%),
    radial-gradient(circle at 11% 89%, #9a9d9f 0 5%, #3a3b3d 5.5% 7.5%, transparent 8%),
    radial-gradient(circle at 89% 89%, #9a9d9f 0 5%, #3a3b3d 5.5% 7.5%, transparent 8%),
    repeating-linear-gradient(90deg, #26211f 0 10%, #0b0a09 10% 16%) 50% 50% / 76% 76% no-repeat,
    linear-gradient(145deg, #4a3c36, #2b2320);
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.35), 0 24px 40px -16px rgba(0,0,0,.9);
  transform-origin: 11% 11%;
  transform: rotate(-16deg) translateY(-18px); opacity: 0;
  transition: transform 1.1s var(--ease-out) .3s, opacity .5s .3s;
}
.is-active .fx-grate-plate { transform: rotate(-4deg); opacity: 1; }

.fx-embers-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }

/* ---------- 5.3 Localizaciones ---------- */
.tiendas-grid { display: grid; gap: clamp(40px, 6vw, 88px); }
.mapa {
  position: relative; margin: 0; width: 100%;
  color: var(--text-dim);
}
/* El mapa de Google gratuito solo admite un marcador, así que la base es un mapa fijo
   (no se puede arrastrar) y los tres locales van señalados encima por main.js. */
.mapa-lienzo {
  position: relative; border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(0,0,0,.95), inset 0 0 0 var(--hair) var(--line);
}
.mapa-base {
  display: block; width: 100%; height: clamp(340px, 48vh, 480px);
  border: 0; pointer-events: none;
  background: var(--surface);
  /* el mapa de Google es claro: se asienta un punto para que no deslumbre sobre el azul */
  filter: saturate(0.82) contrast(1.02) brightness(0.94);
}
/* El mapa no se puede arrastrar, así que su propio botón «Abrir en Maps» quedaría muerto:
   toda la superficie abre Google Maps con el ratón (el teclado lo hace por el enlace del pie). */
.mapa-abrir { position: absolute; inset: 0; z-index: 1; }
.mapa-pins { position: absolute; inset: 0; z-index: 2; }
@media (max-width: 420px) { .pin-nombre small { display: none; } }
.pin {
  position: absolute; left: var(--x, 50%); top: var(--y, 50%);
  translate: var(--nudge-x, 0px) var(--nudge-y, 0px);
  display: flex; align-items: center; gap: 0.5rem;
  white-space: nowrap;
}
.pin--izq { flex-direction: row-reverse; transform: translate(-100%, -50%); }
.pin--der { transform: translate(0, -50%); }
.pin-punto {
  position: relative; width: 15px; height: 15px; flex: none; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 3px var(--cal), 0 6px 14px -4px rgba(0,0,0,.8);
  transition: scale .35s var(--ease-out), background-color .3s;
}
/* el punto se separa del rótulo con un filete, como una cota de plano:
   punto, filete y rótulo en ese orden (al revés en los que rotulan a la izquierda) */
.pin-punto { order: 0; }
.pin::before {
  content: ""; order: 1; width: 22px; height: var(--hair); flex: none;
  background: var(--cal); opacity: .75;
}
.pin-nombre { order: 2; }
.pin-nombre {
  display: grid; gap: 0.1rem;
  padding: 0.4rem 0.7rem; border-radius: 9px;
  background: rgba(15,23,32,.86); color: var(--cal);
  box-shadow: inset 0 0 0 var(--hair) rgba(234,237,242,.3);
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  letter-spacing: 0.03em; text-transform: uppercase; line-height: 1;
  transition: background-color .3s var(--ease-out);
}
.pin-nombre small {
  font-family: var(--font-mono); font-weight: 500; font-size: 0.6rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: #b9c6d6;
}
.pin:hover .pin-punto, .pin:focus-visible .pin-punto { scale: 1.35; background: var(--red-ink); }
.pin:hover .pin-nombre, .pin:focus-visible .pin-nombre { background: var(--marea); }
html.js .pin { opacity: 0; }
html:not(.js) .mapa-pins { display: none; }  /* sin JS no hay posición fiable: manda el pie */
html.js .pin.is-puesto { animation: pinCae .7s var(--ease-out) both; }
.mapa-pins li:nth-child(2) .pin { animation-delay: .12s; }
.mapa-pins li:nth-child(3) .pin { animation-delay: .24s; }
@keyframes pinCae { from { opacity: 0; translate: var(--nudge-x, 0px) calc(var(--nudge-y, 0px) - 22px); } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html.js .pin.is-puesto { animation: none; opacity: 1; } }
.mapa-pie { margin-top: 0.9rem; }
.mapa-pie .link-line { color: var(--text); }

.tiendas-list { display: grid; }
.tienda {
  display: grid; gap: 1.4rem;
  padding-block: clamp(28px, 4vw, 44px);
  border-top: var(--hair) solid var(--line);
}
.tienda:first-child { border-top: 0; padding-top: 0; }
.tienda-gallery { display: grid; gap: 0.6rem; }
.tienda-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; background: var(--surface); transition: opacity .35s var(--ease-out); }
.tienda-photo.is-swapping { opacity: 0.2; }
.tienda-thumbs { display: flex; gap: 0.5rem; }
.tienda-thumbs button {
  width: 68px; height: 48px; padding: 0; border-radius: 10px; overflow: hidden;
  box-shadow: inset 0 0 0 var(--hair) var(--line);
  opacity: 0.6; transition: opacity .25s, transform .4s var(--ease-out);
}
.tienda-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.tienda-thumbs button[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--red-ink); }
.tienda-thumbs button:hover { opacity: 1; transform: rotate(-3deg); }
.tienda-body h3 { font-size: var(--step-2); font-stretch: var(--wide); }
.tienda-kind { margin-top: 0.35rem; color: var(--red-ink); font-weight: 650; font-stretch: var(--semi-wide); }
.tienda-body address { margin: 1rem 0 1.4rem; color: var(--text); line-height: 1.55; }

@media (min-width: 720px) {
  .tienda { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; column-gap: 2.2rem; }
}
@media (min-width: 1280px) {
  .tiendas-grid { grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr); align-items: start; }
  .mapa { position: sticky; top: calc(var(--nav-h) + 48px); }
}

/* ---------- 5.4 Horario ---------- */
.horario-status {
  display: inline-flex; align-items: center; gap: 0.7rem;
  margin-top: 1rem; padding: 0.5rem 1rem 0.5rem 0.8rem;
  border-radius: 999px; background: var(--surface);
  box-shadow: inset 0 0 0 var(--hair) var(--line);
  font-weight: 650; font-stretch: var(--semi-wide);
}
.horario-status::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--text-dim);
}
.horario-status.is-open::before { background: var(--red-ink); box-shadow: 0 0 0 4px rgba(226,123,105,.18); animation: openPulse 2.4s var(--ease-soft) infinite; }
@keyframes openPulse { 50% { box-shadow: 0 0 0 7px rgba(226,123,105,.05); } }

.regla { position: relative; --label-w: 7.5rem; --hours-w: 7.5rem; }
.regla-escala { position: relative; height: 28px; margin-left: var(--label-w); margin-right: var(--hours-w); }
.regla-escala span {
  position: absolute; left: calc((var(--m) - 420) / 600 * 100%); bottom: 6px;
  transform: translateX(-50%);
  font-size: 0.78rem; font-stretch: var(--condensed); font-weight: 600; color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.semana { display: grid; gap: 10px; }
.dia { display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr) var(--hours-w); align-items: center; }
.dia-nombre { font-weight: 650; font-stretch: var(--semi-wide); }
.dia-horas { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-dim); font-stretch: var(--semi-wide); }
.dia-pista {
  position: relative; height: 30px;
  background:
    repeating-linear-gradient(90deg, rgba(234,237,242,.22) 0 var(--hair), transparent var(--hair) calc(100% / 10)) 0 0 / 100% 100% no-repeat,
    repeating-linear-gradient(90deg, rgba(234,237,242,.1) 0 var(--hair), transparent var(--hair) calc(100% / 20)) 0 100% / 100% 40% no-repeat;
  border-right: var(--hair) solid rgba(234,237,242,.22);
}
.dia-barra {
  position: absolute; top: 3px; bottom: 3px;
  left: calc((var(--from) - 420) / 600 * 100%);
  width: calc((var(--to) - var(--from)) / 600 * 100%);
  border-radius: 999px;
  background: var(--tono-teja);
  box-shadow: inset 0 0 0 var(--hair) rgba(234,237,242,.12);
  transform-origin: left;
  transition: transform 1.2s var(--ease-out), background-color .3s;
}
.dia-barra::before {
  content: ""; position: absolute; left: 9px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--marea); box-shadow: inset 0 1px 2px rgba(0,0,0,.9);
}
html.js .regla:not(.is-in) .dia-barra { transform: scaleX(0); }
.dia:nth-child(2) .dia-barra { transition-delay: .06s; } .dia:nth-child(3) .dia-barra { transition-delay: .12s; }
.dia:nth-child(4) .dia-barra { transition-delay: .18s; } .dia:nth-child(5) .dia-barra { transition-delay: .24s; }
.dia:nth-child(6) .dia-barra { transition-delay: .3s; }
.dia--cerrado .dia-pista::after {
  content: ""; position: absolute; inset: 3px 0;
  border-radius: 999px;
  background: repeating-linear-gradient(135deg, rgba(234,237,242,.12) 0 2px, transparent 2px 9px);
}
.dia.is-today .dia-nombre { color: var(--red-ink); }
.dia.is-today .dia-barra { background: var(--red); }
.dia.is-today .dia-horas { color: var(--text); }
.regla-ahora {
  position: absolute; top: 18px; bottom: -8px;
  left: calc(var(--label-w) + (100% - var(--label-w) - var(--hours-w)) * var(--now, 0));
  width: var(--hair); background: var(--red-ink);
  pointer-events: none;
}
.regla-ahora span {
  position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -2px);
  padding: 0 0.4rem; border-radius: 4px; background: var(--red-ink); color: var(--ink-dark);
  font-size: 0.7rem; font-weight: 700; font-stretch: var(--condensed); letter-spacing: 0.03em;
}
@media (max-width: 719px) {
  .regla { --label-w: 5.6rem; --hours-w: 0rem; }
  .dia { grid-template-columns: var(--label-w) minmax(0, 1fr); row-gap: 4px; }
  .dia-horas { grid-column: 2; text-align: left; font-size: 0.85rem; }
  .regla-escala span:nth-child(even) { display: none; }
  .dia-nombre { font-size: 0.95rem; }
}

/* ---------- 5.5 Contacto: campo entero en rojo óxido ---------- */
.contacto {
  --bg: var(--oxido);
  background:
    radial-gradient(90% 70% at 85% 30%, rgba(176,64,47,.35), transparent 70%),
    var(--oxido);
  color: #fbede8;
  display: grid; gap: 2rem;
  overflow: clip;
}
.contacto::before {
  /* grano del picón sobre el campo rojo */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.contacto-inner { position: relative; z-index: 1; width: 100%; }
.contacto .section-lead { color: #efd3ca; }
.telefonos { display: grid; gap: 0.4rem; margin-top: clamp(28px, 4vw, 48px); }
.tel {
  display: inline-flex; align-items: center; gap: clamp(0.6rem, 1.5vw, 1.2rem);
  font-size: clamp(2.3rem, 1.3rem + 4.8vw, 5.6rem); font-stretch: 90%; font-weight: 800;
  letter-spacing: 0; line-height: 1.08; font-variant-numeric: tabular-nums;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: color .3s var(--ease-out), transform .5s var(--ease-out);
}
.tel svg { width: 0.62em; height: 0.62em; flex: none; stroke-width: 1.2; opacity: .75; transition: transform .6s var(--ease-out); }
.tel:hover { color: #ffd9cf; }
.tel:hover svg { transform: rotate(-14deg); }
.email { margin-top: 1.6rem; }
.email a {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: clamp(0.95rem, 0.6rem + 1.9vw, 1.45rem); font-weight: 650; font-stretch: var(--semi-wide);
  overflow-wrap: anywhere;
  text-decoration: underline; text-decoration-thickness: var(--hair); text-underline-offset: 0.35em; text-decoration-color: rgba(234,237,242,.5);
}
.email svg { width: 22px; height: 22px; flex: none; }
@media (max-width: 539px) { .email a { font-stretch: 100%; gap: 0.5rem; } .email svg { width: 18px; height: 18px; } }
.email a:hover { text-decoration-color: var(--cal); }
.redes { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }
.redes a {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 48px; padding: 0 1.2rem;
  border-radius: 999px; background: rgba(15,23,32,.32);
  box-shadow: inset 0 0 0 var(--hair) rgba(234,237,242,.3);
  font-weight: 650; font-stretch: var(--semi-wide);
  transform-origin: 1.2rem 50%;
  transition: transform .5s var(--ease-out), background-color .3s;
}
.redes a:hover { background: rgba(15,23,32,.55); transform: rotate(-3deg); }
.redes svg { width: 20px; height: 20px; }
.stage { position: relative; width: 100%; }
.stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.stage--caja { min-height: 270px; height: min(38vh, 330px); }
.contacto-side { position: relative; z-index: 1; display: grid; align-content: center; }

/* Ficha de atención: la llave deja de flotar en medio del campo rojo y pasa a ser la
   ilustración de un panel que además lleva el WhatsApp y si está abierto ahora mismo. */
.ficha {
  --bg: #66271e;
  display: grid; gap: 1.1rem;
  padding: clamp(18px, 2.4vw, 30px);
  border-radius: 24px;
  background: var(--bg);
  box-shadow: inset 0 0 0 var(--hair) rgba(255,255,255,.22), 0 40px 70px -50px rgba(0,0,0,.95);
}
.ficha .cota { max-width: none; margin: 0; color: #f0cfc6; }
.ficha .cota::before { --line-strong: rgba(255,255,255,.34); }
.ficha .screw { color: #d6b7ae; --screw-slot: #4c1a14; }
.ficha-estado {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.04em; color: #f3d6cd;
}
.ficha-estado::before {
  content: ""; width: 9px; height: 9px; flex: none; border-radius: 50%;
  background: #d8a99f; box-shadow: 0 0 0 3px rgba(255,255,255,.12);
}
.ficha-estado.is-open::before { background: #5fd39b; box-shadow: 0 0 0 3px rgba(95,211,155,.22); }

/* WhatsApp: debajo de la llave, en verde propio para que se reconozca de un vistazo */
.whatsapp {
  display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.4rem);
  padding: clamp(1rem, 1.8vw, 1.5rem) clamp(1.2rem, 2.2vw, 1.8rem);
  border-radius: 18px;
  background: #1f7a52;
  box-shadow: inset 0 0 0 var(--hair) rgba(255,255,255,.28), 0 24px 40px -24px rgba(0,0,0,.9);
  color: #f2fbf6;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: background-color .3s var(--ease-out), transform .5s var(--ease-out);
}
.whatsapp:hover { background: #249061; }
.whatsapp-icon { width: clamp(38px, 4.5vw, 52px); height: clamp(38px, 4.5vw, 52px); flex: none; }
.whatsapp-copy { display: grid; gap: 0.25rem; min-width: 0; }
.whatsapp-kicker {
  font-family: var(--font); font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em; color: rgba(242,251,246,.82);
}
.whatsapp-num {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem);
  line-height: 0.96; letter-spacing: 0.01em; font-variant-numeric: tabular-nums;
}
@media (min-width: 960px) {
  .contacto { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; }
  .contacto > * { max-width: none; margin: 0; }
}

/* ---------- 5.6 Sobre nosotros ---------- */
.nosotros-grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.nosotros-text { margin-top: 1.6rem; max-width: 60ch; font-size: var(--step-1); line-height: 1.6; }
.linea {
  position: relative; display: flex; justify-content: space-between;
  max-width: 560px; margin-top: 2.6rem; padding-top: 28px;
}
.linea::before {
  content: ""; position: absolute; left: 9px; right: 9px; top: 8px; height: 10px;
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) 0 50% / 100% var(--hair) no-repeat,
    repeating-linear-gradient(90deg, rgba(234,237,242,.28) 0 var(--hair), transparent var(--hair) 16px) 0 0 / 100% 45% no-repeat;
  transform-origin: left; transform: scaleX(var(--cota, 1)); transition: transform 1.4s var(--ease-out);
}
html.js .linea:not(.is-in) { --cota: 0; }
.linea li { position: relative; display: grid; gap: 0.25rem; max-width: 16ch; }
.linea li:last-child { text-align: right; justify-items: end; }
.linea li::before {
  content: ""; position: absolute; top: -28px; width: 18px; height: 18px;
  background: #b6b8bb; clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
}
.linea li:first-child::before { left: 0; }
.linea li:last-child::before { right: 0; background: var(--red); }
.linea-cuando { font-weight: 800; font-stretch: var(--wide); font-size: var(--step-1); }
.linea-que { color: var(--text-dim); font-size: 0.95rem; line-height: 1.4; }
.stage--gears { aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
@media (min-width: 960px) {
  .nosotros-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
}

/* ---------- 5.7 Reseñas: muestras colgadas de un tornillo ---------- */
.resenas-list { display: grid; gap: clamp(28px, 4vw, 40px); }
.resena {
  position: relative; margin: 0;
  padding: 3.4rem clamp(1.4rem, 2.4vw, 2.2rem) 1.8rem;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: inset 0 0 0 var(--hair) var(--line), 0 34px 60px -40px rgba(0,0,0,.95);
  transform-origin: 34px 30px;
  transform: rotate(var(--hang, 0deg));
  transition: transform 1s var(--ease-out);
}
.resena::before {
  /* franja de color de la muestra */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 60px; border-radius: 24px 24px 0 0;
  background: var(--swatch);
  box-shadow: inset 0 calc(-1 * var(--hair)) 0 rgba(0,0,0,.35);
}
.resena::after {
  /* tornillo del que cuelga */
  content: ""; position: absolute; left: 24px; top: 20px; width: 20px; height: 20px; border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 44%, #3d3f43 44% 56%, transparent 56%),
    linear-gradient(0deg, transparent 44%, #3d3f43 44% 56%, transparent 56%),
    radial-gradient(circle, #c4c6c9 0 58%, #8d9094 60%);
  box-shadow: 0 2px 4px rgba(0,0,0,.6);
  transform: rotate(var(--screw-turn, 20deg));
  transition: transform 1s var(--ease-out);
}
.resena blockquote { position: relative; margin-top: 1.6rem; }
.resena blockquote p { font-size: var(--step-1); line-height: 1.45; font-weight: 500; }
.resena figcaption {
  margin-top: 1.4rem; padding-top: 0.9rem; border-top: var(--hair) solid var(--line);
  font-size: 0.85rem; font-stretch: var(--condensed); font-weight: 600; letter-spacing: 0.04em; color: var(--text-dim);
}
.resenas-list li:nth-child(1) .resena { --hang: -1.6deg; }
.resenas-list li:nth-child(2) .resena { --hang: 1.1deg; }
.resenas-list li:nth-child(3) .resena { --hang: -0.8deg; }
@media (hover: hover) {
  .resena:hover { --hang: 0deg; --screw-turn: 110deg; }
}
.resenas-more { margin-top: clamp(32px, 4vw, 48px); }
@media (max-width: 959px) {
  .resenas-list li:nth-child(n) .resena { --hang: 0deg; }
  .resenas-list li:nth-child(2) .resena { --hang: 0.6deg; }
}
@media (min-width: 960px) {
  .resenas-list { grid-template-columns: 1.05fr 1.2fr 0.95fr; align-items: start; }
  .resenas-list li:nth-child(2) { margin-top: 64px; }
  .resenas-list li:nth-child(3) { margin-top: 24px; }
}

/* ---------- 5.8 Proveedores: placas remachadas ---------- */
.proveedores { overflow: clip; }
.marquee { display: grid; gap: 16px; max-width: none; margin-inline: calc(-1 * var(--gutter)); }
.suppliers-list, .marquee-row {
  display: flex; gap: 16px; width: max-content;
  padding-block: 10px;
}
html.js .marquee.is-running .suppliers-list, html.js .marquee.is-running .marquee-row {
  animation: marquee var(--marquee-dur, 70s) linear infinite;
}
html.js .marquee.is-running .marquee-row { animation-direction: reverse; }
.marquee:hover .suppliers-list, .marquee:hover .marquee-row, .marquee:focus-within .suppliers-list, .marquee:focus-within .marquee-row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
html:not(.js) .suppliers-list, .marquee:not(.is-running) .suppliers-list { flex-wrap: wrap; width: auto; padding-inline: var(--gutter); }
.plate {
  position: relative; display: grid; align-content: center; justify-items: center; gap: 0.75rem;
  width: 226px; height: 138px; padding: 1.1rem 1.3rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 36px -26px rgba(0,0,0,.95), inset 0 0 0 var(--hair) rgba(15,23,32,.16);
  transition: transform .55s var(--ease-out), box-shadow .4s var(--ease-out);
}
.plate img {
  width: auto; height: auto; max-width: 100%; max-height: 52px;
  object-fit: contain;
}
.plate span {
  max-width: 100%; text-align: center; text-wrap: balance;
  font-family: var(--font); font-size: 0.62rem; font-weight: 600; font-stretch: normal;
  text-transform: uppercase; letter-spacing: 0.14em; line-height: 1.3; color: #5c6b7d;
}
.plate:hover, .plate:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 30px 44px -24px rgba(0,0,0,.95), inset 0 0 0 2px var(--red);
}

/* ---------- 5.9 Pie ---------- */
.footer {
  display: grid; gap: 2.4rem;
  padding: clamp(64px, 8vw, 104px) var(--gutter) 32px;
  background: var(--fondeo);
  box-shadow: inset 0 var(--hair) 0 var(--line);
  color: var(--text-dim); font-size: 0.95rem;
}
.footer > * { max-width: var(--maxw); }
.footer-brand img { width: 84px; margin-bottom: 1rem; }
.footer-name { color: var(--text); font-weight: 800; font-stretch: var(--wide); font-size: 1.1rem; }
.footer-slogan { margin-top: 0.3rem; }
.footer-title { margin-bottom: 0.8rem; color: var(--text); font-weight: 700; font-stretch: var(--semi-wide); }
.footer-col address + address { margin-top: 0.8rem; }
.footer a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.3em; transition: color .25s, text-decoration-color .25s; }
.footer a:hover { color: var(--text); text-decoration-color: var(--red-ink); }
.footer-hours { margin-top: 0.9rem; }
.footer-legal { grid-column: 1 / -1; padding-top: 1.6rem; border-top: var(--hair) solid var(--line); font-size: 0.85rem; }
@media (min-width: 720px) {
  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .footer { grid-template-columns: 1.3fr 1.2fr 1fr 0.7fr; padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2)); }
}

/* =============================================================
   7. Efectos: aparición al girar sobre su eje
   ============================================================= */
html.js [data-reveal] {
  transform-origin: 0% 100%;
  transition: opacity .6s var(--ease-out), transform .8s var(--ease-out);
}
html.js [data-reveal]:not(.is-in) { opacity: 0; transform: rotate(-1deg) translateY(12px); }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (max-width: 959px) {
  /* Móvil: el logo y el nombre arriba, la foto debajo y nada que se cruce por delante. */
  .hero { align-content: start; min-height: 0; padding-top: calc(var(--nav-h) + 28px); }
  .hero-shot img { aspect-ratio: 16 / 11; }
  .hero-shot::after { left: -6px; width: 64px; }
}
@media (max-width: 539px) {
  .hero-brand { gap: 0.9rem; }
  .hero-actions .strip-btn { flex: 1 1 auto; justify-content: center; }
  .whatsapp { padding: 0.85rem 1.1rem; gap: 0.8rem; }
  .whatsapp-icon { width: 28px; height: 28px; }
}

/* =============================================================
   9. Movimiento reducido: solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .fx-embers-canvas { display: none; }
  .fx-caustics animate { display: none; }
  .horario-status.is-open::before { animation: none; }
  .fx-pipe-flow { animation: none; }
}

/* =============================================================
   10. Roles tipográficos: Instrument Serif (voz editorial) + Geist (texto y rótulos)
   ============================================================= */
/* Titulares, nombres y cifras en Instrument Serif */
.hero-slogan, .section-head h2, .contacto-head h2, .nosotros-copy h2,
.cat-body h3, .tienda-body h3, .tel, .linea-cuando, .footer-name {
  font-family: var(--font-serif); font-weight: 400; font-style: normal; font-stretch: normal; word-spacing: normal;
}
.hero-slogan { font-size: clamp(3.3rem, 1.8rem + 6.4vw, 6.9rem); line-height: 0.92; letter-spacing: -0.015em; max-width: 12ch; }
.section-head h2, .contacto-head h2, .nosotros-copy h2 { font-size: clamp(2.8rem, 1.7rem + 3.6vw, 4.8rem); line-height: 0.95; letter-spacing: -0.01em; }
.cat-body h3, .tienda-body h3 { font-size: clamp(2.1rem, 1.6rem + 1.5vw, 2.9rem); line-height: 1; letter-spacing: -0.005em; }
.tel { font-size: clamp(3.1rem, 1.6rem + 6vw, 6.6rem); line-height: 1.02; letter-spacing: -0.01em; }
.tel svg { width: 0.4em; height: 0.4em; }
.linea-cuando { font-size: clamp(1.9rem, 1.5rem + 1vw, 2.5rem); line-height: 1; letter-spacing: 0; }
.footer-name { font-size: 2rem; line-height: 1; }
/* Voz editorial larga: sobre nosotros y reseñas (cursiva) */
.nosotros-text { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem); line-height: 1.3; }
.resena blockquote p { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2rem); line-height: 1.22; }
/* El nombre completo, de una sola pieza: condensada en versales, sin mezclas */
.hero-name {
  font-family: var(--font-display); font-weight: 700; font-stretch: normal;
  text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.02;
  font-size: clamp(1.4rem, 0.95rem + 1.9vw, 2.6rem);
  color: var(--text); text-wrap: balance;
}
.nav-brand span {
  font-family: var(--font-display); font-weight: 700; font-stretch: normal;
  text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.02rem; line-height: 1;
}
.hero-kind { font-size: 0.76rem; color: var(--red-ink); }
.hero-kind, .cota span, .tienda-kind, .resena figcaption, .mapa-pie, .footer-title, .tags li, .regla-ahora span {
  font-family: var(--font); font-stretch: normal; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em;
}
.cota span, .resena figcaption, .mapa-pie { font-size: 0.7rem; }
.tienda-kind { font-size: 0.76rem; }
.tags li { font-size: 0.68rem; letter-spacing: 0.12em; padding: 0.42rem 0.9rem; }
.footer-title { font-size: 0.74rem; }
/* Texto y controles en Geist */
.section-lead, .cat-body p, .tienda-body address, .contacto .section-lead, .hero-meta, .directorio a { font-family: var(--font); font-weight: 400; letter-spacing: -0.005em; }
.strip-btn, .redes a, .nav-links a, .link-line, .email a, .dia-nombre, .horario-status, .whatsapp { font-family: var(--font); font-stretch: normal; letter-spacing: -0.005em; }
.strip-btn { font-weight: 550; }

/* =============================================================
   11. Desplazamiento suave (Lenis, solo rueda del ratón)
   ============================================================= */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* =============================================================
   12. Tres voces con papeles claros: serif (voz), sans (lectura), mono (datos)
   ============================================================= */
/* Entradilla de cada sección: cursiva serif, no repite la voz del cuerpo */
.section-lead, .contacto .section-lead {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.75rem); line-height: 1.35;
  letter-spacing: 0; color: #c3ccd9; max-width: 38ch;
}
.contacto .section-lead { color: #efd8d0; }

/* «Localizaciones» lleva titular de una sola voz, así que su entradilla tampoco va en cursiva:
   la misma Geist del texto, un punto más abierta. */
.tiendas .section-lead {
  font-family: var(--font); font-style: normal; font-weight: 400;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); line-height: 1.5;
  letter-spacing: -0.005em; max-width: 34ch; color: var(--text-dim);
}

/* Datos: códigos, horas y referencias del mapa en monoespaciada */
.cota span, .directorio-n, .dia-horas, .regla-escala span, .regla-ahora span, .mapa-pie {
  font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.06em;
}
.cota span { font-size: 0.68rem; letter-spacing: 0.12em; }
.dia-horas { font-size: 0.92rem; letter-spacing: 0.01em; }
.regla-escala span { font-size: 0.72rem; letter-spacing: 0; }
.mapa-pie { font-size: 0.72rem; letter-spacing: 0.04em; }

/* «Sobre nosotros»: capitular, como en una página impresa */
.nosotros-text::first-letter {
  float: left; font-family: var(--font-serif); font-weight: 400;
  font-size: 4.1em; line-height: 0.78; margin: 0.06em 0.09em 0 0;
  color: var(--red-ink);
}

/* Reseñas: comilla de apertura en serif, discreta */
.resena blockquote { position: relative; }
.resena blockquote::before {
  content: "\201C"; display: block; margin: -0.7rem 0 -2rem -0.1rem;
  font-family: var(--font-serif); font-size: 3.6rem; line-height: 1;
  color: rgba(234, 237, 242, 0.22);
}
.resena blockquote p { position: relative; }

/* Nombres de tienda y de categoría: filete fino encima, como una ficha de catálogo */
.cat-body h3, .tienda-body h3 { padding-top: 0.9rem; border-top: var(--hair) solid var(--line-strong); }

/* =============================================================
   13. Titulares a dos voces: línea fuerte condensada + línea en cursiva roja
   ============================================================= */
.hero-slogan, .section-head h2, .contacto-head h2, .nosotros-copy h2 { display: block; }
.h-strong, .h-soft { display: block; }
.h-strong {
  font-family: var(--font-display); font-weight: 800; font-style: normal;
  letter-spacing: -0.005em; line-height: 0.88; color: var(--text);
  text-wrap: balance;
}
.h-soft {
  font-family: var(--font-serif); font-weight: 400; font-style: italic;
  letter-spacing: -0.005em; line-height: 0.98; color: var(--red-ink);
  margin-top: 0.06em; text-wrap: balance;
}
/* La condensada pesa menos a igual tamaño: se compensa subiéndola un punto */
.section-head .h-strong, .contacto-head .h-strong, .nosotros-copy .h-strong { font-size: 0.92em; }
.hero-slogan .h-strong { font-size: 1.05em; }
.hero-slogan .h-soft { font-size: 0.98em; }
/* Titular de una sola voz: la condensada sola, sin segunda línea */
.h-solo {
  font-family: var(--font-display); font-weight: 800; font-style: normal;
  letter-spacing: -0.005em; line-height: 0.9; color: var(--text);
}
.section-head h2.h-solo { font-size: clamp(2.6rem, 1.6rem + 3.3vw, 4.4rem); }
/* Campo rojo de contacto: la segunda línea en crema, no en rojo sobre rojo */
.contacto .h-soft { color: #f6cfc2; }

/* Nombres de producto y de tienda: condensada fuerte, como una ficha de catálogo */
.cat-body h3, .tienda-body h3 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.005em;
  font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.55rem); line-height: 0.98;
}
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; letter-spacing: 0.005em; }
/* «Años 90 / Hoy» de la línea de tiempo, en condensada */
.linea-cuando { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; }
