/* ==========================================================================
   Versión clásica por escenas (escenas.js): sin scroll, una escena a la vez,
   el hada que dibuja la escena siguiente y estrellas de índice al costado
   ========================================================================== */
html.escenas, html.escenas body { overflow: hidden; height: 100%; }
html.escenas main > section { display: none; }
html.escenas #site > footer, html.escenas .volver-arriba { display: none; }
html.escenas .ev #site > footer, html.escenas .ev footer { display: block; }
html.escenas .escenas-capa { position: fixed; left: 0; right: 0; top: 70px; bottom: 0; z-index: 2; }
html.escenas .ev { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; padding: 14px 84px 56px; overflow: hidden; }
html.escenas .ev.activa { display: flex; }
html.escenas .ev.desborda { overflow-y: auto; align-items: flex-start; scrollbar-width: thin; }
html.escenas .ev-caja { width: min(1400px, 100%); }
html.escenas .ev .section-head { margin-bottom: 26px; }
html.escenas .ev.animando, html.escenas .ev.animando * { transition: none !important; }

/* cada escena ocupa la pantalla sin los rellenos de la página larga */
html.escenas .ev-inicio .hero { min-height: 0; padding: 0; width: 100%; }
html.escenas .ev .studio-hero, html.escenas .ev .service-gallery, html.escenas .ev .studio-team,
html.escenas .ev .leyendas, html.escenas .ev .design-story, html.escenas .ev .health-card, html.escenas .ev .cv-cta { margin-top: 0; margin-bottom: 0; }
html.escenas .ev .service-more { margin-bottom: 0; }
html.escenas .ev-contacto .contact-section { padding: 0; background: none; }
html.escenas .ev-contacto footer { background: none; border: 0; margin-top: 34px; }
html.escenas .ev-contacto .ev-caja { text-align: center; }
html.escenas .ev-leyendas .leyendas-grid { max-height: none; }

/* velo: el mismo oscurecimiento que kdelrio.github.io, para que todo se lea bien sobre el reino */
.escenas-velo { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .8s ease;
  background: radial-gradient(ellipse 90% 85% at 50% 50%, rgba(3, 11, 26, .78), rgba(3, 11, 26, .5)); }
.escenas-velo.visible { opacity: 1; }
html[data-tema="claro"] .escenas-velo { background: radial-gradient(ellipse 90% 85% at 50% 50%, rgba(244, 248, 255, .86), rgba(244, 248, 255, .55)); }

