/* Publicidades especiales: independientes de los estilos editoriales. */
#th-special-home,#th-special-adhesion{box-sizing:border-box;font-family:Arial,sans-serif;line-height:1.2}
#th-special-home *,#th-special-adhesion *{box-sizing:border-box}
#th-special-home[hidden],#th-special-adhesion[hidden],#th-special-adhesion [hidden]{display:none!important}
#th-special-home{position:fixed;inset:0;width:100%;height:100%;height:100dvh;z-index:2147483000;background:#080808;display:flex;align-items:center;justify-content:center;overscroll-behavior:contain}
#th-special-home .th-special-creative{display:flex;width:100%;height:100%;align-items:center;justify-content:center;text-decoration:none}
#th-special-home img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;margin:0;border:0}
#th-special-home .th-special-controls{position:absolute;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));display:flex;align-items:center;gap:8px;z-index:2}
#th-special-home .th-special-count{background:rgba(0,0,0,.78);color:white;padding:9px 13px;border-radius:5px;font-size:14px;font-weight:600;white-space:nowrap}
#th-special-home .th-special-close{background:#fff;color:#171717;border:0;border-radius:50%;width:44px;height:44px;min-height:44px;padding:0;font-size:29px;line-height:1;display:grid;place-items:center;cursor:pointer;box-shadow:0 2px 8px #0005}
html.th-special-home-open,body.th-special-home-open{overflow:hidden!important;overscroll-behavior:none}
#th-special-adhesion{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(1200px,100%);z-index:2147482000;display:flex;flex-direction:column;align-items:center;pointer-events:none}
#th-special-adhesion .th-special-toggle{pointer-events:auto;display:flex;align-items:center;justify-content:center;width:72px;height:32px;min-height:32px;margin:0;padding:0;border:1px solid #ddd;border-bottom:0;border-radius:7px 7px 0 0;background:#fff;color:#555;box-shadow:0 -2px 8px #0002;cursor:pointer}
#th-special-adhesion .th-special-toggle svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#th-special-adhesion.is-collapsed .th-special-toggle svg{transform:rotate(180deg)}
#th-special-adhesion .th-special-creative{pointer-events:auto;display:block;width:100%;padding-bottom:env(safe-area-inset-bottom,0px);background:#080808;box-shadow:0 -2px 10px #0003;text-decoration:none}
#th-special-adhesion img{display:block;width:100%;height:auto;max-height: min(120px,20dvh);object-fit:contain;margin:0;border:0}

#th-special-home button:focus-visible,#th-special-home a:focus-visible,#th-special-adhesion button:focus-visible,#th-special-adhesion a:focus-visible{outline:3px solid #47a9ff;outline-offset:-3px}
@media(max-width:767px){#th-special-adhesion{width:100%}#th-special-adhesion img{max-height:min(100px,18dvh)}#th-special-adhesion .th-special-toggle{width:56px;height:28px;min-height:28px}#th-special-home .th-special-count{font-size:12px;padding:8px 10px}}

/* Transiciones de entrada y salida: solo opacidad y transformación, sin alterar el layout. */
#th-special-home{opacity:0;transition:opacity 220ms cubic-bezier(.2,.7,.2,1)}
#th-special-home.is-visible{opacity:1}
#th-special-home .th-special-creative{opacity:0;transform:scale(.985);transition:opacity 220ms ease,transform 280ms cubic-bezier(.2,.7,.2,1)}
#th-special-home.is-visible .th-special-creative{opacity:1;transform:scale(1)}
#th-special-home.is-closing .th-special-creative{pointer-events:none;transform:scale(.995);transition-duration:200ms}
#th-special-home .th-special-close{transition:background-color 160ms ease,transform 160ms ease}
#th-special-home .th-special-close:active{transform:scale(.94)}
#th-special-adhesion{--th-adhesion-height:0px;--th-adhesion-shift:0px;opacity:0;transform:translate3d(-50%,calc(var(--th-adhesion-shift) + 22px),0);transition:transform 360ms cubic-bezier(.22,1,.36,1),opacity 240ms ease}
#th-special-adhesion.is-visible{opacity:1;transform:translate3d(-50%,var(--th-adhesion-shift),0)}
#th-special-adhesion.is-collapsed{--th-adhesion-shift:max(0px,calc(var(--th-adhesion-height) - env(safe-area-inset-bottom,0px)))}
#th-special-adhesion .th-special-creative{opacity:1;visibility:visible;transition:opacity 240ms ease,visibility 0s}
#th-special-adhesion.is-collapsed .th-special-creative{opacity:0;visibility:hidden;pointer-events:none;transition:opacity 240ms ease,visibility 0s 360ms}
#th-special-adhesion .th-special-toggle svg{transition:transform 360ms cubic-bezier(.22,1,.36,1)}
#th-special-adhesion .th-special-toggle{transition:background-color 160ms ease}
@media(hover:hover){#th-special-home .th-special-close:hover{background:#eaeaea}#th-special-adhesion .th-special-toggle:hover{background:#f3f3f3}}
@media(prefers-reduced-motion:reduce){#th-special-home,#th-special-home *,#th-special-adhesion,#th-special-adhesion *{transition:none!important;animation:none!important}}
