/* ==========================================================================
   BUGA RAMEN SAN SEBASTIÁN — Hoja de estilos
   Mobile-first · tokens en :root · respeta prefers-reduced-motion
   ========================================================================== */

@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/anton-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: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/plus-jakarta-sans-var-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;
}

:root {
  --nav-h: 64px;

  /* Color: tinta de la noche, rojo del sello y ámbar de los faroles */
  --ink: #0e0d12;
  --ink-2: #16141c;
  --card: #1c1925;
  --card-2: #241f2e;
  --line: rgba(255, 255, 255, 0.11);
  --line-2: rgba(255, 255, 255, 0.24);
  --text: #f6f3f8;
  --text-2: #b9b2c2;
  --text-3: #8f8899;
  --rojo: #e32219;
  --rojo-btn: #cf1a12;
  --rojo-btn-2: #b31109;
  --rojo-claro: #ff7568;
  --ambar: #f2b01e;
  --ambar-2: #ffc94d;
  --ok: #4cc158;
  --ko: #ff6b6b;

  /* Tipografía */
  --font-display: 'Anton', 'Arial Narrow', 'Barlow Condensed', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-hero: clamp(3rem, 1.7rem + 6vw, 6.5rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  --fs-lead: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-sm: 0.875rem;
  --fs-xs: 0.8125rem;
  --fs-label: 0.75rem;

  /* Espaciado (base 4px) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --gutter: 16px;
  --section-y: 64px;
  --container: 1160px;

  /* Radios y sombras */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.45);

  /* Movimiento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 180ms;
  --t-med: 320ms;
}

@media (min-width: 600px) {
  :root { --gutter: 24px; }
}

@media (min-width: 1025px) {
  :root { --nav-h: 72px; --section-y: 104px; }
}

/* ==========================================================================
   BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  background: var(--ink);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

@supports (overflow: clip) {
  body { overflow-x: clip; }
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
address { font-style: normal; }

h1, h2, h3 { font-weight: 700; line-height: 1.12; text-wrap: balance; }
p { text-wrap: pretty; }

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

[hidden] { display: none !important; }

.vh, .sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -64px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--rojo-btn);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 8px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

body.cajon-abierto { overflow: hidden; }

.i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i .i-fill { fill: currentColor; stroke: none; }
.i-star { fill: currentColor; stroke: none; }

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--rojo-btn); color: #fff; }
.btn-primary:hover { background: var(--rojo-btn-2); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.5); }

.btn-ambar { background: var(--ambar); color: #22190a; }
.btn-ambar:hover { background: var(--ambar-2); }

.btn-block { width: 100%; }

/* ==========================================================================
   CABECERA
   ========================================================================== */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  color: var(--text);
  background: linear-gradient(180deg, rgba(8, 7, 11, 0.8) 0%, rgba(8, 7, 11, 0) 100%);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-med), border-color var(--t-med);
}

.site-nav.is-solida,
body.cajon-abierto .site-nav {
  background: rgba(12, 11, 16, 0.92);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
}

.nav-kanji { width: 40px; height: auto; flex-shrink: 0; }

/* el bol pequeño de la cabecera se vence igual que el del inicio */
.nav-bol {
  width: 26px;
  height: 28px;
  flex-shrink: 0;
  margin-left: -4px;
  overflow: visible;
}
.nav-bol .em-vapor path { stroke-width: 9; }
@media (hover: hover) {
  .nav-brand:hover .nav-bol .em-bol { animation: buga-slosh 1200ms var(--ease-out); }
  .nav-brand:hover .nav-bol .em-caldo { animation: buga-slosh-caldo 1200ms var(--ease-out); }
}

.nav-brand-text { display: flex; flex-direction: column; min-width: 0; }

.nav-brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-brand-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--text-2);
  white-space: nowrap;
}

.nav-menu,
.site-nav .idiomas { display: none; }

.nav-actions { display: flex; align-items: center; gap: var(--s-2); flex-shrink: 0; }

