/* ===== Reel 3D (Three.js) · estilo explicativo cinematográfico ===== */
@font-face{font-family:"Instrument Serif";src:url(fonts/instrument-serif-latin-400-italic.woff2) format("woff2");font-style:italic;font-display:swap}
.monitor{position:relative;aspect-ratio:9/16;width:100%;max-width:340px;margin-left:auto;border-radius:30px;background:#050505;overflow:hidden;isolation:isolate}
.mg{position:absolute;inset:0;z-index:1;overflow:hidden;container-type:inline-size}
.mg-bar{position:absolute;top:9px;left:12px;right:12px;z-index:9;display:flex;gap:4px}
.mg-bar i{flex:1;height:3px;border-radius:3px;background:rgb(255 255 255/.22);overflow:hidden}
.mg-bar b{display:block;height:100%;width:0;background:#fff}
.mg-bar i.done b{width:100%}
.mg-bar i.now b{animation:fill linear forwards}
@keyframes fill{to{width:100%}}
.m-top{position:absolute;top:22px;left:16px;right:16px;z-index:8;display:flex;justify-content:space-between;align-items:center;color:#fff;font:600 .68rem var(--sans,system-ui)}
.m-tag{background:rgb(0 0 0/.4);border:1px solid rgb(255 255 255/.18);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);padding:.26rem .6rem;border-radius:99px}

.r3{background:#050505}
.r3-cv{position:absolute;inset:0;width:100%;height:100%;display:block}
.r3-flash{position:absolute;inset:0;pointer-events:none}
/* textos: arriba y centrados; el tercio inferior queda libre */
.r3-txt{position:absolute;left:6%;right:6%;top:12%;z-index:3;text-align:center;color:#fff;pointer-events:none}
.r3-t{position:absolute;left:0;right:0;top:0;animation:r3in .7s cubic-bezier(.2,.8,.2,1) both}
.r3-t.out{animation:r3out .45s ease-in both}
@keyframes r3in{from{opacity:0;filter:blur(1.4cqw);transform:translateY(2cqw) scale(.97)}to{opacity:1;filter:none;transform:none}}
@keyframes r3out{to{opacity:0;filter:blur(1.4cqw);transform:translateY(-1.5cqw)}}
.r3-lab{font:500 3.1cqw ui-monospace,"SF Mono",Consolas,monospace;letter-spacing:.32em;text-transform:uppercase;color:rgb(255 255 255/.78);margin:0}
.r3-ser{font:italic 400 15cqw/1 "Instrument Serif",Georgia,serif;letter-spacing:-.01em;margin:1cqw 0 0;text-shadow:0 0 2cqw rgb(255 255 255/.35)}
.r3-glow{text-shadow:0 0 1.2cqw rgb(255 255 255/.9),0 0 5cqw rgb(255 255 255/.55),0 0 12cqw rgb(255 255 255/.3)}
.r3-ser s{text-decoration:none;position:relative;color:rgb(255 255 255/.55)}
.r3-ser s::after{content:"";position:absolute;left:-2%;right:-2%;top:55%;height:.06em;background:#fff;transform-origin:left;animation:r3strike .5s .5s cubic-bezier(.6,0,.2,1) both}
@keyframes r3strike{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.r3-big{font:800 14cqw/1 var(--sans,Inter,system-ui);letter-spacing:-.055em;margin:0;text-shadow:0 0 4cqw rgb(255 255 255/.25)}
.r3-strike{position:relative;color:rgb(255 255 255/.5)}
.r3-strike::after{content:"";position:absolute;left:-3%;right:-3%;top:52%;height:.09em;background:#fff;transform-origin:left;animation:r3strike .45s .35s cubic-bezier(.6,0,.2,1) both}
.r3-num{font:800 30cqw/.85 var(--sans,Inter,system-ui);letter-spacing:-.07em;margin:0;font-variant-numeric:tabular-nums;text-shadow:0 0 3cqw rgb(255 255 255/.45),0 0 10cqw rgb(255 255 255/.2)}
.r3-mono{font:500 3cqw ui-monospace,"SF Mono",Consolas,monospace;letter-spacing:.14em;color:rgb(255 255 255/.7);margin:2.2cqw 0 0}
.r3-url{display:inline-block;margin-top:30cqw;padding:2cqw 4cqw;border:1px solid rgb(255 255 255/.4);border-radius:99px;color:#fff;letter-spacing:.18em;backdrop-filter:blur(6px)}
.r3-nogl{background:#050505 url(media/v6/maniqui.jpg) center/cover}
@media (prefers-reduced-motion: reduce){.r3-t,.r3-t.out{animation-duration:.01s}}

/* ===== v3 · texto con gramática de cine: posición, entrada y salida distintas ===== */
.r3-txt{left:0;right:0;top:0;bottom:0;text-align:center}
.r3-t{position:absolute;left:7%;right:7%;animation:none}
.r3-pos-top{top:11.5%}
.r3-pos-mid{top:30%}
.r3-pos-left{top:13%;text-align:left}
.r3-pos-low{top:58%;text-align:left;left:9%}
.r3-mega{font:800 17cqw/.92 var(--sans,Inter,system-ui);letter-spacing:-.06em;margin:0;text-shadow:0 0 5cqw rgb(255 255 255/.25)}
.r3-hl{color:#fff;position:relative}
.r3-hl::after{content:"";position:absolute;left:0;right:0;bottom:-.06em;height:.07em;background:#fff;transform-origin:left;animation:r3strike .5s .6s cubic-bezier(.6,0,.2,1) both}
.r3-tick{display:inline-flex;align-items:center;gap:2.4cqw;margin:0;font:600 4.6cqw ui-monospace,"SF Mono",Consolas,monospace;letter-spacing:.12em;text-transform:uppercase;color:#fff}
.r3-tick::before{content:"";width:9cqw;height:1px;background:#fff}
.r3-lab:empty{min-height:1em}
/* palabra a palabra (sube con rebote) */
.r3-k-words .w{display:inline-block;font-style:normal;animation:r3w .6s cubic-bezier(.2,1.4,.4,1) both;animation-delay:var(--d)}
@keyframes r3w{from{opacity:0;transform:translateY(55%) rotate(4deg)}to{opacity:1;transform:none}}
/* zoom: entra grande y desenfocado y se asienta */
.r3-k-zoom .w{display:inline-block;font-style:normal;animation:r3z .55s cubic-bezier(.2,.9,.2,1) both;animation-delay:var(--d)}
@keyframes r3z{from{opacity:0;transform:scale(1.9);filter:blur(2.5cqw)}to{opacity:1;transform:none;filter:none}}
/* letra a letra con desenfoque (serif) */
.r3-k-letters .c{display:inline-block;font-style:italic;animation:r3c .7s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--d)}
@keyframes r3c{from{opacity:0;filter:blur(1.6cqw);transform:translateY(25%)}to{opacity:1;filter:none;transform:none}}
/* máscara: cada línea sube desde abajo */
.r3-k-mask .r3-ser span,.r3-k-mask .r3-ser{display:block;overflow:hidden}
.r3-k-mask .r3-ser span{animation:r3m .8s cubic-bezier(.2,.9,.2,1) both}
.r3-k-mask .r3-ser span:nth-child(2){animation-delay:.12s}
.r3-k-mask .r3-lab{animation:r3fade .6s both}
@keyframes r3m{from{transform:translateY(105%)}to{transform:none}}
/* máquina de escribir + deslizamiento lateral */
.r3-k-type{animation:r3fade .3s both}
.r3-k-type [data-type]::after,.r3-k-letters [data-type]::after,.r3-k-mask [data-type]::after{content:"▌";animation:r3blink .7s steps(2) infinite;margin-left:.15em;font-size:.9em}
.r3-slide{animation:r3sl .7s .75s cubic-bezier(.2,1,.3,1) both}
@keyframes r3sl{from{opacity:0;transform:translateX(-40%) skewX(12deg);filter:blur(1cqw)}to{opacity:1;transform:none;filter:none}}
/* ticker de canales */
.r3-k-tick{animation:r3tk .35s cubic-bezier(.2,1,.3,1) both}
@keyframes r3tk{from{opacity:0;transform:translateY(60%)}to{opacity:1;transform:none}}
@keyframes r3fade{from{opacity:0}to{opacity:1}}
@keyframes r3blink{50%{opacity:0}}
/* salidas */
.r3-t.out{animation:r3out .45s ease-in both}
.r3-t.out-up{animation:r3oup .45s cubic-bezier(.6,0,.8,.4) both}
.r3-t.out-left{animation:r3olf .45s cubic-bezier(.6,0,.8,.4) both}
.r3-t.out-blur{animation:r3obl .4s ease-in both}
@keyframes r3oup{to{opacity:0;transform:translateY(-40%)}}
@keyframes r3olf{to{opacity:0;transform:translateX(-30%)}}
@keyframes r3obl{to{opacity:0;transform:scale(1.25);filter:blur(2cqw)}}
.r3-url{margin-top:0}

/* ===== v4 · tipografías y efectos distintos en cada texto ===== */
@font-face{font-family:"Anton";src:url(fonts/anton-latin-400-normal.woff2) format("woff2");font-display:swap}
@font-face{font-family:"Unbounded";src:url(fonts/unbounded-latin-wght-normal.woff2) format("woff2");font-weight:200 900;font-display:swap}
@font-face{font-family:"Playfair Display";src:url(fonts/playfair-display-latin-600-italic.woff2) format("woff2");font-style:italic;font-weight:600;font-display:swap}
.r3-t{animation:r3fade .35s both}
.r3-pos-tl{top:11%;left:7%;right:12%;text-align:left}
.r3-pos-tr{top:11%;right:7%;left:12%;text-align:right}
.r3-pos-left{top:12%;left:7%;right:7%;text-align:left}
.r3-t p{margin:0}
.r3-anton{font-family:"Anton",Impact,sans-serif;text-transform:uppercase;letter-spacing:.01em;line-height:.88}
.r3-unb{font-family:"Unbounded",var(--sans,system-ui);font-weight:800}
.r3-play{font-family:"Playfair Display",Georgia,serif;font-style:italic;font-weight:600;letter-spacing:-.02em;line-height:1}
.r3-inst{font-family:"Instrument Serif",Georgia,serif;font-style:italic;line-height:1.05;color:rgb(255 255 255/.92)}
.r3-inter{font-family:var(--sans,Inter,system-ui);font-weight:800;letter-spacing:-.05em}
.r3-mono2{font:500 2.7cqw ui-monospace,"SF Mono",Consolas,monospace;letter-spacing:.32em;text-transform:uppercase;color:rgb(255 255 255/.72);margin:2.4cqw 0 0!important}
.r3-gold{color:#E6BF7C;text-shadow:0 0 3cqw rgb(230 191 124/.35)}
.r3-ol{color:transparent!important;-webkit-text-stroke:.32cqw #fff;text-shadow:none}
.r3-xl{font-size:12.5cqw;margin-top:1.6cqw!important}
.r3-l{font-size:11cqw}
.r3-m{font-size:8.5cqw}
.r3-num{font-size:31cqw;line-height:.85;letter-spacing:-.06em;font-variant-numeric:tabular-nums;color:#fff;text-shadow:0 0 5cqw rgb(255 255 255/.2)}
.r3-giant{font-size:30cqw;color:#fff}
.r3-big2{font-size:16cqw;margin-top:1cqw!important}
.r3-spaced{font-size:5cqw;letter-spacing:.3em;font-weight:600;color:#fff}
.r3-wide{font-size:15cqw;letter-spacing:.32em;margin-right:-.32em;color:#fff;text-shadow:0 0 4cqw rgb(255 255 255/.3)}
/* apilado: cada línea entra desde un lado distinto */
.r3-stack span{display:block;font-size:27cqw;color:#fff;animation:r3sl8 .55s cubic-bezier(.2,1,.3,1) both}
.r3-stack span:nth-child(2){animation-name:r3sr8;animation-delay:.12s;font-size:18cqw;padding-left:18cqw}
.r3-stack span:nth-child(3){animation-delay:.24s}
@keyframes r3sl8{from{opacity:0;transform:translateX(-60%) skewX(10deg)}to{opacity:1;transform:none}}
@keyframes r3sr8{from{opacity:0;transform:translateX(60%) skewX(-10deg)}to{opacity:1;transform:none}}
/* trío de fuentes */
.r3-trio span{display:block;font-size:15cqw;line-height:1;animation:r3sl8 .55s cubic-bezier(.2,1,.3,1) both}
.r3-trio span:nth-child(2){animation-name:r3sr8;animation-delay:.35s;padding-left:14cqw}
.r3-trio span:nth-child(3){animation-delay:.7s;font-size:19cqw}
/* trazo que se dibuja y luego se rellena */
.r3-draw{color:transparent;-webkit-text-stroke:.3cqw #fff;animation:r3dr .9s cubic-bezier(.6,0,.2,1) both,r3fill .4s .8s ease-out forwards}
@keyframes r3dr{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes r3fill{to{color:#fff;text-shadow:0 0 6cqw rgb(255 255 255/.35)}}
/* índice del ticker */
.r3-idx{display:inline-flex;align-items:baseline;gap:3cqw;font:600 5.4cqw "Unbounded",system-ui;letter-spacing:.06em;text-transform:uppercase;color:#fff;animation:r3tk .35s cubic-bezier(.2,1,.3,1) both}
.r3-idx b{font:500 3cqw ui-monospace,Consolas,monospace;color:#E6BF7C;letter-spacing:.2em}
/* reloj digital */
.r3-clockbig{font:700 13cqw/1 "Unbounded",system-ui;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:#fff;animation:r3z .6s cubic-bezier(.2,.9,.2,1) both}
.r3-clockbig b{color:#E6BF7C;font-weight:700}
/* letras y palabras (genéricas) */
.r3-t [data-lt] .c{display:inline-block;font-style:inherit;animation:r3c .65s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--d)}
.r3-t [data-wd] .w{display:inline-block;font-style:inherit;animation:r3w .55s cubic-bezier(.2,1.3,.4,1) both;animation-delay:var(--d)}
.r3-t [data-type]::after{content:"▌";animation:r3blink .7s steps(2) infinite;margin-left:.15em;font-size:.9em}

/* blanco y negro: sin color en los textos */
.r3-gold{color:#fff;text-shadow:0 0 3cqw rgb(255 255 255/.3)}
.r3-clockbig b,.r3-idx b{color:rgb(255 255 255/.55)}
.r3-wide{font-size:11.5cqw;letter-spacing:.22em;margin-right:-.22em;white-space:nowrap}

/* ===== v5 · texto minimalista: una serif fina y una etiqueta diminuta ===== */
.r3-min{font:400 9.6cqw/1.02 "Instrument Serif",Georgia,serif;font-style:italic;letter-spacing:-.015em;color:#fff;max-width:72cqw;text-shadow:0 1px 18px rgb(0 0 0/.55)}
.r3-min--c{font-size:12cqw;max-width:none;text-align:center}
.r3-tag{display:flex;align-items:center;gap:2.4cqw;margin:0 0 2.6cqw!important;font:400 2.3cqw ui-monospace,"SF Mono",Consolas,monospace;letter-spacing:.38em;text-transform:uppercase;color:rgb(255 255 255/.6);animation:r3soft .9s cubic-bezier(.2,.7,.2,1) both}
.r3-tag::before{content:"";width:7cqw;height:1px;background:rgb(255 255 255/.55);transform-origin:left;animation:r3line .8s cubic-bezier(.6,0,.2,1) both}
.r3-tag--end{margin:3.2cqw 0 0!important;animation-delay:.7s}
.r3-tag--end::before{animation-delay:.6s}
.r3-min[data-wd] .w{animation:r3soft 1s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--d) + .15s)}
@keyframes r3soft{from{opacity:0;filter:blur(10px);transform:translateY(.25em)}to{opacity:1;filter:none;transform:none}}
@keyframes r3line{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.r3-min{text-shadow:0 0 2px rgb(0 0 0/.5),0 2px 24px rgb(0 0 0/.85)}
.r3-min--c{font-size:15cqw}
