/* ds-hero — hero de /diseno/. Fondo propio «mesa de diseño» sobre papel (solo colores de marca) (distinto a /web/ aurora, /marketing/ ondas,
   /publicidad/ mira y /redes-sociales/ malla): retícula de construcción, círculos áureos, reglas en los bordes,
   una curva bézier con manijas y especímenes tipográficos.
   Un solo foco: el tablero donde el MISMO logo se transforma en 5 etapas (data-etapa 0–4 en .dsh__escena:
   boceto → vector → color → tipografía → aplicaciones) con stepper, y tres satélites que reaccionan a la etapa.
   Patrón: cada etapa fija su estado final estático y una animación «desde» lo revela (fill both); así sin JS o
   con movimiento reducido se ven los estados completos. La base (sin data-etapa que coincida) = etapa final.
   Los retardos en ms de cada etapa caben en las duraciones de $dsh_etapas (ds-hero.php). Solo transform/opacity/stroke-dashoffset. */

.dsh { --papel: #F4F1EC; --tinta: #121011; --lima: #D2FB8C; --guia: var(--accent); position: relative; isolation: isolate; overflow: hidden; background: var(--papel); color: var(--tinta); }
/* En esta página la cabecera va sólida (tinta): sobre papel claro el velo translúcido no se leería */
.mh.mh--home:not(.mh--solida) .mh-avisos { background: #0B0A0A; -webkit-backdrop-filter: none; backdrop-filter: none; }
.mh.mh--home:not(.mh--solida) .mh-barra { background: var(--noche, #121011); border-bottom-color: rgba(255, 255, 255, .08); -webkit-backdrop-filter: none; backdrop-filter: none; }
/* El hero arranca bajo la cabecera fija (m360.css da padding a main en interiores) */
body:not(.home) main.ds-pag { padding-top: 0; }
.dsh__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.dsh__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4.5vw, 72px); align-items: center; max-width: 1320px; min-height: min(100svh, 900px); margin: 0 auto; padding: calc(112px + clamp(20px, 3vw, 44px)) var(--m) clamp(56px, 6vw, 88px); }

/* ── Fondo: mesa de diseño en papel (solo tinta, naranja y lima) ── */
.dsh__fondo { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.dsh__fondo > * { position: absolute; display: block; }
.dsh__reticula { inset: 0; background-image: linear-gradient(rgba(18, 16, 17, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 16, 17, .07) 1px, transparent 1px), linear-gradient(rgba(18, 16, 17, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 16, 17, .03) 1px, transparent 1px); background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px; background-position: 17px -1px; }
.dsh__oro { right: -12%; top: 50%; width: min(80vw, 1000px); color: rgba(18, 16, 17, .12); stroke-width: 1; transform: translateY(-50%); animation: dsh-gira 120s linear infinite; }
@keyframes dsh-gira { to { transform: translateY(-50%) rotate(360deg); } }
.dsh__curva { left: 46%; bottom: -2%; width: 62%; height: auto; } /* solo del lado del tablero: no cruza el texto */
.dsh__curva-t { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .75; animation: dsh-curva 11s var(--ease) infinite; }
@keyframes dsh-curva { 0% { stroke-dashoffset: 1; } 45%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
.dsh__curva-m { stroke: rgba(18, 16, 17, .45); stroke-width: 1; fill: var(--lima); animation: dsh-manijas 11s ease-in-out infinite; }
@keyframes dsh-manijas { 0%, 20% { opacity: 0; } 40%, 80% { opacity: 1; } 95%, 100% { opacity: 0; } }
.dsh__spec { font-family: 'Instrument Serif', serif; font-style: italic; line-height: 1; color: rgba(18, 16, 17, .06); animation: dsh-flota 14s ease-in-out infinite alternate; }
.dsh__spec--a { left: 2%; bottom: 8%; font-size: clamp(90px, 12vw, 200px); }
.dsh__spec--c { right: 3%; top: 16%; font-size: clamp(70px, 8vw, 140px); color: rgba(255, 91, 35, .14); animation-delay: -9s; }
@keyframes dsh-flota { to { transform: translate3d(0, -22px, 0) rotate(-3deg); } }
/* Reglas de diseñador en el borde izquierdo y al pie */
.dsh__regla { background-repeat: no-repeat; background-color: #ECE8E1; }
.dsh__regla--x { left: 0; right: 0; bottom: 0; height: 18px; border-top: 1px solid rgba(18, 16, 17, .14); background-image: repeating-linear-gradient(90deg, rgba(18, 16, 17, .3) 0 1px, transparent 1px 12px), repeating-linear-gradient(90deg, rgba(18, 16, 17, .5) 0 1px, transparent 1px 96px); background-size: 100% 6px, 100% 12px; }
.dsh__regla--y { left: 0; top: 0; bottom: 18px; width: 18px; border-right: 1px solid rgba(18, 16, 17, .14); background-image: repeating-linear-gradient(180deg, rgba(18, 16, 17, .3) 0 1px, transparent 1px 12px), repeating-linear-gradient(180deg, rgba(18, 16, 17, .5) 0 1px, transparent 1px 96px); background-size: 6px 100%, 12px 100%; }
.dsh__velo { display: none; }

/* ── Texto ── */
.dsh__txt { position: relative; z-index: 2; min-width: 0; }
.dsh__txt > * { animation: dsh-entra .9s var(--ease) both; }
.dsh__txt > :nth-child(2) { animation-delay: .08s; }
.dsh__txt > :nth-child(3) { animation-delay: .16s; }
.dsh__txt > :nth-child(4) { animation-delay: .24s; }
.dsh__txt > :nth-child(5) { animation-delay: .32s; }
@keyframes dsh-entra { from { opacity: 0; transform: translate3d(0, 18px, 0); } }
.dsh__ceja { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 5px 14px 5px 5px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgba(18, 16, 17, .1); color: var(--tinta); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.dsh__pluma-ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; }
.dsh h1 { max-width: 12ch; font-family: 'Marko Display', var(--f) !important; font-weight: 800 !important; font-size: clamp(42px, 5.3vw, 84px); line-height: 1 !important; letter-spacing: .004em !important; word-spacing: -.06em; text-transform: lowercase; color: var(--tinta); text-wrap: balance; }
.dsh h1 .chispa { color: var(--accent); }
.dsh__lead { max-width: 46ch; margin-top: 22px; color: #4A4648; font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.6; }
.dsh__lead b { color: var(--tinta); font-weight: 600; }
.dsh__chips { display: flex; flex-wrap: nowrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.dsh__chips li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px rgba(18, 16, 17, .1); color: var(--tinta); font-size: 13px; font-weight: 500; white-space: nowrap; }
.dsh__chips li::before { content: ""; width: 7px; height: 7px; border: 1.5px solid var(--accent); transform: rotate(45deg); }
.dsh__acc { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.dsh__cta { min-height: 56px; box-shadow: 0 14px 34px -14px rgba(255, 91, 35, .85); }
.dsh__sec { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 24px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--tinta); color: var(--tinta); font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .3s, box-shadow .3s, transform .3s var(--ease); }
.dsh__sec:hover { background: var(--lima); box-shadow: inset 0 0 0 1.5px var(--tinta); transform: translateY(-3px); }
.dsh__sec svg { transition: transform .3s var(--ease); }
.dsh__sec:hover svg { transform: translateY(3px); }
.dsh :is(a):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ── Escena: tablero + satélites ── */
.dsh__escena { --e: cubic-bezier(.2, .9, .3, 1); --tinta2: #201A17; position: relative; display: grid; gap: clamp(14px, 1.6vw, 20px); width: 100%; max-width: 620px; justify-self: end; }
.dsh__tablero { position: relative; padding: 0 12px 12px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(18, 16, 17, .08), 0 50px 90px -46px rgba(18, 16, 17, .55); }
.dsh__barra { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 0 0 0 4px; }
.dsh__etq { position: relative; display: flex; align-items: center; gap: 7px; min-width: 0; color: #6C6A6C; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.dsh__etq i { flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.dsh__etq small { overflow: hidden; color: #8C888A; font-size: 11.5px; font-weight: 500; text-overflow: ellipsis; transition: opacity .3s; }
.dsh__etq small::before { content: "· "; }
.dsh__est { display: grid; align-items: center; justify-items: start; min-width: 0; }
.dsh__est > * { grid-area: 1 / 1; }
.dsh__listo { padding: 2px 8px; border-radius: 999px; background: var(--lima); color: var(--tinta); font-size: 10.5px; font-weight: 700; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.dsh__play { position: relative; display: grid; place-items: center; flex: none; width: 30px; height: 30px; margin-right: -2px; padding: 0; border: 0; border-radius: 50%; background: #F4F1EC; color: var(--tinta); cursor: pointer; transition: background-color .25s; }
.dsh__play::before { content: ""; position: absolute; inset: -7px; } /* área táctil de 44px */
.dsh__play:hover { background: var(--lima); }
.dsh__play-sigue, .is-parado .dsh__play-pausa { display: none; }
.is-parado .dsh__play-sigue { display: block; }

/* Stepper: 5 botones + pista con indicador naranja que avanza */
.dsh__pasos { display: flex; align-items: center; gap: 12px; padding: 2px 4px 12px; }
.dsh__riel { position: relative; flex: 1 1 auto; min-width: 0; }
.dsh__lista { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.dsh__paso { display: flex; align-items: baseline; gap: 6px; width: 100%; min-height: 34px; padding: 0 2px 8px; border: 0; background: none; color: #A8A4A6; font: 600 12px/1 var(--f); letter-spacing: .01em; text-align: left; white-space: nowrap; cursor: pointer; transition: color .4s var(--e); }
.dsh__paso-n { color: #C9C4C0; font: 500 9.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; transition: color .4s var(--e); }
.dsh__paso:hover, .dsh__paso[aria-current] { color: var(--tinta); }
.dsh__paso[aria-current] .dsh__paso-n { color: var(--accent); }
.dsh__paso:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.dsh__pista { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: #EDE9E3; }
.dsh__ind { position: absolute; left: 0; top: 0; bottom: 0; width: 20%; transform: translateX(calc(var(--i, 4) * 100%)); transition: transform .7s var(--e); }
.dsh__ind::before, .dsh__ind b { content: ""; position: absolute; inset: 0; border-radius: 2px; }
.dsh__ind::before { background: rgba(255, 91, 35, .22); }
.dsh__ind b { background: var(--accent); transform-origin: left; animation: dsh-avance var(--dur, 3s) linear both; }
@keyframes dsh-avance { from { transform: scaleX(0); } }
.is-parado .dsh__ind b { animation: none; }
.dsh__actual { display: none; }
.dsh__sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.dsh__lienzo { display: block; width: 100%; height: auto; border-radius: 12px; background-color: var(--c5); background-image: linear-gradient(rgba(18, 16, 17, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 16, 17, .05) 1px, transparent 1px); background-size: 20px 20px; }
.dsh__arte { transition: opacity .38s var(--e); }
.is-cambio .dsh__arte { opacity: 0; }
.is-cambio .dsh__arte *, .is-cambio .dsh__tj { transition: none !important; animation: none !important; }

/* Estado base = etapa final (Aplicaciones) */
.dsh__guias { stroke: var(--guia); stroke-width: 1; opacity: .12; transition: opacity 1s var(--e); }
.dsh__trazo { stroke-dasharray: 1; stroke-dashoffset: 0; }
.dsh__boceto { stroke: rgba(32, 26, 23, .6); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 1.3s var(--e); }
.dsh__boceto path { stroke-dasharray: 1; }
.dsh__boceto path:nth-child(2) { stroke: rgba(32, 26, 23, .35); }
.dsh__linea { fill: none; stroke: var(--guia); stroke-width: 2; stroke-dasharray: 1; opacity: 0; transition: opacity .5s; }
.dsh__manijas, .dsh__sel { stroke: var(--guia); stroke-width: 1.2; fill: #fff; opacity: 0; transition: opacity .5s; }
.dsh__manijas path { fill: none; }
.dsh__medida { opacity: 0; transition: opacity .4s; }
.dsh__medida rect { fill: var(--accent); }
.dsh__medida text { fill: #fff; font: 600 10.5px/1 var(--f); font-variant-numeric: tabular-nums; }
.dsh__relleno { opacity: 0; transition: opacity .5s; }
.dsh__relleno--a { fill: #FF5B23; } .dsh__relleno--b { fill: #D2FB8C; } .dsh__relleno--c { fill: var(--c1); opacity: 1; }
.dsh__hueco { fill: var(--c5); transition: opacity .5s; }
.dsh__punto { fill: var(--c2); transform-box: fill-box; transform-origin: center; transition: opacity .4s; }
.dsh__wm { fill: var(--tinta2); opacity: 0; transition: opacity .5s; }
.dsh__wm--a { font: 400 60px/1 var(--f); letter-spacing: -.01em; }
.dsh__wm--b { font: 800 62px/1 'Marko Display', var(--f); }
.dsh__wm--c { font: italic 400 76px/1 'Instrument Serif', serif; letter-spacing: -.01em; opacity: 1; }
.dsh__tag { fill: var(--c1); font: 600 11px/1 var(--f); letter-spacing: .32em; transition: opacity .5s; }
.dsh__kern { stroke: var(--accent); stroke-width: 1; opacity: 0; transition: opacity .4s; }
.dsh__kern path { stroke-dasharray: 3 3; stroke: rgba(18, 16, 17, .25); }
.dsh__kern text { fill: var(--accent); stroke: none; font: 600 8px/1 ui-monospace, Menlo, monospace; }
.dsh__mock { transform-box: fill-box; transform-origin: 50% 100%; transition: opacity .5s; }
.dsh__lapiz, .dsh__pluma { opacity: 0; }
.dsh__pluma { fill: #121011; stroke: #fff; stroke-width: 1.5; }

/* Etapas 0–3: lo que aún no existe */
[data-etapa="0"] :is(.dsh__relleno--c, .dsh__hueco, .dsh__punto, .dsh__wm--c, .dsh__tag, .dsh__mock),
[data-etapa="1"] :is(.dsh__relleno--c, .dsh__hueco, .dsh__punto, .dsh__wm--c, .dsh__tag, .dsh__mock),
[data-etapa="2"] :is(.dsh__wm--c, .dsh__tag, .dsh__mock),
[data-etapa="3"] .dsh__mock { opacity: 0; }

/* 0 · Boceto: el lápiz dibuja la idea */
[data-etapa="0"] .dsh__trazo { stroke-dashoffset: 1; }
[data-etapa="0"] .dsh__boceto { opacity: 1; transition: none; }
[data-etapa="0"] .dsh__boceto path { animation: dsh-dibuja 1.2s cubic-bezier(.45, 0, .3, 1) both; }
[data-etapa="0"] .dsh__boceto path:nth-child(2) { animation-delay: .3s; }
[data-etapa="0"] .dsh__boceto path:nth-child(3) { animation-delay: .75s; animation-duration: .5s; }
[data-etapa="0"] .dsh__boceto path:nth-child(4) { animation-delay: .95s; animation-duration: .4s; }
[data-etapa="0"] .dsh__boceto path:nth-child(5) { animation-delay: 1.35s; animation-duration: .6s; }
[data-etapa="0"] .dsh__boceto path:nth-child(6) { animation-delay: 1.8s; animation-duration: .3s; }
@keyframes dsh-dibuja { from { stroke-dashoffset: 1; } }
[data-etapa="0"] .dsh__boceto path:first-child { animation-delay: .1s; }
[data-etapa="0"] .dsh__lapiz { animation: dsh-lapiz 2.15s cubic-bezier(.45, 0, .3, 1) both; }
@keyframes dsh-lapiz {
	0% { opacity: 0; transform: translate(240px, 83px); }
	6% { opacity: 1; transform: translate(240px, 83px); }
	18% { transform: translate(292px, 128px); } 30% { transform: translate(286px, 180px); } 40% { transform: translate(240px, 217px); }
	50% { transform: translate(194px, 180px); } 58% { transform: translate(188px, 128px); } 64% { transform: translate(240px, 83px); }
	72% { transform: translate(192px, 288px); } 84% { transform: translate(250px, 282px); }
	94% { opacity: 1; transform: translate(290px, 318px); } 100% { opacity: 0; transform: translate(300px, 324px); }
}

/* 1 · Vector: el boceto se funde en un contorno limpio con manijas y guías */
[data-etapa="1"] .dsh__guias { opacity: .4; }
[data-etapa="1"] .dsh__trazo { animation: dsh-dibuja 1.3s var(--e) both; }
[data-etapa="1"] .dsh__trazo:nth-child(2) { animation-delay: .15s; }
[data-etapa="1"] .dsh__trazo:nth-child(3) { animation-delay: .3s; }
[data-etapa="1"] .dsh__trazo:nth-child(n+4) { animation-delay: .45s; }
[data-etapa="1"] .dsh__linea { opacity: 1; stroke-dashoffset: 0; animation: dsh-dibuja 1.9s cubic-bezier(.45, 0, .3, 1) .2s both; }
[data-etapa="1"] .dsh__manijas { opacity: 1; transition: opacity .5s 1.3s; }
[data-etapa="1"] .dsh__medida { opacity: 1; transition: opacity .4s 1.7s; }
[data-etapa="1"] .dsh__pluma { animation: dsh-pluma 2.3s cubic-bezier(.45, 0, .3, 1) .2s both; }
@keyframes dsh-pluma {
	0% { opacity: 0; transform: translate(240px, 82.8px); }
	8% { opacity: 1; transform: translate(240px, 82.8px); }
	22% { transform: translate(292px, 128px); } 38% { transform: translate(286px, 180px); } 52% { transform: translate(240px, 217px); }
	66% { transform: translate(194px, 180px); } 80% { transform: translate(188px, 128px); }
	92% { opacity: 1; transform: translate(240px, 82.8px); } 100% { opacity: 0; transform: translate(250px, 70px); }
}

/* 2 · Color: llegan muestras de la paleta; dos pruebas y la definitiva */
[data-etapa="2"] .dsh__guias { opacity: .3; }
[data-etapa="2"] .dsh__sel { opacity: 1; }
[data-etapa="2"] .dsh__relleno { transition: none; }
[data-etapa="2"] .dsh__relleno--a { animation: dsh-prueba-a 2.9s var(--e) both; }
[data-etapa="2"] .dsh__relleno--b { animation: dsh-prueba-b 2.9s var(--e) both; }
[data-etapa="2"] .dsh__relleno--c { animation: dsh-prueba-c 2.9s var(--e) both; }
[data-etapa="2"] .dsh__hueco { animation: dsh-hueco 2.9s var(--e) both; }
[data-etapa="2"] .dsh__punto { animation: dsh-punto .6s cubic-bezier(.2, 1.6, .4, 1) 2.2s both; }
@keyframes dsh-prueba-a { 0%, 14% { opacity: 0; } 24%, 36% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes dsh-prueba-b { 0%, 42% { opacity: 0; } 50%, 62% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes dsh-prueba-c { 0%, 68% { opacity: 0; } 76%, 100% { opacity: 1; } }
@keyframes dsh-hueco { 0%, 16% { opacity: 0; } 24%, 100% { opacity: 1; } }
@keyframes dsh-punto { from { opacity: 0; transform: scale(0); } }
/* Muestra en vuelo: de su HEX en la paleta al centro del logo (origen/destino en px los pone el JS) */
.dsh__vuelo { position: absolute; left: 0; top: 0; z-index: 3; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 6px; box-shadow: 0 10px 20px -8px rgba(18, 16, 17, .5), inset 0 0 0 1px rgba(18, 16, 17, .1); opacity: 0; pointer-events: none; }
[data-etapa="2"] .dsh__vuelo { animation: dsh-vuelo .75s var(--e) calc(var(--n) * 840ms + 60ms) both; }
@keyframes dsh-vuelo {
	0% { opacity: 0; transform: translate(var(--x0), var(--y0)) scale(.8); }
	12% { opacity: 1; }
	80% { opacity: 1; transform: translate(var(--x1), var(--y1)) scale(1); }
	100% { opacity: 0; transform: translate(var(--x1), var(--y1)) scale(2.4); }
}
.dsh__vuelo--logo { width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 0; background: none; box-shadow: none; color: var(--c1); --dsh-hueco: var(--c5); }
[data-etapa="2"] .dsh__vuelo--logo { animation: none; }
[data-etapa="4"] .dsh__vuelo--logo { animation: dsh-vuelo-logo .9s var(--e) .15s both; }
@keyframes dsh-vuelo-logo {
	0% { opacity: 0; transform: translate(var(--x0), var(--y0)) scale(2.2); }
	15% { opacity: 1; } 85% { opacity: 1; }
	100% { opacity: 0; transform: translate(var(--x1), var(--y1)) scale(.9); }
}
.dsh__vuelo.is-sin { display: none; }

/* 3 · Tipografía: el logotipo prueba tres familias y se queda con la serif itálica */
[data-etapa="3"] .dsh__guias { opacity: .2; }
[data-etapa="3"] :is(.dsh__wm, .dsh__tag) { transition: none; }
[data-etapa="3"] .dsh__wm--a { animation: dsh-tipo-a 2.5s var(--e) both; }
[data-etapa="3"] .dsh__wm--b { animation: dsh-tipo-b 2.5s var(--e) both; }
[data-etapa="3"] .dsh__wm--c { animation: dsh-tipo-c 2.5s var(--e) both; }
[data-etapa="3"] .dsh__tag { animation: dsh-tipo-tag 2.5s var(--e) both; }
[data-etapa="3"] .dsh__kern { animation: dsh-kern 2.5s ease both; }
@keyframes dsh-tipo-a { 0% { opacity: 0; transform: translateY(8px); } 8%, 28% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; } }
@keyframes dsh-tipo-b { 0%, 30% { opacity: 0; } 36%, 56% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes dsh-tipo-c { 0%, 58% { opacity: 0; transform: translateY(6px); } 68%, 100% { opacity: 1; transform: none; } }
@keyframes dsh-tipo-tag { 0%, 70% { opacity: 0; } 82%, 100% { opacity: 1; } }
@keyframes dsh-kern { 0%, 64% { opacity: 0; } 72%, 90% { opacity: 1; } 100% { opacity: 0; } }
[data-etapa="3"] .dsh__aa { animation: dsh-aa 2.5s both; }
@keyframes dsh-aa {
	0%, 29% { font-family: 'Outfit', sans-serif; font-style: normal; font-weight: 400; }
	31%, 59% { font-family: 'Marko Display', 'Outfit', sans-serif; font-style: normal; font-weight: 800; }
	61%, 100% { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
}

/* 4 · Aplicaciones: el logo viaja a la tarjeta (que gira), aparecen vaso y perfil; «Listo ✓» */
[data-etapa="4"] .dsh__mock--taza { animation: dsh-pop .7s var(--e) 1s both; }
[data-etapa="4"] .dsh__mock--movil { animation: dsh-pop .7s var(--e) 1.35s both; }
@keyframes dsh-pop { from { opacity: 0; transform: translateY(14px) scale(.85); } }
[data-etapa="4"] .dsh__etq small { animation: dsh-sale 3.6s both; }
[data-etapa="4"] .dsh__listo { opacity: 1; transform: none; animation: dsh-listo 3.6s var(--e) both; }
@keyframes dsh-sale { 0%, 62% { opacity: 1; } 68%, 100% { opacity: 0; } }
@keyframes dsh-listo { 0%, 64% { opacity: 0; transform: translateY(4px); } 72%, 100% { opacity: 1; transform: none; } }

/* Satélites (reaccionan a la etapa) */
.dsh__sats { display: grid; grid-template-columns: 1.5fr 1fr 1.15fr; gap: clamp(10px, 1.4vw, 16px); align-items: stretch; }
.dsh__sat { position: relative; min-width: 0; padding: 14px; border-radius: 16px; background: #fff; color: #121011; box-shadow: 0 30px 50px -30px rgba(18, 16, 17, .45); transform: rotate(var(--r, 0deg)); transition: transform .7s var(--e); animation: dsh-entra .9s var(--ease) calc(.3s + var(--k) * 120ms) backwards; }
.dsh__sat::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 2px var(--accent), 0 18px 40px -18px rgba(255, 91, 35, .7); opacity: 0; transition: opacity .5s var(--e); pointer-events: none; }
[data-etapa="2"] .dsh__sat--paleta, [data-etapa="3"] .dsh__sat--tipo, [data-etapa="4"] .dsh__sat--tarjeta { transform: translateY(-5px) rotate(0deg); }
[data-etapa="2"] .dsh__sat--paleta::after, [data-etapa="3"] .dsh__sat--tipo::after, [data-etapa="4"] .dsh__sat--tarjeta::after { opacity: 1; }
.dsh__sat-t { margin: 0 0 10px; color: #6C6A6C; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.dsh__sat--paleta { --r: -1.5deg; }
.dsh__muestras { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin: 0; padding: 0; list-style: none; }
.dsh__muestras li { display: grid; gap: 6px; min-width: 0; }
.dsh__muestras i { display: block; aspect-ratio: 1 / 1.25; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(18, 16, 17, .08); }
.dsh__muestras small { overflow: hidden; color: #6C6A6C; font: 500 8.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: clip; white-space: nowrap; }
.dsh__sat--tipo { --r: 1.5deg; display: grid; align-content: start; }
.dsh__aa { color: var(--c1); font: italic 400 clamp(40px, 4vw, 56px)/.9 'Instrument Serif', serif; }
.dsh__sat--tipo small { margin-top: 8px; color: #6C6A6C; font-size: 10.5px; line-height: 1.35; }
.dsh__sat--tipo b { color: #121011; font-weight: 600; }
.dsh__sat--tarjeta { --r: -1deg; display: grid; padding: 0; border-radius: 12px; background: none; box-shadow: none; perspective: 700px; }
.dsh__tj { position: relative; display: grid; min-height: 96px; border-radius: 12px; transform-style: preserve-3d; transition: transform .9s var(--e) .7s; }
[data-etapa="0"] .dsh__tj, [data-etapa="1"] .dsh__tj, [data-etapa="2"] .dsh__tj, [data-etapa="3"] .dsh__tj { transform: rotateY(180deg); transition-delay: 0s; }
.dsh__tj-cara { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; background: var(--c1); box-shadow: 0 30px 50px -26px rgba(18, 16, 17, .6), inset 0 0 0 1px rgba(255, 255, 255, .1); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.dsh__tj-cara--dorso { background: #fff; box-shadow: 0 30px 50px -30px rgba(18, 16, 17, .45), inset 0 0 0 1px rgba(18, 16, 17, .08); transform: rotateY(180deg); }
.dsh__tj-cara--dorso small { padding: 10px 12px; border: 1.5px dashed rgba(18, 16, 17, .2); border-radius: 8px; color: #A8A4A6; font: 500 10px/1 ui-monospace, Menlo, monospace; }
.dsh__tj svg { width: 30%; max-width: 44px; color: var(--c5); --dsh-hueco: var(--c1); }
.dsh__tj b { color: var(--c5); font: italic 400 clamp(28px, 2.6vw, 38px)/1 'Instrument Serif', serif; }

.dsh.is-pausado *, .dsh.is-pausado *::before, .dsh.is-pausado *::after { animation-play-state: paused !important; }

/* ── Laptop ── */
@media (max-width: 1180px) {
	.dsh__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.dsh h1 { font-size: clamp(40px, 4.8vw, 64px); }
	.dsh__muestras small { display: none; }
	.dsh__paso { gap: 4px; font-size: 11px; }
	.dsh__paso-n { display: none; }
}

/* ── Tablet: una columna ── */
@media (max-width: 960px) {
	.dsh__in { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 32px; padding-top: calc(112px + 20px); }
	.dsh h1 { max-width: 14ch; font-size: clamp(40px, 7vw, 64px); }
	.dsh__escena { justify-self: center; }
	.dsh__muestras small { display: block; }
	.dsh__paso-n { display: inline; }
	.dsh__oro { top: 72%; right: -30%; width: 120vw; }
}

/* ── Celular: tablero + paleta ── */
@media (max-width: 600px) {
	.dsh__in { gap: 22px; padding-top: calc(96px + 14px); padding-bottom: 40px; padding-left: calc(var(--m) + 6px); }
	.dsh__ceja { margin-bottom: 14px; font-size: 12px; letter-spacing: .08em; }
	.dsh h1 { font-size: clamp(38px, 11vw, 52px); }
	.dsh__lead { margin-top: 14px; font-size: 15.5px; }
	.dsh__chips { display: none; }
	.dsh__acc { margin-top: 22px; }
	.dsh__cta, .dsh__sec { flex: 1 1 100%; }
	.dsh__escena { gap: 12px; }
	.dsh__tablero { padding: 0 8px 8px; border-radius: 16px; }
	.dsh__barra { min-height: 38px; }
	.dsh__etq, .dsh__etq small { font-size: 10.5px; }
	/* Stepper compacto: 5 puntos + nombre de la etapa actual */
	.dsh__pasos { gap: 10px; padding-bottom: 8px; }
	.dsh__riel { flex: none; width: 170px; }
	.dsh__paso { justify-content: center; min-height: 36px; padding: 0 0 6px; }
	.dsh__paso-n { display: none; }
	.dsh__paso-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.dsh__paso::before { content: ""; width: 8px; height: 8px; margin-top: 12px; border-radius: 50%; background: #DAD5CF; transition: background-color .4s, transform .4s var(--e); }
	.dsh__paso[aria-current]::before { background: var(--accent); transform: scale(1.25); }
	.dsh__actual { display: block; overflow: hidden; color: var(--tinta); font-size: 12.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
	.dsh__sats { grid-template-columns: minmax(0, 1fr); }
	.dsh__sat--tipo, .dsh__sat--tarjeta { display: none; }
	.dsh__sat--paleta { --r: 0deg; padding: 12px; }
	.dsh__muestras small { font-size: 8px; }
	.dsh__regla--y { width: 10px; background-size: 4px 100%, 8px 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.dsh *, .dsh *::before, .dsh *::after { animation: none !important; transition: none !important; }
	.dsh__curva-t { stroke-dashoffset: 0; }
	.dsh__curva-m { opacity: 1; }
}

/* revisión previa a producción: toques de 44 px y nada de letra < 12 px */
@media (pointer: coarse) { .dsh__paso { min-height: 44px; } }
