/* =========================================================
   SUMMIT MKTG · Capa cinematográfica (V3)
   Se carga DESPUÉS de styles.css y clients.css.
   Solo añade movimiento y profundidad: no cambia colores,
   contenido, estructura ni comportamiento de formularios.
   Todo se desactiva con prefers-reduced-motion.
   ========================================================= */

:root{
  --cine-exp:cubic-bezier(.16,1,.3,1);
  --cine-smooth:cubic-bezier(.22,.61,.36,1);
  --cine-glow:rgba(255,90,31,.35);
}

.cine [data-cine] {will-change:transform,opacity}

/* 1 · BARRA DE PROGRESO DE SCROLL */
.cine-progress{position:fixed;inset:0 0 auto;height:2px;z-index:70;pointer-events:none;background:transparent}
.cine-progress__bar{height:100%;width:100%;transform:scaleX(0);transform-origin:0 50%;
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  box-shadow:0 0 14px -2px var(--cine-glow)}

/* 2 · CURSOR (solo puntero fino; nunca sobre formularios) */
.cine-cursor,.cine-ring{position:fixed;top:0;left:0;z-index:95;pointer-events:none;border-radius:50%;
  opacity:0;transition:opacity .3s}
.cine-cursor{width:7px;height:7px;margin:-3.5px 0 0 -3.5px;background:var(--accent);
  transition:opacity .3s,width .25s var(--cine-exp),height .25s var(--cine-exp),margin .25s var(--cine-exp)}
.cine-ring{width:30px;height:30px;margin:-15px 0 0 -15px;border:1px solid rgba(255,90,31,.45);
  transition:opacity .3s,width .35s var(--cine-exp),height .35s var(--cine-exp),
             margin .35s var(--cine-exp),border-color .3s,background-color .3s}
.cine-cursor-on .cine-cursor,.cine-cursor-on .cine-ring{opacity:1}
.cine-cursor-on.is-hidden .cine-cursor,.cine-cursor-on.is-hidden .cine-ring{opacity:0}
.cine-cursor-on.on-link .cine-ring{width:52px;height:52px;margin:-26px 0 0 -26px;background:rgba(255,90,31,.07);border-color:rgba(255,90,31,.6)}
.cine-cursor-on.on-link .cine-cursor{width:4px;height:4px;margin:-2px 0 0 -2px}
.cine-cursor-on.on-card .cine-ring{width:72px;height:72px;margin:-36px 0 0 -36px;background:rgba(255,90,31,.05);border-color:rgba(255,90,31,.3)}
.cine-cursor-on.on-drag .cine-ring{width:44px;height:44px;margin:-22px 0 0 -22px;border-color:rgba(255,90,31,.8)}
.cine-cursor-on,.cine-cursor-on a,.cine-cursor-on button,.cine-cursor-on label,.cine-cursor-on .card,.cine-cursor-on .case{cursor:none}
.cine-cursor-on input,.cine-cursor-on textarea,.cine-cursor-on select,
.cine-cursor-on input[type=range],.cine-cursor-on .bslot,.cine-cursor-on .bday{cursor:auto}
.cine-cursor-on input[type=range]{cursor:ew-resize}

