/* =========================================================================
   LAION — rediseño (cabecera, inicio, galería, visor y pie)
   Se carga después de styles.css. Todo lo nuevo usa clases cortas:
   lc = cabecera · lh = portada · lo/lg = obra y galería · lx = visor
   lb = biografía · lv = visión · lr = recorrido · lk = contacto · lp = pie
   Las animaciones solo corren si el visitante no pidió "reducir movimiento"
   (laion.js agrega la clase l-mov al <html>).
   ========================================================================= */

:root.sitio-laion {
  --rojo: #FF0000;
  --rojo-osc: #7A0000;
  --tx: #F2F0EB;
  --gris: #8C8880;
  --linea: rgba(242, 240, 235, .14);
  --f-disp: 'Oswald', 'Arial Narrow', sans-serif;
  --f-ancha: 'Michroma', 'Arial', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --suave: cubic-bezier(.2, .7, .1, 1);
  --seco: cubic-bezier(.7, 0, .2, 1);
  --lc-h: 64px;
  scroll-padding-top: calc(var(--lc-h) + 12px);
}
@media (min-width: 1100px) { :root.sitio-laion { --lc-h: 78px; } }
.sitio-laion body { background: #000; }
.sitio-laion ::selection { background: var(--rojo); color: #000; }

/* Grano de pintura muy sutil sobre toda la página */
.sitio-laion::after {
  content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Iconos de trazo */
.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico-estrella { width: .62em; height: .62em; flex: none; fill: currentColor; }

/* ---------- Cabecera ---------- */
.lc {
  position: fixed; inset: 0 0 auto; z-index: 60; color: var(--tx); font-family: var(--f-disp);
  background: rgba(0, 0, 0, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 0, 0, .45);
  transition: translate .5s var(--suave), background-color .35s ease, border-color .35s ease;
}
.lc--transparente { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.lc--oculta { translate: 0 -105%; }
main:has(> .l > .lh) { padding-top: 0; }
main { padding-top: var(--lc-h); }
.lc-in { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 40px); min-height: var(--lc-h); }
.lc-logo { display: flex; align-items: center; gap: 12px; color: var(--rojo); text-decoration: none; font-family: var(--f-ancha); font-size: 17px; letter-spacing: .22em; -webkit-text-stroke: .05em currentColor; position: relative; z-index: 2; }
.lc-logo img { width: 36px; height: 36px; border-radius: 50%; transition: rotate .8s var(--suave); }
.lc-logo:hover img { rotate: 360deg; }
.lc-nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 30px); margin-left: auto; }
.lc-link { position: relative; display: inline-flex; align-items: baseline; gap: 6px; color: var(--tx); text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-size: 15px; padding-block: 6px; }
.lc-num { font-family: var(--f-mono); font-size: 10px; letter-spacing: .04em; color: var(--rojo); }
.lc-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rojo); scale: 0 1; transform-origin: right; transition: scale .45s var(--suave); }
.lc-link:hover::after, .lc-link.activo::after { scale: 1 1; transform-origin: left; }
.lc-link.activo .lc-txt { color: var(--rojo); }
.lc-link--calc { align-items: center; padding: 7px 14px; border: 1px solid var(--linea); border-radius: 999px; transition: border-color .3s ease, color .3s ease; }
.lc-link--calc::after { display: none; }
.lc-link--calc .ico { font-size: 14px; transition: translate .3s var(--suave); }
.lc-link--calc:hover, .lc-link--calc[aria-current="page"] { border-color: var(--rojo); color: var(--rojo); }
.lc-link--calc:hover .ico { translate: 2px -2px; }
.lc-idioma { display: flex; gap: 6px; font-family: var(--f-mono); font-size: 12px; color: var(--gris); position: relative; z-index: 2; }
.lc-idioma a { color: var(--gris); text-decoration: none; letter-spacing: .08em; }
.lc-idioma a[aria-current="true"], .lc-idioma a:hover { color: var(--rojo); }
.lc-menu { display: none; }
/* Instagram: ícono en la cabecera, botón en contacto y enlace en el pie */
.lc-ig { position: relative; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--linea); border-radius: 50%; color: var(--tx); font-size: 18px; transition: color .3s ease, border-color .3s ease, background-color .3s ease, rotate .5s var(--suave); }
.lc-ig:hover { color: #000; background: var(--rojo); border-color: var(--rojo); rotate: -8deg; }
.lk-botones { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-ig { display: inline-flex; align-items: center; gap: 8px; color: var(--tx); text-decoration: none; text-transform: none; }
.lp-ig .ico { font-size: 16px; }
.lp-ig:hover { color: var(--rojo); }
@media (max-width: 599px) { .lk-botones { width: 100%; flex-direction: column; } .lk-botones .l-boton { width: 100%; justify-content: space-between; } .lc-ig { width: 34px; height: 34px; font-size: 16px; } .lc-in { gap: 12px; } }
.lc-progreso { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.lc-progreso i { display: block; height: 100%; background: var(--rojo); transform-origin: left; transform: scaleX(var(--p, 0)); box-shadow: 0 0 12px rgba(255, 0, 0, .7); }

@media (max-width: 1179px) {
  .lc-ig { margin-left: auto; }
  .lc-menu {
    display: inline-flex; align-items: center; gap: 10px; position: relative; z-index: 2; height: 40px; padding: 0 4px 0 14px;
    background: none; border: 1px solid var(--linea); border-radius: 999px; color: var(--tx); font: 500 13px/1 var(--f-disp); letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
  }
  .lc-menu-ico { position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--rojo); }
  .lc-menu-ico i { position: absolute; left: 9px; right: 9px; height: 1.5px; background: #000; transition: translate .4s var(--suave), rotate .4s var(--suave); }
  .lc-menu-ico i:first-child { top: 13px; }
  .lc-menu-ico i:last-child { top: 18px; }
  .menu-abierto .lc-menu-ico i:first-child { translate: 0 2.5px; rotate: 45deg; }
  .menu-abierto .lc-menu-ico i:last-child { translate: 0 -2.5px; rotate: -45deg; }
  .lc-nav {
    position: fixed; inset: 0; z-index: 1; margin: 0; padding: calc(var(--lc-h) + 24px) var(--gutter) 40px;
    flex-direction: column; align-items: stretch; justify-content: center; gap: 0; background: #000;
    clip-path: circle(0 at calc(100% - 40px) 32px); visibility: hidden;
    transition: clip-path .7s var(--seco), visibility 0s linear .7s;
  }
  .menu-abierto .lc { background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; translate: none; }
  .menu-abierto .lc-nav { clip-path: circle(150% at calc(100% - 40px) 32px); visibility: visible; transition: clip-path .8s var(--seco); }
  .menu-abierto { overflow: hidden; }
  .lc-link { font-size: clamp(38px, 11vw, 64px); font-weight: 700; letter-spacing: .01em; line-height: 1.05; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--linea); }
  .lc-link::after { display: none; }
  .lc-num { font-size: 12px; translate: 0 -1.6em; }
  .lc-link--calc { margin-top: 24px; align-self: flex-start; font-size: 18px; font-weight: 500; letter-spacing: .1em; padding: 12px 20px; border: 1px solid var(--rojo); color: var(--rojo); }
  .l-mov .lc-nav .lc-link { opacity: 0; translate: 0 30px; transition: opacity .5s ease, translate .6s var(--suave); }
  .l-mov.menu-abierto .lc-nav .lc-link { opacity: 1; translate: none; transition-delay: calc(.18s + var(--i, 0) * .06s); }
}

/* ---------- Telón de entrada (solo la primera visita de la sesión) ---------- */
.l-telon body::before, .l-telon body::after { content: ''; position: fixed; z-index: 200; pointer-events: none; }
.l-telon body::before { inset: 0; background: #000; border-bottom: 2px solid var(--rojo); animation: l-telon-sube .9s var(--seco) .75s both; }
.l-telon body::after {
  left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='731.8 70.7 352.3 352.3'%3E%3Cpath fill='%23FF0000' d='M1084.08,246.8c-158.73,9.62-166.53,17.42-176.15,176.15-9.62-158.73-17.42-166.53-176.15-176.15,158.73-9.62,166.53-17.42,176.15-176.15,9.62,158.73,17.42,166.53,176.15,176.15Z'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: l-telon-estrella .9s var(--suave) both, l-telon-fuera .35s ease .7s forwards;
}
@keyframes l-telon-sube { to { clip-path: inset(0 0 100% 0); } }
@keyframes l-telon-estrella { from { scale: 0; rotate: -180deg; } to { scale: 1; rotate: 0deg; } }
@keyframes l-telon-fuera { to { scale: 3; opacity: 0; } }
:root { --entrada: .1s; }
:root.l-telon { --entrada: 1.05s; }

/* ---------- Textos que aparecen por palabra ---------- */
.pw { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .14em .08em; margin-block: -.14em -.08em; }
.pw-in { display: inline-block; }
.l-mov [data-partir] .pw-in { translate: 0 110%; rotate: 0 0 1 6deg; transition: translate 1s var(--suave), rotate 1s var(--suave); transition-delay: calc(var(--i, 0) * 55ms + var(--extra, 0s)); }
.l-mov [data-partir].visto .pw-in { translate: none; rotate: none; }

/* Aparición genérica */
.l-mov [data-ap] { opacity: 0; translate: 0 34px; transition: opacity .9s ease, translate 1s var(--suave); transition-delay: var(--retraso, 0s); }
.l-mov [data-ap].visto { opacity: 1; translate: none; }

/* Etiqueta de sección: 01 —— OBRA */
.l-etiqueta { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gris); }
.l-etiqueta-num { color: var(--rojo); }
.l-etiqueta-linea { width: 56px; height: 1px; background: var(--rojo); transform-origin: left; }
.l-mov .l-etiqueta .l-etiqueta-linea { scale: 0 1; transition: scale 1s var(--suave) .25s; }
.l-mov .l-etiqueta.visto .l-etiqueta-linea { scale: 1 1; }

/* Título de sección grande */
.l-h2 { margin: 0; font-family: var(--f-disp); font-weight: 700; font-size: clamp(56px, 10vw, 168px); line-height: .86; letter-spacing: -.01em; text-transform: uppercase; color: var(--tx); }

/* ---------- Botones ---------- */
.l-boton {
  --tx-b: var(--tx); --fondo-b: transparent; --relleno: var(--rojo); --tx-hover: #000;
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 14px;
  min-height: 54px; padding: 0 10px 0 26px; border: 1px solid rgba(242, 240, 235, .45); border-radius: 999px;
  background: var(--fondo-b); color: var(--tx-b); text-decoration: none; font: 500 16px/1 var(--f-disp); letter-spacing: .12em; text-transform: uppercase;
  translate: var(--mx-b, 0) var(--my-b, 0); transition: color .4s ease, border-color .4s ease, translate .5s var(--suave);
}
.l-boton::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--relleno); border-radius: inherit; translate: 0 101%; transition: translate .5s var(--suave); }
.l-boton:hover, .l-boton:focus-visible { color: var(--tx-hover); border-color: var(--relleno); }
.l-boton:hover::before, .l-boton:focus-visible::before { translate: none; }
.l-boton-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid currentColor; font-size: 16px; overflow: hidden; }
.l-boton-ico .ico { transition: translate .45s var(--suave); }
.l-boton:hover .l-boton-ico .ico { animation: l-flecha .55s var(--suave); }
@keyframes l-flecha { 0% { translate: 0 0; } 45% { translate: 140% 0; opacity: 0; } 46% { translate: -140% 0; opacity: 0; } 100% { translate: 0 0; opacity: 1; } }
.l-boton[href^="#obra"]:hover .l-boton-ico .ico { animation-name: l-flecha-abajo; }
@keyframes l-flecha-abajo { 0% { translate: 0 0; } 45% { translate: 0 140%; opacity: 0; } 46% { translate: 0 -140%; opacity: 0; } 100% { translate: 0 0; opacity: 1; } }
.l-boton--rojo { --fondo-b: var(--rojo); --tx-b: #000; --relleno: var(--tx); border-color: var(--rojo); }
.l-boton--grande { min-height: 72px; padding-left: 34px; font-size: 20px; }
.l-boton--grande .l-boton-ico { width: 50px; height: 50px; font-size: 20px; }

/* ---------- Portada ---------- */
.lh { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; background: #000; --mx: 0; --my: 0; }
.lh-fondo {
  position: absolute; inset: -12% -20%; z-index: -3; display: flex; flex-direction: column; justify-content: center; gap: clamp(12px, 1.6vw, 24px);
  rotate: -7deg; translate: calc(var(--mx) * -28px) calc(var(--my) * -22px); opacity: 0; transition: opacity 1.8s ease;
}
.lh.cargado .lh-fondo { opacity: .6; }
.lh-cinta { display: flex; width: max-content; }
.l-mov .lh-cinta { animation: l-correr 90s linear infinite; }
.l-mov .lh-fila--inv .lh-cinta { animation-direction: reverse; animation-duration: 110s; }
.lh-fila--inv { translate: calc(var(--mx) * 26px) 0; }
@keyframes l-correr { to { transform: translateX(-50%); } }
.lh-foto { flex: none; width: clamp(240px, 27vw, 480px); aspect-ratio: 4 / 3; margin-right: clamp(12px, 1.6vw, 24px); overflow: hidden; border-radius: 6px; background: #0b0b0b; }
.lh-foto img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.15) contrast(1.05); }
.lh-velo { position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 0, 0, .55), rgba(0, 0, 0, .92) 70%, #000), linear-gradient(#000, transparent 22%, transparent 70%, #000); }
.lh-esquinas { position: absolute; inset: calc(var(--lc-h) + 14px) clamp(14px, 2.4vw, 32px) clamp(14px, 2.4vw, 32px); z-index: -1; pointer-events: none; }
.lh-esquinas i { position: absolute; width: 28px; height: 28px; border: 0 solid var(--rojo); }
.lh-esquinas i:nth-child(1) { top: 0; left: 0; border-width: 2px 0 0 2px; }
.lh-esquinas i:nth-child(2) { top: 0; right: 0; border-width: 2px 2px 0 0; }
.lh-esquinas i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.lh-esquinas i:nth-child(4) { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.lh-in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(16px, 2.2vw, 28px); padding-block: calc(var(--lc-h) + 56px) 120px; }
.lh-hud { position: absolute; top: calc(var(--lc-h) + 34px); left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; gap: 16px; }
.lh-hud .kicker { margin: 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--tx); }
.lh-hud .kicker::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--rojo); box-shadow: 0 0 10px var(--rojo); vertical-align: 1px; }
.l-mov .lh-hud .kicker::before { animation: l-latido 2.4s ease-in-out infinite; }
@keyframes l-latido { 50% { opacity: .25; } }
.lh-wordmark { margin: 0; width: min(100%, 1100px); line-height: 0; perspective: 900px; }
.lh-wordmark img { width: 100%; height: auto; filter: drop-shadow(0 0 48px rgba(255, 0, 0, .28)); transform: rotateX(calc(var(--my) * -7deg)) rotateY(calc(var(--mx) * 9deg)); transition: transform .9s var(--suave); }
.lh-bajada { margin: 0; font-family: var(--f-disp); font-weight: 300; font-size: clamp(20px, 2.6vw, 38px); letter-spacing: .08em; text-transform: uppercase; }
.lh-acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.lh-bajar { position: absolute; left: 50%; bottom: clamp(20px, 3vw, 36px); translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--gris); text-decoration: none; font-family: var(--f-mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }
.lh-bajar i { position: relative; width: 1px; height: 52px; overflow: hidden; background: var(--linea); }
.lh-bajar i::after { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--rojo); }
.l-mov .lh-bajar i::after { animation: l-gota 1.8s var(--seco) infinite; }
@keyframes l-gota { from { translate: 0 -100%; } to { translate: 0 260%; } }
.lh-bajar:hover { color: var(--tx); }