.nav-tel,
.nav-ig {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.nav-tel .i, .nav-ig .i { width: 20px; height: 20px; }
.nav-tel:hover, .nav-ig:hover { border-color: var(--ambar); color: var(--ambar); }

.idiomas {
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
}

.lang-btn {
  min-width: 40px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-2);
  transition: background-color var(--t-fast), color var(--t-fast);
}
.lang-btn:hover { color: #fff; }
.lang-btn[aria-pressed="true"] { background: var(--rojo-btn); color: #fff; }

.nav-link {
  position: relative;
  padding-block: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-2);
  transition: color var(--t-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  border-radius: 2px;
  background: var(--rojo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease-out);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }

.menu-movil {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.05);
  transition: border-color var(--t-fast);
}
.menu-movil span:not(.vh) {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--t-med) var(--ease-out), background-color var(--t-fast);
}
.menu-movil[aria-expanded="true"] { border-color: var(--rojo); }
.menu-movil[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); background: var(--rojo-claro); }
.menu-movil[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); background: var(--rojo-claro); }

@media (max-width: 379px) {
  .nav-ig { display: none; }
  .nav-brand-name { font-size: 1.05rem; }
}

@media (min-width: 641px) {
  .site-nav .idiomas { display: inline-flex; }
  .nav-kanji { width: 46px; }
  .nav-brand-name { font-size: 1.35rem; }
}

@media (min-width: 1025px) {
  .nav-menu { display: flex; align-items: center; gap: 26px; }
  .menu-movil { display: none; }
}

/* ==========================================================================
   MENÚ MÓVIL
   ========================================================================== */
.cajon {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
  padding: var(--s-4) var(--gutter) calc(var(--s-12) + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--ink);
}

.cajon-enlaces a {
  display: flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color var(--t-fast);
}
.cajon-enlaces a:hover { color: var(--ambar); }

.cajon-label {
  margin-bottom: var(--s-3);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.cajon .idiomas-cajon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border-radius: var(--r-md);
}
.cajon .idiomas-cajon .lang-btn { min-height: 46px; border-radius: 10px; font-size: var(--fs-sm); letter-spacing: 0; }

.cajon-acciones { display: grid; gap: var(--s-3); }
.cajon-acciones .btn { width: 100%; }

.cajon:not([hidden]) { animation: cajon-in var(--t-med) var(--ease-out); }

@keyframes cajon-in {
  from { opacity: 0; transform: translateY(-8px); }
}

