/* ==========================================================================
   Perrucania — estilos
   Colores del logo: verde lima #A2E327 y negro. Tipografía: Sora (alojada aquí).
   Índice: 1 base · 2 botones · 3 menú · 4 portada · 5 secciones · 6 qui som
   7 serveis · 8 galeria · 9 ressenyes · 10 on som · 11 peu · 12 huellas
   13 páginas interiores · 14 animaciones y movimiento reducido
   ========================================================================== */

@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-latin-wght.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0e0f0b;
  --bg-2: #13150f;
  --surface: #191c14;
  --surface-2: #22261b;
  --line: rgb(244 243 236 / 0.1);
  --text: #f4f3ec;
  --muted: #a8ac9d;
  --lime: #a2e327;
  --lime-2: #c3f06a;
  --ink: #0e0f0b;
  --cream: #f3f1e7;
  --ink-muted: #4c5043;
  --radius: 28px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 46px;
  --gutter: clamp(16px, 4vw, 40px);
  /* Margen lateral alineado con .container; el % es del ancho de quien lo usa (pantalla o portada) */
  --page-pad: max(var(--gutter), calc((100% - 1240px) / 2 + var(--gutter)));
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--lime); color: var(--ink); }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
[data-tone="lime"] :focus-visible,
[data-tone="light"] :focus-visible { outline-color: var(--ink); }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 780px; }

.sr-only {
  position: absolute; 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 {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--lime); color: var(--ink); font-weight: 600; text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 16px; }

.ico { width: 20px; height: 20px; flex: none; }

/* ---------- 2. Botones ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px; border: 1px solid transparent; border-radius: 999px;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.2s var(--ease-out), filter 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn .ico { width: 18px; height: 18px; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 0.95rem; }
.btn--sm { --h: 40px; padding: 0 16px; font-size: 0.8rem; }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--lime-2); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--ghost { border-color: var(--line); color: var(--text); background: rgb(244 243 236 / 0.03); }
.btn--ghost:hover { border-color: rgb(244 243 236 / 0.3); background: rgb(244 243 236 / 0.08); }
.btn--light .ico:last-child,
.btn--ghost .ico:last-child { transition: transform 0.3s var(--ease-out); }
.btn--light:hover .ico:last-child { transform: translateX(3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.875rem; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow .ico { width: 16px; height: 16px; }

/* ---------- 3. Menú (píldoras) ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: 14px var(--page-pad);
  padding-top: max(14px, env(safe-area-inset-top));
  pointer-events: none;
}
.nav__bar { display: flex; align-items: center; gap: 8px; pointer-events: auto; }

.nav__logo {
  display: grid; place-items: center; flex: none;
  width: var(--nav-h); height: var(--nav-h); padding: 9px;
  border-radius: 50%; background: var(--lime); color: var(--ink);
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.25);
}
.nav__dog { width: 100%; height: 100%; transition: transform 0.6s var(--ease-out); }
.nav__logo:hover .nav__dog { transform: rotate(360deg); }

.nav__pills {
  height: var(--nav-h); padding: 4px; border-radius: 999px;
  background: rgb(14 15 11 / 0.72); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.25);
}
.pill-list { display: flex; gap: 4px; height: 100%; }
.pill-list > li { display: flex; height: 100%; }
.pill {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  height: 100%; padding: 0 18px; border-radius: 999px;
  background: var(--cream); color: var(--ink);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
}
/* Círculo que sube desde abajo al pasar el ratón (medidas en main.js) */
.pill__circle {
  position: absolute; left: 50%; bottom: calc(var(--delta, 0px) * -1); z-index: -1;
  width: var(--d, 120px); height: var(--d, 120px); border-radius: 50%;
  background: var(--ink);
  transform: translateX(-50%) scale(0);
  transform-origin: 50% var(--origin, 100%);
  transition: transform 0.45s var(--ease-soft);
  pointer-events: none;
}
.pill__stack { position: relative; display: inline-block; line-height: 1; }
.pill__label { display: inline-block; transition: transform 0.45s var(--ease-soft), opacity 0.45s; }
.pill__label--hover {
  position: absolute; left: 0; top: 0; color: var(--lime);
  transform: translateY(calc(var(--h, 38px) + 12px)); opacity: 0;
}
@media (hover: hover) {
  .pill:hover .pill__circle { transform: translateX(-50%) scale(1.2); }
  .pill:hover .pill__label:not(.pill__label--hover) { transform: translateY(calc((var(--h, 38px) + 8px) * -1)); }
  .pill:hover .pill__label--hover { transform: none; opacity: 1; }
}
.pill:focus-visible { outline-offset: 2px; }
.pill.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; z-index: 2;
  width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--ink);
}