/* 3 · HERO · red neuronal + revelado del titular */
.cine-neural{position:absolute;inset:0;z-index:-1;width:100%;height:100%;pointer-events:none;
  -webkit-mask-image:linear-gradient(90deg,rgba(0,0,0,.28),rgba(0,0,0,.42) 34%,#000 62%);
  mask-image:linear-gradient(90deg,rgba(0,0,0,.28),rgba(0,0,0,.42) 34%,#000 62%)}
@media (max-width:1023px){.cine-neural{-webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.3),#000 55%);mask-image:linear-gradient(180deg,rgba(0,0,0,.3),#000 55%)}}
.cine-w{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.14em;margin-bottom:-.14em}
.cine-w > i{display:inline-block;font-style:inherit;transform:translateY(105%);opacity:0}
.cine .cine-w > i{will-change:transform}
.cine .hero__visual{will-change:transform}
.cine-mag{will-change:transform}
.cine-mag > *{pointer-events:none}
.cine-aura{position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:0;transition:opacity .6s;
  background:radial-gradient(420px circle at var(--ax,50%) var(--ay,50%),rgba(255,90,31,.10),transparent 65%)}
.cine .hero:hover .cine-aura{opacity:1}

/* 4 · REVELADOS POR SECCIÓN */
.cine [data-cine="mask"]{clip-path:inset(0 100% 0 0);opacity:.001}
.cine [data-cine="rise"]{opacity:0;transform:translateY(26px)}
.cine [data-cine="slide-l"]{opacity:0;transform:translateX(-26px)}
.cine [data-cine="slide-r"]{opacity:0;transform:translateX(26px)}
.cine [data-cine="pop"]{opacity:0;transform:scale(.97) translateY(18px)}

/* Línea de escaneo bajo los titulares de sección (absoluta: no mueve nada) */
.cine .section-head,.cine .process__head,.cine .book__aside{position:relative}
.cine .section-head::after,.cine .process__head::after,.cine .book__aside::after{
  content:"";position:absolute;left:0;bottom:-16px;width:min(140px,40%);height:1px;
  background:linear-gradient(90deg,var(--accent),transparent);
  transform:scaleX(0);transform-origin:0 50%;transition:transform 1.1s var(--cine-exp) .15s}
.cine .section-head--center::after{left:50%;translate:-50% 0;background:linear-gradient(90deg,transparent,var(--accent),transparent);transform-origin:50% 50%}
.cine .section-head.is-in::after,.cine .process__head.is-in::after,.cine .book__aside.is-in::after{transform:scaleX(1)}

/* 5 · TARJETAS · profundidad y borde vivo */
.cine-beam{position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;z-index:2;opacity:0;
  transition:opacity .45s;
  background:radial-gradient(220px circle at var(--mx,50%) var(--my,50%),rgba(255,90,31,.55),transparent 62%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;padding:1px}
@media (hover:hover) and (pointer:fine){
  .cine .card:hover .cine-beam,.cine .case:hover .cine-beam{opacity:1}
}
.cine .card,.cine .case{transform-style:preserve-3d}
.cine .case__logo img{will-change:transform}
@media (hover:hover) and (pointer:fine){
  .cine .cases.is-focus .case{opacity:.45;filter:saturate(.6);transition:opacity .45s,filter .45s,transform .5s var(--cine-exp)}
  .cine .cases.is-focus .case.is-active{opacity:1;filter:none}
}
.cine .card__ico use{stroke-dasharray:90;stroke-dashoffset:90;transition:stroke-dashoffset 1s var(--cine-exp)}
.cine .card.is-in .card__ico use{stroke-dashoffset:0}

/* 6 · DEMO · centro de control */
.cine .step__ico{position:relative}
.cine .step.cine-hit .step__ico::after{content:"";position:absolute;inset:-6px;border-radius:14px;
  border:1px solid var(--accent);animation:cineRipple .9s var(--cine-exp) forwards}
@keyframes cineRipple{0%{transform:scale(.7);opacity:.9}100%{transform:scale(1.5);opacity:0}}
/* Barrido en su propio elemento: no pisa la linea que une los pasos */
.cine-sweep{position:absolute;inset:0;z-index:0;pointer-events:none;border-radius:12px;opacity:0;
  background:linear-gradient(90deg,transparent,rgba(255,90,31,.16),transparent);
  background-size:55% 100%;background-repeat:no-repeat;background-position:-55% 0}
.cine .step.cine-hit .cine-sweep{opacity:1;animation:cineSweep .85s var(--cine-smooth) forwards}
@keyframes cineSweep{to{background-position:155% 0}}
.cine .demo__flow{transition:box-shadow .5s,border-color .5s}
.cine .demo__flow.cine-live{border-color:rgba(255,90,31,.45);box-shadow:0 0 0 1px rgba(255,90,31,.12),0 30px 70px -45px rgba(255,90,31,.5)}
.cine .demo__flow.cine-done{border-color:rgba(14,159,110,.4);box-shadow:0 0 0 1px rgba(14,159,110,.12),0 30px 70px -45px rgba(14,159,110,.45)}
.cine #demo-state.cine-beat{animation:cineBeat 1.4s ease-in-out infinite}
@keyframes cineBeat{50%{opacity:.55}}
.cine .log li{animation:cineLog .45s var(--cine-exp)}
@keyframes cineLog{from{opacity:0;transform:translateX(-10px)}}

/* 7 · CALCULADORA · indicador radial vivo */
.cine-gauge{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:2/1;max-height:150px;margin:4px 0 2px}
.cine-gauge canvas{position:absolute;inset:0;width:100%;height:100%}
.cine-gauge__v{position:relative;display:grid;justify-items:center;gap:2px;transform:translateY(16%)}
.cine-gauge__n{font-family:var(--f-mono);font-size:1.5rem;font-weight:500;letter-spacing:-.02em;color:var(--accent);font-variant-numeric:tabular-nums}
.cine-gauge__l{font-size:.74rem;color:var(--muted-2);text-align:center;max-width:22ch;line-height:1.3}
.cine .kpi strong{transition:color .35s}
.cine .kpi.cine-flash strong{color:var(--accent)}
.cine .range__top output{transition:transform .25s var(--cine-exp),color .25s}
.cine .range:focus-within output,.cine .range.cine-drag output{transform:scale(1.12);color:var(--accent)}

/* 8 · CIERRE Y PIE */
.cine-constel{position:absolute;inset:0;z-index:-1;width:100%;height:100%;pointer-events:none;opacity:.9}
.cine .footer{position:relative;overflow:hidden}
.cine .footer__brand img{transition:transform .6s var(--cine-exp)}
.cine .footer:hover .footer__brand img{transform:translateY(-2px)}

/* 9 · NAVEGACIÓN */
.cine .nav a{position:relative}
.cine .nav a::after{content:"";position:absolute;left:14px;right:14px;bottom:4px;height:1px;background:var(--accent);
  transform:scaleX(0);transform-origin:0 50%;transition:transform .4s var(--cine-exp)}
.cine .nav a:hover::after,.cine .nav a.is-active::after{transform:scaleX(1)}

/* 10 · MÓVIL */
@media (max-width:767px){
  .cine-progress{height:2px}
  .cine-gauge{max-height:120px}
  .cine [data-cine="rise"]{transform:translateY(18px)}
  .cine [data-cine="slide-l"],.cine [data-cine="slide-r"]{transform:translateY(18px)}
}
@media (hover:none){
  .cine .card:active .cine-beam,.cine .case:active .cine-beam{opacity:1}
}

/* 11 · MOVIMIENTO REDUCIDO */
@media (prefers-reduced-motion:reduce){
  .cine-progress,.cine-cursor,.cine-ring,.cine-neural,.cine-constel,.cine-aura{display:none!important}
  .cine [data-cine]{opacity:1!important;transform:none!important;clip-path:none!important}
  .cine-w > i{transform:none!important;opacity:1!important}
  .cine .card__ico use{stroke-dashoffset:0!important}
  .cine .step.cine-hit::before,.cine .step.cine-hit .step__ico::after,
  .cine #demo-state.cine-beat,.cine .log li{animation:none!important}
  .cine .section-head::after,.cine .process__head::after,.cine .book__aside::after{transition:none!important;transform:scaleX(1)!important}
}

/* 12 · RASTRO DEL CURSOR */
.cine-trail{position:fixed;top:0;left:0;z-index:94;pointer-events:none;border-radius:50%;
  width:calc(9px - var(--i) * 1.1px);height:calc(9px - var(--i) * 1.1px);
  margin:calc((9px - var(--i) * 1.1px) / -2) 0 0 calc((9px - var(--i) * 1.1px) / -2);
  background:var(--accent);opacity:calc(.42 - var(--i) * .06);transition:opacity .4s;
  mix-blend-mode:multiply}
@media (prefers-reduced-motion:reduce){.cine-trail{display:none!important}}

/* Barra de progreso algo mas presente */
.cine-progress{height:3px}
.cine-progress__bar{box-shadow:0 0 18px -1px rgba(255,90,31,.6)}