/* ==========================================================================
   INICIO
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--nav-h) + var(--s-6)) var(--s-16);
  text-align: center;
}

.hero-fotos { position: absolute; inset: 0; z-index: -2; pointer-events: none; }

.hero-foto {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1400ms ease;
}
.hero-foto.is-activa { opacity: 1; }
.hero-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}

.hero-velo {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(85% 60% at 50% 42%, rgba(10, 9, 13, 0.66) 0%, rgba(10, 9, 13, 0.84) 58%, rgba(10, 9, 13, 0.95) 100%),
    linear-gradient(180deg, rgba(10, 9, 13, 0.6) 0%, rgba(10, 9, 13, 0) 22%, rgba(10, 9, 13, 0) 68%, var(--ink) 100%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  max-width: 100%;
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: rgba(10, 9, 13, 0.6);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.35;
}
.hero-badge .i { width: 15px; height: 15px; color: var(--ambar); }

.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.hero-title span { display: block; color: var(--rojo-claro); }

.hero-cat {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ambar);
}

.hero-desc {
  max-width: 52ch;
  font-size: var(--fs-lead);
  color: var(--text-2);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
  width: 100%;
  margin-top: var(--s-2);
}
.hero-cta .btn { flex: 1 1 170px; max-width: 280px; }

.hero-estado {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 24px;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.4);
}
.live-dot.is-open { background: var(--ok); box-shadow: 0 0 0 4px rgba(76, 193, 88, 0.22); }
.live-dot.is-closed { background: var(--ko); box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.2); }

.hero-datos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  width: 100%;
  max-width: 820px;
  margin-top: var(--s-2);
}

.dato,
.dato-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 76px;
  padding: var(--s-3) var(--s-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(10, 9, 13, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.dato:has(.dato-link) { padding: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.dato-link { width: 100%; height: 100%; transition: border-color var(--t-fast); }
.dato-link:hover { border-color: var(--ambar); }

.dato-val {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.dato-val .i-star { width: 17px; height: 17px; color: var(--ambar); }

.dato-lbl { font-size: var(--fs-xs); line-height: 1.35; color: var(--text-2); }

.hero-controles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  margin-top: var(--s-2);
}

.hero-puntos { display: flex; gap: 6px; }
.hero-puntos li {
  position: relative;
  width: 18px;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.28);
}
.hero-puntos span {
  position: absolute;
  inset: 0;
  background: var(--ambar);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-puntos li.is-hecho span { transform: scaleX(1); }
.hero-puntos li.is-activa span { animation: punto-progreso var(--slide-ms, 6000ms) linear forwards; }
.hero.is-pausa .hero-puntos li.is-activa span { animation-play-state: paused; }

@keyframes punto-progreso { to { transform: scaleX(1); } }

.hero-pausa {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(10, 9, 13, 0.55);
  color: #fff;
  transition: border-color var(--t-fast);
}
.hero-pausa:hover { border-color: var(--ambar); }
.hero-pausa svg { width: 16px; height: 16px; fill: currentColor; }
.hero-pausa .i-play { display: none; }
/* Cuando el movimiento esta parado, el boton se ve con texto para que se encuentre */
.hero-pausa-txt { display: none; }
:root[data-movimiento="off"] .hero-pausa .i-play { display: block; }
:root[data-movimiento="off"] .hero-pausa .i-pausa { display: none; }
:root[data-movimiento="off"] .hero-pausa,
.hero.is-pausa .hero-pausa {
  width: auto;
  min-width: 44px;
  padding-inline: var(--s-4);
  border-radius: 999px;
  grid-auto-flow: column;
  gap: var(--s-2);
}
:root[data-movimiento="off"] .hero-pausa-txt,
.hero.is-pausa .hero-pausa-txt {
  display: inline;
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
}
:root[data-movimiento="off"] .hero-puntos { display: none; }

.hero.is-pausa .hero-pausa .i-play { display: block; }
.hero.is-pausa .hero-pausa .i-pausa { display: none; }

@media (max-width: 380px) {
  .hero-cta .btn { flex-basis: 100%; max-width: none; }
}

@media (min-width: 768px) {
  .hero-datos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dato-val { font-size: 1.5rem; }
}

@media (min-width: 900px) {
  .hero-title span { display: inline; }
}

/* ==========================================================================
   EMBLEMA: la caligrafía se pinta y la mascota rebota
   ========================================================================== */
.emblema {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2%;
  width: clamp(270px, 82vw, 440px);
  margin-block: var(--s-2) 0;
  -webkit-tap-highlight-color: transparent;
}
.emblema:focus-visible { outline-color: var(--ambar); outline-offset: 10px; }

.em-kanji {
  width: 60%;
  height: auto;
  filter: drop-shadow(0 6px 26px rgba(0, 0, 0, 0.55));
}

.em-ramen {
  width: 34%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.5));
}

.em-vapor path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 5;
  stroke-linecap: round;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.em-ola,
.em-toppings { transform-box: fill-box; }
.em-toppings { transform-origin: 50% 50%; }

/* el bol gira sobre su pie y el caldo lo compensa: el eje tiene que ser el mismo
   en los dos para que la superficie del caldo se quede horizontal al inclinarse */
.em-bol,
.em-caldo { transform-origin: 100px 225px; }
.em-vapor { transform-origin: 100px 150px; }
.em-gota { transform-origin: 174px 132px; opacity: 0; }

