/* Temporadas en la interfaz real. Sólo se carga para el tema resuelto por el servidor.
   No modifica colores de alerta, estados documentales ni fotografías originales. */
html[data-tema-diseno="completo"]{--tsa-fest-green:#123d33;--tsa-fest-deep:#0b2d27;--tsa-fest-cream:#f6f3eb;--tsa-fest-gold:#c9aa6b}
html[data-tema-diseno="completo"] body{--bg:#f6f3eb;background-color:var(--tsa-fest-cream);background-image:none}
html[data-tema-diseno="completo"] .sidebar{background:linear-gradient(165deg,var(--tsa-fest-green),var(--tsa-fest-deep))}
html[data-tema-diseno="completo"] .topbar{background:#fffdf8;border-bottom-color:#e1dfd2}
html[data-tema-diseno="completo"][data-tema-intensidad="marcado"] .main{background:radial-gradient(ellipse at 98% 6%,#e5e9d4,transparent 48%),var(--tsa-fest-cream)}
html[data-tema-diseno="completo"] .content>.card{border-color:#e1e6de}
/* El encabezado ejecutivo conserva todos sus indicadores y enlaces. */
html[data-tema-diseno="completo"] .exec-hero{background:linear-gradient(120deg,var(--tsa-fest-green),var(--tsa-fest-deep));box-shadow:0 8px 22px #18362914}
html[data-tema-diseno="completo"] .exec-hero .exec-eyebrow{color:#ead8ac}
html[data-tema-diseno="completo"] .exec-hero .exec-subtitle{color:#dce9dc}
html[data-tema-diseno="completo"] .exec-hero .exec-mascota{display:none}
html[data-tema-diseno="completo"] .health-ring:before{background:var(--tsa-fest-green)}
html[data-tema-diseno="completo"] .health-value small{color:#e5ecd9}
html[data-tema-diseno="completo"] .tsa-profile-header{background:linear-gradient(120deg,var(--tsa-fest-green),var(--tsa-fest-deep))!important}
.tsa-season-banner{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:space-between;gap:20px;overflow:hidden;min-width:0;border-radius:14px;padding:22px 26px;margin:0 0 20px;background:linear-gradient(110deg,var(--tsa-fest-green),var(--tsa-fest-deep));color:#fff}
.tsa-season-banner::before,.tsa-login-welcome::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle at 75% 55%,transparent 74px,#c9aa6b40 75px,transparent 76px),radial-gradient(circle at 75% 55%,transparent 94px,#c9aa6b26 95px,transparent 96px),radial-gradient(circle at 60% 15%,#c9aa6b88 0 2px,transparent 3px),radial-gradient(circle at 90% 80%,#c9aa6b88 0 2px,transparent 3px)}
.tsa-season-banner::after{content:"✦";position:absolute;right:29%;top:18px;color:var(--tsa-fest-gold);font-size:28px;opacity:.65;pointer-events:none}
.tsa-season-copy{min-width:0;position:relative;z-index:1;flex:1}
.tsa-season-eyebrow{font-size:10px;font-weight:700;letter-spacing:1.6px;color:#ead8ac;margin:0 0 8px;line-height:1.5}
.tsa-season-copy h2{font-size:24px;line-height:1.2;margin:0 0 8px;letter-spacing:-.5px;color:#fff}
.tsa-season-message{font-size:13px;line-height:1.65;max-width:580px;color:#dce9dc;margin:0}
.tsa-season-mascot{width:112px;flex-shrink:0;position:relative;pointer-events:none;margin:-10px 0}
.tsa-season-home{padding:28px 30px;min-height:190px}
.tsa-season-home .tsa-season-copy h2{font-size:34px}
.tsa-season-home .tsa-season-mascot{width:170px}
/* Sutil: sólo una franja legible. Sin fondos ornamentales ni disfraces de fotos. */
html[data-tema-intensidad="sutil"] .tsa-season-banner{padding:12px 18px;min-height:0;background:#edf3e9;border:1px solid #d7e2ce;color:#254f36;gap:12px}
html[data-tema-intensidad="sutil"] .tsa-season-copy h2{font-size:17px;color:#254f36;margin:0}
html[data-tema-intensidad="sutil"] .tsa-season-eyebrow{color:#536f50;font-size:9px;margin-bottom:4px}
html[data-tema-intensidad="sutil"] :is(.tsa-season-message,.tsa-season-mascot){display:none}
html[data-tema-intensidad="sutil"] .tsa-season-banner::before,html[data-tema-intensidad="sutil"] .tsa-season-banner::after{display:none}
/* El gorro se apoya en el borde del avatar: no analiza ni transforma rostros. */
.tsa-person-photo{display:inline-flex;position:relative;flex:none;vertical-align:middle;width:var(--person-photo-size);height:var(--person-photo-size);isolation:isolate}
.tsa-person-photo>img{display:block;max-width:100%}
.tsa-person-photo::after{content:"";position:absolute;width:76%;height:58%;left:26%;top:-34%;background:url('../brand/gorro-navidad.svg') center/contain no-repeat;pointer-events:none;z-index:1}
/* Ingreso: se reutiliza el formulario real, su recuperación y sus errores. */
html[data-tema-diseno="completo"] .tsa-login{display:flex;align-items:center;justify-content:center;overflow:auto;min-height:100vh;padding:30px;background:var(--tsa-fest-cream);color:#243b34}
html[data-tema-diseno="completo"] .tsa-login :is(.scene,.road,.headlight,.stars,.mascota-login,.logo-glow){display:none}
html[data-tema-diseno="completo"] .tsa-login .wrapper{display:grid;grid-template-columns:1.05fr 1fr;max-width:1080px;animation:none;border-radius:20px;overflow:hidden;box-shadow:0 18px 50px #16372916;background:#fffdf7}
.tsa-login-welcome{display:flex;flex-direction:column;position:relative;isolation:isolate;overflow:hidden;min-width:0;padding:38px 40px;background:linear-gradient(145deg,var(--tsa-welcome-green,#1c5040),var(--tsa-fest-deep));color:#fff}
.tsa-login-brand{display:flex;align-items:center;gap:12px;font-size:9px;letter-spacing:1.5px;line-height:1.5}
.tsa-login-brand img{width:50px;height:50px;object-fit:contain}.tsa-login-brand strong{font-size:12px}
.tsa-login-copy{margin-top:46px}.tsa-login-copy h1{font-size:40px;font-weight:700;letter-spacing:-1.3px;line-height:1.12;margin:0 0 18px}
.tsa-login-copy>p:last-child{font-size:14px;color:#dce9dc;line-height:1.8;max-width:340px}
.tsa-login-saludo{display:block;margin-bottom:4px}
.tsa-welcome-mascot{width:240px;align-self:center;margin:10px 0;pointer-events:none}
.tsa-login-signature{font-size:12px;margin:auto 0 0;display:flex;justify-content:space-between;gap:12px;color:#e7dab5;line-height:1.5}.tsa-login-signature span{font-size:24px}
html[data-tema-diseno="completo"] .tsa-login .box{display:flex;flex-direction:column;justify-content:center;background:transparent;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;min-width:0}
html[data-tema-diseno="completo"] .tsa-login .box-head{padding:34px 34px 24px}
html[data-tema-diseno="completo"] .tsa-login .box-head::before{display:none}
html[data-tema-diseno="completo"] .tsa-login .logo-img{max-width:190px;filter:none;animation:none}
html[data-tema-diseno="completo"] .tsa-login .brand-sub{color:#5b6b61;animation:none;opacity:1;letter-spacing:1px;line-height:1.6}
html[data-tema-diseno="completo"] .tsa-login .box-body{padding:24px 38px;border-top:1px solid #e1dfd2}
html[data-tema-diseno="completo"] .tsa-login label{color:#365443}
html[data-tema-diseno="completo"] .tsa-login input{background:#fff;color:#243b34;border-color:#c9d5c8;font-size:16px}
html[data-tema-diseno="completo"] .tsa-login input::placeholder{color:#708175}
html[data-tema-diseno="completo"] .tsa-login input:focus{border-color:#466c44;background:#fff;box-shadow:0 0 0 3px #a7bf943a}
html[data-tema-diseno="completo"] .tsa-login .btn-login{background:var(--tsa-fest-green);box-shadow:0 4px 14px #18362922}
html[data-tema-diseno="completo"] .tsa-login :is(.link-olvido,.hint){color:#53674f}
html[data-tema-diseno="completo"] .tsa-login .link-olvido:hover{color:#123d33;text-decoration:underline}
html[data-tema-diseno="completo"] .tsa-login .box-foot{background:#eeeede;border-color:#dcdcc9;flex-wrap:wrap;padding:14px 24px}
html[data-tema-diseno="completo"] .tsa-login .box-foot span{color:#52624e}
html[data-tema-diseno="completo"] .tsa-login .flash{color:#8e2525;background:#fff0ec;border:1px solid #edbdb3;line-height:1.5}
html[data-tema-intensidad="sutil"] .tsa-login .wrapper{max-width:460px;display:block}
html[data-tema-intensidad="sutil"] .tsa-login-welcome{padding:20px 30px}
html[data-tema-intensidad="sutil"] .tsa-login-copy{margin:0}
html[data-tema-intensidad="sutil"] .tsa-login-copy h1{font-size:24px;margin:8px 0}
html[data-tema-intensidad="sutil"] .tsa-login-welcome :is(.tsa-login-brand,.tsa-welcome-mascot,.tsa-login-signature){display:none}
html[data-tema-intensidad="sutil"] .tsa-login-welcome::before{display:none}
@media(max-width:900px){
  .tsa-season-banner{padding:18px 20px;gap:10px}
  .tsa-season-home{min-height:160px}
  .tsa-season-home .tsa-season-copy h2{font-size:28px}
  .tsa-season-home .tsa-season-mascot{width:120px}
  html[data-tema-diseno="completo"] .tsa-login{padding:18px}
  .tsa-login-welcome{padding:30px 26px}
  .tsa-login-copy h1{font-size:34px}
}
@media(max-width:700px){
  html[data-tema-diseno="completo"] .tsa-login{display:block;padding:0}
  html[data-tema-diseno="completo"] .tsa-login .wrapper{display:block;max-width:520px;margin:auto;border-radius:0;box-shadow:none}
  .tsa-login-welcome{padding:24px 24px 28px}
  .tsa-login-brand img{width:36px;height:36px}
  .tsa-login-copy{margin-top:26px;max-width:75%}
  .tsa-login-copy h1{font-size:31px;letter-spacing:-1px}
  .tsa-login-copy>p:last-child{font-size:12px;max-width:240px}
  .tsa-login-welcome .tsa-season-eyebrow{font-size:9px}
  .tsa-welcome-mascot{position:absolute;right:0;bottom:6px;width:125px;margin:0}
  .tsa-login-signature{display:none}
  html[data-tema-diseno="completo"] .tsa-login .box-head{padding:24px 24px 18px}
  html[data-tema-diseno="completo"] .tsa-login .logo-img{max-width:145px}
  html[data-tema-diseno="completo"] .tsa-login .box-body{padding:24px}
  html[data-tema-intensidad="sutil"] .tsa-login-copy{max-width:none}
  .tsa-season-banner{padding:18px 16px;gap:8px;align-items:center;margin-bottom:16px}
  .tsa-season-eyebrow{font-size:8px;letter-spacing:1px}
  .tsa-season-copy h2,.tsa-season-home .tsa-season-copy h2{font-size:25px;overflow-wrap:anywhere}
  .tsa-season-message{font-size:12px;line-height:1.6}
  .tsa-season-mascot,.tsa-season-home .tsa-season-mascot{width:90px;margin:0}
  .tsa-season-home{min-height:170px}
}
@media(max-width:360px){.tsa-login-copy{max-width:78%}.tsa-login-copy h1{font-size:27px}.tsa-welcome-mascot{width:96px;right:-5px}.tsa-season-mascot,.tsa-season-home .tsa-season-mascot{width:70px}.tsa-season-copy h2,.tsa-season-home .tsa-season-copy h2{font-size:22px}}
@media(prefers-reduced-motion:reduce){html[data-tema-diseno="completo"] .tsa-login *,html[data-tema-diseno="completo"] .tsa-login *::before{animation:none!important;transition:none!important}}
@media print{
  .tsa-season-banner,.tsa-login-welcome,.tsa-person-photo::after{display:none!important}
  html[data-tema-diseno="completo"] body,html[data-tema-diseno="completo"] .main{background:#fff!important}
  html[data-tema-diseno="completo"] .exec-hero{background:#fff!important;color:#000;box-shadow:none}
  html[data-tema-diseno="completo"] .exec-hero :is(.exec-eyebrow,.exec-subtitle){color:#333}
  html[data-tema-diseno="completo"] .tsa-profile-header{background:#fff!important;color:#000!important;box-shadow:none}
}

/* Cada temporada conserva contraste y colores operativos de advertencia. */
html[data-tema="anonuevo"]{--tsa-fest-green:#302452;--tsa-fest-deep:#1b1635;--tsa-fest-cream:#f5f2fa;--tsa-fest-gold:#dfbd73;--tsa-welcome-green:#443167}
html[data-tema="verano"]{--tsa-fest-green:#075763;--tsa-fest-deep:#073a47;--tsa-fest-cream:#f4f6eb;--tsa-fest-gold:#f1c567;--tsa-welcome-green:#116a74}
html[data-tema="glorias"]{--tsa-fest-green:#214565;--tsa-fest-deep:#142c45;--tsa-fest-cream:#f2f5f7;--tsa-fest-gold:#d4c9a3;--tsa-welcome-green:#2c5577}
html[data-tema="patrias"]{--tsa-fest-green:#21466d;--tsa-fest-deep:#152d48;--tsa-fest-cream:#f6f4ef;--tsa-fest-gold:#f0c4b2;--tsa-welcome-green:#2b517d}
html[data-tema="halloween"]{--tsa-fest-green:#50325f;--tsa-fest-deep:#2c203e;--tsa-fest-cream:#f7f2ed;--tsa-fest-gold:#edb575;--tsa-welcome-green:#684273}
html[data-tema="teleton"]{--tsa-fest-green:#71303f;--tsa-fest-deep:#462330;--tsa-fest-cream:#faf3f2;--tsa-fest-gold:#f2c8bd;--tsa-welcome-green:#8d4150}
html[data-tema-diseno="completo"]:not([data-tema="navidad"])[data-tema-intensidad="marcado"] .main{background:radial-gradient(ellipse at 98% 6%,color-mix(in srgb,var(--tsa-fest-green) 12%,transparent),transparent 48%),var(--tsa-fest-cream)}
html[data-tema-diseno="completo"]:not([data-tema="navidad"])[data-tema-intensidad="sutil"] .tsa-season-banner{background:var(--tsa-fest-cream);border-color:color-mix(in srgb,var(--tsa-fest-green) 25%,#fff)}
html[data-tema-diseno="completo"]:not([data-tema="navidad"])[data-tema-intensidad="sutil"] .tsa-season-copy h2,html[data-tema-diseno="completo"]:not([data-tema="navidad"])[data-tema-intensidad="sutil"] .tsa-season-eyebrow{color:var(--tsa-fest-green)}
html[data-tema="patrias"] .tsa-season-banner{border-top:4px solid #c85050}
html[data-tema="glorias"] .tsa-season-banner{border-bottom:3px solid #ccd5d9}
html[data-tema="verano"] .tsa-season-banner::before{background:radial-gradient(circle at 76% 50%,#f1c56730 0 60px,transparent 61px),repeating-radial-gradient(ellipse at 85% 160%,transparent 0 27px,#ffffff0d 28px 30px,transparent 31px 60px)}
html[data-tema="anonuevo"] .tsa-season-banner::before{background:radial-gradient(circle at 70% 25%,#dfbd7377 0 2px,transparent 3px),radial-gradient(circle at 86% 70%,#dfbd7377 0 3px,transparent 4px),repeating-conic-gradient(from 10deg at 77% 50%,transparent 0deg 24deg,#dfbd7314 25deg 26deg,transparent 27deg 45deg)}
html[data-tema="teleton"] .tsa-season-banner::after{content:"♡";font-size:38px}
html[data-tema="glorias"] .tsa-season-banner::after{content:"⚓"}
html[data-tema="halloween"] .tsa-season-banner::before{background:radial-gradient(circle at 80% 40%,#edb57526 0 60px,transparent 61px),radial-gradient(circle at 20% 90%,#a589c218,transparent 60%)}
@media print{html[data-tema-diseno="completo"] .main{background:#fff!important}}
@media print { .tsa-decoration-preference { display: none !important; } }