/* menú: la sección que se está mirando */
html.escenas .topbar nav a.activo { color: var(--white); background: rgba(245, 168, 207, .16); border-radius: 10px; box-shadow: inset 0 -2px 0 var(--rosa, #f5a8cf); }
html[data-tema="claro"].escenas .topbar nav a.activo { color: var(--tinta, #3b2546); background: rgba(226, 109, 156, .14); }

/* ---------------------------------------------------------------- el hada tapa todo con niebla mágica y pinta la sección siguiente */
.hechizo-paso { position: fixed; inset: 0; z-index: 1150; pointer-events: none; visibility: hidden; overflow: hidden; }
.hechizo-niebla { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(5px); }
.hechizo-hada { position: absolute; left: 0; top: 0; height: 230px; width: auto; will-change: transform; filter: drop-shadow(0 0 14px rgba(255, 231, 244, .9)) drop-shadow(0 0 26px rgba(145, 220, 255, .55)); }
.hechizo-nombre { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; margin: 0; text-align: center; font: 700 clamp(2.4rem, 5.4vw, 4.6rem)/1.1 var(--titulo, "Cinzel", serif); letter-spacing: .04em;
  color: #8a5aa8; text-shadow: 0 0 2px #fff, 0 0 14px #ffd9ea, 0 0 30px #91dcff, 0 0 46px rgba(245, 168, 207, .8); }
.hechizo-estrella { position: absolute; font-style: normal; font-size: var(--t); line-height: 1; color: var(--c); translate: -50% -50%; text-shadow: 0 0 6px var(--c), 0 0 14px rgba(145, 220, 255, .9);
  animation: hechizo-estrella 1.4s ease-out forwards; }
@keyframes hechizo-estrella { 0% { opacity: 0; transform: scale(.2) rotate(var(--g)); } 20% { opacity: 1; transform: scale(1.25) rotate(calc(var(--g) + 40deg)); } 100% { opacity: 0; transform: translateY(22px) scale(.5) rotate(calc(var(--g) + 160deg)); } }

/* ---------------------------------------------------------------- índice: una estrella por escena */
.escenas-indice { position: fixed; left: 22px; top: 50%; translate: 0 -50%; z-index: 95; display: grid; gap: 9px; }
.escenas-indice button { position: relative; width: 14px; height: 14px; padding: 0; border: 0; cursor: pointer; background: none; }
.escenas-indice button::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: rgba(255, 250, 253, .45); transition: transform .2s, background .2s; }
.escenas-indice button.seccion::before { inset: 3px; background: rgba(243, 212, 138, .7); }
.escenas-indice button:hover::before { transform: scale(1.4); }
.escenas-indice button.activo::before { inset: -2px; border-radius: 0; background: #f5a8cf; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); filter: drop-shadow(0 0 6px #f5a8cf); }
.escenas-indice button::after { content: attr(data-nombre); position: absolute; left: 24px; top: 50%; translate: 0 -50%; white-space: nowrap; padding: 4px 10px; border-radius: 8px;
  font: 600 .78rem/1 var(--sans); color: #fffafd; background: rgba(8, 17, 39, .85); opacity: 0; pointer-events: none; transition: opacity .2s; }
.escenas-indice button:hover::after, .escenas-indice button:focus-visible::after { opacity: 1; }
html[data-tema="claro"] .escenas-indice button::before { background: rgba(59, 37, 70, .35); }
html[data-tema="claro"] .escenas-indice button.seccion::before { background: rgba(185, 130, 40, .7); }
html[data-tema="claro"] .escenas-indice button.activo::before { background: #e26d9c; }

/* pista de la rueda: un ratón con una chispa que baja */
.escenas-pista { position: fixed; left: 50%; bottom: 14px; translate: -50% 0; z-index: 95; width: 22px; height: 34px; border-radius: 12px; border: 2px solid rgba(255, 250, 253, .55); pointer-events: none; transition: opacity .4s; }
.escenas-pista span { position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #f5a8cf; animation: pista-rueda 1.6s ease-in-out infinite; }
.escenas-pista.oculta { opacity: 0; }
html[data-tema="claro"] .escenas-pista { border-color: rgba(59, 37, 70, .45); }
@keyframes pista-rueda { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* mientras el hada pinta el reino o se lee el cuento, la navegación por escenas no se ve */
.site.pintando ~ .escenas-indice, .site.pintando ~ .escenas-pista,
html:has(#site[aria-hidden="true"]) .escenas-indice, html:has(#site[aria-hidden="true"]) .escenas-pista,
html:has(#site.pintando) .escenas-indice, html:has(#site.pintando) .escenas-pista { opacity: 0; visibility: hidden; }

/* fuera de la portada solo queda el velo suave de la escena: el reino de acuarela se sigue viendo detrás */
html.escena-contenido .reino-velo { opacity: 0 !important; }
/* ---------------------------------------------------------------- ancho completo: la escena usa toda la pantalla
   (a la izquierda las estrellas del índice, a la derecha el carril por donde vuela el dragón) */
html.escenas .ev { padding: 14px 170px 56px 90px; }
html.escenas .ev-caja { width: 100%; max-width: none; }
html.escenas .ev :is(.wrap, .hero) { width: 100%; max-width: none; margin-inline: 0; }

/* ---------------------------------------------------------------- un mismo sistema en toda la página (estructura de kdelrio, identidad de esta página) */
:root { --e-texto: #f6f2fb; --e-suave: #d3cfe3; --e-tenue: #a9a3c2; --e-oro: #e2ba53; --e-oro2: #f3d48a; --e-rosa: #f5a8cf;
  --e-panel: rgba(10, 16, 40, .74); --e-linea: rgba(226, 186, 83, .3); --e-sombra: 0 18px 40px rgba(0, 0, 0, .32); }
html[data-tema="claro"] { --e-texto: #2b2140; --e-suave: #4a4060; --e-tenue: #6a5f80; --e-oro: #9c6a10; --e-oro2: #9c6a10; --e-rosa: #c2457f;
  --e-panel: rgba(255, 252, 246, .92); --e-linea: rgba(156, 106, 16, .3); --e-sombra: 0 14px 30px rgba(60, 40, 90, .16); }

/* encabezado de cada escena: etiqueta dorada, título y una bajada corta, centrados */
html.escenas .ev .section-head { display: block; max-width: 900px; margin: 0 auto 26px; text-align: center; }
html.escenas .ev .section-head .eyebrow { margin: 0 0 6px; color: var(--e-oro); font: 700 .78rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
html.escenas .ev .section-head h2 { margin: 0 0 12px; color: var(--e-texto); font: 700 clamp(1.9rem, 3.6vw, 2.9rem)/1.12 var(--titulo, "Cinzel", serif); letter-spacing: .02em; }
html.escenas .ev .section-head h2 br { display: none; }
html.escenas .ev .section-head > p { max-width: 820px; margin: 0 auto; color: var(--e-suave); font-size: 1.05rem; line-height: 1.55; }
html.escenas .ev :is(.art-context, .art-credit, .transition-explanation, .leyendas-aviso, .team-outcome) { color: var(--e-suave); text-align: center; }

/* paneles: todos iguales */
html.escenas .ev :is(.studio-brand-card, .service-gallery article, .service-more article, .role-node, .leyendas, .design-story, .health-card, .credential-gallery article, .cv-cta, .oraculo-form, .oraculo-viz, .transition-path a, .contacto) {
  background: var(--e-panel); border: 1px solid var(--e-linea); border-radius: 14px; box-shadow: var(--e-sombra); backdrop-filter: none; color: var(--e-texto); }
html.escenas .ev :is(.studio-team, .studio-hero) { background: none; border: 0; box-shadow: none; padding: 0; }
html.escenas .ev .studio-team > div:first-child { text-align: center; max-width: 820px; margin: 0 auto 20px; }
html.escenas .ev .studio-team > div:first-child .eyebrow { color: var(--e-oro); }
html.escenas .ev :is(h3, h4) { color: var(--e-texto); }
html.escenas .ev :is(.studio-brand-card, .service-gallery article, .service-more article, .role-node, .health-card, .credential-gallery article, .cv-cta, .design-story) p { color: var(--e-suave); }
html.escenas .ev .studio-brand-card { padding: 26px 30px; }
html.escenas .ev .journey-step { background: rgba(255, 255, 255, .04); border: 1px solid var(--e-linea); border-radius: 12px; }
html.escenas .ev .chip { color: var(--e-oro2); border-color: var(--e-linea); }
html.escenas .ev .btn.primary { background: linear-gradient(135deg, #f5a8cf, #ba93f0); color: #1c1233; border: 0; }
html.escenas .ev .btn.ghost { color: var(--e-texto); border: 1px solid var(--e-linea); background: transparent; }

/* aplicaciones (calculadora, caja, tienda en vivo y juegos): una ventana clara y simple, con el arte del libro adentro */
html.escenas .papel-app { position: relative; padding: 20px 24px 24px; background: #fff8ef; border: 1px solid var(--e-linea); border-radius: 14px; box-shadow: var(--e-sombra); }
html.escenas .papel-marcos > .papel-app:not(.activo) { display: none; }
html.escenas .papel-app .game-panel { display: block; }
html.escenas .papel-app .app-nota { margin: 0 0 12px; }
html.escenas .app-vitrina .vitrina-viva { padding: 0; }
html.escenas .app-vitrina .vitrina-viva iframe { height: min(56vh, 600px); }
html.escenas .app-vitrina .botonera { display: flex; justify-content: center; gap: 12px; margin: 12px 0 0; }
html.escenas .papel-app.app-calc { max-width: 1000px; margin-inline: auto; }
html.escenas .papel-app .btn.ghost { color: #6a2c55; background: #fff6fb; border: 2px solid #f0d6e8; }
html.escenas .papel-app .btn.primary { color: #fff; background: #c98bb8; }
.papel-pestanas { display: flex; justify-content: center; gap: 10px; margin: 0 0 16px; }
.papel-pestanas button { font: 700 .88rem var(--sans); padding: 9px 18px; border-radius: 999px; border: 1px solid var(--e-linea); background: var(--e-panel); color: var(--e-suave); cursor: pointer; transition: border-color .2s, color .2s; }
.papel-pestanas button:hover { color: var(--e-texto); border-color: var(--e-oro); }
.papel-pestanas button.activo { color: #1c1233; background: linear-gradient(135deg, #f5a8cf, #ba93f0); border-color: transparent; }

/* contacto: tarjetas con ícono, título y dato, como en kdelrio */
.contactos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 22px auto 0; max-width: 1200px; }
.contacto { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 12px; text-decoration: none; text-align: center; transition: transform .2s, border-color .2s; }
.contacto:hover { transform: translateY(-3px); border-color: var(--e-oro) !important; }
.contacto svg { width: 30px; height: 30px; fill: var(--e-oro2); }
.contacto b { font: 700 1.05rem var(--sans); color: var(--e-texto); }
.contacto small { color: var(--e-tenue); word-break: break-all; font-size: .82rem; }
@media (max-width: 900px) { .contactos { grid-template-columns: 1fr 1fr; } }
html.escenas .ev-contacto .section-head { margin-bottom: 0; }
html.escenas .ev-contacto footer .wrap { display: block; }
html.escenas .ev-contacto footer { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--e-linea); text-align: center; }
html.escenas .ev-contacto footer p { margin: 4px auto; max-width: 900px; color: var(--e-tenue); font: 400 .82rem/1.5 var(--sans); letter-spacing: 0; }
html.escenas .ev-contacto footer p:first-child { color: var(--e-suave); font-size: .9rem; }
html.escenas .ev-contacto footer a { color: var(--e-rosa); }

/* ---------------------------------------------------------------- el salón de los juegos: las máquinas del libro */
.salon-arcade { display: flex; justify-content: center; align-items: flex-end; gap: clamp(30px, 6vw, 110px); padding: 10px 0 0; }
.salon-arcade[hidden] { display: none; }
.maquina { display: grid; justify-items: center; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer; }
.maquina-spr { display: block; height: min(46vh, 420px); aspect-ratio: 264 / 400; background: 0 0 / 800% 500% no-repeat; filter: drop-shadow(0 14px 18px rgba(5, 10, 30, .4)); transition: transform .25s, filter .25s; }
.maquina:hover .maquina-spr, .maquina:focus-visible .maquina-spr { transform: translateY(-8px) scale(1.03); filter: drop-shadow(0 0 18px rgba(245, 168, 207, .8)) drop-shadow(0 14px 18px rgba(5, 10, 30, .4)); }
.maquina-rotulo { font: 700 1rem 'Mali', sans-serif; color: #6a2c55; padding: 6px 16px; border-radius: 14px; background: #fff6fb; border: 3px solid #fff; box-shadow: 0 3px 0 #e2c4dc; }
.sala-juegos:not(.abierta) { display: none; }
.app-juego .juego-acciones { gap: 10px; }
.app-juego .juego-salon { background: #fff6fb !important; color: #6a2c55 !important; box-shadow: 0 3px 0 #e2c4dc !important; }

/* ---------------------------------------------------------------- al final, los dragoncitos esperan al dragón */
.nido-escena { position: relative; width: max-content; margin: 34px auto 0; pointer-events: none; }
.nido-crias { display: flex; align-items: flex-end; gap: 14px; }
.nido-posada { width: 110px; height: 104px; flex: none; }
.cria { display: block; flex: none; height: 70px; width: auto; filter: drop-shadow(0 0 6px rgba(245, 168, 207, .55)); }
.nido-posada ~ .cria { scale: -1 1; }                  /* las de la derecha se voltean para mirar al dragón del centro */
.cria.duerme { height: 50px; transform-origin: 50% 100%; animation: cria-respira 2.6s ease-in-out infinite; }
.nido-escena.llego .salta { animation: cria-salta .45s ease-out infinite alternate; }
.nido-escena.llego .salta:nth-child(3) { animation-delay: .17s; } .nido-escena.llego .salta:nth-child(5) { animation-delay: .09s; }
.nido-escena.llego .salta:nth-child(6) { animation-delay: .26s; } .nido-escena.llego .salta:nth-child(7) { animation-delay: .34s; }
@keyframes cria-salta { to { translate: 0 -14px; } }
@keyframes cria-respira { 50% { transform: scaleY(.94); } }
/* el dragón posado deja de aletear */
.dragoncito.posado .dragoncito-spr { animation: none; transform: none; background: url("assets/dragon-posado.webp") 50% 100% / contain no-repeat; }   /* sentado, como el de kdelrio */
.dragoncito.posado .dragoncito-globo { opacity: 0; }
html.escenas .ev-contacto .nido-escena { margin-top: 18px; }
.cria[src$="cria-4.webp"] { height: 54px; }
/* en celular el nido entero (seis crías y el lugar del dragón) se achica para no salirse por el costado */
@media (max-width: 600px) {
  .nido-crias { gap: 6px; }
  .nido-posada { width: 70px; height: 66px; }
  .cria { height: 42px; }
  .cria.duerme { height: 30px; }
  .cria[src$="cria-4.webp"] { height: 33px; }
}

/* ---------------------------------------------------------------- cuadros mágicos: una ventanita al cosmos del reino
   fondo de cielo con manchas de acuarela y polvo de estrellas, borde brillante en degradé y destellos en las esquinas */
:root { --estrellas: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'240'%20height%3D'240'%3E%3Ccircle%20cx%3D'0.0'%20cy%3D'31.6'%20r%3D'1.00'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.80'%2F%3E%3Ccircle%20cx%3D'127.9'%20cy%3D'52.6'%20r%3D'1.25'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.38'%2F%3E%3Ccircle%20cx%3D'163.0'%20cy%3D'224.3'%20r%3D'1.07'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.58'%2F%3E%3Ccircle%20cx%3D'199.4'%20cy%3D'8.3'%20r%3D'1.08'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.38'%2F%3E%3Ccircle%20cx%3D'161.1'%20cy%3D'1.8'%20r%3D'0.57'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.58'%2F%3E%3Ccircle%20cx%3D'100.2'%20cy%3D'164.8'%20r%3D'1.52'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.70'%2F%3E%3Ccircle%20cx%3D'203.1'%20cy%3D'126.5'%20r%3D'1.22'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.41'%2F%3E%3Ccircle%20cx%3D'99.8'%20cy%3D'168.3'%20r%3D'1.34'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.90'%2F%3E%3Ccircle%20cx%3D'63.0'%20cy%3D'11.4'%20r%3D'0.86'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.79'%2F%3E%3Ccircle%20cx%3D'151.8'%20cy%3D'181.5'%20r%3D'0.90'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.94'%2F%3E%3Ccircle%20cx%3D'59.3'%20cy%3D'235.8'%20r%3D'1.33'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.78'%2F%3E%3Ccircle%20cx%3D'156.4'%20cy%3D'17.4'%20r%3D'1.47'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.73'%2F%3E%3Ccircle%20cx%3D'65.5'%20cy%3D'104.7'%20r%3D'1.03'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.81'%2F%3E%3Ccircle%20cx%3D'57.1'%20cy%3D'66.0'%20r%3D'0.68'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.57'%2F%3E%3Ccircle%20cx%3D'116.8'%20cy%3D'215.4'%20r%3D'0.57'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.90'%2F%3E%3Ccircle%20cx%3D'217.1'%20cy%3D'121.1'%20r%3D'0.85'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.66'%2F%3E%3Ccircle%20cx%3D'236.8'%20cy%3D'118.6'%20r%3D'0.60'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.51'%2F%3E%3Ccircle%20cx%3D'227.5'%20cy%3D'17.7'%20r%3D'0.92'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.65'%2F%3E%3Ccircle%20cx%3D'66.5'%20cy%3D'219.3'%20r%3D'1.01'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.67'%2F%3E%3Ccircle%20cx%3D'225.8'%20cy%3D'12.0'%20r%3D'1.35'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.81'%2F%3E%3Ccircle%20cx%3D'198.7'%20cy%3D'30.1'%20r%3D'1.26'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.36'%2F%3E%3Ccircle%20cx%3D'208.4'%20cy%3D'151.1'%20r%3D'1.30'%20fill%3D'%23ffffff'%20fill-opacity%3D'0.79'%2F%3E%3Cpath%20d%3D'M239.9%20209.6L240.8%20212.3L243.6%20213.3L240.8%20214.2L239.9%20217.0L238.9%20214.2L236.2%20213.3L238.9%20212.3Z'%20fill%3D'%23ffffff'%20fill-opacity%3D'.8'%2F%3E%3Cpath%20d%3D'M73.5%2079.7L74.7%2083.1L78.1%2084.2L74.7%2085.4L73.5%2088.8L72.4%2085.4L69.0%2084.2L72.4%2083.1Z'%20fill%3D'%23ffffff'%20fill-opacity%3D'.8'%2F%3E%3Cpath%20d%3D'M141.9%20198.8L142.9%20202.0L146.1%20203.0L142.9%20204.1L141.9%20207.3L140.8%20204.1L137.6%20203.0L140.8%20202.0Z'%20fill%3D'%23ffffff'%20fill-opacity%3D'.8'%2F%3E%3C%2Fsvg%3E");
  --cosmos: radial-gradient(120% 85% at 0% 0%, rgba(186, 147, 240, .16), transparent 55%), radial-gradient(90% 75% at 100% 100%, rgba(245, 168, 207, .12), transparent 60%),
    radial-gradient(70% 55% at 85% 8%, rgba(145, 220, 255, .16), transparent 60%), var(--estrellas) 0 0 / 240px 240px, linear-gradient(160deg, rgba(24, 18, 60, .32), rgba(9, 13, 36, .4));
  --borde-magico: linear-gradient(135deg, #f3d48a, #f5a8cf 35%, #ba93f0 65%, #91dcff); --brillo-magico: rgba(186, 147, 240, .32); }
html[data-tema="claro"] { --estrellas: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'240'%20height%3D'240'%3E%3Ccircle%20cx%3D'0.0'%20cy%3D'31.6'%20r%3D'1.00'%20fill%3D'%23c08a1e'%20fill-opacity%3D'0.80'%2F%3E%3Ccircle%20cx%3D'127.9'%20cy%3D'52.6'%20r%3D'1.25'%20fill%3D'%23c08a1e'%20fill-opacity%3D'0.38'%2F%3E%3Ccircle%20cx%3D'163.0'%20cy%3D'224.3'%20r%3D'1.07'%20fill%3D'%23c08a1e'%20fill-opacity%3D'0.58'%2F%3E%3Ccircle%20cx%3D'199.4'%20cy%3D'8.3'%20r%3D'1.08'%20fill%3D'%23c08a1e'%20fill-opacity%3D'0.38'%2F%3E%3Ccircle%20cx%3D'161.1'%20cy%3D'1.8'%20r%3D'0.57'%20fill%3D'%23c08a1e'%20fill-opacity%3D'0.58'%2F%3E%3Ccircle%20cx%3D'100.2'%20cy%3D'164.8'%20r%3D'1.52'%20fill%3D'%23c08a1e'%20fill-opacity%3D'0.70'%2F%3E%3Ccircle%20cx%3D'203.1'%20cy%3D'126.5'%20r%3D'1.22'%20fill%3D'%23c08a1e'%20fill-opacity%3D'0.41'%2F%3E%3Ccircle%20cx%3D'99.8'%20cy%3D'168.3'%20r%3D'1.34'%20fill%3D'%23c08a1e'%20fill-opacity%3D'0.90'%2F%3E%3Ccircle%20cx%3D'63.0'%20cy%3D'11.4'%20r%3D'0.86'%20fill%3D'%23c08a1e'%20fill-opacity%3D'0.79'%2F%3E%3Ccircle%20cx%3D'151.8'%20cy%3D'181.5'%20r%3D'0.90'%20fill%3D'%23c08a1e'%20fill-opacity%3D'0.94'%2F%3E%3Ccircle%20cx%3D'59.3'%20cy%3D'235.8'%20r%3D'1.33'%20fill%3D'%23c08a1e'%20fill-opacity%3D'0.78'%2F%3E%3Ccircle%20cx%3D'156.4'%20cy%3D'17.4'%20r%3D'1.47'%20fill%3D'%23c08a1e'%20fill-opacity%3D'0.73'%2F%3E%3Ccircle%20cx%3D'65.5'%20cy%3D'104.7'%20r%3D'1.03'%20fill%3D'%23c08a1e'%20fill-opacity%3D'0.81'%2F%3E%3Ccircle%20cx%3D'57.1'%20cy%3D'66.0'%20r%3D'0.68'%20fill%3D'%23c08a1e'%20fill-opacity%3D'0.57'%2F%3E%3Ccircle%20cx%3D'116.8'%20cy%3D'215.4'%20r%3D'0.57'%20fill%3D'%23c08a1e'%20fill-opacity%3D'0.90'%2F%3E%3Ccircle%20cx%3D'217.1'%20cy%3D'121.1'%20r%3D'0.85'%20fill%3D'%23c08a1e'%20fill-opacity%3D'0.66'%2F%3E%3Ccircle%20cx%3D'236.8'%20cy%3D'118.6'%20r%3D'0.60'%20fill%3D'%23c08a1e'%20fill-opacity%3D'0.51'%2F%3E%3Ccircle%20cx%3D'227.5'%20cy%3D'17.7'%20r%3D'0.92'%20fill%3D'%23c08a1e'%20fill-opacity%3D'0.65'%2F%3E%3Ccircle%20cx%3D'66.5'%20cy%3D'219.3'%20r%3D'1.01'%20fill%3D'%23c08a1e'%20fill-opacity%3D'0.67'%2F%3E%3Ccircle%20cx%3D'225.8'%20cy%3D'12.0'%20r%3D'1.35'%20fill%3D'%23c08a1e'%20fill-opacity%3D'0.81'%2F%3E%3Ccircle%20cx%3D'198.7'%20cy%3D'30.1'%20r%3D'1.26'%20fill%3D'%23c08a1e'%20fill-opacity%3D'0.36'%2F%3E%3Ccircle%20cx%3D'208.4'%20cy%3D'151.1'%20r%3D'1.30'%20fill%3D'%23c08a1e'%20fill-opacity%3D'0.79'%2F%3E%3Cpath%20d%3D'M239.9%20209.6L240.8%20212.3L243.6%20213.3L240.8%20214.2L239.9%20217.0L238.9%20214.2L236.2%20213.3L238.9%20212.3Z'%20fill%3D'%23c08a1e'%20fill-opacity%3D'.8'%2F%3E%3Cpath%20d%3D'M73.5%2079.7L74.7%2083.1L78.1%2084.2L74.7%2085.4L73.5%2088.8L72.4%2085.4L69.0%2084.2L72.4%2083.1Z'%20fill%3D'%23c08a1e'%20fill-opacity%3D'.8'%2F%3E%3Cpath%20d%3D'M141.9%20198.8L142.9%20202.0L146.1%20203.0L142.9%20204.1L141.9%20207.3L140.8%20204.1L137.6%20203.0L140.8%20202.0Z'%20fill%3D'%23c08a1e'%20fill-opacity%3D'.8'%2F%3E%3C%2Fsvg%3E");
  --cosmos: radial-gradient(120% 85% at 0% 0%, rgba(186, 147, 240, .2), transparent 55%), radial-gradient(90% 75% at 100% 100%, rgba(245, 168, 207, .22), transparent 60%),
    radial-gradient(70% 55% at 85% 8%, rgba(145, 220, 255, .2), transparent 60%), var(--estrellas) 0 0 / 240px 240px, linear-gradient(160deg, rgba(255, 252, 246, .5), rgba(253, 244, 248, .55));
  --brillo-magico: rgba(226, 109, 156, .22); }
html.escenas .ev :is(.studio-brand-card, .service-gallery article, .service-more article, .role-node, .leyendas, .design-story, .health-card, .credential-gallery article, .cv-cta, .oraculo-form, .oraculo-viz, .transition-path a, .contacto) {
  position: relative; border: 0; border-radius: 18px; background: var(--cosmos);
  box-shadow: 0 0 20px var(--brillo-magico), 0 18px 40px rgba(0, 0, 0, .3); backdrop-filter: none; transition: transform .3s, box-shadow .3s; }   /* semitransparente: el reino se ve a través */
html[data-tema="claro"].escenas .ev :is(.studio-brand-card, .service-gallery article, .service-more article, .role-node, .leyendas, .design-story, .health-card, .credential-gallery article, .cv-cta, .oraculo-form, .oraculo-viz, .transition-path a, .contacto) {
  box-shadow: 0 0 18px var(--brillo-magico), 0 12px 28px rgba(60, 40, 90, .14); }
/* el borde brillante se dibuja solo en el contorno (con una máscara), así el interior queda transparente */
html.escenas .ev :is(.studio-brand-card, .service-gallery article, .service-more article, .role-node, .leyendas, .design-story, .health-card, .credential-gallery article, .cv-cta, .oraculo-form, .oraculo-viz, .transition-path a, .contacto)::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; background: var(--borde-magico);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
/* al pasar el mouse: sube y brilla más */
html.escenas .ev :is(.service-gallery article, .service-more article, .role-node, .credential-gallery article, .contacto, .transition-path a):hover { transform: translateY(-4px); box-shadow: 0 0 30px rgba(245, 168, 207, .45), 0 20px 44px rgba(0, 0, 0, .32); }
html.escenas .ev :is(.service-gallery article, .service-more article, .role-node, .credential-gallery article, .contacto, .transition-path a) > :first-child { position: relative; z-index: 1; }
/* las ventanas de las aplicaciones llevan el mismo borde brillante */
html.escenas .papel-app { border: 1.5px solid transparent; border-radius: 18px; background: linear-gradient(#fff8ef, #fff8ef) padding-box, var(--borde-magico) border-box; box-shadow: 0 0 22px var(--brillo-magico), 0 18px 40px rgba(0, 0, 0, .3); }
@media (prefers-reduced-motion: reduce) { html.escenas .ev *::before, html.escenas .ev *::after { animation: none !important; } }

/* destellos que se encienden aquí y allá sobre los bordes de los cuadros (escenas.js) */
.brillos-borde { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.brillo-borde { position: absolute; width: var(--t); height: var(--t); translate: -50% -50%; background: var(--c);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 8px var(--c)); animation: brillo-borde var(--d) ease-in-out forwards; }
@keyframes brillo-borde { 0% { opacity: 0; transform: scale(.1) rotate(0deg); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } 100% { opacity: 0; transform: scale(.2) rotate(90deg); } }
@media (prefers-reduced-motion: reduce) { .brillos-borde { display: none; } }

/* ---------------------------------------------------------------- leyendas: un museo en papel claro, la obra completa en su marco y el muro de cuadritos */
html.escenas .ev.ev-leyendas .leyendas { background: #fff8ef; color: #4a2a52; padding: 18px 22px 14px; }
html.escenas .ev.ev-leyendas .leyendas::before { display: none; }
html.escenas .ev-leyendas .leyendas-cabeza { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; }
html.escenas .ev-leyendas .leyendas-cabeza .chip { color: #8a5cc8; border-color: #e3cdef; }
html.escenas .ev-leyendas .leyendas-cabeza h3 { color: #4a2a52; margin: 0; font: 700 1.3rem/1.2 var(--titulo, "Cinzel", serif); flex: 1 1 auto; }
html.escenas .ev-leyendas .leyendas-filtros button { color: #6e5577; background: #fff; border: 2px solid #ecd8e6; }
html.escenas .ev-leyendas .leyendas-filtros button[aria-pressed="true"] { color: #fff; background: linear-gradient(135deg, #e48bb8, #9a74d6); border-color: transparent; }
html.escenas .ley-museo { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.5fr); gap: 22px; align-items: stretch; }
html.escenas .ley-cuadro { margin: 0; display: grid; grid-template-rows: 1fr auto; gap: 10px; min-height: 0; }
html.escenas .ley-marco { display: grid; place-items: center; padding: 12px; background: #fff; border-radius: 6px; box-shadow: 0 0 0 2px #e9cf8f, 0 0 0 7px #fff8ef, 0 0 0 9px #e3c37a, 0 14px 30px rgba(74, 42, 82, .22); }
html.escenas .ley-marco img { display: block; height: min(48vh, 440px); width: auto; aspect-ratio: 731 / 1300; max-width: 100%; object-fit: contain; background: #fff; cursor: zoom-in; user-select: none; }   /* el marco mide siempre lo mismo: no cambia al elegir otra obra */
html.escenas .ley-cuadro figcaption { display: grid; gap: 3px; justify-items: center; text-align: center; }
html.escenas .ley-cuadro figcaption b { font: 700 1.05rem var(--titulo, "Cinzel", serif); color: #4a2a52; }
html.escenas .ley-cuadro figcaption span { font-size: .84rem; line-height: 1.4; color: #6e5577; max-width: 420px; min-height: 2.8em; }
html.escenas .ley-cuadro .ley-ver { margin-top: 4px; padding: 7px 12px; font-size: .72rem; width: auto; color: #6a2c55; background: #fff6fb; border: 2px solid #f0d6e8; }
html.escenas .ley-muro { min-height: 0; max-height: calc(min(48vh, 440px) + 100px); overflow-y: auto; padding: 4px 8px 8px 4px; scrollbar-width: thin; }
html.escenas .ley-muro .leyendas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 12px; transform: none !important; }
html.escenas .ley-muro .obra { display: grid; grid-template-rows: auto auto; gap: 5px; height: auto; aspect-ratio: auto; padding: 0; background: transparent; border: 0; border-radius: 0; overflow: visible; box-shadow: none; transform: none; cursor: pointer; }
html.escenas .ley-muro .obra.fuera-hoja { display: grid; }
html.escenas .ley-muro .obra img { width: 100%; height: auto; aspect-ratio: 731 / 1300; object-fit: contain; object-position: center; padding: 5px; background: #fff; border-radius: 4px; box-shadow: 0 0 0 1px #ecd8e6, 0 4px 10px rgba(74, 42, 82, .12); transition: transform .25s, box-shadow .25s; }
html.escenas .ley-muro .obra-horizontal img { aspect-ratio: 731 / 1300; }
html.escenas .ley-muro .obra:hover img { transform: translateY(-3px); box-shadow: 0 0 0 2px #e3b6d2, 0 8px 16px rgba(74, 42, 82, .18); }
html.escenas .ley-muro .obra.elegida img { box-shadow: 0 0 0 3px #c98bb8, 0 8px 16px rgba(74, 42, 82, .2); }
html.escenas .ley-muro .obra-nombre { position: static; padding: 0; background: none; color: #6e5577; font: 700 .68rem/1.2 var(--sans, sans-serif); letter-spacing: .02em; text-align: center; }
html.escenas .ley-muro .obra.elegida .obra-nombre { color: #c2457f; }
html.escenas .ley-muro .obra-escudo { display: none; }
html.escenas .ev-leyendas .leyendas-aviso { margin: 10px 0 0; font-size: .72rem; color: #8d7896; }
html.escenas .ev-leyendas .leyendas-hojas { display: none; }
  font: 700 1.6rem/1 var(--sans); color: #fff6fb; border: 1.5px solid rgba(243, 212, 138, .7); background: rgba(24, 18, 60, .7);
  box-shadow: 0 0 16px rgba(186, 147, 240, .5); transition: transform .2s, box-shadow .2s; }

/* ---------------------------------------------------------------- disposición de kdelrio: encabezado corto arriba a la izquierda, sin párrafo,
   y el contenido ocupa la altura de la pantalla */
html.escenas .ev .section-head { max-width: none; margin: 0 0 18px; text-align: left; }
html.escenas .ev .section-head > p { display: none; }
html.escenas .ev-contacto .section-head { text-align: center; }
html.escenas .ev-contacto .section-head > p { display: block; }
html.escenas .ev .section-head h2 { font-size: clamp(1.9rem, 3.3vw, 2.8rem); }

/* Studios Conari: marca a la izquierda y lista a la derecha, sin tarjetas */
.estudio-dos { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.estudio-marca { display: grid; gap: 16px; justify-items: start; }
.estudio-marca .studio-wordmark { width: min(340px, 80%); height: auto; filter: drop-shadow(0 0 18px rgba(243, 212, 138, .35)); }
.estudio-lema { margin: 4px 0 0; font: 700 clamp(1.5rem, 2.4vw, 2rem)/1.2 var(--titulo, "Cinzel", serif); color: var(--e-oro2); }
.estudio-marca > p:not(.estudio-lema) { margin: 0; max-width: 560px; color: var(--e-suave); font-size: 1.05rem; line-height: 1.6; }
.estudio-marca .studio-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.estudio-rol { margin: 0 0 6px; color: var(--e-oro); font: 700 .78rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.estudio-servicio { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--e-linea); }
.estudio-servicio:last-child { border-bottom: 0; }
.estudio-servicio img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(186, 147, 240, .45)); }
.estudio-servicio h3 { margin: 0 0 4px; font: 700 1.08rem/1.25 var(--sans); color: var(--e-texto); }
.estudio-servicio p { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--e-suave); }
html[data-tema="claro"] .estudio-marca .studio-wordmark { filter: drop-shadow(0 0 14px rgba(255, 255, 255, .7)); }
/* el equipo: encabezado como las demás escenas, sin párrafo */
html.escenas .ev .studio-team > div:first-child { text-align: left; max-width: none; margin: 0 0 18px; }
html.escenas .ev .studio-team > div:first-child > p:not(.eyebrow) { display: none; }
html.escenas .ev .studio-team > div:first-child .eyebrow { margin: 0 0 6px; font: 700 .78rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
html.escenas .ev .studio-team > div:first-child h3 { margin: 0; font: 700 clamp(1.9rem, 3.3vw, 2.8rem)/1.12 var(--titulo, "Cinzel", serif); color: var(--e-texto); letter-spacing: .02em; }
html.escenas .ev .role-node p { font-size: .95rem; line-height: 1.55; }
html.escenas .ley-muro .obra.obra-horizontal { grid-column: auto; grid-row: auto; }
html.escenas .ev .ley-cuadro .btn.ley-ver { color: #6a2c55; background: #fff6fb; border: 2px solid #f0d6e8; }

/* ---------------------------------------------------------------- scroll continuo en el computador (escenas.js «flujo»):
   las escenas van una debajo de otra; cada una mide lo que queda de pantalla bajo el menú y se ve completa */
html.escenas.escenas-flujo, html.escenas.escenas-flujo body { overflow: visible; height: auto; }
html.escenas.escenas-flujo body { overflow-y: auto; }
html.escenas.escenas-flujo .escenas-capa { position: relative; top: auto; left: auto; right: auto; bottom: auto; }
html.escenas.escenas-flujo .ev { position: relative; inset: auto; display: flex; align-items: flex-start; justify-content: center; overflow: hidden; scroll-margin-top: 70px; }
html.escenas.escenas-flujo .ev.desborda { overflow: hidden; }
html.escenas.escenas-flujo .escenas-velo { position: fixed; }
/* Trayectoria: la cinta va en el hueco sobre el borde del tablero, entre las flores de la izquierda y la luna (medido en el dibujo:
   tablero de x 260 a 1410 y borde superior en y ≈ 80 de 1672 × 941), sin tapar el dibujo ni el borde */
html.escenas.escenas-flujo .ev-trayectoria .section-head { top: 0 !important; left: 0 !important; right: 0 !important; width: 100% !important; max-width: none !important; }
html.escenas.escenas-flujo .ev-trayectoria .section-head > div { display: block !important; }
html.escenas.escenas-flujo .ev-trayectoria .section-head .cinta-nombre { position: absolute !important; left: 26% !important; top: .4% !important; width: 13.5% !important; margin: 0 !important; padding: 0 0 .3em !important; box-sizing: border-box !important; aspect-ratio: 1400 / 368 !important; display: grid !important; font-size: 1.15rem !important; }

/* Desarrollo · calculadora: más grande y al lado del cuaderno; en el cuaderno, el código en la hoja izquierda con letra legible
   y en la hoja derecha cómo se usa y los botones en los colores del cuaderno (no oscuros) */
.calc-guia { display: none; }
html.escenas .ev-desarrollo .papel-app.app-calc { max-width: 1240px; }
html.escenas .ev-desarrollo .app-calc .app-doble { grid-template-columns: minmax(360px, 430px) 1fr !important; gap: 34px !important; align-items: center; }
html.escenas .ev-desarrollo .app-calc .calc-pantalla span { font-size: .95rem !important; }
html.escenas .ev-desarrollo .app-calc .calc-pantalla strong { font-size: 2.3rem !important; }
html.escenas .ev-desarrollo .app-calc .calc-teclas button { font-size: 1.25rem !important; border-radius: 14px !important; }
html.escenas .ev-desarrollo .app-calc .calc-teclas .t-esp { font-size: 1rem !important; }
html.escenas .ev-desarrollo .app-calc .calc-java { padding: 13% 55% 8% 9% !important; gap: 10px !important; }
html.escenas .ev-desarrollo .app-calc .calc-java .chip { display: block; font: 700 .95rem/1.2 'Mali', sans-serif !important; letter-spacing: .06em; color: #c2457f !important; }
html.escenas .ev-desarrollo .app-calc .calc-java h3 { display: block; font: 700 1.5rem/1.1 'Mali', sans-serif !important; color: #6a2c55 !important; }
html.escenas .ev-desarrollo .app-calc .calc-java pre { font: 600 1.12rem/1.8 'Mali', monospace !important; }
html.escenas .ev-desarrollo .app-calc .calc-guia { display: block; position: absolute; left: 56.5%; top: 12%; width: 35%; margin: 0; padding: 0 0 0 1.3em; color: #5b3a63; font: 600 1rem/1.5 'Mali', sans-serif; }
html.escenas .ev-desarrollo .app-calc .calc-guia li { margin: 0 0 .55em; padding-left: .2em; }
html.escenas .ev-desarrollo .app-calc .calc-guia li::marker { color: #c2457f; font-weight: 700; }
html.escenas .ev-desarrollo .app-calc .calc-java .botonera { left: 57% !important; top: auto !important; bottom: 12%; width: 34% !important; gap: 10px !important; }
html.escenas .ev-desarrollo .app-calc .calc-java .botonera .btn { background: linear-gradient(180deg, #fff6fb, #ffe3f0) !important; color: #6a2c55 !important; border: 2px solid #f0bcd8 !important; box-shadow: 0 3px 0 #e2a9c8 !important; font: 700 1rem 'Mali', sans-serif !important; padding: 9px 14px !important; border-radius: 14px !important; }
html.escenas .ev-desarrollo .app-calc .calc-java .botonera .btn:hover { background: linear-gradient(180deg, #ffe9f4, #ffd2e6) !important; }

/* Desarrollo · tienda: la boleta impresa se lee entera, ancha y ordenada, pegada con cinta sobre el vidrio de la vitrina */
html.escenas .ev-desarrollo .tienda-caja .printer-output { visibility: hidden !important; }
html.escenas .ev-desarrollo .tienda-boleta-vista { position: absolute; left: 63.2%; width: 32%; top: 27%; bottom: 8%; z-index: 14; display: flex; flex-direction: column; gap: 8px; align-items: stretch; animation: boleta-llega .5s ease-out; }
html.escenas .ev-desarrollo .tienda-boleta-vista[hidden] { display: none; }
@keyframes boleta-llega { from { opacity: 0; transform: translateY(-14px) rotate(-1.5deg); } }
html.escenas .ev-desarrollo .tienda-boleta-hoja { position: relative; flex: 1; min-height: 0; overflow: hidden; margin: 0; padding: 26px 26px 18px; background: #fffdf6; color: #4a2556; font: 500 .95rem/1.45 'Mali', sans-serif; box-shadow: 0 10px 22px rgba(20, 8, 40, .4); rotate: -1deg;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 10px repeat-x; }
html.escenas .ev-desarrollo .tienda-boleta-hoja::before { content: ""; position: absolute; left: 50%; top: -6px; width: 110px; height: 26px; translate: -50% 0; rotate: 2deg; background: rgba(245, 168, 207, .75); box-shadow: 0 1px 3px rgba(20, 8, 40, .2); }
html.escenas .ev-desarrollo .tienda-boleta-hoja .paper-brand { text-align: center; font: 700 .8rem/1.2 'Mali', sans-serif; letter-spacing: .14em; color: #c2457f; }
html.escenas .ev-desarrollo .tienda-boleta-hoja h4 { margin: 2px 0 2px; text-align: center; font: 700 1.35rem/1.2 'Mali', sans-serif; color: #6a2c55; }
html.escenas .ev-desarrollo .tienda-boleta-hoja .paper-note { margin: 0 0 8px; text-align: center; font: 600 .72rem/1.3 'Mali', sans-serif; letter-spacing: .04em; color: #9b7aa8; }
html.escenas .ev-desarrollo .tienda-boleta-hoja .paper-items { margin: 0 0 6px; padding: 6px 0; border-block: 2px dashed #e7b9d4; }
html.escenas .ev-desarrollo .tienda-boleta-hoja :is(.paper-item, .paper-total) { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
html.escenas .ev-desarrollo .tienda-boleta-hoja :is(.paper-item, .paper-total) b { white-space: nowrap; font-weight: 700; }
html.escenas .ev-desarrollo .tienda-boleta-hoja .grand-total { margin: 4px 0; padding: 4px 0; border-block: 2px solid #f0d6e8; font-size: 1.15rem; color: #7a2f5f; }
html.escenas .ev-desarrollo .tienda-boleta-hoja .paper-medio b { font-size: .85rem; color: #6a2c55; }
html.escenas .ev-desarrollo .tienda-boleta-hoja .paper-thanks { margin: 8px 0 0; text-align: center; font: italic 600 .9rem/1.3 var(--serif, Georgia, serif); color: #c2457f; }
html.escenas .ev-desarrollo .tienda-boleta-nueva { align-self: center; padding: 8px 18px; border: 2px solid #fff; border-radius: 14px; background: linear-gradient(180deg, #ffd9ea, #e7d6ff); color: #5b3a63; font: 700 .95rem 'Mali', sans-serif; box-shadow: 0 3px 0 #d3a9cb, 0 6px 12px rgba(20, 8, 40, .3); cursor: pointer; }
/* la pantalla de la caja: el total arriba y, debajo y sin montarse, cuánto se paga */
html.escenas .ev-desarrollo .tienda-caja .caja-pago { top: 38.5% !important; font-size: 4.4cqw !important; text-align: center !important; padding-left: 0 !important; }
/* los tres pasos bajo el puesto, numerados */
html.escenas .ev-desarrollo .tienda-pista { font-size: 1.05rem !important; bottom: -5.5% !important; }
html.escenas .ev-desarrollo .tienda-pista span { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; margin: 0 .3em 0 .9em; border-radius: 50%; background: #f5a8cf; color: #3b1d45; font: 700 .85em 'Mali', sans-serif; text-shadow: none; }

/* «Pagas $…» es una línea de la versión clásica dentro de la caja: en el cuento (que toma prestada la misma caja) no se muestra */
.caja-pago { display: none; }
html.escenas .ev .caja-pago { display: block; }

/* Diseño · «Mi trazo»: pestañas del cuaderno (Mi camino, Papel y los filtros de la galería), el camino por etapas y las fotos de papel */
html.escenas .ev.ev-leyendas .ley-pestanas { flex: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .6cqw; }
html.escenas .ev.ev-leyendas .ley-pestanas > button, html.escenas .ev.ev-leyendas .ley-pestanas .leyendas-filtros button { padding: .45cqw 1.2cqw !important; font: 700 1.05cqw 'Mali', sans-serif !important; border-radius: 999px !important; border: 1px solid #e6c6dc !important; background: #fff !important; color: #7a4f84 !important; cursor: pointer; }
html.escenas .ev.ev-leyendas .ley-pestanas > button[aria-pressed="true"], html.escenas .ev.ev-leyendas .ley-pestanas .leyendas-filtros button[aria-pressed="true"] { background: linear-gradient(135deg, #f6b9d6, #cdb6f2) !important; color: #4a2556 !important; border-color: transparent !important; }
html.escenas .ev.ev-leyendas .ley-pestanas .leyendas-filtros { display: contents !important; }
html.escenas .ev.ev-leyendas .ley-muro:not([data-vista="camino"]) .ley-camino,
html.escenas .ev.ev-leyendas .ley-muro:not([data-vista="papel"]) .ley-papel,
html.escenas .ev.ev-leyendas .ley-muro:not([data-vista="dibujos"]) .leyendas-grid { display: none !important; }
html.escenas .ev.ev-leyendas .ley-camino { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .7cqw; padding: .4cqw 1cqw; color: #4a2556; }
html.escenas .ev.ev-leyendas .ley-camino h4 { margin: 0; text-align: center; font: italic 700 1.75cqw/1.2 "Cormorant Garamond", Georgia, serif; color: #6a2c55; }
html.escenas .ev.ev-leyendas .ley-camino > p { margin: 0; text-align: center; font: 500 1.1cqw/1.45 'Mali', sans-serif; color: #5b3a63; }
html.escenas .ev.ev-leyendas .ley-etapas { list-style: none; margin: .4cqw 0 0; padding: 0; display: grid; gap: .8cqw; }
html.escenas .ev.ev-leyendas .ley-etapa { width: 100%; display: grid; grid-template-columns: 3cqw 1fr; grid-template-rows: auto auto; column-gap: 1cqw; align-items: center; text-align: left; padding: .7cqw 1cqw; border: 1px solid #ecd2e3; border-radius: 1cqw; background: rgba(255, 255, 255, .75); color: #4a2556; cursor: pointer; transition: background .2s, box-shadow .2s; }
html.escenas .ev.ev-leyendas .ley-etapa:hover, html.escenas .ev.ev-leyendas .ley-etapa.elegida { background: #fff; box-shadow: 0 0 0 .2cqw #f5a8cf; }
html.escenas .ev.ev-leyendas .ley-etapa-num { grid-row: 1 / 3; display: grid; place-items: center; width: 3cqw; height: 3cqw; border-radius: 50%; background: linear-gradient(135deg, #f6b9d6, #cdb6f2); font: 700 1.15cqw 'Mali', sans-serif; color: #4a2556; }
html.escenas .ev.ev-leyendas .ley-etapa b { font: 700 1.3cqw/1.2 'Mali', sans-serif; }
html.escenas .ev.ev-leyendas .ley-etapa small { font: 500 1cqw/1.3 'Mali', sans-serif; color: #8a5f95; }
html.escenas .ev.ev-leyendas .ley-papel { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6cqw 1.4cqw; align-content: start; padding: 1cqw .6cqw; }
html.escenas .ev.ev-leyendas .ley-papel .obra img { aspect-ratio: 4 / 3 !important; object-fit: cover !important; }
html.escenas .ev.ev-leyendas .ley-papel .obra-nombre { font-size: 1.1cqw !important; }
/* los cuadritos de la galería se ven enteros (sin recortar) */
html.escenas .ev.ev-leyendas .leyendas-grid .obra img { object-fit: contain !important; background: #fff; }
html.escenas .ev.ev-leyendas .leyendas-grid .obra-nombre { font-size: 1.05cqw !important; }
/* la hoja izquierda: el dibujo nítido sobre su hoja blanca o la foto pegada con cinta */
html.escenas .ev.ev-leyendas .ley-lienzo { box-shadow: 0 .3cqw 1cqw rgba(106, 44, 85, .25); rotate: -.6deg; }
html.escenas .ev.ev-leyendas .ley-marco > img.ley-foto { display: none !important; }
html.escenas .ev.ev-leyendas .ley-cuadro[data-modo="foto"] .ley-marco > img.ley-foto { display: block !important; background: #fff; padding: .6cqw !important; box-shadow: 0 .3cqw 1cqw rgba(106, 44, 85, .3); rotate: -1.2deg; cursor: zoom-in; }
html.escenas .ev.ev-leyendas .ley-cuadro[data-modo="foto"] .ley-lienzo { display: none; }
html.escenas .ev.ev-leyendas .ley-cuadro figcaption span { font-size: 1.25cqw !important; }
.ley-visor-foto figure { grid-template-columns: minmax(0, 1fr) 240px; }
html.escenas .ev.ev-leyendas .ley-cuadro[data-modo="foto"] .ley-marco > img.ley-foto { width: auto !important; height: auto !important; max-width: 94% !important; max-height: 88% !important; aspect-ratio: auto !important; object-fit: contain; }

/* Arcade: al elegir una máquina el juego se abre a pantalla completa, encima de la página (el reino oscurecido detrás).
   La máquina se ve de cerca: se recorta arriba y abajo para que su pantalla y su tablero ocupen casi todo el alto */
html.arcade-pantalla body { overflow: hidden !important; }   /* (solo body: en html haría que body se volviera el que se desplaza) */
html.escenas.escenas-flujo .ev-arcade.jugando-arcade { position: fixed !important; left: 0; right: 0; top: 67px; bottom: 0; height: auto !important; z-index: 60; padding: 0 3vw !important; align-items: center !important;
  background: radial-gradient(ellipse at 50% 40%, rgba(46, 24, 78, .97), rgba(12, 6, 28, .99)); }
html.escenas.escenas-flujo .ev-arcade.jugando-arcade .ev-caja { transform: none !important; height: 100%; }
html.escenas.escenas-flujo .ev-arcade.jugando-arcade .sala-juegos { height: 100%; }
html.escenas.escenas-flujo .ev-arcade.jugando-arcade .colgar-app.activo { height: 100%; }
html.escenas.escenas-flujo .ev-arcade.jugando-arcade .maq-escena { height: 100%; align-items: center !important; padding: 0 !important; gap: 3vw; }
html.escenas.escenas-flujo .ev-arcade.jugando-arcade .maq-juego { max-width: none !important; }
html.escenas.escenas-flujo .ev-arcade.jugando-arcade .maq-1 { --h: calc((100vh - 90px) / .6) !important; margin: calc((100vh - 90px) / .6 * -.115) 0 calc((100vh - 90px) / .6 * -.27); }
html.escenas.escenas-flujo .ev-arcade.jugando-arcade .maq-2 { --h: calc((100vh - 90px) / .6) !important; margin: calc((100vh - 90px) / .6 * -.175) 0 calc((100vh - 90px) / .6 * -.225); }
html.escenas.escenas-flujo .ev-arcade.jugando-arcade .maq-3 { --h: calc((100vh - 90px) / .6) !important; margin: calc((100vh - 90px) / .6 * -.155) 0 calc((100vh - 90px) / .6 * -.245); }
html.escenas.escenas-flujo .ev-arcade.jugando-arcade .juego-lado { height: min(680px, calc(100vh - 110px)) !important; width: 400px !important; }
html.escenas.escenas-flujo .ev-arcade.jugando-arcade .juego-lado-texto { font-size: 1.05rem; }

/* Contacto: medallones y letras más grandes y con más contraste (se leen sin esfuerzo); el pie y el nido, más compactos */
html.escenas .ev.ev-contacto .contactos { max-width: 1060px !important; row-gap: 22px !important; column-gap: 40px !important; }
html.escenas .ev.ev-contacto .contacto { grid-template-rows: 165px auto auto !important; gap: 6px !important; }
html.escenas .ev.ev-contacto .contacto-ico { width: 165px !important; height: 165px !important; }
html.escenas .ev.ev-contacto .contacto b { font-size: 1.35rem !important; letter-spacing: .02em; text-shadow: 0 1px 3px rgba(20, 8, 40, .9), 0 0 12px rgba(20, 8, 40, .7); }
html.escenas .ev.ev-contacto .contacto small { font-size: 1.12rem !important; font-weight: 700 !important; text-shadow: 0 1px 3px rgba(20, 8, 40, .9), 0 0 10px rgba(20, 8, 40, .7); }
html[data-tema="claro"].escenas .ev.ev-contacto .contacto :is(b, small) { text-shadow: 0 0 6px #fff, 0 0 12px #fff; }
html.escenas .ev.ev-contacto .section-head:has(.cinta-nombre) { margin-bottom: 8px; }
html.escenas .ev.ev-contacto footer { margin-top: 18px !important; padding-top: 12px !important; }
html.escenas .ev.ev-contacto footer p { font-size: .95rem !important; color: #f3e6f7 !important; text-shadow: 0 1px 3px rgba(20, 8, 40, .9); }
html.escenas .ev.ev-contacto footer p:first-child { font-size: 1.05rem !important; }
html[data-tema="claro"].escenas .ev.ev-contacto footer p { color: #4a2556 !important; text-shadow: 0 0 6px #fff; }
html.escenas .ev.ev-contacto .nido-escena { margin-top: 8px !important; }
/* con scroll continuo ya no hace falta el margen inferior para la pista de la rueda */
html.escenas.escenas-flujo .ev:not(.ev-trayectoria):not(.ev-datos) { padding-top: 10px !important; padding-bottom: 12px !important; }
html.escenas.escenas-flujo .ev-contacto .contacto { grid-template-rows: 150px auto auto !important; }
html.escenas.escenas-flujo .ev-contacto .contacto-ico { width: 150px !important; height: 150px !important; }
html.escenas.escenas-flujo .ev-contacto .nido-escena { scale: .85; margin-top: 0 !important; }
/* scroll continuo: las secciones de texto crecen lo que necesiten (centradas), sin achicarse */
html.escenas.escenas-flujo .ev:not(.ev-trayectoria):not(.ev-datos):not(.ev-matrona) { align-items: center; padding-top: 28px !important; padding-bottom: 36px !important; }

/* ---------------------------------------------------------------- perfil, medido para pantallas de ~1280 × 580 (16" con escala 150 %):
   el pergamino crece con su texto (no tiene alto fijo), es más ancho y la letra es más grande; nada se monta sobre la luna ni se sale del papel */
html.escenas.escenas-flujo .ev-equipo { padding: 26px 96px 34px 56px !important; }
html.escenas.escenas-flujo .ev-equipo .perfil-pro { grid-template-columns: minmax(200px, 260px) 450px minmax(200px, 250px) !important; gap: 26px !important; align-items: center; }
html.escenas.escenas-flujo .ev-equipo .perfil-pro-retrato { max-height: none; }
html.escenas.escenas-flujo .ev-equipo .perfil-pro-texto { width: 450px !important; height: auto !important; aspect-ratio: auto !important; max-height: none !important; min-height: 640px; padding: 122px 96px 100px !important; }   /* el papel se estira solo en alto, como antes */
html.escenas.escenas-flujo .ev-equipo .perfil-pro-texto .eyebrow { font-size: .78rem !important; }
html.escenas.escenas-flujo .ev-equipo .perfil-pro-texto h3 { font-size: 1.55rem !important; }
html.escenas.escenas-flujo .ev-equipo .perfil-pro-cargo { font-size: .9rem !important; }
html.escenas.escenas-flujo .ev-equipo .perfil-pro-texto > p:not(.eyebrow):not(.perfil-pro-cargo) { font-size: .98rem !important; line-height: 1.5 !important; }
html.escenas.escenas-flujo .ev-equipo .perfil-pro-areas li { font-size: .8rem !important; padding: 5px 10px !important; }
/* el dragoncito: en pantallas medianas, más chico y pegado al borde, para no tapar las medallas */
@media (max-width: 1500px) { .dragoncito { scale: .72; transform-origin: 100% 50%; } }

/* ---------------------------------------------------------------- legibilidad (vista al 100 % en 1917 × 870, con lentes):
   lo importante en letra grande; los títulos centrados dentro de su cinta */
/* Datos: la cinta centrada sobre el escritorio, con el nombre completo dentro de la tela */
html.escenas.escenas-flujo .ev-datos .section-head { position: relative !important; top: auto !important; left: auto !important; right: auto !important; width: 100% !important; max-width: none !important; display: flex !important; justify-content: center !important; margin: 0 0 6px !important; }   /* la cinta va arriba del escritorio, centrada, sin montarse sobre el dibujo */
html.escenas.escenas-flujo .ev-datos .section-head .cinta-nombre { position: static !important; width: 460px !important; left: 0 !important; margin: 0 auto !important; padding: 0 0 .35em !important; aspect-ratio: 1400 / 368 !important; display: grid !important; place-items: center !important; white-space: nowrap !important; font-size: 1.7rem !important; }
/* Datos: la hoja del portapapeles con letra grande */
html.escenas.escenas-flujo .ev-datos .tab-titulo { font-size: 1.75rem !important; }
html.escenas.escenas-flujo .ev-datos .tab-sub { font-size: .95rem !important; padding: 5px 12px !important; }
html.escenas.escenas-flujo .ev-datos .tab-etiqueta { font-size: .95rem !important; }
html.escenas.escenas-flujo .ev-datos .tab-panel :is(.tab-texto, .tab-obs li, .tab-conclusion, dd, dt, .tab-nota, .tab-ayuda) { font-size: 1.02rem !important; line-height: 1.45 !important; }
html.escenas.escenas-flujo .ev-datos .tab-tema { font-size: 1rem !important; }
/* Diseño · Mi trazo: letra del cuaderno legible */
html.escenas .ev.ev-leyendas .ley-pestanas > button, html.escenas .ev.ev-leyendas .ley-pestanas .leyendas-filtros button { font-size: 1.35cqw !important; padding: .55cqw 1.4cqw !important; }
html.escenas .ev.ev-leyendas .ley-camino h4 { font-size: 2.3cqw !important; }
html.escenas .ev.ev-leyendas .ley-camino > p { font-size: 1.45cqw !important; }
html.escenas .ev.ev-leyendas .ley-etapa b { font-size: 1.65cqw !important; }
html.escenas .ev.ev-leyendas .ley-etapa small { font-size: 1.3cqw !important; }
html.escenas .ev.ev-leyendas .ley-etapa-num { width: 3.6cqw !important; height: 3.6cqw !important; font-size: 1.4cqw !important; }
html.escenas .ev.ev-leyendas .ley-etapa { grid-template-columns: 3.6cqw 1fr !important; padding: .9cqw 1.2cqw !important; }
html.escenas .ev.ev-leyendas .ley-cuadro figcaption b { font-size: 2cqw !important; }
html.escenas .ev.ev-leyendas .ley-cuadro figcaption span { font-size: 1.6cqw !important; }
html.escenas .ev.ev-leyendas .ley-cuadro .ley-ver { font-size: 1.25cqw !important; padding: .6cqw 1.5cqw !important; }
html.escenas .ev.ev-leyendas .leyendas-grid .obra-nombre, html.escenas .ev.ev-leyendas .ley-papel .obra-nombre { font-size: 1.3cqw !important; }
/* (pergamino.css se carga después de escenas.css: las reglas de aquí que deben ganarle usan html.escenas.escenas-flujo o .ev.ev-…) */
/* Mi camino: la hoja derecha completa sin barra (título, frase y las 4 etapas); el detalle de cada etapa se lee al elegirla, en la hoja izquierda */
html.escenas .ev.ev-leyendas .ley-etapa small { display: none !important; }
html.escenas .ev.ev-leyendas .ley-etapa { grid-template-rows: auto !important; padding: .75cqw 1.2cqw !important; }
html.escenas .ev.ev-leyendas .ley-etapas { gap: .7cqw !important; }
html.escenas .ev.ev-leyendas .ley-camino { gap: .6cqw !important; overflow: hidden; }
html.escenas .ev.ev-leyendas .ley-camino h4 { font-size: 2.1cqw !important; }
html.escenas .ev.ev-leyendas .ley-pestanas > button, html.escenas .ev.ev-leyendas .ley-pestanas .leyendas-filtros button { font-size: 1.2cqw !important; padding: .45cqw 1cqw !important; }
html.escenas .ev.ev-leyendas .ley-pestanas { flex-wrap: nowrap !important; gap: .45cqw !important; }
html.escenas .ev.ev-leyendas .ley-pestanas button { white-space: nowrap !important; }
html.escenas .ev.ev-leyendas .ley-pestanas { flex-wrap: wrap !important; row-gap: .4cqw !important; }
html.escenas .ev.ev-leyendas .ley-camino > p { font-size: 1.3cqw !important; }
html.escenas .ev.ev-leyendas .ley-camino h4 { font-size: 1.9cqw !important; }
/* calculadora: grande pero entera en la pantalla junto al cuaderno */
html.escenas.escenas-flujo .ev-desarrollo .papel-app.app-calc { max-width: 1120px !important; }
html.escenas.escenas-flujo .ev-desarrollo .app-calc .app-doble { grid-template-columns: 340px 1fr !important; }