.emblema .em-kanji {
  -webkit-mask-image: linear-gradient(105deg, #000 0 var(--pincel, 100%), transparent calc(var(--pincel, 100%) + 6%));
  mask-image: linear-gradient(105deg, #000 0 var(--pincel, 100%), transparent calc(var(--pincel, 100%) + 6%));
}
.emblema.is-intro .em-kanji { animation: buga-pincel 1100ms cubic-bezier(0.5, 0, 0.2, 1) both; }
.emblema.is-intro .em-ramen { animation: buga-entra 700ms var(--ease-spring) 650ms both; }

/* el bol se vence hasta el borde, como si fuera a derramarse, y se endereza */
.em-ola-1 { animation: buga-ola 3.4s linear infinite; }
.em-ola-2 { animation: buga-ola 5.2s linear infinite reverse; }
.em-toppings { animation: buga-flota 3.8s ease-in-out infinite; }
.em-bol { animation: buga-vuelca 6.4s linear infinite; }
.em-caldo { animation: buga-vuelca-caldo 6.4s linear infinite; }
.em-gota { animation: buga-gota 6.4s linear infinite; }
.em-vapor { animation: buga-vuelca-vapor 6.4s linear infinite; }
.em-vapor path { animation: buga-vapor 3.8s ease-out infinite; }
.em-vapor path:nth-child(2) { animation-delay: 1.1s; }
.em-vapor path:nth-child(3) { animation-delay: 2.2s; }

/* al pulsar: la sopa se agita */
.emblema.is-bote .em-bol { animation: buga-slosh 1200ms var(--ease-out); }
.emblema.is-bote .em-caldo { animation: buga-slosh-caldo 1200ms var(--ease-out); }
.emblema.is-bote .em-gota { animation: buga-gota-bote 1200ms var(--ease-out); }
.emblema.is-bote .em-ola-1 { animation: buga-ola 900ms linear 2; }
.emblema.is-bote .em-ola-2 { animation: buga-ola 1200ms linear reverse 2; }
.emblema.is-bote .em-toppings { animation: buga-flota-fuerte 1200ms ease-out; }

/* el botón de pausa del inicio también para el caldo */
.hero.is-pausa .em-ola-1,
.hero.is-pausa .em-ola-2,
.hero.is-pausa .em-toppings,
.hero.is-pausa .em-bol,
.hero.is-pausa .em-caldo,
.hero.is-pausa .em-gota,
.hero.is-pausa .em-vapor,
.hero.is-pausa .em-vapor path { animation-play-state: paused; }

@property --pincel {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 100%;
}

@keyframes buga-pincel {
  from { --pincel: 0%; opacity: 0.2; }
  to { --pincel: 100%; opacity: 1; }
}

@keyframes buga-entra {
  0% { opacity: 0; transform: translateY(18px) scale(0.86); }
  60% { opacity: 1; transform: translateY(-4px) scale(1.03); }
  100% { opacity: 1; transform: none; }
}

@keyframes buga-ola { to { transform: translateX(-80px); } }

@keyframes buga-flota {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-2.4px) rotate(0.8deg); }
}

@keyframes buga-flota-fuerte {
  0% { transform: none; }
  25% { transform: translateY(-5px) rotate(-2.5deg); }
  55% { transform: translateY(2px) rotate(1.8deg); }
  80% { transform: translateY(-1.5px) rotate(-0.8deg); }
  100% { transform: none; }
}

/* El vuelco. Las cuatro animaciones que siguen van acompasadas: mismos porcentajes
   y mismas curvas, y el giro del caldo es el del bol al reves (mas un poco de
   retraso, que es lo que hace que el caldo se suba al labio). */
