/* Portada futurista: la estética de la entrada de la app del tótem (azul noche, grilla en perspectiva,
   verde agua e índigo de la marca). */
body #cn3d{--cn3d-ink:#EAF4F8;--cn3d-muted:#9FB3C8;--cn3d-teal:#25B3A3;--cn3d-agua:#6FF0DC;--cn3d-indigo:#4A5BD4;--cn3d-noche:#050B1C;background:var(--cn3d-noche);color:var(--cn3d-ink);font-family:Archivo,system-ui,sans-serif}
body #cn3d .cn3d-hero{background:radial-gradient(70% 90% at 72% 42%,#0E2347 0%,#071330 48%,#030817 100%)}
body #cn3d .cn3d-stage::before{display:none}
body #cn3d .cn3d-fx{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:0}
body #cn3d .cn3d-grilla{position:absolute;left:-50%;right:-50%;bottom:-12%;height:58%;background-image:linear-gradient(rgba(37,179,163,.32) 1px,transparent 1px),linear-gradient(90deg,rgba(37,179,163,.32) 1px,transparent 1px);background-size:64px 64px;transform:perspective(520px) rotateX(64deg);transform-origin:50% 0;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 30%,#000 72%,transparent);mask-image:linear-gradient(to bottom,transparent,#000 30%,#000 72%,transparent);animation:cn3d-avanzar 3.2s linear infinite}
@keyframes cn3d-avanzar{to{background-position:0 64px}}
body #cn3d .cn3d-halo{position:absolute;left:72%;top:46%;width:min(70vh,760px);aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,rgba(37,179,163,.30),rgba(74,91,212,.14) 45%,transparent 70%)}
body #cn3d .cn3d-particulas i{position:absolute;bottom:-10px;width:4px;height:4px;border-radius:50%;background:var(--cn3d-agua);box-shadow:0 0 10px var(--cn3d-teal);opacity:0;animation:cn3d-subir 7s linear infinite}
body #cn3d .cn3d-particulas i:nth-child(3n){background:#8FA2FF;box-shadow:0 0 10px var(--cn3d-indigo)}
@keyframes cn3d-subir{0%{opacity:0;transform:translateY(0)}15%{opacity:.9}100%{opacity:0;transform:translateY(-85vh)}}
body #cn3d .cn3d-video{z-index:1;background:transparent!important}
body #cn3d .cn3d-video.cn3d-pantalla{mix-blend-mode:screen}
body #cn3d .cn3d-copy{z-index:3}
body #cn3d h1{font-family:Archivo,system-ui,sans-serif;font-stretch:118%;font-weight:760;color:var(--cn3d-ink);font-size:clamp(44px,5.4vw,86px);line-height:.95;letter-spacing:-.03em;margin:0 0 24px;text-shadow:0 0 40px rgba(37,179,163,.18)}
body #cn3d .cn3d-sub{color:var(--cn3d-muted);font-size:clamp(17px,1.3vw,20px);max-width:36ch;margin-bottom:34px}
body #cn3d a.cn3d-btn{font-family:Archivo,system-ui,sans-serif;font-weight:650;min-height:52px;padding:0 26px;border-radius:10px}
body #cn3d a.cn3d-btn-main{background:linear-gradient(135deg,#25B3A3,#2C6FC0);color:#fff;box-shadow:0 0 0 1px rgba(111,240,220,.25),0 8px 28px rgba(37,179,163,.28)}
body #cn3d a.cn3d-btn-main:hover,body #cn3d a.cn3d-btn-main:focus-visible{background:linear-gradient(135deg,#2BC6B4,#3A7DD0);color:#fff}
body #cn3d a.cn3d-btn-ghost,body #cn3d a.cn3d-btn-ghost:hover,body #cn3d a.cn3d-btn-ghost:focus-visible{color:var(--cn3d-ink);background:rgba(255,255,255,.03)}
body #cn3d a.cn3d-btn-ghost{box-shadow:inset 0 0 0 1.5px rgba(111,240,220,.35)}
body #cn3d a.cn3d-btn-ghost:hover,body #cn3d a.cn3d-btn-ghost:focus-visible{box-shadow:inset 0 0 0 1.5px rgba(111,240,220,.8)}
body #cn3d a:focus-visible{outline:3px solid var(--cn3d-agua);outline-offset:3px}
body #cn3d .cn3d-ficha{position:absolute;z-index:3;right:var(--cn3d-gutter);bottom:clamp(28px,7vh,72px);max-width:260px;padding:12px 16px;border:1px solid rgba(111,240,220,.22);border-radius:10px;background:rgba(5,11,28,.55);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
body #cn3d .cn3d-ficha b{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:700;font-stretch:110%;color:var(--cn3d-ink);margin-bottom:4px}
body #cn3d .cn3d-ficha b::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--cn3d-agua);box-shadow:0 0 10px var(--cn3d-agua)}
body #cn3d .cn3d-ficha span{display:block;font-size:14px;line-height:1.45;color:var(--cn3d-muted)}
@media (max-width:760px){body #cn3d .cn3d-ficha{display:none}body #cn3d h1{font-size:clamp(36px,10.5vw,48px);margin-bottom:14px}body #cn3d .cn3d-sub{margin-bottom:20px}body #cn3d a.cn3d-btn{min-height:46px}body #cn3d .cn3d-video{top:56px!important;height:calc(100% - 56px)!important}body #cn3d .cn3d-halo{left:50%;top:66%;width:110vw}}
@media (prefers-reduced-motion:reduce){body #cn3d .cn3d-grilla,body #cn3d .cn3d-particulas i{animation:none}body #cn3d .cn3d-particulas{display:none}}
@media (min-width:761px) and (max-width:1100px){body #cn3d h1{font-size:clamp(38px,5vw,56px)}body #cn3d .cn3d-copy{max-width:50vw}body #cn3d .cn3d-halo{left:78%}body #cn3d .cn3d-ficha{display:none}}
/* Entrada de la web: la misma animación del logo que la app del tótem (Intro.tsx del kiosco), una vez
   por visita. Un toque o una tecla la saltea; con "reducir movimiento" no se muestra. */
.cn-intro{position:fixed;inset:0;z-index:100000;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;background:radial-gradient(circle at 50% 45%,#0e2347 0%,#050b1c 62%,#02050d 100%);color:#cfe9f2;transition:opacity .6s ease,transform .6s ease;cursor:pointer}
.cn-intro.saliendo{opacity:0;transform:scale(1.06);pointer-events:none}
.cn-intro-grilla{position:absolute;left:-50%;right:-50%;bottom:-10%;height:60%;background-image:linear-gradient(rgba(37,179,163,.35) 1px,transparent 1px),linear-gradient(90deg,rgba(37,179,163,.35) 1px,transparent 1px);background-size:6vmin 6vmin;transform:perspective(60vmin) rotateX(62deg);transform-origin:50% 0;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 35%,#000 70%,transparent);mask-image:linear-gradient(to bottom,transparent,#000 35%,#000 70%,transparent);animation:cn-intro-aparecer 1.2s ease both,cn-intro-avanzar 2.4s linear infinite}
@keyframes cn-intro-avanzar{to{background-position:0 6vmin}}
.cn-intro-halo{position:absolute;width:80vmin;height:80vmin;border-radius:50%;background:radial-gradient(circle,rgba(37,179,163,.28),rgba(44,58,146,.12) 45%,transparent 70%);animation:cn-intro-halo 4s ease both}
@keyframes cn-intro-halo{0%{opacity:0;transform:scale(.4)}35%{opacity:1;transform:scale(1)}100%{opacity:.8;transform:scale(1.1)}}
.cn-intro-particulas span{position:absolute;left:calc(5% + var(--i)*5.2%);bottom:-2vmin;width:.6vmin;height:.6vmin;border-radius:50%;background:#6ff0dc;box-shadow:0 0 1.4vmin #25b3a3;opacity:0;animation:cn-intro-particula 3.2s ease-in calc(var(--i)*.11s) both}
.cn-intro-particulas span:nth-child(3n){background:#8fa2ff;box-shadow:0 0 1.4vmin #4558d6}
@keyframes cn-intro-particula{0%{opacity:0;transform:translateY(0)}20%{opacity:1}100%{opacity:0;transform:translateY(-70vh)}}
.cn-intro-logo{position:relative;width:min(86vw,120vmin);height:auto;overflow:visible}
.cn-intro-marca{transform-box:view-box;transform-origin:522px 118px;animation:cn-intro-marca 1.1s cubic-bezier(.2,.9,.25,1.2) .2s both}
@keyframes cn-intro-marca{from{opacity:0;transform:rotate(-135deg) scale(.3)}to{opacity:1;transform:rotate(45deg) scale(1)}}
.cn-intro-borde{fill:none;stroke:#6ff0dc;stroke-width:3;stroke-dasharray:1;stroke-dashoffset:1;animation:cn-intro-trazo .9s ease .3s forwards}
.cn-intro-relleno{fill:url(#cn-intro-degrade);opacity:0;filter:drop-shadow(0 0 18px rgba(37,179,163,.55));animation:cn-intro-aparecer .6s ease .9s forwards}
.cn-intro-pista{fill:none;stroke:#fff;stroke-width:7;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;animation:cn-intro-trazo .5s ease calc(1.2s + var(--i)*.09s) forwards}
.cn-intro-nodo{fill:#fff;opacity:0;transform-box:fill-box;transform-origin:center;animation:cn-intro-nodo .4s ease calc(1.5s + var(--i)*.09s) forwards}
@keyframes cn-intro-nodo{0%{opacity:0;transform:scale(0)}60%{opacity:1;transform:scale(1.8)}100%{opacity:1;transform:scale(1)}}
.cn-intro-letra{fill:none;stroke-width:14;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;animation:cn-intro-trazo .55s ease-out calc(1.4s + var(--i)*.12s) forwards,cn-intro-resplandor 1.2s ease calc(1.4s + var(--i)*.12s) both}
.cn-intro-letra.city{stroke:#26a69a}.cn-intro-letra.net{stroke:#4a5bd4}
@keyframes cn-intro-resplandor{0%{filter:drop-shadow(0 0 0 transparent)}40%{filter:drop-shadow(0 0 10px #6ff0dc)}100%{filter:drop-shadow(0 0 2px rgba(111,240,220,.4))}}
.cn-intro-lema{fill:#9fb3c8;font-family:Archivo,"Segoe UI",Roboto,Arial,sans-serif;font-size:30px;font-weight:500;letter-spacing:14px;opacity:0;animation:cn-intro-lema .9s ease 2.5s forwards}
@keyframes cn-intro-lema{from{opacity:0;letter-spacing:40px}to{opacity:1;letter-spacing:14px}}
.cn-intro-saltar{position:absolute;bottom:6vmin;font:500 13px/1.2 Archivo,"Segoe UI",sans-serif;color:#6f86a0;letter-spacing:.04em;animation:cn-intro-aparecer .8s ease .8s both}
@keyframes cn-intro-trazo{to{stroke-dashoffset:0}}
@keyframes cn-intro-aparecer{from{opacity:0}to{opacity:1}}
