/* MAPA DE LA PÁGINA (en este orden):
   portada (#inicio) → efecto WHY HIROSHI? con cartas 3D (#entrar) → Hiroshi (#hiroshi) → Estilos + galería (#trabajos)
   → proceso (#proceso) → precios (#precios) → "Sé lo que te frena" (#dudas) → preguntas (#faq) → cuidados (#cuidados) → contacto (#contacto)
   Scripts al final: 1) galería y animaciones GSAP  2) efecto del logo  3) pétalos  4) cartas 3D WebGL  5) menú ☰.
   Tipografías: Big Shoulders Display (títulos), Shippori Mincho B1 (japonés y serif), Yuji Boku (pincel); el resto, letra del sistema.
   Cómo editar textos, fotos y publicar: ver MANTENIMIENTO.md */
:root {
  --bg: #0b0b0d;
  --surface: #151519;
  --raise: #1d1d23;
  --ink: #f2f0ec;
  --muted: #94919b;
  --line: #2a2a31;
  --red: #e1252f;
  --red-deep: #7a0f16;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --serif: "Shippori Mincho B1", Georgia, "Times New Roman", serif;
  --jp: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html { overflow-x: hidden; overflow-x: clip; }
/* Sin scroll-behavior: smooth en CSS: rompe los cálculos de ScrollTrigger (las animaciones llegaban tarde en celular). Los enlaces internos se deslizan con JS. */
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; overflow-x: hidden; overflow-x: clip; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--red); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; font: 700 15px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; white-space: nowrap; }
.btn:hover { background: #f03842; transform: translateY(-1px); }

.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow b { color: var(--red); font-weight: 500; }


/* Navegación */
nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgb(11 11 13 / .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.logo { font-family: var(--display); font-weight: 900; font-size: 24px; letter-spacing: .02em; text-decoration: none; }
.logo-name span { color: var(--red); }
nav ul { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
nav ul a { text-decoration: none; }
nav ul a:hover { color: var(--ink); }

/* Pétalos rojos que caen sobre la página, desde la portada hasta el final del efecto del logo */
.petals { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 15; pointer-events: none; transition: opacity .6s ease; }
.petals.off { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .petals { display: none; } }
/* Portada */
/* Portada "templo": Agyō y Ungyō (guardianes Niō) a los lados, templo y sol rojo al centro, el nombre encima.
   Imagen de referencia de Takeshi sin sus textos. */
.hero { position: relative; overflow: hidden; min-height: calc(100vh - 62px); min-height: calc(100svh - 62px); display: grid; align-items: center; background: #090809; }
.hero-media { display: block; }
/* Capas 3D: fondo atrás y estatuas delante; se mueven a distinta velocidad con el mouse y el scroll */
.hero-statues img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-statues { position: absolute; inset: 0; will-change: transform; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(ellipse 30% 34% at 50% 42%, rgb(9 8 9 / .32), transparent 70%),
  linear-gradient(0deg, var(--bg) 0%, transparent 22%), linear-gradient(180deg, rgb(9 8 9 / .55) 0%, transparent 16%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-block: 0 clamp(120px, 24vh, 260px); display: grid; justify-items: center; }
.hero-copy { display: grid; justify-items: center; text-align: center; width: min(720px, 100%); }
.hero-rule { display: flex; align-items: center; gap: 18px; width: 100%; font: 500 clamp(12px, 1.2vw, 16px) var(--serif); letter-spacing: .5em; text-transform: uppercase; color: #ece6da; text-shadow: 0 2px 10px rgb(0 0 0 / .8); }
.hero-rule span { margin-right: -.5em; white-space: nowrap; }
.hero-brand { font: 900 clamp(17px, 1.7vw, 24px) var(--display); letter-spacing: .32em; text-transform: uppercase; }
.hero-brand span { margin-right: -.32em; }
.hero-brand b { color: #ff5a63; font-weight: 900; }
.hero-motto { font: 400 clamp(26px, 2.6vw, 40px) "Yuji Boku", var(--jp); letter-spacing: .4em; color: #fff; text-shadow: 0 2px 6px rgb(0 0 0 / .9), 0 0 22px rgb(0 0 0 / .8); }
.hero-motto span { margin-right: -.4em; }
.hero h1.h1-brand { font-size: clamp(80px, 9.6vw, 150px); }
.hero h1 .h1-red { color: var(--red); } /* mismo rojo de la marca que el logo (antes #ff4a54, se veía más claro/rosado) */
.hero-brand { text-shadow: 0 2px 4px rgb(0 0 0 / .9), 0 0 18px rgb(0 0 0 / .8); }
.hero-rule::before, .hero-rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgb(236 230 218 / .7)); }
.hero-rule::after { background: linear-gradient(270deg, transparent, rgb(236 230 218 / .7)); }
.hero h1 { margin: 14px 0 18px; display: grid; justify-items: center; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(80px, 11vw, 170px); line-height: .82; letter-spacing: .01em; color: #f4f1ec; text-shadow: 0 4px 30px rgb(0 0 0 / .55), 0 1px 2px rgb(0 0 0 / .6); }
.hero h1 .h1-name { display: block; white-space: nowrap; }
/* 刺青 (irezumi, tatuaje japonés) con letra de pincel */
.hero h1.h1-kanji { font-family: "Yuji Boku", var(--jp); font-weight: 400; text-transform: none; font-size: clamp(64px, 8.4vw, 132px); line-height: 1.08; letter-spacing: .04em; margin: 18px 0 14px; gap: 0; color: #f6f2ea;
  text-shadow: 0 0 1px rgb(255 255 255 / .4), 0 6px 34px rgb(0 0 0 / .75), 0 2px 3px rgb(0 0 0 / .7); }
.hero h1.h1-kanji .h1-name { font-size: 1em; line-height: 1.02; letter-spacing: .1em; margin-right: -.1em; }
.hero h1 .ch { display: inline-block; }
.hero .tagline { display: grid; justify-items: center; gap: 12px; font: 600 clamp(14px, 1.45vw, 20px) var(--serif); letter-spacing: .38em; margin-right: -.38em; text-transform: uppercase; color: #f2ede4; text-shadow: 0 2px 10px rgb(0 0 0 / .85); }
.hero .tagline { gap: 8px; }
.hero .tagline .motto { font: 400 clamp(30px, 3.3vw, 50px) "Yuji Boku", var(--jp); letter-spacing: .3em; margin-right: -.3em; text-transform: none; color: #fff; text-shadow: 0 3px 16px rgb(0 0 0 / .9); }
.hero .tagline .motto-es { font-size: .9em; letter-spacing: .34em; opacity: .85; }
.hero .tagline svg { width: clamp(150px, 16vw, 230px); height: auto; color: var(--red); margin-left: -.38em; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; text-decoration: none; font: 600 11px var(--serif); letter-spacing: .32em; text-transform: uppercase; color: #ddd6ca; }
.scroll-cue span { margin-right: -.32em; }
.scroll-cue i { width: 20px; height: 32px; border: 1.5px solid #ddd6ca; border-radius: 11px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 2px; height: 6px; margin-left: -1px; border-radius: 2px; background: #ddd6ca; animation: cue 1.8s ease-in-out infinite; }
.scroll-cue svg { width: 14px; height: 8px; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(9px); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue i::after { animation: none; } }
.social { position: absolute; z-index: 2; right: max(24px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); display: grid; justify-items: center; gap: 20px; }
.social::before { content: ""; width: 1px; height: 60px; background: rgb(236 230 218 / .5); }
.social a { color: #eee8dd; display: grid; padding: 10px; margin: -10px; } /* área táctil de 42 px sin cambiar cómo se ve */
.social a:hover { color: var(--red); }
.social svg { width: 22px; height: 22px; }
.seal { position: absolute; z-index: 2; right: max(24px, env(safe-area-inset-right, 0px)); bottom: 28px; display: grid; gap: 0; padding: 6px 7px; border: 2px solid var(--red); border-radius: 4px; color: var(--red); font: 800 22px/1.05 var(--jp); background: rgb(225 37 47 / .06); }
/* Menú estilo templo: mayúsculas espaciadas y reserva con borde rojo */
nav ul { font: 500 12px var(--serif); letter-spacing: .2em; text-transform: uppercase; }
nav ul a { display: inline-block; padding-block: 6px; border-bottom: 1px solid transparent; transition: color .15s ease, border-color .15s ease; }
nav ul a:hover, nav ul a[aria-current] { color: var(--ink); border-color: var(--red); }
nav .btn.book { background: transparent; border: 1px solid var(--red); border-radius: 999px; color: var(--ink); font: 600 12px var(--serif); letter-spacing: .16em; text-transform: uppercase; padding: 11px 18px; }
nav .btn.book:hover { background: rgb(225 37 47 / .12); }
nav .btn.book svg { width: 16px; height: 16px; }
.logo { display: inline-grid; grid-template-columns: auto; align-items: center; row-gap: 4px; }
.logo .logo-sun { grid-row: 1 / span 2; width: 30px; height: 30px; }
.logo .logo-sub { white-space: nowrap; font: 500 9px var(--serif); letter-spacing: .42em; color: var(--muted); text-transform: uppercase; line-height: 1; }
.logo .logo-name { line-height: 1; }
@media (max-width: 1180px) and (min-width: 901px) { nav ul { gap: 16px; letter-spacing: .12em; } nav .wrap { gap: 18px; } }
@media (max-width: 1000px) { nav ul { display: none; } }
@media (max-width: 700px) {
  .hero-bg, .hero-statues img { object-position: 50% 100%; }
  .hero .wrap { padding-block: 0 26vh; align-self: start; padding-top: 9vh; }
  .hero h1 { font-size: clamp(56px, 22vw, 110px); }
  .hero h1.h1-kanji { font-size: clamp(46px, 15.5vw, 76px); }
  .hero h1.h1-brand { font-size: clamp(64px, 22vw, 108px); }
  .hero-motto { font-size: 24px; letter-spacing: .3em; } .hero-motto span { margin-right: -.3em; }
  nav .btn.book { padding: 10px 14px; letter-spacing: .1em; }
  nav .btn.book svg { display: none; }
  .logo .logo-sub { letter-spacing: .3em; }
  .hero-rule { letter-spacing: .34em; } .hero-rule span { margin-right: -.34em; }
  .hero .tagline { letter-spacing: .24em; margin-right: -.24em; font-size: 13px; }
  .hero .tagline .motto { font-size: 30px; letter-spacing: .24em; margin-right: -.24em; }
  .hero .tagline .motto-es { font-size: 12px; }
  .social { top: auto; bottom: 30px; transform: none; left: max(18px, env(safe-area-inset-left, 0px)); right: auto; grid-auto-flow: column; gap: 18px; }
  .social::before { display: none; }
  .seal { display: none; }
  .scroll-cue { bottom: 22px; }
}
/* Portada: león guardián de piedra con sol rojo; textos en japonés con su traducción al lado */
.hero-media { position: absolute; inset: -4%; }
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Neblina de la entrada: manchas grises difusas que se abren hacia los lados y se desvanecen (solo con animación) */
.hero-mist { position: absolute; inset: -10%; z-index: 1; pointer-events: none; visibility: hidden; }
.hero-mist i { position: absolute; width: 70%; height: 70%; border-radius: 50%; background: radial-gradient(closest-side, rgb(205 200 194 / .55), rgb(150 146 142 / .22) 55%, transparent); filter: blur(30px); }
.hero-mist i:nth-child(1) { left: 0; top: 5%; }
.hero-mist i:nth-child(2) { right: 0; top: 0; }
.hero-mist i:nth-child(3) { left: 10%; bottom: 0; }
.hero-mist i:nth-child(4) { right: 5%; bottom: 8%; }
.btn.wa svg { width: 18px; height: 18px; flex: none; }
.kanji-row { display: flex; align-items: center; gap: 18px; }
.quote-kanji .kanji { white-space: nowrap; }
.kanji { font-family: var(--jp); font-weight: 800; font-size: clamp(88px, 12vw, 150px); line-height: 1; color: #e7e0d2; letter-spacing: .02em; display: inline-flex; }
.kanji span { display: inline-block; }
.gloss { display: grid; gap: 2px; text-align: left; border-left: 1px solid rgb(231 224 210 / .35); padding-left: 14px; }
.gloss i { font-family: var(--serif); font-style: italic; font-size: 17px; color: #b9b1a4; }
.gloss b { font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: .3em; text-transform: uppercase; color: #ded8cc; }
.btn.line.wa { background: var(--red); border-color: var(--red); color: #fff; }
.btn.line.wa:hover { background: #f03842; }
.btn.outline { background: transparent; border: 1px solid #cfc7b8; color: var(--ink); }
.btn.outline:hover { background: rgb(242 237 228 / .08); }
nav .btn.wa { padding: 10px 18px; }
.btn.line { background: transparent; border: 1px solid #cfc7b8; color: #f2ede4; border-radius: 2px; font: 600 12px var(--serif); letter-spacing: .3em; text-transform: uppercase; padding: 14px 24px; }
.btn.line:hover { background: rgb(242 237 228 / .08); transform: none; }
.more-link { margin: 28px 0 0; text-align: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Secciones */
section { border-top: 1px solid var(--line); }
section > .wrap { padding-block: 72px; display: grid; gap: 36px; }
.head { display: grid; gap: 10px; max-width: 720px; }
.head h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 7vw, 72px); line-height: .92; }
.head p { color: var(--muted); font-size: 17px; max-width: 60ch; }

/* 1. Dudas */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 26px; display: grid; gap: 14px; align-content: start; }
.pain .n { font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 1; color: #75727e; }
.pain q { font-size: 20px; font-weight: 700; line-height: 1.35; quotes: "«" "»"; }
.pain p { color: var(--muted); font-size: 15px; }

/* 2. Cifras: franja distinta al resto, sin título gigante */
.stats-band { background: var(--surface); }
.stats-band > .wrap { padding-block: 56px 64px; gap: 28px; }
.stats-band h2.eyebrow { font-weight: 400; }
.stats-band .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.stats-band .stat { border-top: 0; border-left: 1px solid #34343c; padding: 4px 28px 0; }
.stats-band .stat:first-child { border-left: 2px solid var(--red); }
.stats-band .stat .val { font-size: clamp(64px, 8vw, 112px); }
.stats-band .stat .val small { font-size: .34em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.stat { border-top: 1px solid #4a4852; padding-top: 18px; display: grid; gap: 6px; }
.stat .val { font-family: var(--display); font-weight: 900; font-size: clamp(60px, 6vw, 84px); line-height: .9; font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.stat .val small { font-size: .42em; color: var(--muted); }
.stat p { color: var(--muted); font-size: 15px; max-width: 30ch; }

/* 3. Estilos */
.styles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.style { margin: 0; position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--raise); border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgb(0 0 0 / .9); }
.style img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.style:hover img { transform: scale(1.04); }
.style::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgb(0 0 0 / .88)); pointer-events: none; }
.style figcaption { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 14px; display: grid; gap: 4px; }
.style b { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 22px; line-height: 1; color: #fff; }
.style small { font-size: 12px; line-height: 1.35; color: #ddd; }
@media (max-width: 960px) { .styles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .styles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .style figcaption { padding: 12px; } .style b { font-size: 20px; } .style small { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .style img { transition: none; } }

/* Galería */
#trabajos { padding-bottom: 48px; }
#trabajos > .wrap { padding-bottom: 8px; }
/* Galería en cuadrícula: fotos del mismo tamaño (4:5); al tocar una se abre en grande */
.gal-stage { display: grid; grid-template-columns: minmax(0, 1fr); }
.gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
@media (min-width: 700px) { .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1100px) { .gal { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.gal figure { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--raise); cursor: zoom-in; -webkit-tap-highlight-color: transparent; outline: none; }
.gal img, .gal video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .5s ease; filter: grayscale(.15) brightness(.92); }
.gal img[hidden], .lb [hidden] { display: none; }
/* Con "Todos", la primera foto va destacada en grande (2 × 2): con 13 fotos las filas quedan completas */
.gal { grid-auto-flow: dense; }
.gal:not(.filtered) figure:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gal:not(.filtered) figure:first-child figcaption { font-size: 18px; padding: 40px 18px 16px; }
@media (max-width: 699px) { .gal figcaption { flex-direction: column; justify-content: flex-end; gap: 2px; padding: 24px 10px 9px; font-size: 13px; line-height: 1.25; } .gal figcaption span { align-self: flex-start; font-size: 10px; } }
.gal figure::before { content: ""; position: absolute; inset: 0; z-index: 1; border: 1px solid transparent; border-radius: inherit; transition: border-color .3s ease; pointer-events: none; }
.gal figure:hover img, .gal figure:hover video, .gal figure:focus-visible img { transform: scale(1.05); filter: none; }
.gal figure:hover::before, .gal figure:focus-visible::before { border-color: rgb(225 37 47 / .85); }
.gal figure { transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.gal .vid-tag { position: absolute; z-index: 2; top: 10px; right: 10px; padding: 3px 8px; border-radius: 999px; background: rgb(11 11 13 / .7); font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #fff; }
/* Foto ampliada */
.lb { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: max(64px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)); background: rgb(6 6 8 / .97); opacity: 0; transition: opacity .35s ease; touch-action: none; }
.lb[hidden] { display: none; }
.lb.open { opacity: 1; }
.lb figure { margin: 0; display: grid; justify-items: center; gap: 14px; min-width: 0; }
.lb img, .lb video { display: block; max-width: 100%; max-height: calc(100svh - 190px); border-radius: 10px; box-shadow: 0 40px 90px -30px #000; transform-origin: 50% 50%; will-change: transform; }
.lb figcaption { display: grid; justify-items: center; gap: 4px; text-align: center; }
.lb figcaption b { font: 900 clamp(26px, 6vw, 40px)/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.lb figcaption span { font: 600 12px var(--serif); letter-spacing: .3em; text-transform: uppercase; color: var(--red); }
.lb button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgb(20 20 24 / .8); color: var(--ink); font: 18px/1 var(--body); cursor: pointer; }
.lb button:hover { border-color: var(--ink); }
.lb .lb-x { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); }
.lb .lb-n { position: absolute; top: max(26px, calc(env(safe-area-inset-top, 0px) + 12px)); left: 20px; font: 400 12px var(--mono); letter-spacing: .1em; color: var(--muted); }
@media (max-width: 600px) { .lb { grid-template-columns: minmax(0, 1fr); } .lb .lb-prev, .lb .lb-next { position: absolute; bottom: max(20px, env(safe-area-inset-bottom, 0px)); } .lb .lb-prev { left: calc(50% - 60px); } .lb .lb-next { right: calc(50% - 60px); } .lb img { max-height: calc(100svh - 230px); } }

/* Celular: la galería muestra 5 fotos (la destacada + 4) y el resto con "Ver todos" */
.gal-more { justify-self: center; margin: 18px auto 0; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 14px var(--body); cursor: pointer; }
.gal-more b { color: #ff5a62; font-weight: 600; }
.gal-more:hover { border-color: var(--ink); }
@media (max-width: 699px) { .gal.collapsed:not(.filtered) figure:nth-child(n+6) { display: none; } }
/* Formulario "Cotiza tu tatuaje": arma el mensaje y abre WhatsApp (no guarda datos) */
.cotiza { margin-top: clamp(40px, 6vw, 64px); padding: clamp(20px, 3.5vw, 36px); border: 1px solid var(--line); border-radius: 10px; background: rgb(21 21 25 / .82); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.cotiza h3 { grid-column: 1 / -1; margin: 0; font: 900 clamp(30px, 4vw, 44px)/1 var(--display); text-transform: uppercase; }
.cotiza h3 + p { grid-column: 1 / -1; margin: -8px 0 0; color: var(--muted); }
.cotiza .full { grid-column: 1 / -1; }
.cotiza label, .cotiza legend { display: block; margin-bottom: 8px; font: 600 12px var(--serif); letter-spacing: .2em; text-transform: uppercase; color: #cfcbd4; }
.cotiza label small { letter-spacing: .05em; text-transform: none; color: var(--muted); font-family: var(--body); font-weight: 400; }
.cotiza textarea, .cotiza select, .cotiza input[type=text] { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: #0f0f12; color: var(--ink); font: 16px/1.4 var(--body); }
.cotiza textarea { min-height: 96px; resize: vertical; }
.cotiza textarea:focus, .cotiza select:focus, .cotiza input:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.cotiza fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cotiza .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cotiza .chips label { margin: 0; letter-spacing: 0; text-transform: none; font: 500 14px var(--body); color: var(--ink); }
.cotiza .chips input { position: absolute; opacity: 0; pointer-events: none; }
.cotiza .chips span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #0f0f12; cursor: pointer; }
.cotiza .chips input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.cotiza .chips input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.cotiza .send { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cotiza .send p { margin: 0; font-size: 13px; color: var(--muted); }
.cotiza .err { color: #ff8a90; font-size: 14px; }
@media (max-width: 700px) { .cotiza { grid-template-columns: 1fr; } }
#trabajos > .gal-filter { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 0 4px; }
#trabajos > .gal-line { display: block; padding-block: 0; margin: 14px auto 0; font: 600 12px var(--serif); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.gal-line b { color: #ff5a62; font-weight: 600; } /* rojo más claro: el rojo de marca no alcanza el contraste mínimo en letra pequeña */
.gal-filter button { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 9px 16px; font: 600 14px var(--body); cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.gal-filter button:hover { color: var(--ink); border-color: #4a4852; }
.gal-filter button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.gal figure[hidden] { display: none; }
/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 22px; }
.faq details[open] { border-color: #4a4852; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; max-width: 65ch; }
.consent { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font: 400 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
#trabajos > .consent { display: flex; padding-block: 0; margin: 18px auto 34px; font-size: 11px; gap: 6px; color: #a9a6b0; }
#trabajos > .consent b { width: 13px; height: 13px; font-size: 8px; }
.consent b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 11px; }
.care-step { position: relative; transition: border-color .5s, box-shadow .5s, background .5s, transform .5s; }
/* Botones de Instagram con los colores de Instagram */
.btn.ig, .menu-foot a.ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); border-color: transparent; color: #fff; }
.btn.ig:hover { filter: brightness(1.08); background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.btn.ig svg { width: 18px; height: 18px; }
/* Fondos del mismo mundo de la portada (solo en 3 secciones, oscuros para que el texto se lea) */
section.has-bg { position: relative; isolation: isolate; overflow: hidden; }
.sec-bg { position: absolute; inset: -12% 0; z-index: -1; pointer-events: none; will-change: transform; }
.sec-bg picture { display: block; width: 100%; height: 100%; }
.sec-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.sec-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgb(11 11 13 / .55) 22%, rgb(11 11 13 / .35) 50%, rgb(11 11 13 / .55) 78%, var(--bg) 100%),
              radial-gradient(120% 80% at 50% 50%, transparent 40%, rgb(11 11 13 / .6)); }
#cuidados .sec-bg img { opacity: .38; }
#contacto .sec-bg img { opacity: .62; }
@media (min-width: 901px) {   /* fondos horizontales para compu */
  #proceso .sec-bg img { object-position: 50% 60% !important; }
  #dudas .sec-bg img { object-position: 50% 45% !important; }
  #cuidados .sec-bg img { object-position: 50% 40% !important; opacity: .45; }
  #contacto .sec-bg img { object-position: 70% 65% !important; }
}
/* Celular: la sección es mucho más alta que la imagen; en vez de agrandarla (zoom), se muestra a su tamaño real arriba y se funde a negro */
@media (max-width: 900px) {
  .sec-bg { inset: -40px 0 auto 0; }   /* el degradado de ::after ya la funde a negro; sin máscara (cuesta mucho en iPhone) */
  .sec-bg img { height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
  #proceso .sec-bg img, #cuidados .sec-bg img { opacity: .62; }
  #contacto .sec-bg img { opacity: .7; }
}
/* Rendimiento en celular: sin desenfoque detrás del menú (en iPhone se recalcula en cada cuadro al deslizar) */
@media (pointer: coarse) { nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgb(11 11 13 / .96); } }
/* Enumeraciones que se encienden en orden (igual que los pasos) */
.seq-live > * > * { transition: opacity .5s ease, color .5s ease, text-shadow .5s ease; }
.seq-live > :not(.lit) > * { opacity: .38; }
.seq-live .n { transition: color .5s ease, text-shadow .5s ease; }
.seq-live > .lit .n { color: var(--red); text-shadow: 0 0 18px rgb(225 37 47 / .55); }
.factors.seq-live li::after { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 12px rgb(225 37 47 / .6); }
.factors.seq-live li.lit::after { transform: scaleX(1); }
.factors.seq-live li.now h3 { text-shadow: 0 0 22px rgb(225 37 47 / .45); }
.pain { transition: border-color .5s, box-shadow .5s, background .5s, transform .5s; }
.seq-live > .pain.lit, .seq-live > .care-step.lit { border-color: rgb(225 37 47 / .55); }
.seq-live > .care-step.lit .when { color: var(--red); }
.seq-live > .pain.now, .seq-live > .care-step.now { border-color: var(--red); background: linear-gradient(160deg, rgb(225 37 47 / .18), var(--surface) 65%); box-shadow: 0 0 0 1px var(--red), 0 20px 50px -20px rgb(225 37 47 / .7); transform: translateY(-6px); }
.seq-live > .care-step.now h3, .seq-live > .pain.now q { color: #fff; }
#contacto h2 .ch { display: inline-block; }
.gal figcaption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; background: linear-gradient(transparent, rgb(0 0 0 / .8)); font-size: 14px; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; color: #fff; }
.gal figcaption span { font: 400 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #c9c5cd; align-self: end; }

/* 4. Proceso */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; padding: 22px 18px 0 0; display: grid; gap: 8px; align-content: start; position: relative; }
.steps li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.steps .time { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.steps h3 { font-size: 18px; }
.steps h3::before { content: counter(s) ". "; color: var(--muted); font-weight: 500; }
.steps p { color: var(--muted); font-size: 14px; }
/* Pasos que se encienden en orden */
.steps-live li > * { transition: color .5s ease, opacity .5s ease, text-shadow .5s ease; }
.steps-live li::before { transition: background .4s ease, box-shadow .5s ease, transform .4s cubic-bezier(.3,1.6,.5,1); }
.steps-live li:not(.lit) > * { opacity: .38; }
.steps-live li.lit::before { background: var(--red); box-shadow: 0 0 0 4px rgb(225 37 47 / .22), 0 0 18px 4px rgb(225 37 47 / .65); transform: scale(1.35); }
.steps-live li.lit .time { color: var(--red); }
.steps-live li.lit h3 { text-shadow: 0 0 22px rgb(225 37 47 / .45); }
.steps-live li.lit h3::before { color: var(--red); }

/* Precios desde */
.quote { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.quote-side { display: grid; gap: 28px; justify-items: start; }
.factors { list-style: none; margin: 0; padding: 0; display: grid; }
.factors li { display: grid; grid-template-columns: 72px 1fr; gap: 4px 18px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); position: relative; }
.factors li:last-child { border-bottom: 1px solid var(--line); }
.factors .n { grid-row: span 2; font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 1; color: #75727e; }
.factors h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 28px; line-height: 1; }
.factors p { color: var(--muted); font-size: 15px; }
.fine { color: var(--muted); font-size: 14px; max-width: 70ch; }


/* Hiroshi: empezó en Japón */
.origin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.origin-photo { margin: 0; border-radius: 10px; overflow: hidden; background: var(--raise); box-shadow: 0 30px 60px -24px rgb(0 0 0 / .9); position: relative; }
.origin-photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgb(225 37 47 / .35); border-radius: inherit; pointer-events: none; }
.origin-photo img { display: block; width: 100%; height: auto; }
.origin-text .human { color: var(--ink); font-weight: 600; }
.origin-text { display: grid; gap: 24px; }
/* Hiroshi: todo en una pantalla */
#hiroshi > .wrap { padding-block: 40px; }
#hiroshi .origin { align-items: center; gap: 48px; }
#hiroshi .origin-photo { max-height: calc(100svh - 140px); }
#hiroshi .origin-photo img { height: 100%; object-fit: cover; object-position: 52% 50%; }
#hiroshi .origin-text { gap: 18px; align-content: center; }
#hiroshi .quote-kanji .kanji { font-size: clamp(56px, 5.4vw, 88px); }
#hiroshi .head h2 { font-size: clamp(48px, 5.2vw, 84px); }
#hiroshi .head p { font-size: 17px; }
@media (max-width: 900px) {
  #hiroshi > .wrap { padding-block: 24px 32px; }
  #hiroshi .origin { gap: 18px; }
  #hiroshi .origin-photo { width: 100%; height: clamp(170px, calc(100svh - 530px), 340px); max-height: none; }
  #hiroshi .origin-photo img { width: 100%; height: 100%; object-position: 54% 52%; }
  #hiroshi .origin-text { gap: 12px; }
  #hiroshi .quote-kanji { gap: 12px; }
  #hiroshi .quote-kanji .kanji { font-size: 42px; }
  #hiroshi .gloss i { font-size: 15px; } #hiroshi .gloss b { font-size: 13px; }
  #hiroshi .head { gap: 8px; }
  #hiroshi .head h2 { font-size: clamp(34px, 10.4vw, 52px); white-space: nowrap; }
  #hiroshi .head p { font-size: 14.5px; line-height: 1.48; }
  #hiroshi .origin-stats { padding-top: 12px; }
  #hiroshi .origin-stats .stat { gap: 4px; }
  #hiroshi .origin-stats .stat .val { font-size: 34px; }
}
.origin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #34343c; padding-top: 22px; }
.origin-stats .stat { border-top: 0; padding: 0 16px; border-left: 1px solid #34343c; gap: 8px; align-content: start; }
.origin-stats .stat:first-child { border-left: 2px solid var(--red); }
.origin-stats .stat .val { font-size: clamp(44px, 4.4vw, 68px); flex-direction: column; align-items: flex-start; gap: 2px; }
.origin-stats .stat .val small { font-size: 15px; font-family: var(--serif); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.origin-stats .stat .val small a { color: inherit; text-decoration: none; }
.origin-stats .stat .val small a:hover { color: var(--ink); }
/* Contador tipo odómetro: cada dígito es un rodillo que gira y frena */
.count.odo, .origin-stats .count { display: inline-flex; align-items: flex-start; height: 1em; overflow: hidden; line-height: 1; }
.origin-stats .count { overflow: visible; }
.count.odo { overflow: hidden; }
.odo .reel { display: inline-block; height: 1em; overflow: hidden; }
.odo .strip { display: flex; flex-direction: column; will-change: transform; }
.odo .strip span, .odo .fix { display: block; height: 1em; line-height: 1; text-align: center; }
.odo .strip { align-items: center; }
.origin-stats .stat .val { font-variant-numeric: normal; }
.odo .fix { display: inline-block; }
.origin-stats .stat .val { position: relative; }
.origin-stats .stat .val small { padding-top: 8px; margin-top: 4px; background: linear-gradient(var(--red), var(--red)) 0 0 / calc(var(--done, 0) * 32px) 2px no-repeat; line-height: 1.3; }
@media (max-width: 520px) { .origin-stats .stat { padding: 0 10px; } .origin-stats .stat .val { font-size: 40px; } .origin-stats .stat .val small { font-size: 11px; letter-spacing: .08em; } }
.origin-text .head p + p { margin-top: 6px; }

/* WhatsApp flotante (solo celular) */
.wa-float { position: fixed; z-index: 30; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); width: 58px; height: 58px; border-radius: 50%; background: var(--red); color: #fff; display: none; place-items: center; box-shadow: 0 10px 28px -8px rgb(0 0 0 / .8), 0 0 0 0 rgb(225 37 47 / .55); animation: waPing 2.6s ease-out infinite; }
.wa-float svg { width: 30px; height: 30px; }
@keyframes waPing { 0% { box-shadow: 0 10px 28px -8px rgb(0 0 0 / .8), 0 0 0 0 rgb(225 37 47 / .55); } 70%, 100% { box-shadow: 0 10px 28px -8px rgb(0 0 0 / .8), 0 0 0 14px rgb(225 37 47 / 0); } }
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }

/* Cuidados */
.care { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.care-step { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: grid; gap: 10px; align-content: start; }
.care-step .when { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.care-step h3 { font-size: 19px; }
.care-step ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }
.avoid { display: grid; grid-template-columns: auto 1fr; gap: 20px 32px; align-items: start; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 24px; }
.avoid h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 30px; line-height: 1; }
.avoid h3 small { display: block; font: 400 12px var(--mono); letter-spacing: .08em; color: var(--muted); margin-top: 6px; }
.avoid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.avoid li { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14px; background: var(--bg); }
.avoid li::before { content: "✕ "; color: var(--muted); font-weight: 700; }

/* Contacto */
.contact-end { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.contact-end .hero-actions { margin-top: 10px; }

.contact-lines { display: grid; gap: 10px; margin-top: 18px; font-size: 15px; }
.contact-lines div { display: flex; gap: 12px; }
.contact-lines dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); width: 84px; flex: none; padding-top: 3px; }
.contact-lines dd { margin: 0; min-width: 0; }

/* Movimiento (GSAP): la entrada y el scroll se animan desde el script; sin JS todo queda visible */
.steps { position: relative; }
.steps-fill { position: absolute; top: -1px; left: 0; height: 2px; width: 100%; background: var(--red); transform-origin: left center; transform: scaleX(0); }
.hero-media, .hero-bg, .hero-copy { will-change: transform; }
.band { overflow: hidden; border-top: 1px solid var(--line); padding-block: 22px; }
.band-track { display: flex; gap: 40px; width: max-content; padding-right: 40px; white-space: nowrap; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(56px, 10vw, 128px); line-height: 1; will-change: transform; }
.band-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--muted); }

footer .wrap { border-top: 1px solid var(--line); padding-block: 28px 36px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  nav ul { display: none; }
  nav .btn { margin-left: auto; }
  .pains, .stats { grid-template-columns: 1fr; }
  .wa-float { display: grid; }
  .care { grid-template-columns: 1fr 1fr; }
  .avoid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line); }
  .steps li { padding: 0 0 26px 22px; }
  .steps li::before { top: 6px; left: -5px; }
  .steps-fill { top: 0; left: -1px; width: 2px; height: 100%; transform-origin: center top; transform: scaleY(0); }
  .quote { grid-template-columns: 1fr; gap: 36px; }
  .origin { grid-template-columns: 1fr; gap: 36px; }
  .stats-band .stats { grid-template-columns: 1fr; gap: 28px; }
  .stats-band .stat { border-left-width: 1px; padding: 0 0 0 20px; }
  .contact-end { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .pain p, .stat p, .steps p, .factors p, .care-step ul, .fine, .contact-lines { font-size: 16px; }
}
/* Política de privacidad: ventana nativa <dialog> que se abre desde el pie. */
.foot-link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.foot-link:hover, .foot-link:focus-visible { color: var(--ink); }
.privacy { width: min(680px, calc(100% - 32px)); max-height: min(82vh, 820px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); }
.privacy::backdrop { background: rgba(5, 5, 7, .78); backdrop-filter: blur(4px); }
.privacy-inner { padding: 32px clamp(20px, 5vw, 40px) 36px; }
.privacy h2 { margin: 6px 0 4px; font-family: var(--display); font-weight: 900; font-size: clamp(32px, 5vw, 44px); line-height: 1; text-transform: uppercase; }
.privacy h3 { margin: 26px 0 6px; font-size: 16px; color: var(--ink); }
.privacy p, .privacy li { color: #c9c5cd; font-size: 15px; }
.privacy ul { padding-left: 20px; margin: 6px 0; }
.privacy a { color: var(--ink); }
.privacy .updated { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.privacy-close { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--raise); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.privacy-close:hover, .privacy-close:focus-visible { border-color: var(--red); }

/* Logo mask zoom: el sol del logo C crece hasta llenar la pantalla y deja ver cintas de fotos.
   Sin librerías: un solo bucle requestAnimationFrame mueve todo con transform/opacity. */
.lm-sec { position: relative; background: var(--bg); }
.lm-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); contain: layout paint; }
.lm-on .lm-stage { position: sticky; top: 0; }
.lm-on.lm-sec { height: 500vh; height: 500svh; }
@media (max-width: 767px) { .lm-on.lm-sec { height: 380vh; height: 380svh; } }
.lm-on.lm-gl-on.lm-sec { height: 540vh; height: 540svh; }
@media (max-width: 767px) { .lm-on.lm-gl-on.lm-sec { height: 430vh; height: 430svh; } }
.lm-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.lm-gl-on .lm-gl { display: block; }
.lm-gl-on .lm-inner { background: url("../img/fondos/puente-cel-blur.webp") 50% 50% / cover no-repeat, #0b0b0d; } /* fondo del puente detrás del cilindro */
@media (min-width: 901px) { .lm-gl-on .lm-inner { background-image: url("../img/fondos/puente-pc-blur.webp?v=2"); } } .lm-gl-on .lm-rows { display: none; } /* cartas 3D en lugar de las cintas */
.lm-circle { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%; overflow: hidden; background: var(--red); transform-origin: 50% 50%; will-change: transform; }
.lm-inner { position: absolute; transform-origin: 50% 50%; background: #0b0b0d; will-change: transform; } /* separaciones negras entre fotos */
.lm-rows { position: absolute; left: 50%; top: 50%; display: flex; flex-direction: column; justify-content: center; gap: 6px; transform: translate(-50%, -50%) rotate(-8deg); }
.lm-row { display: flex; gap: 6px; flex: none; will-change: transform; }
.lm-row img { display: block; flex: none; aspect-ratio: 4 / 5; height: 100%; width: auto; object-fit: cover; border-radius: 2px; background: #1a1a1f; }
.lm-tint { position: absolute; inset: 0; background: var(--red); will-change: opacity; }
.lm-sun { position: absolute; inset: 0; border-radius: 50%; background: var(--red) url(../img/sol-efecto.webp) center / cover no-repeat; pointer-events: none; will-change: opacity; } /* sol pintado como el de la portada */
.lm-sec:not(.lm-on) .lm-sun { display: none; }
.lm-logo { position: absolute; left: 0; top: 0; color: #fff; pointer-events: none; will-change: transform, opacity; }
.lm-logo svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lm-logo .lm-word { font-family: var(--display); font-weight: 900; font-size: 130px; }
.lm-logo .lm-jp { font-family: var(--jp); font-weight: 500; font-size: 34px; text-anchor: middle; }
.lm-panel { position: absolute; inset: 0; background: var(--bg); display: grid; place-content: center; text-align: center; gap: 14px; padding: 24px; transform: translate3d(0, 100%, 0); will-change: transform; }
.lm-panel .lm-k { font-family: var(--jp); font-size: clamp(28px, 4vw, 44px); color: var(--red); letter-spacing: .3em; line-height: 1; }
.lm-panel .lm-t { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(56px, 11vw, 150px); line-height: .9; letter-spacing: .01em; }
.lm-hint { position: absolute; left: 0; right: 0; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); text-align: center; font: 400 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); will-change: opacity; }
.lm-hint span { display: inline-block; color: var(--red); animation: lmHint 1.6s ease-in-out infinite; }
@keyframes lmHint { 50% { transform: translateY(5px); } }
.lm-sec:not(.lm-on) .lm-hint { display: none; }
@media (max-width: 900px) { .lm-hint { bottom: calc(118px + env(safe-area-inset-bottom, 0px)); } }
.lm-panel .lm-go { justify-self: center; margin-top: 10px; }
.lm-panel { background: linear-gradient(180deg, rgb(11 11 13/.55) 0%, rgb(11 11 13/.35) 40%, rgb(11 11 13/.75) 100%), url("../img/fondos/puente-cel.webp") 50% 50% / cover no-repeat, var(--bg); }
@media (min-width: 901px) { .lm-panel { background: linear-gradient(180deg, rgb(11 11 13/.6) 0%, rgb(11 11 13/.4) 45%, rgb(11 11 13/.8) 100%), url("../img/fondos/puente-pc.webp?v=2") 50% 50% / cover no-repeat, var(--bg); } }
.lm-panel > * { text-shadow: 0 2px 24px rgb(0 0 0/.7); }
.lm-panel .lm-jp { font-family: var(--jp); font-weight: 800; font-size: clamp(54px, 12vw, 150px); line-height: 1; letter-spacing: .08em; white-space: nowrap; text-transform: none; }
.lm-panel .lm-es { font-family: var(--serif); font-size: clamp(15px, 1.6vw, 20px); color: var(--red); letter-spacing: .32em; text-transform: uppercase; }
/* Sin JavaScript o con "reducir movimiento": todo quieto, el círculo ya cubre la pantalla */
.lm-sec:not(.lm-on) .lm-circle { width: 300vmax; height: 300vmax; margin: -150vmax 0 0 -150vmax; }
.lm-sec:not(.lm-on) .lm-inner { inset: 0; margin: auto; width: 100vw; height: 100svh; }
.lm-sec:not(.lm-on) .lm-rows { width: 180vmax; height: 120vmax; }
.lm-sec:not(.lm-on) .lm-row { height: calc((120vmax - 12px) / 3); }
.lm-sec:not(.lm-on) .lm-tint { opacity: 0; }
.lm-sec:not(.lm-on) .lm-logo { left: 50%; top: 50%; width: min(480px, 84vw); aspect-ratio: 480 / 320; transform: translate(-50%, -30%); }
.lm-sec:not(.lm-on) .lm-panel { display: none; }

/* Menú ☰ (celular y tablet): panel a pantalla completa con todas las secciones */
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; padding: 0; place-content: center; gap: 5px; position: relative; z-index: 41; }
.menu-btn span { display: block; width: 18px; height: 1.6px; background: var(--ink); margin: 0 auto; transition: transform .3s ease, opacity .2s ease; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }
.menu-open .menu-btn { border-color: var(--red); }
.menu { position: fixed; inset: 0; z-index: 40; background-color: #0b0b0d; display: grid; grid-template-rows: auto auto 1fr; align-content: stretch; gap: 22px; padding: 96px max(24px, env(safe-area-inset-left, 0px)) 28px; overflow: hidden; overscroll-behavior: contain; touch-action: none;
  clip-path: circle(0 at calc(100% - 46px) 40px); visibility: hidden; transition: clip-path .6s cubic-bezier(.7, 0, .2, 1), visibility 0s .6s; }
.menu-open .menu { clip-path: circle(150% at calc(100% - 46px) 40px); visibility: visible; transition: clip-path .7s cubic-bezier(.7, 0, .2, 1), visibility 0s; }
.menu-open { overflow: hidden; }
.menu-open nav { z-index: 45; background: transparent; border-color: transparent; backdrop-filter: none; }
.menu-sun { display: none; }
.menu { background-image: radial-gradient(circle at 100% 100%, rgb(225 37 47 / .38), rgb(122 15 22 / .3) 30%, transparent 46%); background-attachment: local; } /* sol de fondo sin desbordar a los lados */
.menu-k { position: absolute; right: 24px; bottom: max(30px, env(safe-area-inset-bottom, 0px)); display: grid; gap: 6px; font: 500 20px/1 var(--jp); color: var(--red); margin: 0; }
.menu-list { list-style: none; margin: 0; padding: 0; counter-reset: m; display: grid; gap: 2px; position: relative; }
.menu-list li { counter-increment: m; overflow: hidden; }
.menu-list a { display: flex; align-items: baseline; gap: 14px; text-decoration: none; font: 900 clamp(34px, min(12.5vw, calc((100svh - 300px) / 9.4)), 64px)/1.02 var(--display); text-transform: uppercase; color: var(--ink);
  transform: translateY(105%); transition: transform .5s cubic-bezier(.2, .8, .2, 1), color .15s ease; }
.menu-list a::before { content: counter(m, decimal-leading-zero); font: 600 11px var(--serif); letter-spacing: .2em; color: var(--red); transform: translateY(-.9em); }
.menu-list a:hover, .menu-list a:focus-visible { color: var(--red); }
/* Dedo sobre la lista: la luz roja sigue al dedo de forma continua (--l de 0 a 1 por título) */
.menu-touch .menu-list a { transition: none; color: color-mix(in srgb, var(--red) calc(var(--l, 0) * 100%), var(--ink)); text-shadow: 0 0 18px rgb(225 37 47 / calc(var(--l, 0) * .6)); }
.menu-list a { transition-property: transform, color, text-shadow; }
.menu-ready .menu-list li:nth-child(n) a { transition-delay: 0s; transition-duration: .5s, .12s, .12s; } /* ya abierto: el rojo responde al instante */
.menu-open .menu-list a { transform: none; }
.menu-open .menu-list li:nth-child(n) a { transition-delay: calc(.12s + var(--d, 0) * 1s); }
.menu-guide { position: relative; justify-self: start; font: 600 12px var(--serif); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--red); padding-bottom: 4px; }
.menu-foot { position: relative; align-self: end; display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: env(safe-area-inset-bottom, 0px); }
.menu-foot a { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 999px; font: 700 14px/1 var(--body); letter-spacing: .02em; text-decoration: none; color: var(--ink); border: 1px solid rgb(242 239 232 / .55); }
.menu-foot a svg { width: 18px; height: 18px; flex: none; }
.menu-foot a.wa { background: var(--red); border-color: var(--red); color: #fff; }
.menu-foot a:active { transform: scale(.97); }
@media (max-width: 1000px) { .menu-btn { display: grid; } }
@media (min-width: 1001px) { .menu { display: none; } }
@media (prefers-reduced-motion: reduce) { .menu, .menu-open .menu, .menu-list a { transition: none; } }

/* Títulos de sección con más jerarquía */
.head { max-width: 900px; gap: 14px; }
.head .eyebrow { display: flex; align-items: center; gap: 14px; font: 600 13px var(--serif); letter-spacing: .26em; color: var(--red); }
.head .eyebrow::before { content: ""; width: 40px; height: 2px; background: var(--red); flex: none; }
.head h2 { font-size: clamp(56px, 9vw, 132px); line-height: .9; letter-spacing: .005em; padding-top: .06em; }
.origin-text .head h2, .contact-end .head h2 { font-size: clamp(52px, 6.2vw, 96px); }
.head h2 + p { margin-top: 6px; font-size: clamp(17px, 1.6vw, 20px); color: #b9b5bf; }
@media (max-width: 600px) { .head h2 { font-size: clamp(52px, 16vw, 76px); } .head .eyebrow { font-size: 11px; letter-spacing: .2em; } .head .eyebrow::before { width: 26px; } }

/* Cambio de idioma ES / EN (index.html ↔ en.html) */
nav .lang { display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font: 600 12px var(--serif); letter-spacing: .2em; text-indent: .2em; text-decoration: none; transition: color .15s ease, border-color .15s ease; }
nav .lang:hover, nav .lang:focus-visible { color: var(--ink); border-color: var(--red); }
@media (max-width: 1000px) { nav .lang { margin-left: auto; } nav .lang + .menu-btn { margin-left: 0; } nav .wrap { gap: 12px; } }