@keyframes buga-vuelca {
  0% { transform: rotate(0deg); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  9% { transform: rotate(-1.8deg); animation-timing-function: cubic-bezier(.3, 0, .3, 1); }
  32% { transform: rotate(7.2deg); animation-timing-function: cubic-bezier(.35, 0, .65, 1); }
  39% { transform: rotate(8.6deg); animation-timing-function: ease-in-out; }
  45% { transform: rotate(7.6deg); animation-timing-function: ease-in-out; }
  52% { transform: rotate(9deg); animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
  61% { transform: rotate(7deg); animation-timing-function: cubic-bezier(.5, 0, .25, 1); }
  76% { transform: rotate(-3deg); animation-timing-function: cubic-bezier(.35, 0, .35, 1); }
  87% { transform: rotate(1.2deg); animation-timing-function: ease-in-out; }
  95% { transform: rotate(-.4deg); animation-timing-function: ease-in-out; }
  100% { transform: rotate(0deg); }
}

@keyframes buga-vuelca-caldo {
  0% { transform: rotate(0deg) translateX(0); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  9% { transform: rotate(2.2deg) translateX(-1.6px); animation-timing-function: cubic-bezier(.3, 0, .3, 1); }
  32% { transform: rotate(-8.1deg) translateX(7px); animation-timing-function: cubic-bezier(.35, 0, .65, 1); }
  39% { transform: rotate(-10deg) translateX(9px); animation-timing-function: ease-in-out; }
  45% { transform: rotate(-8.2deg) translateX(8px); animation-timing-function: ease-in-out; }
  52% { transform: rotate(-10.6deg) translateX(9.6px); animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
  61% { transform: rotate(-6.2deg) translateX(6.6px); animation-timing-function: cubic-bezier(.5, 0, .25, 1); }
  76% { transform: rotate(4.6deg) translateX(-4px); animation-timing-function: cubic-bezier(.35, 0, .35, 1); }
  87% { transform: rotate(-1.9deg) translateX(1.6px); animation-timing-function: ease-in-out; }
  95% { transform: rotate(.7deg) translateX(-.6px); animation-timing-function: ease-in-out; }
  100% { transform: rotate(0deg) translateX(0); }
}

@keyframes buga-vuelca-vapor {
  0% { transform: rotate(0deg); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  9% { transform: rotate(-1deg); animation-timing-function: cubic-bezier(.3, 0, .3, 1); }
  32% { transform: rotate(4deg); animation-timing-function: cubic-bezier(.35, 0, .65, 1); }
  52% { transform: rotate(5deg); animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
  61% { transform: rotate(3.8deg); animation-timing-function: cubic-bezier(.5, 0, .25, 1); }
  76% { transform: rotate(-1.7deg); animation-timing-function: cubic-bezier(.35, 0, .35, 1); }
  87% { transform: rotate(.7deg); animation-timing-function: ease-in-out; }
  100% { transform: rotate(0deg); }
}

/* la gota se asoma por el labio, tiembla y vuelve dentro: nunca cae */
@keyframes buga-gota {
  0%, 26% { opacity: 0; transform: scale(.35, 0); }
  33% { opacity: .95; transform: scale(.6, .42); }
  40% { opacity: 1; transform: scale(.85, .8); }
  46% { transform: scale(.72, .6); }
  53% { transform: scale(1, 1.06); }
  60% { opacity: .9; transform: scale(.78, .66); }
  70% { opacity: 0; transform: scale(.4, .12); }
  100% { opacity: 0; transform: scale(.35, 0); }
}

@keyframes buga-slosh {
  0% { transform: rotate(0deg); }
  16% { transform: rotate(-5.4deg); }
  40% { transform: rotate(8.4deg); }
  62% { transform: rotate(-4deg); }
  82% { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}

@keyframes buga-slosh-caldo {
  0% { transform: rotate(0deg) translateX(0); }
  16% { transform: rotate(7.4deg) translateX(-5px); }
  40% { transform: rotate(-10.4deg) translateX(8px); }
  62% { transform: rotate(5.6deg) translateX(-4px); }
  82% { transform: rotate(-3deg) translateX(2px); }
  100% { transform: rotate(0deg) translateX(0); }
}

@keyframes buga-gota-bote {
  0% { opacity: 0; transform: scale(.4, 0); }
  30% { opacity: 1; transform: scale(.9, .9); }
  48% { opacity: 1; transform: scale(1.05, 1.15); }
  70% { opacity: .8; transform: scale(.7, .55); }
  90%, 100% { opacity: 0; transform: scale(.4, .05); }
}

@keyframes buga-vapor {
  0% { opacity: 0; transform: translateY(16%) scaleY(0.55); }
  20% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-46%) scaleY(1.2); }
}

/* ==========================================================================
   SECCIONES
   ========================================================================== */
.seccion { padding-block: var(--section-y); }
.seccion-alt { background: var(--ink-2); border-block: 1px solid var(--line); }

.sec-head {
  max-width: 62ch;
  margin: 0 auto var(--s-8);
  text-align: center;
}

.eyebrow {
  display: block;
  margin-bottom: var(--s-2);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ambar);
}

.sec-title,
.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.sec-title em { font-style: normal; color: var(--rojo-claro); }

.sec-desc {
  max-width: 56ch;
  margin: var(--s-3) auto 0;
  font-size: var(--fs-lead);
  color: var(--text-2);
}

@media (min-width: 1025px) {
  .sec-head:not(.sec-head-center) { margin-left: 0; text-align: left; }
  .sec-head:not(.sec-head-center) .sec-desc { margin-left: 0; }
}

/* ---------- La carta ---------- */
/* la barra de secciones se queda pegada mientras se lee la carta */
.carta-chips {
  position: sticky;
  top: var(--nav-h);
  z-index: 4;
  margin-bottom: var(--s-6);
  padding-block: var(--s-3);
  background: rgba(14, 13, 18, 0.94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(6px)) {
  .carta-chips { background: rgba(14, 13, 18, 0.72); backdrop-filter: blur(12px); }
}
.carta-chips ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: var(--s-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.carta-chips ul::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-4);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-2);
  transition: color 180ms var(--ease-out), background-color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.chip:hover { border-color: var(--ambar); background: var(--ambar); color: #22190a; }

.carta-bloque {
  max-width: 880px;
  padding-block: var(--s-8);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 76px);
}
.carta-bloque:first-of-type { padding-top: 0; border-top: 0; }

.carta-cat {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.carta-cat-desc {
  max-width: 54ch;
  margin-top: var(--s-2);
  font-size: var(--fs-sm);
  color: var(--text-2);
}

/* las fotos, que son lo primero que se ve de cada categoría */
.carta-mosaico {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin: var(--s-5) 0 var(--s-6);
}
.carta-mosaico.es-una { grid-template-columns: minmax(0, 1fr); }
.carta-foto-grande { grid-column: 1 / -1; }

.carta-foto {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--card);
}
.carta-foto img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.carta-foto:not(.carta-foto-grande) img { aspect-ratio: 1 / 1; }
@media (hover: hover) {
  .carta-foto:hover img { transform: scale(1.04); }
}

.carta-lista {
  display: grid;
  gap: var(--s-4);
}

.carta-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--s-3);
  align-items: baseline;
}
.carta-item-txt { min-width: 0; }
.carta-item.sin-precio { grid-template-columns: minmax(0, 1fr); }
.carta-item.sin-precio .carta-plato::after { display: none; }

.carta-plato {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
/* la línea de puntos que lleva hasta el precio */
.carta-plato::after {
  content: "";
  flex: 1 0 16px;
  align-self: flex-end;
  margin-bottom: 4px;
  border-bottom: 1px dotted var(--line-2);
}
.carta-ud {
  flex: none;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-3);
}

.carta-desc {
  max-width: 64ch;
  margin-top: 3px;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text-2);
}

.carta-precio {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ambar);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.carta-avisos {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-8);
}
.carta-avisos .tarjeta-txt { min-height: 168px; }
a.tarjeta-txt { transition: border-color var(--t-fast), transform var(--t-fast); }
a.tarjeta-txt:hover { border-color: var(--ambar); transform: translateY(-3px); }