/* Entrada de la portada */
.l-mov .lh-wordmark { animation: l-revela 1.3s var(--seco) var(--entrada) both; }
@keyframes l-revela { from { clip-path: inset(0 100% 0 0); filter: blur(12px); } to { clip-path: inset(0 0 0 0); filter: blur(0); } }
.l-mov .lh-hud, .l-mov .lh-acciones, .l-mov .lh-bajar { animation: l-sube 1s var(--suave) both; }
.l-mov .lh-hud { animation-delay: calc(var(--entrada) + .5s); }
.l-mov .lh-acciones { animation-delay: calc(var(--entrada) + .95s); }
.l-mov .lh-bajar { animation-delay: calc(var(--entrada) + 1.3s); }
@keyframes l-sube { from { opacity: 0; translate: 0 26px; } }
.lh .lh-bajar { animation-name: l-sube-centro; }
@keyframes l-sube-centro { from { opacity: 0; translate: -50% 26px; } }
.l-mov .lh-esquinas i { animation: l-esquina 1s var(--suave) both; animation-delay: calc(var(--entrada) + .2s); }
@keyframes l-esquina { from { opacity: 0; scale: 2.4; } }
.lh-bajada { --extra: calc(var(--entrada) + .55s); }

@media (max-width: 699px) {
  .lh-hud { flex-direction: column; align-items: center; top: calc(var(--lc-h) + 22px); gap: 6px; }
  .lh-in { padding-block: calc(var(--lc-h) + 110px) 120px; }
  .lh-acciones { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .lh-acciones .l-boton { justify-content: space-between; }
  .lh-fondo { rotate: -10deg; }
}

/* ---------- Cinta con palabras ---------- */
.l-cinta { overflow: hidden; border-block: 1px solid rgba(255, 0, 0, .55); padding: clamp(14px, 1.8vw, 22px) 0; background: #000; }
.l-cinta-pista { display: flex; align-items: center; width: max-content; font-family: var(--f-disp); font-weight: 700; font-size: clamp(30px, 4.4vw, 68px); line-height: 1; text-transform: uppercase; letter-spacing: .01em; skew: calc(var(--sesgo, 0) * 1deg) 0; }
.l-cinta-pista span { padding-inline: .45em; white-space: nowrap; }
.l-cinta-pista span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px var(--tx); }
.l-cinta-pista .ico-estrella { color: var(--rojo); }
.l-mov .l-cinta-pista { animation: l-correr 38s linear infinite; }

/* ---------- Datos ---------- */
.l-datos-wrap { padding-block: clamp(48px, 7vw, 110px); }
.l-datos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.l-dato { position: relative; padding: 22px 20px 0 0; border-top: 1px solid var(--linea); }
.l-dato::before { content: ''; position: absolute; left: 0; top: -1px; width: 40%; height: 1px; background: var(--rojo); transform-origin: left; }
.l-mov .l-dato::before { scale: 0 1; transition: scale 1.2s var(--suave) .3s; }
.l-mov .l-dato.visto::before { scale: 1 1; }
.l-dato dt { font-family: var(--f-ancha); font-size: clamp(30px, 4.4vw, 76px); line-height: 1.05; color: var(--rojo); white-space: nowrap; -webkit-text-stroke: .05em currentColor; paint-order: stroke fill; }
.l-dato--largo dt { font-size: clamp(18px, 2.3vw, 40px); padding-top: .35em; }
.l-dato { min-width: 0; }
.l-dato dd { margin: 12px 0 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
.l-datos .l-dato:nth-child(2) { --retraso: .08s; } .l-datos .l-dato:nth-child(3) { --retraso: .16s; } .l-datos .l-dato:nth-child(4) { --retraso: .24s; }
@media (max-width: 899px) { .l-datos { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } }

/* ---------- Obra: la primera pieza se abre a pantalla completa al bajar ---------- */
.lo-intro { position: relative; --p: 1; }
.l-mov .lo-intro { height: 230vh; --p: 0; }
.lo-sticky { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.l-mov .lo-sticky { position: sticky; top: 0; }
.lo-gigante { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; pointer-events: none; font-family: var(--f-disp); font-weight: 700; font-size: 31vw; line-height: 1; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(255, 0, 0, .7); white-space: nowrap; translate: 0 calc(var(--p) * -18vh); scale: calc(1 + var(--p) * .25); }
.lo-portada {
  position: absolute; inset: 0; margin: 0; overflow: hidden;
  clip-path: inset(calc((1 - var(--p)) * 26%) calc((1 - var(--p)) * 37%) round calc((1 - var(--p)) * 18px));
}
.lo-portada img { width: 100%; height: 100%; object-fit: cover; scale: calc(1.35 - var(--p) * .35); }
.lo-portada::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0, 0, 0, .9)); opacity: clamp(0, calc((var(--p) - .45) * 2.4), 1); }
.lo-intro-txt { position: absolute; left: 0; right: 0; bottom: clamp(32px, 6vh, 72px); opacity: clamp(0, calc((var(--p) - .62) * 3.2), 1); translate: 0 calc((1 - clamp(0, calc((var(--p) - .62) * 3.2), 1)) * 40px); }
.lo-intro-txt .l-h2 { font-size: clamp(64px, 13vw, 220px); }
.lo-texto { margin: 18px 0 0; max-width: 34em; font-family: var(--f-disp); font-weight: 300; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.45; text-transform: uppercase; letter-spacing: .04em; color: var(--tx); }