.nav__end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.langs {
  display: flex; gap: 2px; height: var(--nav-h); padding: 4px; border-radius: 999px;
  background: rgb(14 15 11 / 0.72); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.langs__a {
  display: grid; place-items: center; min-width: 38px; padding: 0 8px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-decoration: none; color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.langs__a:hover { color: var(--text); }
.langs__a[aria-current] { background: var(--lime); color: var(--ink); }
.nav__call { min-height: var(--nav-h); box-shadow: 0 6px 20px rgb(0 0 0 / 0.25); }

.nav__burger {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: var(--nav-h); height: var(--nav-h); padding: 0; border: 1px solid var(--line); border-radius: 50%;
  background: rgb(14 15 11 / 0.8); cursor: pointer;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.nav__burger span {
  width: 17px; height: 2px; border-radius: 2px; background: var(--cream);
  transition: transform 0.3s var(--ease-out);
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mnav {
  pointer-events: auto;
  margin-top: 10px; padding: 6px; border-radius: 28px;
  background: rgb(14 15 11 / 0.94); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.4);
  transform-origin: top center;
}
.mnav:not([hidden]) { animation: menu-in 0.32s var(--ease-out); }
.mnav__list { display: grid; gap: 4px; }
.mnav__link {
  display: block; padding: 14px 18px; border-radius: 999px;
  background: var(--cream); color: var(--ink); font-weight: 600; text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.mnav__link:hover { background: var(--ink); color: var(--lime); }
.mnav__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 6px 6px; }
.mnav__foot .langs { background: transparent; }

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

/* Entrada del menú al cargar */
@keyframes logo-pop { from { transform: scale(0); } }
@keyframes pills-open { from { clip-path: inset(0 100% 0 0 round 999px); } to { clip-path: inset(0 0 0 0 round 999px); } }
.nav__logo { animation: logo-pop 0.6s var(--ease-out) both; }
.nav__pills { animation: pills-open 0.7s 0.1s var(--ease-out) both; }

@media (max-width: 1080px) {
  .nav__pills { display: none; }
  .nav__burger { display: flex; }
}
@media (max-width: 640px) {
  .nav__end > .langs,
  .nav__call { display: none; }
}

/* ---------- 4. Portada ---------- */
.hero {
  position: relative; isolation: isolate;
  display: flex; align-items: flex-end;
  min-height: 100vh; min-height: 100svh; overflow: hidden;
  background:
    radial-gradient(55% 60% at 74% 48%, rgb(162 227 39 / 0.13), transparent 72%),
    radial-gradient(40% 40% at 10% 100%, rgb(162 227 39 / 0.05), transparent 70%),
    var(--bg);
}
.hero__art {
  position: absolute; z-index: -1;
  top: 54%; transform: translateY(-50%);
  left: calc(var(--page-pad) + min(50vw, 640px));
  right: max(16px, calc(var(--page-pad) - 160px));
  max-width: min(980px, 94vh);
  margin-left: auto;
}
.hero__svg { width: 100%; height: auto; overflow: visible; }
.hero__dog { fill: var(--lime); animation: dog-in 1.1s 0.15s var(--ease-out) both; }
.hero__paw {
  fill: var(--lime);
  transform-box: fill-box; transform-origin: center;
  animation: stamp 0.55s var(--ease-out) both;
  transition: opacity 0.6s, transform 0.6s var(--ease-out);
}
.hero__paw:nth-child(1) { animation-delay: 0.9s; }
.hero__paw:nth-child(2) { animation-delay: 1.25s; }
.hero__paw:nth-child(3) { animation-delay: 1.6s; }
.hero__paw:nth-child(4) { animation-delay: 1.95s; }
/* Al empezar a bajar, las huellas del logo «se van» y sigue el rastro por la web (huellas.js) */
.hero.is-walking .hero__paw { opacity: 0; transform: translateY(-14px) scale(0.85); transition-duration: 0.5s; }
.hero.is-walking .hero__paw:nth-child(1) { transition-delay: 0s; }
.hero.is-walking .hero__paw:nth-child(2) { transition-delay: 0.08s; }
.hero.is-walking .hero__paw:nth-child(3) { transition-delay: 0.16s; }
.hero.is-walking .hero__paw:nth-child(4) { transition-delay: 0.24s; }

@keyframes dog-in { from { opacity: 0; transform: translateY(26px); } }
@keyframes stamp {
  0% { opacity: 0; transform: scale(1.6) rotate(-10deg); }
  55% { opacity: 1; transform: scale(0.92); }
  100% { opacity: 1; transform: none; }
}

.hero__glow {
  position: absolute; inset: auto 0 0; z-index: -1; height: 55%;
  background: linear-gradient(to top, var(--bg) 8%, rgb(14 15 11 / 0.6) 45%, transparent);
  pointer-events: none;
}
.hero__content {
  width: 100%;
  padding: 128px var(--gutter) clamp(44px, 8vh, 84px) var(--page-pad);
}
.hero__content > * { max-width: 640px; }
.hero__kicker {
  margin-bottom: 18px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--lime);
}
.hero__title {
  margin-bottom: clamp(8px, 1.4vw, 18px);
  font-size: clamp(2.7rem, 8vw + 0.5rem, 7rem); font-weight: 700; line-height: 0.98; letter-spacing: -0.055em;
}
.hero__dot { color: var(--lime); }
.hero__sub {
  margin-bottom: clamp(12px, 2vw, 24px);
  font-size: clamp(1.15rem, 2.5vw, 1.9rem); font-weight: 300; line-height: 1.3; color: rgb(244 243 236 / 0.86);
}
.hero__sub em { font-style: normal; font-weight: 500; color: var(--lime); }
.hero__desc {
  max-width: 560px; margin-bottom: clamp(20px, 3vw, 34px);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem); font-weight: 300; color: var(--muted);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  margin-top: clamp(18px, 2.5vw, 28px);
  font-size: 0.78rem; font-weight: 300; color: rgb(168 172 157 / 0.85);
}
.stars { display: inline-flex; gap: 2px; color: var(--lime); }
.stars .ico { width: 14px; height: 14px; }

.hero__scroll {
  position: absolute; right: var(--page-pad); bottom: clamp(28px, 5vh, 52px);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color 0.2s;
}
.hero__scroll:hover { color: var(--lime); }
.hero__scroll .ico { width: 16px; height: 16px; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* Móvil y tableta en vertical: el perro arriba y el texto debajo, sin taparse */
@media (max-width: 900px) {
  .hero { flex-direction: column; align-items: stretch; justify-content: flex-end; }
  .hero__art {
    position: relative; inset: auto; z-index: -1; transform: none;
    width: min(78vw, 500px, 52svh); max-width: none; margin: 84px 2vw 0 auto;
  }
  .hero__content { padding-top: 8px; }
  .hero__glow { height: 40%; }
  .hero__scroll { display: none; }
}
/* Móvil en horizontal (poca altura): texto a la izquierda y perro a la derecha, como en el ordenador */
@media (max-width: 1080px) and (max-height: 560px) and (orientation: landscape) {
  .hero { flex-direction: row; align-items: flex-end; justify-content: flex-start; }
  .hero__art {
    position: absolute; top: 56%; transform: translateY(-50%); margin: 0;
    left: auto; right: max(12px, env(safe-area-inset-right)); width: min(40vw, 70vh); max-width: none;
  }
  .hero__content { padding-top: 84px; padding-bottom: 28px; padding-left: max(var(--page-pad), env(safe-area-inset-left)); }
  .hero__content > * { max-width: 54vw; }
  .hero__title { font-size: clamp(2.4rem, 11vh, 4rem); }
  .hero__desc { display: none; }
  .hero__glow { display: none; }
}

/* ---------- 5. Secciones ---------- */
.sec { position: relative; padding-block: clamp(84px, 11vw, 150px); overflow-x: clip; }
[data-tone="light"] { background: var(--cream); color: var(--ink); color-scheme: light; }
[data-tone="lime"] { background: var(--lime); color: var(--ink); color-scheme: light; }

.sec__head { margin-bottom: clamp(36px, 5vw, 64px); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--lime);
}
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
[data-tone="light"] .kicker { color: var(--ink-muted); }
[data-tone="lime"] .kicker { color: var(--ink); }
.sec__title {
  max-width: 18ch;
  font-size: clamp(2rem, 4.8vw, 3.75rem); font-weight: 600; line-height: 1.04; letter-spacing: -0.04em;
  text-wrap: balance;
}
.sec__intro { max-width: 58ch; margin-top: 18px; color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.08rem); font-weight: 300; }
[data-tone="light"] .sec__intro { color: var(--ink-muted); }