@media (max-width: 899px) {
  .carta-chips {
    margin-inline: calc(var(--s-4) * -1);
    padding-inline: var(--s-4);
  }
}

@media (min-width: 700px) {
  .carta-avisos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* en cuanto hay sitio, la foto grande manda y las pequeñas se apilan al lado */
@media (min-width: 620px) {
  .carta-mosaico {
    grid-template-columns: 2fr 1fr;
    aspect-ratio: 16 / 9;
  }
  .carta-mosaico.es-dos { grid-template-rows: minmax(0, 1fr); }
  .carta-mosaico.es-tres { grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .carta-mosaico.es-una { grid-template-columns: minmax(0, 1fr); aspect-ratio: 2 / 1; }
  .carta-foto-grande { grid-column: 1; grid-row: 1 / -1; }
  .carta-foto img,
  .carta-foto:not(.carta-foto-grande) img { aspect-ratio: auto; height: 100%; }
}

@media (min-width: 900px) {
  .carta-bloque { padding-block: var(--s-12); }

  .carta-lista {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--s-8);
  }
  .carta-plato { font-size: 1.05rem; }
}

/* Tarjetas de texto (vegano / a domicilio) */
.tarjeta-txt {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: var(--s-5);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}
.tarjeta-txt.es-rojo {
  border-color: rgba(227, 34, 25, 0.5);
  background: linear-gradient(150deg, rgba(227, 34, 25, 0.22), rgba(28, 25, 37, 0.9) 62%);
}
.tarjeta-icono {
  position: absolute;
  top: var(--s-5);
  right: var(--s-5);
  width: 34px;
  height: 34px;
  color: var(--ambar);
  stroke-width: 1.6;
}
.tarjeta-txt.es-rojo .tarjeta-icono { color: var(--rojo-claro); }
.tarjeta-eyebrow {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ambar);
}
.tarjeta-txt.es-rojo .tarjeta-eyebrow { color: var(--rojo-claro); }
.tarjeta-nombre {
  margin-top: var(--s-1);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  text-transform: uppercase;
}
.tarjeta-desc { margin-top: var(--s-1); font-size: var(--fs-sm); color: var(--text-2); }

