/* Bancada: estilos del rediseño (Portada, Cómo trabajamos, Proyectos, Para quién, Quiénes somos).
   Paleta y tipografías tomadas de la portada actual (home/index.html). */
:root {
  --papel: #E9E7E1;
  --tinta: #16171A;
  --verde: #465244;
  --linea: #BFBBB2;
  --arena: #D2BE9C;
  --papel2: #F1EFEA;
  --alerta: #8C3A2E;
  --mono: 'IBM Plex Mono', monospace;
  --titulo: Archivo, sans-serif;
}
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--papel); color: var(--tinta); font-family: Inter, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--verde); text-decoration: none; }
a:hover { color: var(--tinta); text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--arena); color: var(--tinta); }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 72px 48px 96px; display: flex; flex-direction: column; gap: 40px; }
section { border-top: 1px solid var(--linea); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.kicker { margin: 0; font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.kicker .n { color: var(--verde); margin-right: 14px; }
.h-sec { margin: 0; font-family: var(--titulo); font-weight: 600; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.04em; line-height: 1.1; max-width: 760px; }
.lead { margin: 0; font-size: 17px; line-height: 1.65; max-width: 600px; }
.tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--verde); border: 1px solid var(--verde); padding: 3px 7px; white-space: nowrap; }
.cta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; align-self: flex-start; border-bottom: 1px solid var(--verde); padding-bottom: 2px; }
.cta.off { color: var(--verde); opacity: 0.6; border: 0; }

/* marcador de texto o dato pendiente de Juanfe */
.pend { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #7a5a1e; background: rgba(210,190,156,0.35); border: 1px dashed #a88a55; padding: 2px 7px; }
.borrador { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: #7a5a1e; border: 1px dashed #a88a55; padding: 1px 5px; vertical-align: middle; margin-left: 8px; }

/* aviso de vista previa */
.preview-bar { background: var(--tinta); color: var(--arena); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; padding: 8px 16px; }

/* nav */
nav.top { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 20px 48px; border-bottom: 1px solid var(--linea); position: sticky; top: 0; background: rgba(233,231,225,0.92); backdrop-filter: blur(6px); z-index: 10; flex-wrap: wrap; }
nav.top .logo { display: flex; align-items: center; gap: 10px; font-family: var(--titulo); font-weight: 600; font-size: 18px; letter-spacing: -0.04em; color: var(--tinta); }
nav.top .logo svg { width: 26px; height: 23px; display: block; }
nav.top .links { display: flex; gap: 28px; flex-wrap: wrap; }
nav.top .links .btn-nav { padding: 10px 16px; background: var(--tinta); color: var(--papel); }
nav.top .links .btn-nav:hover { background: var(--verde); color: var(--papel); text-decoration: none; }
nav.top .menu-btn { display: none; font: inherit; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; background: transparent; color: var(--tinta); border: 1px solid var(--tinta); padding: 8px 12px; cursor: pointer; }

/* placeholder con rayas y esquinas */
.slot { width: 100%; height: 100%; background: repeating-linear-gradient(-45deg, transparent, transparent 11px, rgba(191,187,178,0.28) 11px, rgba(191,187,178,0.28) 12px); border: 1px solid var(--linea); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; text-align: center; }
.slot .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--verde); }
.slot::before, .slot::after, .slot .c3, .slot .c4 { content: ''; position: absolute; width: 9px; height: 9px; }
.slot::before { top: -1px; left: -1px; border-top: 1px solid var(--tinta); border-left: 1px solid var(--tinta); }
.slot::after { top: -1px; right: -1px; border-top: 1px solid var(--tinta); border-right: 1px solid var(--tinta); }
.slot .c3 { bottom: -1px; left: -1px; border-bottom: 1px solid var(--tinta); border-left: 1px solid var(--tinta); }
.slot .c4 { bottom: -1px; right: -1px; border-bottom: 1px solid var(--tinta); border-right: 1px solid var(--tinta); }