/* ---------- 6. Qui som ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__p { max-width: 52ch; margin-top: 18px; font-size: 1.05rem; font-weight: 300; color: var(--ink-muted); }
.about__p:first-of-type { color: var(--ink); font-weight: 400; font-size: 1.12rem; }
.stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(20px, 4vw, 48px);
  margin-top: 36px; padding-top: 28px; border-top: 1px solid rgb(14 15 11 / 0.12);
}
.stat { display: grid; gap: 4px; }
.stat__num { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__pre { color: var(--ink-muted); }
.stat__label { font-size: 0.82rem; color: var(--ink-muted); }

.about__photos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.ph { overflow: hidden; border-radius: 24px; background: var(--cream-2, #e5e2d4); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--a { grid-column: 1 / 4; aspect-ratio: 4 / 5; }
.ph--b { grid-column: 4 / 7; aspect-ratio: 4 / 5; margin-top: 64px; }
.ph--c { grid-column: 2 / 7; aspect-ratio: 3 / 2; margin-top: -48px; position: relative; box-shadow: 0 0 0 10px var(--cream); }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .stats { gap: 14px; }
  .stat__label { font-size: 0.74rem; }
}

/* ---------- 7. Serveis ---------- */
.services { background: var(--bg); }

/* Tarjeta con borde luminoso que sigue al cursor (adaptada de BorderGlow, React Bits) */
.glow {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --edge-sensitivity: 30;
  --color-sensitivity: calc(var(--edge-sensitivity) + 20);
  --glow-padding: 40px;
  --cone-spread: 25;
  --card-bg: var(--surface);
  --glow-color: hsl(82deg 85% 66% / 100%);
  --glow-color-60: hsl(82deg 85% 66% / 60%);
  --glow-color-50: hsl(82deg 85% 66% / 50%);
  --glow-color-40: hsl(82deg 85% 66% / 40%);
  --glow-color-30: hsl(82deg 85% 66% / 30%);
  --glow-color-20: hsl(82deg 85% 66% / 20%);
  --glow-color-10: hsl(82deg 85% 66% / 10%);
  --gradient-one: radial-gradient(at 80% 55%, #a2e327 0px, transparent 50%);
  --gradient-two: radial-gradient(at 69% 34%, #e4fa9e 0px, transparent 50%);
  --gradient-three: radial-gradient(at 8% 6%, #5fae1e 0px, transparent 50%);
  --gradient-four: radial-gradient(at 41% 38%, #a2e327 0px, transparent 50%);
  --gradient-five: radial-gradient(at 86% 85%, #e4fa9e 0px, transparent 50%);
  --gradient-six: radial-gradient(at 82% 18%, #5fae1e 0px, transparent 50%);
  --gradient-seven: radial-gradient(at 51% 4%, #e4fa9e 0px, transparent 50%);
  --gradient-base: linear-gradient(#a2e327 0 100%);

  position: relative; isolation: isolate; display: grid;
  border-radius: var(--radius);
  border: 1px solid rgb(255 255 255 / 0.08);
  background: var(--card-bg);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 8px 24px rgb(0 0 0 / 0.18), 0 32px 64px rgb(0 0 0 / 0.16);
}
.glow::before,
.glow::after,
.glow > .glow__edge {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; transition: opacity 0.25s ease-out; pointer-events: none;
}
.glow:not(:hover)::before,
.glow:not(:hover)::after,
.glow:not(:hover) > .glow__edge { opacity: 0; transition: opacity 0.75s ease-in-out; }
.glow::before {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card-bg) 0 100%) padding-box,
    linear-gradient(rgb(255 255 255 / 0%) 0% 100%) border-box,
    var(--gradient-one) border-box, var(--gradient-two) border-box, var(--gradient-three) border-box,
    var(--gradient-four) border-box, var(--gradient-five) border-box, var(--gradient-six) border-box,
    var(--gradient-seven) border-box, var(--gradient-base) border-box;
  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  -webkit-mask-image: conic-gradient(from var(--cursor-angle) at center, black calc(var(--cone-spread) * 1%), transparent calc((var(--cone-spread) + 15) * 1%), transparent calc((100 - var(--cone-spread) - 15) * 1%), black calc((100 - var(--cone-spread)) * 1%));
  mask-image: conic-gradient(from var(--cursor-angle) at center, black calc(var(--cone-spread) * 1%), transparent calc((var(--cone-spread) + 15) * 1%), transparent calc((100 - var(--cone-spread) - 15) * 1%), black calc((100 - var(--cone-spread)) * 1%));
}
.glow::after {
  border: 1px solid transparent;
  background:
    var(--gradient-one) padding-box, var(--gradient-two) padding-box, var(--gradient-three) padding-box,
    var(--gradient-four) padding-box, var(--gradient-five) padding-box, var(--gradient-six) padding-box,
    var(--gradient-seven) padding-box, var(--gradient-base) padding-box;
  -webkit-mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);
  mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);
  -webkit-mask-composite: source-out, source-over, source-over, source-over, source-over, source-over;
  mask-composite: subtract, add, add, add, add, add;
  opacity: calc(0.35 * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mix-blend-mode: soft-light;
}
.glow > .glow__edge {
  inset: calc(var(--glow-padding) * -1); z-index: 1;
  -webkit-mask-image: conic-gradient(from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%);
  mask-image: conic-gradient(from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%);
  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  mix-blend-mode: plus-lighter;
}
.glow > .glow__edge::before {
  content: ""; position: absolute; inset: var(--glow-padding); border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--glow-color),
    inset 0 0 1px 0 var(--glow-color-60), inset 0 0 3px 0 var(--glow-color-50), inset 0 0 6px 0 var(--glow-color-40),
    inset 0 0 15px 0 var(--glow-color-30), inset 0 0 25px 2px var(--glow-color-20), inset 0 0 50px 2px var(--glow-color-10),
    0 0 1px 0 var(--glow-color-60), 0 0 3px 0 var(--glow-color-50), 0 0 6px 0 var(--glow-color-40),
    0 0 15px 0 var(--glow-color-30), 0 0 25px 2px var(--glow-color-20), 0 0 50px 2px var(--glow-color-10);
}
/* En pantallas táctiles no hay cursor que siga el brillo */
@media (hover: none) {
  .glow::before, .glow::after, .glow > .glow__edge { display: none; }
}
.glow__inner { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; border-radius: inherit; overflow: hidden; }

.svc__media { overflow: hidden; background: var(--surface-2); }
.svc__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.svc:hover .svc__media img { transform: scale(1.04); }
.svc__body { display: flex; flex-direction: column; flex: 1; padding: clamp(22px, 2.6vw, 34px); }
.svc__name { display: flex; align-items: center; gap: 14px; font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; }
.svc__ico { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: rgb(162 227 39 / 0.12); color: var(--lime); }
.svc__text { margin-top: 14px; color: var(--muted); font-weight: 300; }
.svc__price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px;
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 0.86rem; color: var(--muted);
}
.svc__text + .svc__price { margin-top: 22px; }
.svc__price-label { width: 100%; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.svc__price strong { font-size: 1.2rem; font-weight: 600; color: var(--lime); letter-spacing: -0.01em; }

.svc--main .glow__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.svc--main .svc__media img { height: 100%; aspect-ratio: auto; min-height: 100%; }
.svc__inc-label { margin-top: 22px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.svc__inc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.svc__inc li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 999px;
  background: rgb(244 243 236 / 0.06); font-size: 0.82rem;
}
.svc__inc .ico { width: 16px; height: 16px; color: var(--lime); }

.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.services__note { max-width: 70ch; margin-top: 28px; font-size: 0.86rem; color: var(--muted); }

.prices { margin-top: 26px; }
.prices .jelly { margin: 0 0 14px -6px; }
.prices__table { font-size: 0.92rem; }
.prices__table th,
.prices__table td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: baseline; }
.prices__table thead th { padding-top: 0; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.prices__table thead th span { display: block; margin-top: 2px; font-size: 0.7rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.prices__table td,
.prices__table thead th[data-size] { text-align: right; padding-left: 14px; white-space: nowrap; }
.prices__table td { font-weight: 600; color: var(--lime); font-variant-numeric: tabular-nums; }
/* Con JavaScript se ve una sola columna (la del tamaño elegido) */
.prices__table[data-mode="one"] thead { display: none; }
.prices__table[data-mode="one"][data-size="s"] [data-size]:not([data-size="s"]),
.prices__table[data-mode="one"][data-size="m"] [data-size]:not([data-size="m"]),
.prices__table[data-mode="one"][data-size="l"] [data-size]:not([data-size="l"]) { display: none; }
.prices__table td.is-swap { animation: price-swap 0.45s var(--ease-out); }
@keyframes price-swap { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } }
.prices__extra { margin-top: 12px; font-size: 0.82rem; color: var(--muted); }

@media (max-width: 980px) {
  .svc--main .glow__inner { grid-template-columns: 1fr; }
  .svc--main .svc__media img { aspect-ratio: 16 / 10; height: auto; }
  .svc-grid { grid-template-columns: 1fr; }
}
@media (min-width: 640px) and (max-width: 980px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .svc-grid > :last-child:nth-child(odd) .glow__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .svc-grid > :last-child:nth-child(odd) .svc__media img { height: 100%; }
}

/* Botones de opción con efecto gelatina (adaptados de JellyRadio, React Bits) */
.jelly {
  --jr-chip: rgb(244 243 236 / 0.07);
  --jr-active: var(--lime);
  --jr-text: var(--text);
  --jr-active-text: var(--ink);
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 6px; user-select: none; -webkit-user-select: none;
}
.jelly[hidden] { display: none; }
.jelly__chip {
  position: relative; margin: 0; padding: 0; border: 0; background: none;
  cursor: pointer; outline: none; transform-origin: 50% 50%;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.jelly__chip[aria-checked="true"] { cursor: default; }
.jelly__skin {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 40px; padding: 7px 18px; border-radius: 22px; overflow: hidden;
  background: var(--jr-chip); color: var(--jr-text);
  font-size: 0.82rem; font-weight: 600; line-height: 1.15; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.jelly__skin::before {
  content: ""; position: absolute; inset: 0; background: var(--jr-text); opacity: 0;
  pointer-events: none; transition: opacity 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .jelly__chip[aria-checked="false"]:hover .jelly__skin::before { opacity: 0.1; }
}
.jelly__chip:active .jelly__skin { transform: scale(0.97); }
.jelly__chip[aria-checked="true"] .jelly__skin { background: var(--jr-active); color: var(--jr-active-text); }
.jelly__chip:focus-visible .jelly__skin { outline: 2px solid var(--lime); outline-offset: 3px; }
.jelly__sub { font-size: 0.68rem; font-weight: 400; opacity: 0.72; }

/* ---------- 8. Galeria ---------- */
.gallery { background: var(--bg-2); overflow: hidden; }
.gallery .sec__head { margin-bottom: 18px; }
.gallery__filters { margin: 0 0 8px -6px; }
.gallery__stage { position: relative; }
/* Sin JavaScript: rejilla de fotos */
.gallery__list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px;
  max-width: 1240px; margin: 24px auto 0; padding-inline: var(--gutter);
}
.gallery__list figure { overflow: hidden; border-radius: 16px; background: var(--surface); }
.gallery__list img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gallery__list figcaption { padding: 10px 12px; font-size: 0.8rem; color: var(--muted); }
.gallery__stage.is-carousel { height: clamp(440px, 54vw, 620px); }
.gallery__stage.is-carousel .gallery__list { display: none; }

/* Carrusel circular (adaptado de CircularCarousel, React Bits) */
.cc {
  --cc-fade: var(--bg-2); --cc-radius: 18px; --cc-inner: 0.4;
  position: relative; width: 100%; height: 100%; overflow: hidden; outline: none;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  cursor: grab;
}
.cc[data-dragging] { cursor: grabbing; }
.cc:focus-visible { box-shadow: inset 0 0 0 2px rgb(162 227 39 / 0.6); border-radius: 12px; }
.cc__view { position: absolute; inset: 0; }
.cc__stage {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.45s ease;
}
.cc[data-ready] .cc__stage { opacity: 1; }
.cc__camera, .cc__ring, .cc__card { width: 0; height: 0; transform-style: preserve-3d; }
.cc__camera { position: relative; }
.cc__ring, .cc__card { position: absolute; left: 0; top: 0; }
.cc__tile { position: absolute; outline: 1px solid transparent; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.cc__frame { position: absolute; left: 0; top: 0; width: 100%; overflow: hidden; }
.cc__photo { position: absolute; display: block; max-width: none; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.cc__shade, .cc__inner { position: absolute; inset: 0; pointer-events: none; }
.cc__shade { background: var(--cc-fade); opacity: var(--cc-depth, 0); }
.cc__inner { background: #000; opacity: var(--cc-inner); }
.cc__caption {
  position: absolute; left: 0; right: 0; bottom: 18px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 0 16px; text-align: center; pointer-events: none;
}
.cc__title { font-size: 1rem; font-weight: 500; line-height: 1.35; animation: cc-title 520ms var(--ease-soft); }
.cc__count { display: inline-flex; align-items: center; gap: 3px; font-size: 0.75rem; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.cc__digits { display: inline-flex; color: var(--lime); }
.cc__digit { display: inline-block; height: 1em; overflow: hidden; }
.cc__reel { display: flex; flex-direction: column; transition: transform 600ms var(--ease-soft); }
.cc__reel > span { height: 1em; }
.cc__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes cc-title { from { opacity: 0; transform: translateY(8px); } }

/* ---------- 9. Ressenyes ---------- */
.reviews__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: clamp(36px, 5vw, 56px); }
.reviews__head .sec__head { margin-bottom: 0; }
.rating {
  display: grid; gap: 6px; min-width: 250px; padding: 22px 26px; border-radius: 24px;
  background: var(--ink); color: var(--cream);
}
.rating__score strong { font-size: 3rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--lime); }
.rating__score span { font-size: 0.95rem; color: var(--muted); }
.rating__stars { display: flex; gap: 3px; color: var(--lime); }
.rating__stars .ico { width: 18px; height: 18px; }
.rating__count { font-size: 0.86rem; color: var(--muted); }
.rating .link-arrow { margin-top: 8px; color: var(--cream); justify-self: start; }
.rating .link-arrow:hover { color: var(--lime); }

.reviews__list { columns: 3 300px; column-gap: 20px; }
.review { break-inside: avoid; margin-bottom: 20px; }
.review figure {
  display: grid; gap: 18px; padding: 26px; border-radius: 24px;
  background: var(--ink); color: var(--cream);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.review figure:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgb(14 15 11 / 0.25); }
.review__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review__stars { display: flex; gap: 2px; color: var(--lime); }
.review__stars .ico { width: 16px; height: 16px; }
.review__orig { font-size: 0.68rem; letter-spacing: 0.04em; color: var(--muted); }
.review__text { font-size: 0.98rem; font-weight: 300; line-height: 1.65; }
.review__who { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.review__who strong { display: block; font-size: 0.9rem; font-weight: 600; }
.review__who strong + span { font-size: 0.75rem; color: var(--muted); }
.review__avatar {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--lime); color: var(--ink); font-size: 0.8rem; font-weight: 700;
}

/* ---------- 10. On som ---------- */
.visit { background: var(--bg); }
.visit__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.visit__info .glow__inner { padding: clamp(24px, 3vw, 38px); gap: 30px; }
.facts { display: grid; gap: 20px; }
.fact { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; }
.fact__ico { grid-row: span 2; width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: rgb(162 227 39 / 0.12); color: var(--lime); }
.fact__k { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.fact__v { margin-top: 2px; }
.fact__v a { text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.fact__v a:hover { color: var(--lime); }

.hours__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.hours__title { display: inline-flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 600; }
.hours__title .ico { color: var(--lime); }
.hours__now {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; background: rgb(244 243 236 / 0.08); color: var(--muted);
}
.hours__now::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hours__now.is-open { background: rgb(162 227 39 / 0.14); color: var(--lime); }
.hours__now.is-open::before { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.hours__table th,
.hours__table td { padding: 9px 12px; border-bottom: 1px solid var(--line); font-weight: 400; text-align: left; font-variant-numeric: tabular-nums; }
.hours__table td { text-align: right; color: var(--muted); }
.hours__table tr:last-child th,
.hours__table tr:last-child td { border-bottom: 0; }
.hours__table tr.is-today th,
.hours__table tr.is-today td { color: var(--lime); font-weight: 600; background: rgb(162 227 39 / 0.07); }
.hours__table tr.is-today th { border-radius: 10px 0 0 10px; }
.hours__table tr.is-today td { border-radius: 0 10px 10px 0; }
.visit__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

.visit__media { display: grid; grid-template-rows: minmax(300px, 1fr) auto; gap: 20px; }
.map {
  position: relative; min-height: 300px; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); background: #13150f;
}
.map__link { position: absolute; inset: 0; display: block; }
.map__link picture { display: block; height: 100%; }
/* El local está en el centro del dibujo: se recorta por los lados y siempre queda a la vista */
.map__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transition: transform 1.2s var(--ease-out); }
.map__link:hover .map__img { transform: scale(1.04); }
.map__open {
  position: absolute; left: 14px; top: 14px;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgb(14 15 11 / 0.82); border: 1px solid rgb(162 227 39 / 0.4); color: var(--text);
  font-size: 0.78rem; font-weight: 600;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color 0.25s, color 0.25s;
}
.map__open .ico { width: 15px; height: 15px; color: var(--lime); }
.map__link:hover .map__open { background: var(--lime); color: var(--ink); }
.map__link:hover .map__open .ico { color: var(--ink); }
.map__credit {
  position: absolute; right: 10px; bottom: 8px; padding: 2px 8px; border-radius: 6px;
  background: rgb(14 15 11 / 0.75); font-size: 0.66rem; color: var(--muted);
}
.map__credit a { color: inherit; }
.visit__photo { overflow: hidden; border-radius: var(--radius); }
.visit__photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 45%; }

@media (max-width: 900px) {
  .visit__grid { grid-template-columns: 1fr; }
  .visit__media { grid-template-rows: auto auto; }
  .map { min-height: 0; aspect-ratio: 16 / 10; }
}
/* Móvil: mapa vertical (mapa-movil.svg), con el mismo formato que el dibujo para no recortarlo */
@media (max-width: 700px) {
  .map { aspect-ratio: 4 / 5; }
}

/* ---------- 11. Peu ---------- */
.foot { background: #0a0b08; padding-top: clamp(64px, 8vw, 96px); font-size: 0.9rem; color: var(--muted); }
.foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 48px; }
.foot__logo { display: inline-block; color: var(--lime); }
.foot__word { width: min(240px, 70vw); height: auto; }
.foot__brand p { max-width: 30ch; margin-top: 16px; }
.foot__h { margin-bottom: 14px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text); }
.foot p + p { margin-top: 6px; }
.foot a { text-decoration: none; transition: color 0.2s; }
.foot a:hover { color: var(--lime); }
.foot__socials { display: grid; gap: 10px; }
.foot__social { display: inline-flex; align-items: center; gap: 10px; }
.foot__social .ico { width: 18px; height: 18px; }
.foot__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding-block: 24px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 0.8rem;
}
.foot__inline { display: flex; flex-wrap: wrap; gap: 6px 0; }
.foot__inline li + li::before { content: "·"; margin: 0 10px; opacity: 0.5; }

@media (max-width: 900px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .foot__grid { grid-template-columns: 1fr; }
  .foot__bottom { flex-direction: column; align-items: flex-start; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

.call-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45;
  display: none; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--lime); color: var(--ink);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.35);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.call-float .ico { width: 24px; height: 24px; }
@media (max-width: 900px) { .call-float { display: grid; } }
.call-float.is-hidden { opacity: 0; transform: scale(0.6); pointer-events: none; }

/* ---------- 12. Huellas (rastro con el scroll y con el cursor, huellas.js) ---------- */
.trail { position: absolute; inset: 0; z-index: 40; overflow: hidden; pointer-events: none; contain: strict; }
.trail__paw {
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  color: var(--lime); opacity: 0; will-change: transform, opacity;
}
.trail__paw--ink { color: var(--ink); }
.trail__paw--cursor { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.trail__paw svg { width: 100%; height: 100%; }

/* ---------- 13. Páginas interiores ---------- */
.legal { min-height: 70vh; padding: 150px 0 110px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; font-size: 0.82rem; color: var(--ink-muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.legal__title { margin-bottom: 28px; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.legal__body { font-weight: 300; }
.legal__body h2 { margin: 34px 0 10px; font-size: 1.2rem; font-weight: 600; }
.legal__body p + p,
.legal__body ul { margin-top: 12px; }
.legal__body ul { display: grid; gap: 6px; padding-left: 1.1em; list-style: disc; }
.legal-date { margin-top: 34px !important; font-size: 0.85rem; color: var(--ink-muted); }
mark.pending { background: #ffe08a; color: #6b4b00; padding: 1px 6px; border-radius: 4px; font-weight: 600; }

.notfound { display: grid; place-items: center; text-align: center; }
.notfound .container { display: grid; justify-items: center; gap: 16px; }
.notfound__dog { width: 120px; height: auto; color: var(--lime); }
.notfound .notfound__num { font-size: clamp(4rem, 14vw, 8rem); font-weight: 700; line-height: 1; letter-spacing: -0.06em; color: var(--lime); }
.notfound .legal__title { margin-bottom: 0; }
.notfound p { color: var(--muted); }
.notfound__alt a { color: var(--text); }

/* ---------- 14. Animaciones de entrada y movimiento reducido ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(20px); filter: blur(4px); } }
.rise { animation: rise 0.7s var(--ease-out) both; }
.r1 { animation-delay: 0.1s; }
.r2 { animation-delay: 0.2s; }
.r3 { animation-delay: 0.4s; }
.r4 { animation-delay: 0.55s; }
.r5 { animation-delay: 0.7s; }
.r6 { animation-delay: 0.85s; }

/* Solo se ocultan si hay JavaScript: sin él, todo se ve desde el principio */
@media (scripting: enabled) {
  [data-reveal] { opacity: 0; transform: translateY(26px); filter: blur(4px); }
  [data-reveal].is-in {
    opacity: 1; transform: none; filter: none;
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  [data-reveal] { transform: none !important; filter: none !important; }
}