.nota-carta {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--s-2);
  margin-top: var(--s-6);
  font-size: var(--fs-sm);
  color: var(--text-2);
  text-align: left;
}
.nota-carta .i { margin-top: 2px; color: var(--ambar); }

@media (min-width: 1025px) {
  .nota-carta { justify-content: flex-start; }
}

/* ---------- Franja de reseñas ---------- */
.franja {
  position: relative;
  padding-block: var(--s-12);
  overflow: hidden;
  background: var(--rojo-btn);
  color: #fff;
}
.franja::before,
.franja::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0 14px, transparent 14px 28px);
  opacity: 0.5;
}
.franja::before { top: 0; }
.franja::after { bottom: 0; }

.franja-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-6);
}

.franja-nota {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 2rem + 3vw, 4.2rem);
  line-height: 1;
}
.franja-nota .i-star { width: 34px; height: 34px; color: var(--ambar-2); align-self: center; }
.franja-txt { max-width: 46ch; color: rgba(255, 255, 255, 0.94); }
.franja-cita {
  margin-top: var(--s-2);
  font-size: var(--fs-sm);
  font-style: italic;
  color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 479px) {
  .franja .btn { width: 100%; }
}

@media (min-width: 900px) {
  .franja-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--s-12); }
  .franja .btn { flex-shrink: 0; }
}

/* ---------- El local ---------- */
.find-section {
  padding-block: var(--section-y);
  background: var(--ink-2);
  border-block: 1px solid var(--line);
}

.local-fotos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-2);
}

.local-foto { position: relative; margin: 0; }
.local-foto-main { grid-column: span 2; }
.local-foto picture, .local-foto img { width: 100%; height: 100%; }
.local-foto img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); }
.local-foto-main img { aspect-ratio: 4 / 3; }

.local-foto figcaption {
  position: absolute;
  left: var(--s-3);
  bottom: var(--s-3);
  max-width: calc(100% - 24px);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(10, 9, 13, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1.35;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-8);
}

.step-card { padding-top: var(--s-4); border-top: 1px solid var(--line-2); }

.step-num {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--rojo-claro);
}

.step-title { font-size: 1.0625rem; font-weight: 700; margin-bottom: 4px; }
.step-desc { font-size: var(--fs-sm); color: var(--text-2); }

@media (min-width: 900px) {
  .local-fotos { grid-template-columns: 1.3fr 1fr 1fr; gap: var(--s-4); }
  .local-foto-main { grid-column: auto; }
  .local-foto img, .local-foto-main img { aspect-ratio: 3 / 4; }
}

/* ---------- Horario y dónde estamos (formato Oasis, en oscuro) ---------- */
.info-section { padding-block: var(--section-y); }

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-10);
}

.hours-table { width: 100%; margin-top: var(--s-5); border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid var(--line); }
.hours-table td { padding: 14px 4px; font-size: 0.9375rem; line-height: 1.5; }
.hours-table td:first-child { width: 42%; font-weight: 600; }
.hours-table td:last-child { font-variant-numeric: tabular-nums; color: var(--text-2); }