/* Barra de la galería */
.lg-barra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding-block: clamp(40px, 6vw, 80px) 24px; }
.lg-total { margin: 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gris); }
.lg-total strong { font-family: var(--f-ancha); font-weight: 400; font-size: 28px; letter-spacing: 0; color: var(--rojo); margin-right: 6px; vertical-align: -4px; }
.lg-vistas { position: relative; display: inline-flex; padding: 4px; border: 1px solid var(--linea); border-radius: 999px; }
.lg-vista { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--gris); font: 500 14px/1 var(--f-disp); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: color .3s ease, background-color .35s var(--suave); }
.lg-vista .ico { font-size: 16px; }
.lg-vista:hover { color: var(--tx); }
.lg-vista[aria-pressed="true"] { background: var(--rojo); color: #000; }
.lg-controles { display: flex; align-items: center; gap: 10px; }
.lg-contador { margin-right: 8px; font-family: var(--f-mono); font-size: 13px; letter-spacing: .1em; color: var(--gris); }
.lg-contador b { color: var(--tx); font-weight: 500; }
.lg-flecha { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--linea); background: transparent; color: var(--tx); font-size: 20px; cursor: pointer; transition: background-color .3s ease, border-color .3s ease, color .3s ease, scale .3s var(--suave); }
.lg-flecha:hover { background: var(--rojo); border-color: var(--rojo); color: #000; }
.lg-flecha:active { scale: .92; }
.lg-flecha:disabled { opacity: .3; pointer-events: none; }
.lo[data-vista="grilla"] .lg-controles, .lo[data-vista="grilla"] .lg-progreso-wrap { visibility: hidden; }

/* Piezas (comunes a carrusel y grilla) */
.lg-pista { list-style: none; margin: 0; padding: 0; }
.lg-pista:focus-visible { outline: 2px solid var(--rojo); outline-offset: 6px; }
.lg-pieza { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; background: #0d0d0d; color: var(--tx); outline-offset: 4px; }
.lg-pieza:focus-visible { outline: 2px solid var(--rojo); }
.lg-marco { position: absolute; inset: 0; overflow: hidden; }
.lg-marco img { width: 100%; height: 100%; object-fit: cover; translate: var(--d, 0) 0; scale: 1.14; transition: scale .9s var(--suave), filter .5s ease; }
.lg-pieza::after { content: ''; position: absolute; inset: 0; border: 2px solid transparent; border-radius: inherit; transition: border-color .3s ease; pointer-events: none; }
.lg-num { position: absolute; top: 12px; left: 12px; padding: 6px 9px 5px; border-radius: 999px; background: rgba(0, 0, 0, .7); font-family: var(--f-ancha); font-size: 11px; letter-spacing: .12em; line-height: 1; }
.lg-ver { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--rojo); color: #000; font-size: 20px; scale: 0; rotate: -90deg; transition: scale .45s var(--suave), rotate .45s var(--suave); }
@media (hover: hover) {
  .lg-pista:hover .lg-pieza:not(:hover) .lg-marco img { filter: brightness(.42) grayscale(.6); }
  .lg-pieza:hover .lg-marco img { scale: 1.22; }
  .lg-pieza:hover::after { border-color: var(--rojo); }
  .lg-pieza:hover .lg-ver { scale: 1; rotate: 0deg; }
}
.lg-pieza:focus-visible .lg-ver { scale: 1; rotate: 0deg; }

/* Carrusel horizontal */
.lg[data-vista="carrusel"] .lg-pista {
  display: flex; gap: clamp(10px, 1.3vw, 20px); overflow-x: auto; overscroll-behavior-x: contain;
  padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scroll-snap-type: x mandatory; scrollbar-width: none;
}
.lg[data-vista="carrusel"] .lg-pista::-webkit-scrollbar { display: none; }
.lg[data-vista="carrusel"] .lg-item { flex: none; width: clamp(250px, 29vw, 500px); scroll-snap-align: start; }
.lg[data-vista="carrusel"] .lg-item:nth-child(even) { margin-top: clamp(0px, 4vw, 64px); }
/* La última pieza se alinea a la derecha: así el carrusel puede llegar hasta el final */
.lg[data-vista="carrusel"] .lg-item:last-child { scroll-snap-align: end; }
.lg[data-vista] .lg-pista.arrastrando { scroll-snap-type: none; cursor: grabbing; }
.lg[data-vista] .lg-pista.rueda { scroll-snap-type: none; }
.lg-pista.arrastrando .lg-pieza { pointer-events: none; }
.lg-progreso-wrap { padding-top: 28px; }
.lg-progreso { height: 1px; background: var(--linea); }
.lg-progreso i { display: block; height: 100%; background: var(--rojo); transform-origin: left; transform: scaleX(var(--p, .03)); }

/* Grilla dinámica con piezas de distintos tamaños */
.lg[data-vista="grilla"] .lg-pista { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; gap: clamp(8px, 1vw, 14px); max-width: 1584px; margin-inline: auto; padding-inline: var(--gutter); }
.lg[data-vista="grilla"] .lg-item:nth-child(9n+1), .lg[data-vista="grilla"] .lg-item:nth-child(9n+6) { grid-column: span 2; grid-row: span 2; }
.lg[data-vista="grilla"] .lg-item:nth-child(9n+1) .lg-pieza, .lg[data-vista="grilla"] .lg-item:nth-child(9n+6) .lg-pieza { aspect-ratio: auto; height: 100%; }
.lg[data-vista="grilla"] .lg-marco img { translate: none; }
@media (max-width: 1099px) { .lg[data-vista="grilla"] .lg-pista { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .lg[data-vista="grilla"] .lg-pista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg[data-vista="carrusel"] .lg-item { width: 76vw; }
  .lg[data-vista="carrusel"] .lg-item:nth-child(even) { margin-top: 0; }
  .lg-barra { gap: 14px; }
  .lg-vista span { display: none; }
  .lg-vista { padding: 0 14px; }
  .lg-flecha { width: 44px; height: 44px; }
}
/* Cambio de vista: las piezas viajan a su nuevo lugar */
::view-transition-group(*) { animation-duration: .7s; animation-timing-function: cubic-bezier(.2, .7, .1, 1); }

/* ---------- Biografía: el texto se "pinta" palabra por palabra al bajar ---------- */
.lb { padding-block: clamp(90px, 13vw, 200px); }
.lb-in { display: grid; grid-template-columns: minmax(260px, 34%) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.lb-lado { position: sticky; top: calc(var(--lc-h) + 32px); }
.lb-firma { position: relative; width: min(100%, 340px); margin-top: clamp(28px, 4vw, 56px); }
.lb-firma img { width: 100%; height: auto; border-radius: 50%; rotate: calc(var(--giro, 0) * 1deg); }
.lb-firma::after { content: ''; position: absolute; inset: -12px; border: 1px dashed rgba(255, 0, 0, .6); border-radius: 50%; }
.l-mov .lb-firma::after { animation: l-gira 40s linear infinite; }
@keyframes l-gira { to { rotate: 360deg; } }
.lb-texto { font-family: var(--f-disp); font-weight: 300; font-size: clamp(22px, 2.35vw, 38px); line-height: 1.18; text-transform: uppercase; letter-spacing: .005em; color: var(--rojo); }
.lb-texto p { margin: 0 0 1.05em; }
.lb-texto p:last-child { margin-bottom: 0; }
.lb-texto strong { font-weight: 600; }
.l-mov .lb-texto .tw { color: rgba(255, 0, 0, .2); transition: color .35s ease; }
.l-mov .lb-texto .tw.on { color: var(--rojo); }
.lb-texto strong .tw.on, .lb-texto strong { color: var(--tx); }
.l-mov .lb-texto strong .tw { color: rgba(242, 240, 235, .18); }
.l-mov .lb-texto strong .tw.on { color: var(--tx); }
@media (max-width: 899px) {
  .lb-in { grid-template-columns: 1fr; }
  .lb-lado { position: static; min-width: 0; }
  .lb-firma { width: 130px; margin-top: 28px; }
  .lb-firma::after { inset: -8px; }
}

/* ---------- Visión ---------- */
.lv { position: relative; overflow: hidden; padding-block: clamp(60px, 8vw, 120px) 0; border-top: 1px solid var(--linea); }
.lv-gigante { margin-bottom: clamp(24px, 4vw, 56px); pointer-events: none; }
.lv-gigante span { display: block; width: max-content; font-family: var(--f-disp); font-weight: 700; font-size: clamp(110px, 20vw, 340px); line-height: .85; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(255, 0, 0, .55); translate: calc(var(--x, 0) * 1px - 8%) 0; }
.lv-lista { list-style: none; margin: clamp(36px, 5vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px) clamp(28px, 5vw, 96px); }
.lv-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; padding-top: 22px; border-top: 1px solid var(--linea); }
.lv-item:nth-child(even) { --retraso: .12s; }
.lv-n { font-family: var(--f-ancha); font-size: 14px; color: var(--rojo); padding-top: 6px; }
.lv-item p { margin: 0; font-family: var(--f-disp); font-weight: 300; font-size: clamp(19px, 1.55vw, 25px); line-height: 1.42; color: var(--tx); }
.lv-item strong { font-weight: 600; color: var(--rojo); }
.lv-cierre { margin: clamp(80px, 11vw, 180px) 0 0; padding-bottom: clamp(70px, 10vw, 150px); font-family: var(--f-disp); font-weight: 700; font-size: clamp(54px, 11vw, 196px); line-height: .9; letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap; }
.lv-cierre span { display: block; width: max-content; translate: calc(var(--x, 0) * 1px) 0; }
.lv-cierre span:first-child { padding-left: var(--gutter); }
.lv-cierre span:last-child { color: var(--rojo); margin-left: auto; padding-right: var(--gutter); }
@media (max-width: 899px) {
  .lv-lista { grid-template-columns: 1fr; }
  .lv-cierre { white-space: normal; font-size: clamp(48px, 15vw, 96px); }
  .lv-cierre span { width: auto; padding-inline: var(--gutter); }
}

/* ---------- Recorrido: en compu se recorre de costado mientras se baja ---------- */
.lr { position: relative; border-top: 1px solid var(--linea); }
.lr-sticky { padding-block: clamp(60px, 8vw, 120px); }
.lr-cab { margin-bottom: clamp(32px, 5vw, 64px); }
.lr-pista { list-style: none; margin: 0; padding: 0 var(--gutter); display: grid; gap: 48px; }
.lr-hito { position: relative; padding-top: 22px; border-top: 1px solid var(--linea); }
.lr-n { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; color: var(--gris); }
.lr-anio { display: block; margin-top: 10px; font-family: var(--f-ancha); font-size: clamp(72px, 20vw, 260px); line-height: 1; text-transform: uppercase; color: var(--rojo); -webkit-text-stroke: .04em currentColor; }
.lr-hito h3 { margin: 18px 0 8px; font-family: var(--f-disp); font-weight: 500; font-size: clamp(26px, 2.6vw, 40px); text-transform: uppercase; letter-spacing: .03em; }
.lr-hito p { margin: 0; max-width: 28em; color: var(--gris); font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; font-family: var(--f-disp); font-weight: 300; }
.lr-linea { display: none; }
@media (min-width: 900px) {
  .l-mov .lr { height: var(--alto, 300vh); }
  .l-mov .lr-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-block: calc(var(--lc-h) + 20px) 40px; }
  .l-mov .lr-pista { display: flex; gap: clamp(40px, 6vw, 120px); width: max-content; translate: var(--x, 0) 0; will-change: translate; }
  .l-mov .lr-hito { width: min(62vw, 880px); }
  .l-mov .lr-anio { font-size: clamp(120px, 15vw, 260px); color: transparent; -webkit-text-stroke: 1.5px var(--rojo); transition: color .6s ease; }
  .l-mov .lr-hito.activo .lr-anio { color: var(--rojo); }
  .l-mov .lr-hito::before { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--rojo); transform-origin: left; scale: 0 1; transition: scale 1s var(--suave); }
  .l-mov .lr-hito.activo::before { scale: 1 1; }
  .l-mov .lr-linea { display: block; margin-top: clamp(28px, 4vh, 48px); height: 1px; background: var(--linea); }
  .l-mov .lr-linea i { display: block; height: 100%; background: var(--rojo); transform-origin: left; transform: scaleX(var(--p, 0)); }
}

/* ---------- Contacto ---------- */
.lk { padding-block: clamp(90px, 12vw, 190px); border-top: 1px solid var(--linea); background: radial-gradient(ellipse 60% 50% at 85% 100%, rgba(255, 0, 0, .16), transparent 70%); }
.lk-titulo { margin: 0; max-width: 13em; font-family: var(--f-disp); font-weight: 700; font-size: clamp(48px, 8.4vw, 150px); line-height: .9; text-transform: uppercase; letter-spacing: -.01em; }
.lk-fila { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; margin-top: clamp(32px, 4vw, 56px); }
.lk-fila p { margin: 0; max-width: 32em; color: var(--gris); font-family: var(--f-disp); font-weight: 300; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.5; }
.lk-estudio { margin: clamp(48px, 6vw, 88px) 0 0; padding-top: 24px; border-top: 1px solid var(--linea); color: var(--gris); font-family: var(--f-disp); font-size: 18px; }
.lk-estudio a { display: inline-flex; align-items: center; gap: 6px; color: var(--tx); text-decoration: none; background: linear-gradient(var(--rojo), var(--rojo)) left bottom / 100% 1px no-repeat; transition: background-size .45s var(--suave), color .3s ease; }
.lk-estudio a:hover { color: var(--rojo); background-size: 0 1px; background-position: right bottom; }
@media (max-width: 599px) { .lk-fila .l-boton { width: 100%; justify-content: space-between; } }

/* ---------- Pie ---------- */
.lp { border-top: 1px solid rgba(255, 0, 0, .5); background: #000; color: var(--gris); font-family: var(--f-disp); overflow: hidden; }
.lp-in { padding-block: clamp(40px, 6vw, 80px) 28px; }
.lp-gigante { display: block; text-decoration: none; font-family: var(--f-ancha); font-size: clamp(64px, 19.5vw, 330px); line-height: .9; letter-spacing: .02em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(255, 0, 0, .75); background: linear-gradient(var(--rojo), var(--rojo)) left / 0 100% no-repeat; -webkit-background-clip: text; background-clip: text; transition: background-size .9s var(--seco); }
.lp-gigante:hover { background-size: 100% 100%; }
.lp-fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: clamp(28px, 4vw, 48px); padding-top: 22px; border-top: 1px solid var(--linea); font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.lp-arriba { display: inline-flex; align-items: center; gap: 10px; color: var(--tx); text-decoration: none; }
.lp-arriba .ico { font-size: 15px; transition: translate .35s var(--suave); }
.lp-arriba:hover { color: var(--rojo); }
.lp-arriba:hover .ico { translate: 0 -4px; }
.lp-airon { display: flex; align-items: center; gap: 14px; color: var(--gris); text-decoration: none; }
.lp-airon .logo-footer { width: 120px; color: var(--tx); transition: color .3s ease; }
.lp-airon:hover, .lp-airon:hover .logo-footer { color: var(--rojo); }

/* ---------- Visor de obras a pantalla completa ---------- */
.lx { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: var(--tx); overflow: hidden; font-family: var(--f-disp); }
.lx[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.lx::backdrop { background: #000; }
.lx-cab { display: flex; align-items: center; gap: 20px; padding: 16px clamp(16px, 3vw, 32px); }
.lx-info { margin: 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gris); }
.lx-n { display: inline-block; min-width: 2ch; font-family: var(--f-ancha); font-weight: 400; font-size: 26px; letter-spacing: 0; color: var(--rojo); vertical-align: -4px; }
.lx-ayuda { margin: 0 0 0 auto; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: #55524c; }
.lx-btn { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; border: 1px solid var(--linea); background: rgba(0, 0, 0, .5); color: var(--tx); font-size: 20px; cursor: pointer; transition: background-color .3s ease, border-color .3s ease, color .3s ease, scale .3s var(--suave); }
.lx-btn:hover { background: var(--rojo); border-color: var(--rojo); color: #000; }
.lx-btn:active { scale: .92; }
.lx-btn:focus-visible { outline: 2px solid var(--rojo); outline-offset: 3px; }
.lx-cerrar:hover .ico { rotate: 90deg; }
.lx-cerrar .ico { transition: rotate .4s var(--suave); }
.lx-escena { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(8px, 2vw, 28px); padding: 0 clamp(16px, 3vw, 32px); min-height: 0; }
.lx-marco { position: relative; height: 100%; min-height: 0; overflow: hidden; }
.lx-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lx-progreso { height: 1px; margin: 14px clamp(16px, 3vw, 32px) 0; background: var(--linea); }
.lx-progreso i { display: block; height: 100%; background: var(--rojo); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .5s var(--suave); }
.lx-tiras { list-style: none; margin: 0; padding: 12px clamp(16px, 3vw, 32px) 16px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.lx-tiras::-webkit-scrollbar { display: none; }
.lx-tiras button { display: block; width: 46px; height: 60px; padding: 0; border: 0; border-radius: 3px; overflow: hidden; background: #111; opacity: .35; cursor: pointer; transition: opacity .3s ease, translate .3s var(--suave); outline-offset: 2px; }
.lx-tiras button:hover { opacity: .8; }
.lx-tiras button[aria-current="true"] { opacity: 1; outline: 2px solid var(--rojo); translate: 0 -3px; }
.lx-tiras img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 699px) {
  .lx-ayuda { display: none; }
  .lx-cerrar { margin-left: auto; }
  .lx-escena { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .lx-ant, .lx-sig { position: absolute; bottom: 12px; z-index: 2; }
  .lx-ant { left: 16px; } .lx-sig { right: 16px; }
}
@media (hover: none) { .lx-ayuda { display: none; } }

/* ---------- Cursor: se pone claro sobre el rojo ---------- */
.cursor.ver span { color: #000; }

/* ---------- Transición entre páginas (inicio ↔ calculadora) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: l-pag-sale .35s var(--seco) both; }
::view-transition-new(root) { animation: l-pag-entra .55s var(--suave) both; }
@keyframes l-pag-sale { to { opacity: 0; translate: 0 -24px; } }
@keyframes l-pag-entra { from { opacity: 0; translate: 0 32px; } }

/* ---------- Calculadora y 404 con la cabecera nueva ---------- */
.sitio-laion .laion-calc-head { padding-top: clamp(40px, 6vw, 88px); }

/* ---------- Reducir movimiento: todo quieto y visible ---------- */
@media (prefers-reduced-motion: reduce) {
  .sitio-laion *, .sitio-laion *::before, .sitio-laion *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}
