/* Portada de clara.html: túnel de demos (aro 3D con CSS, sin WebGL ni librerías).
   Sin JavaScript las tarjetas quedan como una fila plana desplazable; tunel.js las ordena en el aro. */
.hero.hero-tunel,.hero.hero-tunel:has(.service-universe){display:block;min-height:0;padding:clamp(18px,3.4vh,48px) 0 clamp(44px,7vh,76px);text-align:center;overflow-x:clip;
  background:radial-gradient(ellipse 64% 46% at 50% 47%,#dbe7fb 0,transparent 72%),var(--paper)}
.hero-tunel .service-universe{display:none!important} /* la neurona sigue en Soluciones; aquí solo queda para que service-universe.js no falle */
.tunel-copy,.tunel-cierre{padding-inline:var(--pad)}
.hero-tunel .eyebrow{margin-bottom:14px}
.tunel-titulo{display:block;color:inherit}
.hero.hero-tunel h1{max-width:19ch;margin-inline:auto;font-size:clamp(2.2rem,4.3vw,3.75rem);line-height:1.06}
.hero-tunel .hero-lead{max-width:68ch;margin:0 auto 22px}
.hero-tunel .hero-actions{justify-content:center}
.hero-tunel .hero-offers{justify-content:center;margin-top:24px;text-align:left}
.tunel-nota{margin:18px 0 0;font-size:.8rem;color:var(--muted)}

/* Título letra por letra (spans escritos en clara.html; el h1 conserva su texto en aria-label). */
.tunel-palabra{display:inline-block;white-space:nowrap;color:inherit}
.tunel-letra{display:inline-block;color:inherit}
@media(prefers-reduced-motion:no-preference){
  .tunel-letra{animation:tunel-letra .7s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--c)*17ms)}
  .hero-tunel .eyebrow{animation:tunel-aparece .6s ease both}
  .tunel{animation:tunel-entra 1s cubic-bezier(.2,.8,.2,1) .25s both}
  .tunel-cierre{animation:tunel-aparece .7s ease .55s both}
}
@keyframes tunel-letra{from{opacity:0;transform:translateY(.55em)}}
@keyframes tunel-aparece{from{opacity:0;transform:translateY(10px)}}
@keyframes tunel-entra{from{opacity:0;transform:scale(.965)}}

.tunel{position:relative;max-width:1760px;margin:clamp(14px,2.8vh,34px) auto clamp(12px,2.4vh,28px)}
.tunel-aro{list-style:none;margin:0;padding:8px var(--pad) 14px;display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x proximity}
.tunel-aro>li{flex:none;width:176px;height:198px;scroll-snap-align:center}
.tunel-carta{display:block;width:100%;height:100%;border-radius:18px;overflow:hidden;background:#e9eff8;
  box-shadow:0 0 0 1px #10234a1a,0 22px 44px -22px #10234a66;transition:transform .25s ease,box-shadow .25s ease;-webkit-user-drag:none;user-select:none}
.tunel-carta img{display:block;width:100%;height:100%;object-fit:cover;object-position:top;pointer-events:none}
.tunel-carta:hover{transform:scale(1.035);box-shadow:0 0 0 1px #084cd766,0 26px 50px -20px #084cd766}
.tunel-carta:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.tunel-pie{display:none}

/* Aro 3D: la cámara queda casi en el centro, así las tarjetas del medio se ven lejos y las de los bordes, cerca. */
.tunel.es-3d .tunel-escena{position:relative;height:var(--alto);perspective:var(--p);overflow:hidden;touch-action:pan-y;cursor:grab;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}
.tunel.es-3d .tunel-escena.arrastrando{cursor:grabbing}
.tunel.es-3d .tunel-aro{position:absolute;left:50%;top:50%;width:0;height:0;padding:0;display:block;overflow:visible;transform-style:preserve-3d;will-change:transform}
.tunel.es-3d .tunel-aro>li{position:absolute;left:-120px;top:calc(var(--ch)/-2);width:240px;height:var(--ch);
  transform:rotateY(calc(var(--i)*var(--paso))) translateZ(calc(var(--r)*-1))}
.tunel.es-3d .tunel-aro>li[hidden]{display:none}
.tunel.es-3d .tunel-pie{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:8px;padding-inline:var(--pad)}
.tunel-rotulo{margin:0;min-width:0;flex:0 1 300px;font-size:.86rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tunel-rotulo b{color:var(--ink);font-weight:600}
.tunel-pie button{flex:none;display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--line);border-radius:50%;background:#ffffffcc;color:var(--ink);font-size:1rem;transition:border-color .2s,color .2s}
.tunel-pie button:hover{border-color:var(--blue);color:var(--blue)}
.tunel-pie button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.tunel-pie button[hidden]{display:none}
.tunel-pie svg{width:14px;height:14px;fill:currentColor}
#tunel-pausa[aria-pressed="false"] .ico-play,#tunel-pausa[aria-pressed="true"] .ico-pausa{display:none}
@media(max-width:760px){.tunel-pie button{width:44px;height:44px}}
@media(max-width:600px){.tunel-rotulo{flex:1 1 0;font-size:.8rem}.tunel-pie{gap:6px}}
@media(prefers-reduced-motion:reduce){.tunel-carta{transition:none}.tunel-carta:hover{transform:none}}