.hours-table tr.is-today {
  background: rgba(227, 34, 25, 0.14);
  border-bottom: 2.5px solid var(--rojo);
}
.hours-table tr.is-today td { padding-inline: 10px; font-weight: 700; color: #fff; }

.today-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background: var(--rojo);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.today-dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; }

.contact-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  width: 100%;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.contact-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: uppercase;
}

.map-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card-2);
}

.map-embed {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.9) contrast(1.02);
  pointer-events: none;
  user-select: none;
}

.map-link { position: absolute; inset: 0; z-index: 2; display: block; cursor: pointer; }
.map-link:focus-visible { outline: 3px solid var(--ambar); outline-offset: -3px; border-radius: var(--r-md); }

.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transform: translate(-50%, calc(-100% + 17px));
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
  transition: transform 0.25s var(--ease-out);
}
.map-frame:hover .map-pin,
.map-link:focus-visible ~ .map-pin { transform: translate(-50%, calc(-100% + 17px)) scale(1.07); }

.map-pin-badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--rojo);
}
/* las letras del logo (武賀) en blanco sobre el rojo de la marca */
.map-pin-badge img { width: 44px; height: auto; margin-top: -2px; }
.map-pin-stem {
  width: 0;
  height: 0;
  margin-top: -4px;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid #fff;
}

.contact-list { display: flex; flex-direction: column; gap: 2px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-height: 48px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: color var(--t-fast);
}
.contact-item:last-child { border-bottom: none; }
.contact-item .i { margin-top: 2px; color: var(--ambar); }
.contact-item:hover { color: var(--ambar); }

@media (min-width: 861px) {
  .info-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
  }
}

/* ==========================================================================
   PIE
   ========================================================================== */
.site-footer {
  padding-block: var(--s-12) calc(var(--s-8) + env(safe-area-inset-bottom, 0px));
  background: #0a090d;
  color: var(--text-2);
  font-size: var(--fs-sm);
  border-top: 1px solid var(--line);
}

.footer-inner { display: grid; gap: var(--s-8); }

.footer-logo { display: block; width: 190px; justify-self: center; }
.footer-logo img { width: 100%; height: auto; }

.footer-cols { display: grid; gap: var(--s-6); text-align: center; }

.footer-h {
  margin-bottom: var(--s-2);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-col p + p { margin-top: var(--s-2); }

.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-1) var(--s-5); }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  color: var(--text);
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--ambar); }
.footer-links .i { color: var(--ambar); }

.idiomas-pie { display: inline-flex; }
.idiomas-pie .lang-btn { min-width: 48px; min-height: 44px; }

.footer-legal {
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  text-align: center;
  color: var(--text-3);
}

@media (min-width: 900px) {
  .footer-inner { grid-template-columns: auto 1fr; align-items: center; gap: var(--s-8) var(--s-16); }
  .footer-logo { justify-self: start; }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: left; }
  .footer-links { justify-content: flex-start; }
  .footer-legal { grid-column: 1 / -1; text-align: left; }
}

/* ==========================================================================
   ENTRADAS AL HACER SCROLL
   ========================================================================== */
.js-motion .revela {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.js-motion .revela.is-visible { opacity: 1; transform: none; }

/* Movimiento. Las animaciones se declaran siempre; aqui se apagan cuando toca:
   por defecto manda el ajuste del sistema, y el boton del inicio lo cambia a mano
   (data-movimiento en <html>, que escribe js/app.js y se recuerda en el navegador). */
@media (prefers-reduced-motion: reduce) {
  :root:not([data-movimiento="on"]) { scroll-behavior: auto; }
  :root:not([data-movimiento="on"]) *,
  :root:not([data-movimiento="on"]) *::before,
  :root:not([data-movimiento="on"]) *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:root[data-movimiento="off"] { scroll-behavior: auto; }
:root[data-movimiento="off"] *,
:root[data-movimiento="off"] *::before,
:root[data-movimiento="off"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

@media print {
  .site-nav, .cajon, .hero-fotos, .hero-velo, .hero-controles, .map-frame, .skip-link { display: none !important; }
  body, .hero, .site-footer, .franja { background: #fff !important; color: #000 !important; }
  .hero { min-height: 0; padding-block: 24px; }
}