/* Visión */
header.vision { max-width: 1240px; margin: 0 auto; padding: 96px 48px 112px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 48px; }
header.vision .obj { order: 2; width: 100%; min-height: 440px; display: flex; align-items: center; }
header.vision .obj .v3d { height: auto; aspect-ratio: 1600 / 1100; margin-inline: auto; }
header.vision h1 { margin: 0; font-family: var(--titulo); font-weight: 600; font-size: clamp(40px, 5.5vw, 68px); line-height: 1.04; letter-spacing: -0.04em; text-wrap: pretty; }
header.vision p { margin: 0; font-size: 19px; line-height: 1.55; max-width: 520px; }
.flujo { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--linea); border-left: 1px solid var(--linea); }
.flujo > div { border-right: 1px solid var(--linea); border-bottom: 1px solid var(--linea); padding: 28px 24px 32px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.flujo > div:not(:last-of-type)::after { content: '→'; position: absolute; right: -9px; top: 26px; background: var(--papel); font-family: var(--mono); color: var(--verde); padding: 0 2px; }
.flujo .num { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; color: var(--verde); }
.flujo h3 { margin: 0; font-family: var(--titulo); font-weight: 600; font-size: 26px; letter-spacing: -0.04em; text-transform: uppercase; }
.flujo p { margin: 0; font-size: 15px; line-height: 1.6; }

/* tarjetas de proyecto (Hero y Bóveda) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); border-top: 1px solid var(--linea); border-left: 1px solid var(--linea); }
.card { display: flex; flex-direction: column; border-right: 1px solid var(--linea); border-bottom: 1px solid var(--linea); color: var(--tinta); }
.card:hover { text-decoration: none; background: rgba(210,190,156,0.12); }
.card .img { height: 200px; border-bottom: 1px solid var(--linea); overflow: hidden; }
.card.hero .img { height: 260px; }
.card .body { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 24px; flex: 1; }
.card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card h3 { margin: 0; font-family: var(--titulo); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.card p { margin: 0; font-size: 14px; line-height: 1.55; flex: 1; }

/* validación (certificaciones) */
.nota-sellos { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; line-height: 1.6; color: #5f5c56; max-width: 600px; }
.sellos { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 16px; }
.sellos .sello { height: 120px; }
.sellos img { max-height: 80px; max-width: 100%; }

/* Portada: texto, botones, cinta de oficios (parte estática; el movimiento es del bloque D) */
[id] { scroll-margin-top: 80px; }
[hidden] { display: none !important; }
.txt-portada { display: flex; flex-direction: column; gap: 24px; max-width: 560px; }
.etiqueta { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--verde); }
.botones { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.btn { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 14px 22px; background: var(--tinta); color: var(--papel); }
.btn:hover { background: var(--verde); color: var(--papel); text-decoration: none; }
.btn-sec { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid var(--verde); padding-bottom: 2px; }
.btn-sec:hover { text-decoration: none; border-bottom-color: var(--tinta); }
.cinta { border-top: 1px solid var(--tinta); border-bottom: 1px solid var(--tinta); background: var(--tinta); color: var(--papel); overflow: hidden; padding: 14px 20px; }
.cinta .pista { font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.cinta .grupo { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.cinta .grupo ~ .grupo { display: none; }
.cinta .grupo span { display: flex; align-items: center; gap: 28px; white-space: nowrap; }
.cinta .grupo span::after { content: ''; width: 6px; height: 6px; background: var(--arena); }

/* Proyectos: filtro por oficio, tarjetas y lista */
.cabecera-proy { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 32px; flex-wrap: wrap; }
.filtro-oficio { display: none; border: 1px solid var(--verde); flex-wrap: wrap; }
.js .filtro-oficio { display: flex; }
.filtro-oficio button { min-height: 44px; padding: 0 16px; border: 0; border-right: 1px solid var(--verde); font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; background: transparent; color: var(--verde); cursor: pointer; }
.filtro-oficio button:last-child { border-right: 0; }
.filtro-oficio button[aria-pressed="true"] { background: var(--verde); color: var(--papel); }
.solo-lector { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lista-proy { display: flex; flex-direction: column; border-top: 1px solid var(--tinta); margin-top: -8px; }
.lista-proy .item { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 16px 4px; border-bottom: 1px solid var(--linea); color: var(--tinta); }
.lista-proy .item:hover { text-decoration: none; background: rgba(210,190,156,0.12); }
.lista-proy .nom { font-family: var(--titulo); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; min-width: 140px; }
.lista-proy .res { flex: 1 1 260px; font-size: 15px; color: #5f5c56; }
.lista-proy .tag-l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--verde); }

/* Para quién */
.para-quien { background: #F1EFEA; }
.pq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.pq-txt { display: flex; flex-direction: column; gap: 22px; }
.pq-grid .sellos { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Quién */
.quien-grid { display: grid; grid-template-columns: 1fr 420px; gap: 64px; align-items: start; }
.quien-grid .txt { display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.65; max-width: 560px; }
.quien-grid .txt p { margin: 0; }

/* Bóveda */
.filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filtros input { font: 14px Inter, sans-serif; padding: 10px 14px; border: 1px solid var(--linea); background: #fff; color: var(--tinta); min-width: 260px; flex: 1; max-width: 420px; }
.filtros button { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; background: transparent; color: var(--verde); border: 1px solid var(--verde); padding: 8px 12px; cursor: pointer; }
.filtros button[aria-pressed="true"] { background: var(--verde); color: var(--papel); }
.vacio { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--verde); }

/* ficha de proyecto */
.ficha { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.ficha .img { height: 360px; }
.ficha h1 { margin: 0; font-family: var(--titulo); font-weight: 600; font-size: clamp(36px, 4.6vw, 56px); letter-spacing: -0.04em; line-height: 1.05; }
.ficha .txt { display: flex; flex-direction: column; gap: 20px; }
.ficha .txt p { margin: 0; font-size: 17px; line-height: 1.65; }
.ficha h2 { margin: 0; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--verde); }
.miga { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }

/* pie */
footer { border-top: 1px solid var(--tinta); background: var(--tinta); color: var(--papel); }
footer .wrap { padding: 88px 48px 96px; gap: 56px; }
footer .big { position: relative; margin: 0; font-family: var(--titulo); font-weight: 600; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.04em; line-height: 1.1; max-width: 560px; }
footer .sub { margin: 0; font-size: 17px; line-height: 1.55; color: rgba(233,231,225,.7); }
footer .mail { position: relative; font-family: var(--mono); font-size: 16px; letter-spacing: 0.06em; color: var(--papel); border-bottom: 1px solid var(--arena); padding-bottom: 4px; }
footer .mail:hover { color: var(--papel); text-decoration: none; }
footer .base { display: flex; justify-content: space-between; border-top: 1px solid rgba(233,231,225,0.25); padding-top: 20px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(233,231,225,0.55); flex-wrap: wrap; gap: 12px; }
footer .base a { color: rgba(233,231,225,0.55); }

@media (max-width: 860px) {
  .flujo, .ficha, .quien-grid, .pq-grid, .grid-3 { grid-template-columns: 1fr; }
  .flujo > div:not(:last-of-type)::after { content: '↓'; right: auto; left: 24px; top: auto; bottom: -11px; }
}
@media (max-width: 700px) {
  nav.top { padding: 16px 20px; align-items: center; }
  nav.top .links { gap: 6px 16px; }
  .js nav.top { flex-wrap: nowrap; }
  .js nav.top .menu-btn { display: block; }
  .js nav.top .links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--papel); border-bottom: 1px solid var(--linea); padding: 4px 20px 12px; }
  .js nav.top.abierto .links { display: flex; }
  .js nav.top .links a { padding: 14px 0; border-top: 1px solid var(--linea); color: var(--tinta); }
  .js nav.top .links a:first-child { border-top: 0; }
  .js nav.top .links a.btn-nav { background: var(--tinta); color: var(--papel); margin-top: 8px; text-align: center; }
  .filtro-oficio button { flex: 1 1 auto; }
  header.vision { padding: 56px 20px 72px; grid-template-columns: 1fr; gap: 32px; }
  header.vision .obj { order: 0; min-height: 260px; }
  header.vision .obj .v3d { max-width: 378px; }
  .wrap, footer .wrap { padding-left: 20px; padding-right: 20px; }
  .ficha .img { height: 240px; }
}

/* insignias genéricas de norma (sin logos oficiales: no implican certificación) */
.norma { display: flex; justify-content: center; }
.norma svg { width: 100%; max-width: 150px; height: auto; aspect-ratio: 1; }
.norma .arco { font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.1em; fill: var(--verde); }
.norma .pre { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; fill: var(--verde); }
.norma .num { font-family: var(--titulo); font-weight: 600; font-size: 30px; letter-spacing: -0.03em; fill: var(--tinta); }

/* ilustraciones vectoriales */
.ilus { width: 100%; height: 100%; object-fit: contain; display: block; }
.card .img .ilus, .ficha .img .ilus { padding: 18px; box-sizing: border-box; }
.slot.vacio::before, .slot.vacio::after { display: none; }

/* ilustraciones 3D: póster <img> siempre visible; el <video> (sin src hasta que video3d.js lo decide) entra encima al arrancar */
.v3d { position: relative; width: 100%; height: 100%; }
.v3d .ilus { position: absolute; left: 0; top: 0; }
.v3d video { opacity: 0; transition: opacity .3s; background: transparent; }
.v3d.activo video { opacity: 1; }

/* ficha: la etiqueta larga (nowrap) ensanchaba la columna y desbordaba a 360 px */
.ficha > * { min-width: 0; }
.ficha .txt .tag { white-space: normal; }

/* ═══ Bloque D: animaciones ═══
   Base = sin movimiento (lo que ve quien pide «reducir movimiento» o un navegador sin soporte).
   El movimiento solo existe dentro de (prefers-reduced-motion: no-preference) y solo anima transform y opacity,
   salvo el trazo del check (stroke-dashoffset, SVG de 1 elemento) y el texto del titular del pie, que escribe animaciones.js.
   Sin JS todo es visible: las clases .rev y .pre las pone animaciones.js. */

/* cuadros fijos que no dependen de la animación */
.flujo { position: relative; }
.flujo .cab { display: flex; justify-content: space-between; align-items: center; }
.flujo .ico { width: 64px; height: 40px; flex: none; }
.flujo .barra { display: none; }
.foto { height: 420px; border: 1px solid var(--linea); overflow: hidden; }
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sos-capa, .cursor { display: none; }
.cursor { width: 0; position: relative; }
.cursor::after { content: ''; position: absolute; left: .08em; bottom: .12em; width: .5em; height: .9em; background: var(--arena); }
.t-r { visibility: hidden; }
footer .mail::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--arena); transform: scaleX(0); transform-origin: left; }
footer .mail:hover::after, footer .mail:focus-visible::after { transform: scaleX(1); }
.card, .lista-proy .item { transition: opacity .35s ease; }
.apagado { opacity: .25; }

@media (prefers-reduced-motion: no-preference) {
  /* 1. portada: texto de abajo arriba y capa de SOS sobre el vídeo */
  .txt-portada > * { animation: bUp .6s cubic-bezier(.2, .7, .2, 1) both; }
  .txt-portada > :nth-child(1) { animation-delay: .05s; }
  .txt-portada > :nth-child(2) { animation-delay: .15s; }
  .txt-portada > :nth-child(3) { animation-delay: .28s; }
  .txt-portada > :nth-child(4) { animation-delay: .4s; }

  .sos-capa { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; container-type: inline-size; }
  .sos-capa .onda { position: absolute; left: 56.2%; top: 41.3%; width: 20%; aspect-ratio: 1; border: 2px solid var(--alerta); border-radius: 50%; opacity: 0; animation: bOnda 2.4s ease-out infinite; }
  .sos-capa .onda:nth-child(2) { animation-delay: .8s; }
  .sos-capa .onda:nth-child(3) { animation-delay: 1.6s; }
  .sos-capa .viaje { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; animation: bViaje 4.8s ease-in-out infinite; }
  .sos-capa .viaje::before { content: ''; position: absolute; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--alerta); border: 2px solid var(--papel); }
  .sos-capa .sos { position: absolute; left: 57.8%; top: 22%; font-family: var(--mono); font-size: 11px; font-size: clamp(10px, 2.05cqw, 12px); font-weight: 500; letter-spacing: .14em; background: var(--tinta); color: var(--papel); padding: 5px 9px; white-space: nowrap; opacity: 0; animation: bSos 4.8s ease-out infinite; }
  .sos-capa .aviso { position: absolute; right: 0; top: 16%; display: flex; flex-direction: column; gap: 3px; background: var(--papel2); border: 1px solid var(--tinta); padding: 8px 11px; font-size: 11px; font-size: clamp(10px, 2.05cqw, 12px); line-height: 1.35; white-space: nowrap; opacity: 0; animation: bAviso 4.8s ease-out infinite; }
  .sos-capa .aviso b { font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--alerta); }

  /* 1. cinta de oficios: dos vueltas duplicadas, una vuelta cada 32 s */
  .cinta { padding: 14px 0; }
  .cinta .pista { display: flex; width: max-content; animation: bCinta 32s linear infinite; }
  .cinta .grupo, .cinta .grupo ~ .grupo { display: flex; flex: none; flex-wrap: nowrap; justify-content: flex-start; gap: 0; }
  .cinta .grupo span { padding-right: 28px; }

  /* 1b y 2. Cómo trabajamos: iconos, barra de 3 px y paso activo (el fondo se enciende con opacity) */
  .flujo > div { isolation: isolate; }
  .flujo > div::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--papel2); opacity: 0; animation: bPaso 6.6s linear infinite; }
  .flujo > div:nth-of-type(1)::before { animation-delay: -.4s; }
  .flujo > div:nth-of-type(2)::before { animation-delay: 1.8s; }
  .flujo > div:nth-of-type(3)::before { animation-delay: 4s; }
  .flujo .barra { display: block; position: absolute; top: -2px; left: 0; width: 33.333%; height: 3px; background: var(--tinta); z-index: 2; animation: bBarra 6.6s cubic-bezier(.6, 0, .2, 1) infinite; }
  .flujo .regla { animation: bRegla 2.6s ease-in-out infinite; }
  .flujo .engranaje { transform-box: fill-box; transform-origin: center; animation: bGiro 6s linear infinite; }
  .flujo .check { stroke-dasharray: 40; animation: bTrazo 3s ease-in-out infinite; }

  /* 1c y 4. sellos: estampado al entrar y anillo punteado girando */
  .sellos.pre .norma { opacity: 0; }
  .sellos.pre.vis .norma { animation: bSello .7s cubic-bezier(.3, 1.4, .5, 1) both; }
  .sellos.pre.vis .norma:nth-child(1) { animation-delay: .1s; }
  .sellos.pre.vis .norma:nth-child(2) { animation-delay: .45s; }
  .sellos.pre.vis .norma:nth-child(3) { animation-delay: .8s; }
  .norma .anillo { transform-box: fill-box; transform-origin: center; animation: bGiro 40s linear infinite; }
  .norma:hover .anillo { animation-duration: 6s; }

  /* 1d. foto del banco con zoom lento */
  .foto img { animation: bZoom 14s ease-in-out infinite alternate; }

  /* 3. proyectos: transiciones del filtro y de la tarjeta (solo con puntero) */
  .card { transition: opacity .35s ease, transform .25s ease, background-color .25s ease; }
  .card .img > .ilus, .card .img > .v3d { transition: transform .45s ease; }
  @media (hover: hover) {
    .card:hover { transform: translateY(-4px); }
    .card:hover .img > .ilus, .card:hover .img > .v3d { transform: scale(1.04); }
  }

  /* 5. pie: cursor arena y subrayado del correo de izquierda a derecha */
  .cursor { display: inline-block; animation: bParpadeo 1.05s steps(1) infinite; }
  footer .mail::after { transition: transform .3s ease; }

  /* 6. entradas al hacer scroll */
  .rev:not(.vis) { opacity: 0; transform: translateY(18px); }
  .rev { transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1); }

  /* fuera de pantalla las animaciones infinitas se pausan (animaciones.js pone .fuera) */
  .fuera, .fuera *, .fuera *::before, .fuera *::after { animation-play-state: paused !important; }

  @media (max-width: 860px) {
    .flujo { grid-auto-rows: 1fr; }
    .flujo .barra { left: -2px; top: 0; width: 3px; height: 33.333%; animation-name: bBarraV; }
  }

  @keyframes bUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes bOnda { 0% { transform: translate(-50%, -50%) scale(.2); opacity: .95; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
  @keyframes bViaje {
    0% { transform: translate(56.2%, 41.3%); opacity: 0; }
    8% { opacity: 1; }
    38%, 46% { transform: translate(67.6%, 31.2%); }
    72% { transform: translate(71%, 42%); opacity: 1; }
    80%, 100% { transform: translate(71%, 42%); opacity: 0; }
  }
  @keyframes bSos { 0%, 4% { opacity: 0; transform: translate(-50%, 6px); } 10%, 40% { opacity: 1; transform: translate(-50%, 0); } 48%, 100% { opacity: 0; transform: translate(-50%, -4px); } }
  @keyframes bAviso { 0%, 70% { opacity: 0; transform: translateY(8px) scale(.92); } 76%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-4px); } }
  @keyframes bCinta { to { transform: translateX(-25%); } }
  @keyframes bPaso { 0% { opacity: 0; } 6.06%, 33.33% { opacity: 1; } 39.4%, 100% { opacity: 0; } }
  @keyframes bBarra { 0%, 27.27% { transform: translateX(0); } 33.33%, 60.6% { transform: translateX(100%); } 66.67%, 93.9% { transform: translateX(200%); } 100% { transform: translateX(0); } }
  @keyframes bBarraV { 0%, 27.27% { transform: translateY(0); } 33.33%, 60.6% { transform: translateY(100%); } 66.67%, 93.9% { transform: translateY(200%); } 100% { transform: translateY(0); } }
  @keyframes bRegla { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(22px); } }
  @keyframes bGiro { to { transform: rotate(360deg); } }
  @keyframes bTrazo { 0%, 15% { stroke-dashoffset: 40; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 40; } }
  @keyframes bSello { 0% { opacity: 0; transform: scale(1.35) rotate(-8deg); } 60% { opacity: 1; transform: scale(.96) rotate(0); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
  @keyframes bZoom { from { transform: scale(1); } to { transform: scale(1.09) translate(-1.5%, -1%); } }
  @keyframes bParpadeo { 50% { opacity: 0; } }
}

/* Reducir movimiento: nada se mueve, el scroll es instantáneo y no hay capa de SOS ni cursor */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .sos-capa, .cursor, .flujo .barra { display: none !important; }
}
