/* Tema visual de temporada, sin alterar datos ni controles. */
body[data-season="halloween"]{
 --season-night:#090f3b;--season-dark:#111450;--season-ink:#fdfaff;--season-bright:#fe8b2c;--season-purple:#793aff;
 --season-banner:url("../seasonal/halloween/banner.b721366acbb4.webp");--season-sidebar:url("../seasonal/halloween/sidebar.fab987cc2c70.webp");--season-character:url("../seasonal/halloween/ghost.118bca02edfc.webp");--season-detail:url("../seasonal/halloween/pumpkins.9e1d0b323f3e.webp");
}
body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]{
 --season-night:#171044;--season-dark:#24124c;--season-ink:#fff5e7;--season-bright:#fca833;--season-purple:#c226d6;
 --season-banner:url("../seasonal/muertos/banner.30af5cdfb9d3.webp");--season-sidebar:url("../seasonal/muertos/sidebar.0b1f6307323f.webp");--season-character:url("../seasonal/muertos/ghost.efcd44b4ca64.webp");--season-detail:url("../seasonal/muertos/ofrenda.e2d7a62b8a2a.webp");
}
body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]{background:#f1f0f8}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .seasonal-scene{pointer-events:none;position:fixed;inset:0;z-index:29;overflow:hidden}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .seasonal-scene__sidebar{position:absolute;bottom:0;left:0;width:min(230px,18vw);height:175px;background:var(--season-sidebar) center bottom/contain no-repeat}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .seasonal-scene__corner{position:absolute;right:8px;bottom:12px;width:70px;height:70px;background:var(--season-character) center/contain no-repeat;opacity:.88}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .site-header{background-color:var(--season-night)!important;background-image:linear-gradient(90deg,rgba(7,12,40,.94) 30%,rgba(9,13,55,.35)),var(--season-banner)!important;background-size:cover,auto 320%!important;background-position:center,right 43%!important;border-bottom:1px solid #aa69f76b}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .portal-sidebar{background:linear-gradient(180deg,rgba(8,15,53,.95),rgba(14,16,61,.94)),var(--season-banner) center/cover!important;color:#fff!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .portal-sidebar__link{color:#e8e8fb!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .portal-sidebar__link:hover,:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .portal-sidebar__link[aria-current="page"],:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .portal-sidebar__link.is-active{background:linear-gradient(90deg,#5031ba,#642fe3)!important;color:#fff!important;box-shadow:inset 3px 0 var(--season-bright),0 0 14px #642fe344}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .portal-sidebar__identity{color:white!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .admin-wrap{background:linear-gradient(160deg,#eeeefa,#f8f9fc)!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-dashboard{--season-financial-bg:#111444;background:linear-gradient(160deg,#131b58,#141146)!important;padding:clamp(10px,1.5vw,22px)!important;border-radius:22px;color:var(--season-ink)!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-hero{background-image:linear-gradient(90deg,rgba(9,16,57,.98) 0%,rgba(15,16,60,.9) 41%,rgba(17,11,57,.06) 78%),var(--season-banner)!important;background-color:var(--season-dark)!important;background-size:cover!important;background-position:center!important;border:1px solid #a269ed75!important;min-height:195px;color:#fff!important;overflow:hidden}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-hero .progress-title,:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-hero .progress-eyebrow,:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-hero .progress-subtitle{color:#fff!important;position:relative;z-index:1;max-width:61%}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-hero .progress-title{font-weight:900!important;text-shadow:0 2px 12px #0d113b4b}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-stamp{background:#fff7eb!important;color:#10213f!important;z-index:2}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-period-filter{background:#1c235d!important;color:#fff!important;border-color:#795ee3!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-period-filter__label,:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-period-filter__label span,:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-period-filter__label strong{color:white!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-period-tab{background:#2a306e!important;color:#e8eafd!important;border-color:#4e54a2!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-period-tab.is-active{background:linear-gradient(110deg,#6333e9,var(--season-purple))!important;color:white!important;box-shadow:0 0 12px #9253ef!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-kpi-card{background:linear-gradient(145deg,#18246d,#20134e)!important;color:white!important;border:1px solid #6b58dc!important;box-shadow:inset 0 1px 0 #ffffff20,0 7px 20px #090e3640!important;overflow:hidden;position:relative;isolation:isolate}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-kpi-card:nth-child(2),:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-kpi-card:nth-child(6){background:linear-gradient(145deg,#4a1880,#161354)!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-kpi-card:nth-child(3),:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-kpi-card:nth-child(5){background:linear-gradient(145deg,#723064,#201044)!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-kpi-card :is(span,strong,small){color:#fff!important;position:relative;z-index:1}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-kpi-card::after{content:"";position:absolute;right:-6px;bottom:-13px;width:72px;height:85px;background:var(--season-character) center bottom/contain no-repeat;opacity:.58;z-index:0}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-kpi-card:nth-child(3n)::after{background-image:var(--season-detail)}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-card.progress-financial-card{background:linear-gradient(110deg,rgba(17,20,66,.96),rgba(20,17,67,.94)),var(--season-banner) right center/cover!important;color:#fff!important;border:1px solid #7469cf!important;overflow:hidden;position:relative}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-card.progress-financial-card::after{content:"";background:var(--season-detail) bottom right/contain no-repeat;position:absolute;right:0;top:45px;width:min(240px,25%);height:195px;pointer-events:none;opacity:.9}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-financial-card :is(.progress-card-head,.progress-eyebrow,.progress-financial-copy,.progress-financial-amount,.progress-financial-caption){color:#fff!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-financial-card .progress-financial-summary,:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-financial-card .progress-financial-panel{position:relative;z-index:1}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-financial-card .progress-mini-stats>*{background:#181e55!important;color:#f8f5ff!important;border-color:#6268bb!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-financial-card .progress-mini-stats>* *{color:#f8f5ff!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-financial-card .progress-financial-tabs{position:relative;z-index:2}
body[data-season-intensity="1"] .seasonal-scene__corner,body[data-season-intensity="1"] .progress-kpi-card::after{display:none}
body[data-season-intensity="2"] .seasonal-scene__corner{display:none}
@media(max-width:950px){:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-hero .progress-subtitle{max-width:68%}:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-card.progress-financial-card::after{opacity:.25}}
@media(max-width:680px){:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-hero{min-height:155px;background-position:70% center!important}:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-hero .progress-title,:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-hero .progress-eyebrow,:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-hero .progress-subtitle{max-width:85%}:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-hero .progress-subtitle{background:#1013469c;border-radius:6px}:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .seasonal-scene__sidebar{width:95px;height:100px;opacity:.65}:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .seasonal-scene__corner{display:none}:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-kpi-card::after{width:50px;height:54px;opacity:.25}}
@media(prefers-reduced-motion:reduce){:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) *{animation:none!important;transition:none!important}}

/* Ajustes compartidos de temporada: contraste, navegación y superficies operativas. */
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]){background:linear-gradient(135deg,#111344 0%,#231452 48%,#101c4a 100%) fixed!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .portal-page-shell,
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .portal-page-content,
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .site-main{background:transparent!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .admin-wrap{background:linear-gradient(130deg,#131748,#23164e 55%,#121c49)!important;min-height:100vh}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .portal-sidebar-toggle--rail{color:#fff!important;background:rgba(255,255,255,.09)!important;border-color:rgba(255,255,255,.4)!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .portal-sidebar-toggle--rail:hover,
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .portal-sidebar-toggle--rail:focus-visible{background:#5031ba!important;outline:2px solid #f5a64c;outline-offset:2px}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .portal-sidebar__identity-copy strong{color:#fff!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .portal-sidebar__identity-copy small{color:#d3d5f4!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .portal-sidebar__identity{border-bottom-color:rgba(255,255,255,.16)!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-financial-card :is(.progress-card-title,.progress-financial-title,.progress-financial-head h2,.progress-card-head h2,.progress-card h2){color:#fff!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-financial-card .progress-financial-tabs :is(button,a):not(.is-active):not([aria-selected="true"]){color:#f0eaff!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-financial-card .progress-financial-tabs :is(button,a):focus-visible{outline:2px solid #ffa447;outline-offset:2px}
/* Formularios y tablas mantienen superficies claras, independientemente del fondo exterior. */
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) :is(.adm-table-wrap,.adm-table,.dataTables_wrapper,.table-responsive,.table-container){background:#fff;color:#18283b}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) :is(.adm-table,.table,.data-table) tbody :is(td,th){color:#192b40!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) :is(.adm-table,.table,.data-table) tbody tr{color:#192b40!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) :is(.adm-table,.table,.data-table) tbody tr:nth-child(even){background-color:#f3f5fa}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) :is(.adm-table,.table,.data-table) tbody tr:nth-child(odd){background-color:#fff}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) :is(.adm-table,.table,.data-table) thead :is(td,th){background:#122b44;color:#fff!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) :is(input,select,textarea){color-scheme:light}
@media(max-width:760px){:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .admin-wrap{background:linear-gradient(155deg,#151849,#251a50)!important}}


/* Contraste por superficie para los paneles de finanzas y navegación. */
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .portal-sidebar__badge:not(.portal-sidebar__badge--dot){background:#f5b64f!important;color:#17213b!important;border:1px solid #ffd88a!important;opacity:1!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .portal-sidebar__link.is-active .portal-sidebar__badge,
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .portal-sidebar__link[aria-current="page"] .portal-sidebar__badge{background:#ffd46e!important;color:#17213b!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-financial-card .progress-financial-tabs{background:rgba(255,255,255,.09)!important;border-color:rgba(221,209,255,.27)!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-financial-card .progress-financial-tabs label{color:#f4eeff!important;background:transparent!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-financial-card .progress-financial-tabs label:hover{color:#fff!important;background:rgba(255,255,255,.18)!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-financial-card .progress-status{color:#fff!important;border-color:#c09bff!important;background:#49276f!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-financial-card :is(.progress-link,.progress-financial-link,.progress-goal-link){color:#e5d7ff!important;text-decoration:underline;text-underline-offset:3px}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-financial-card :is(.progress-link,.progress-financial-link,.progress-goal-link):hover{color:#fff!important}
/* Las tablas financieras no heredan el blanco usado en paneles nocturnos. */
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-sheet-card, :is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-sheet-scroll, :is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-sheet-canvas{background:#fff!important;color:#17283c!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-sheet{color:#17283c!important;background:#fff!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-sheet thead th{color:#fff!important;background:#172334!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-sheet tbody td, :is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-sheet tbody th,
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-sheet tbody td :is(span,b,strong,small,em,a,div,p){color:#17283c!important;text-shadow:none!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-sheet tbody a{color:#164a94!important;text-decoration:underline;text-underline-offset:2px}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-sheet tbody tr.finance-row--paid{background:#eaf8f0!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-sheet tbody tr.finance-row--pending{background:#fff0ef!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-sheet tbody tr.finance-row--active{background:#fff!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-sheet tbody tr:not([class*="finance-row--"]){background:#f8fafc!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-sheet tbody td{background:transparent!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-sheet :is(.finance-payment-badge,.finance-payment-badge *){color:#173047!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-sheet :is(.finance-payment-badge.is-paid,.finance-payment-badge.is-paid *){color:#14613b!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-sheet :is(.finance-payment-badge.is-pending,.finance-payment-badge.is-pending *){color:#992c25!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-sheet :is(input,select,textarea){color:#17283c!important;background:#fff!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-sheet :is(a,button,input,select):focus-visible{outline:3px solid #2563eb!important;outline-offset:2px}
/* En los módulos financieros, los filtros y bloques claros conservan tinta oscura. */
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-filter-card, :is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-filters, :is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-section-heading, :is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-cut-card,
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-summary-payment-card, :is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-collapsible-card{color:#17283c}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-filter-card :is(label,small,span,p), :is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-filters :is(label,small,span,p){color:#344b62!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-filters :is(input,select,textarea){color:#17283c!important;background:#fff!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .finance-section-heading :is(h2,h3){color:#17283c!important}


/* Contraste contextual de temporada: panel nocturno, filas claras y contacto. */
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-financial-card .finance-progress-details > summary {color:#f5eeff!important;text-shadow:none!important;}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-financial-card .finance-progress-details > summary::marker {color:#f5eeff!important;}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-financial-card .finance-progress-details > summary:hover {color:#ffffff!important;text-decoration:underline;}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-financial-card .finance-progress-detail-row {background:#ffffff!important;color:#17283c!important;border-color:#dbe2ed!important;}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-financial-card .finance-progress-detail-row :is(span,strong,b,small) {color:#17283c!important;text-shadow:none!important;}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-financial-card .finance-progress-detail-row small.is-paid {color:#146c43!important;}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-financial-card .finance-progress-detail-row small.is-pending {color:#a92727!important;}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-financial-card .finance-progress-detail-row:hover {background:#f0f4ff!important;border-color:#8d91e0!important;}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-financial-card .finance-progress-detail-row:focus-visible {outline:3px solid #ffad4a!important;outline-offset:2px;}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .contact-page .contact-page__hero :is(.contact-page__title,.contact-page__subtitle) {color:#ffffff!important;text-shadow:0 2px 10px rgba(3,4,31,.4)!important;}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .contact-page .contact-page__hero .inline-btn {color:#fff4c9!important;border-color:#e7b75e!important;}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .contact-page .contact-page__hero .inline-btn:hover {color:#ffffff!important;background:rgba(255,255,255,.15)!important;}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .contact-page .contact-page__hero a:focus-visible {outline:3px solid #ffd470!important;outline-offset:3px;}
@media (max-width:640px) {:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-financial-card .finance-progress-detail-row {gap:8px;}}

/* Seasonal landing and authentication surfaces; forms remain light and readable. */
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) :is(.login-page,.reg-page){background:linear-gradient(140deg,#0d1745 0%,#25205b 55%,#452169 100%)!important;}
:is(body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) :is(.login-page,.reg-page){background:linear-gradient(140deg,#0b3540 0%,#372056 58%,#70355a 100%)!important;}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) :is(.login-aside,.reg-left){background-color:#081c38!important;background-image:linear-gradient(160deg,rgba(7,17,44,.74),rgba(39,20,83,.52)),var(--season-banner)!important;background-position:center!important;background-size:cover!important;}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) :is(.login-form,.reg-right){background:#fff!important;color:#10283b!important;}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) :is(.login-form,.reg-right) :is(label,input,select,textarea){color:#10283b;}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) :is(.login-form,.reg-right) :is(input,select,textarea){background-color:#fff;}
/* Advisor headline must not inherit the narrow generic progress-hero text width. */
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-dashboard--advisor .progress-hero .progress-title{max-width:none!important;width:max-content;max-inline-size:100%!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;font-size:clamp(30px,3.5vw,48px)!important;line-height:1.14!important;}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-dashboard--advisor .progress-hero>div:first-child{min-width:min(340px,60%);max-width:65%;flex:1 1 auto;}
@media(max-width:620px){:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-dashboard--advisor .progress-hero .progress-title{font-size:clamp(26px,6vw,38px)!important;}:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-dashboard--advisor .progress-hero>div:first-child{min-width:0;max-width:65%;}}

/* Refuerzo visual específico para Día de Muertos. */
:is(body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]){
  --season-night:#1b123f;
  --season-dark:#291451;
  --season-ink:#fff7ef;
  --season-bright:#f7a934;
  --season-purple:#d246c4;
}
:is(body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .site-header{
  background-image:linear-gradient(90deg,rgba(21,13,49,.94) 25%,rgba(29,14,63,.48)),var(--season-banner)!important;
  border-bottom-color:#f0a83d59!important;
}
:is(body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .portal-sidebar{
  background:linear-gradient(180deg,rgba(18,12,54,.97),rgba(47,18,73,.94)),var(--season-banner) center/cover!important;
}
:is(body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .portal-sidebar__link:hover,
:is(body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .portal-sidebar__link[aria-current="page"],
:is(body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .portal-sidebar__link.is-active{
  background:linear-gradient(90deg,#8229bf,#d246c4)!important;
  box-shadow:inset 3px 0 var(--season-bright),0 0 16px rgba(242,170,61,.22)!important;
}
:is(body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-dashboard{
  background:linear-gradient(160deg,#1a1657,#23104b)!important;
}
:is(body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-hero{
  background-image:linear-gradient(92deg,rgba(23,16,67,.98) 0%,rgba(42,18,79,.90) 42%,rgba(76,25,90,.18) 78%),var(--season-banner)!important;
  border-color:#f0a83d7a!important;
}
:is(body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-period-filter{
  background:#231959!important;
  border-color:#dc55c6!important;
}
:is(body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-period-tab{
  background:#342168!important;
  border-color:#6e56bd!important;
}
:is(body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-period-tab.is-active{
  background:linear-gradient(110deg,#9a2ed1,#f0a83d)!important;
  box-shadow:0 0 12px rgba(242,168,61,.28)!important;
}
:is(body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-kpi-card{
  background:linear-gradient(145deg,#261963,#22134f)!important;
  border-color:#8b56cf!important;
}
:is(body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-kpi-card:nth-child(2),
:is(body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-kpi-card:nth-child(6){
  background:linear-gradient(145deg,#5a1d78,#22134f)!important;
}
:is(body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-kpi-card:nth-child(3),
:is(body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-kpi-card:nth-child(5){
  background:linear-gradient(145deg,#7a314f,#251349)!important;
}
:is(body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-card.progress-financial-card{
  background:linear-gradient(110deg,rgba(28,18,74,.97),rgba(35,16,75,.94)),var(--season-banner) right center/cover!important;
  border-color:#d46cb0!important;
}
:is(body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-card.progress-financial-card::after{
  opacity:.96;
}
:is(body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) :is(.login-page,.reg-page){
  background:linear-gradient(140deg,#113847 0%,#351d55 56%,#6b315d 100%)!important;
}
:is(body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) :is(.login-aside,.reg-left){
  background-image:linear-gradient(160deg,rgba(11,40,52,.76),rgba(74,27,79,.58)),var(--season-banner)!important;
}


/* Navidad: solo activa cuando el motor publica esta temporada. */
body[data-season="navidad"]{
  --season-night:#061e3f;--season-dark:#092e62;--season-ink:#102a49;
  --season-bright:#dec083;--season-purple:#2f78c8;
  --season-banner:url("../seasonal/navidad/banner.c47f02ead8a1.webp");
  --season-sidebar:url("../seasonal/navidad/sidebar.d056a9ba7242.webp");
  --season-character:url("../seasonal/navidad/kpi-snow.5c3e68c7603f.webp");
  --season-detail:url("../seasonal/navidad/promo.be029994e357.webp");
  background:linear-gradient(135deg,#08294d 0%,#104a85 48%,#071d42 100%) fixed!important;
}
body[data-season="navidad"] :is(.portal-page-shell,.portal-page-content,.site-main){background:transparent!important}
body[data-season="navidad"] .site-header{
  background-color:#05264b!important;
  background-image:linear-gradient(90deg,#041a37e8,#082c64a6),url("../seasonal/navidad/kpi-forest.53468cedf0d8.webp")!important;
  background-size:cover!important;background-position:center!important;
  border-bottom:1px solid #a9d9f0!important;
}
body[data-season="navidad"] .portal-sidebar{
  background:linear-gradient(180deg,#031b3bf5,#072b56ed),url("../seasonal/navidad/kpi-forest.53468cedf0d8.webp") center/cover!important;
  color:#fff!important;
}
body[data-season="navidad"] .portal-sidebar :is(.portal-sidebar__identity,.portal-sidebar__link){color:#f1f8ff!important}
body[data-season="navidad"] .portal-sidebar__link:is(:hover,.is-active,[aria-current="page"]){
  background:linear-gradient(90deg,#12487b,#2471ac)!important;color:#fff!important;
  box-shadow:inset 3px 0 #dbbd78!important;
}
body[data-season="navidad"] .portal-sidebar__badge:not(.portal-sidebar__badge--dot){background:#ffd36e!important;color:#122c45!important}
body[data-season="navidad"] .portal-sidebar__toggle,
body[data-season="navidad"] .portal-sidebar__identity :is(span,small,strong){color:#fff!important}
body[data-season="navidad"] .seasonal-scene{pointer-events:none;position:fixed;inset:0;z-index:29;overflow:hidden}
body[data-season="navidad"] .seasonal-scene__sidebar{
  position:absolute;bottom:0;left:0;width:min(230px,18vw);height:240px;
  background:var(--season-sidebar) center bottom/contain no-repeat;
}
body[data-season="navidad"] .seasonal-scene__corner{display:none}
body[data-season="navidad"] .admin-wrap{background:linear-gradient(155deg,#e7f3ff,#f5f9fe)!important}
body[data-season="navidad"] .progress-dashboard{
  background:linear-gradient(145deg,#e1efff,#f1f8ff)!important;
  padding:clamp(10px,1.5vw,22px)!important;border-radius:22px;color:#122e4e!important;
}
body[data-season="navidad"] .progress-hero{
  background:linear-gradient(90deg,#051e46dd 0%,#0a37628c 46%,transparent 78%),var(--season-banner) center/cover no-repeat!important;
  min-height:195px;color:#fff!important;border:1px solid #9bc7ed!important;overflow:hidden;
}
body[data-season="navidad"] .progress-hero :is(.progress-title,.progress-eyebrow,.progress-subtitle){color:#fff!important;position:relative;z-index:1;max-width:61%}
body[data-season="navidad"] .progress-stamp{background:#f6fcff!important;color:#122c4d!important;z-index:2}
body[data-season="navidad"] .progress-period-filter{background:#edf6ff!important;border-color:#c9e3f8!important;color:#183959!important}
body[data-season="navidad"] .progress-period-tab{background:#fff!important;color:#21466c!important;border-color:#cae0f2!important}
body[data-season="navidad"] .progress-period-tab.is-active{background:#1761a5!important;color:#fff!important}
body[data-season="navidad"] .progress-kpi-card{background:#f4f9ff url("../seasonal/navidad/kpi-light.3347879a1e2c.webp") right center/cover!important;color:#123454!important;border:1px solid #b9d9f5!important;position:relative;overflow:hidden}
body[data-season="navidad"] .progress-kpi-card:nth-child(5n + 1){background-image:linear-gradient(90deg,#07569be8,#0d559b20),url("../seasonal/navidad/kpi-dark.12ff7f3c137f.webp")!important;background-color:#095092!important;color:#fff!important}
body[data-season="navidad"] .progress-kpi-card:nth-child(5n + 3){background-image:linear-gradient(90deg,#073e78e0,#0e4c8220),url("../seasonal/navidad/kpi-forest.53468cedf0d8.webp")!important;background-color:#083969!important;color:#fff!important}
body[data-season="navidad"] .progress-kpi-card:nth-child(5n + 5){background-image:url("../seasonal/navidad/kpi-gifts.c264234df1a1.webp")!important}
body[data-season="navidad"] .progress-kpi-card :is(span,small,strong){color:inherit!important}
body[data-season="navidad"] .progress-kpi-card::after{display:none!important}
body[data-season="navidad"] .progress-card.progress-financial-card{
  background:#fff url("../seasonal/navidad/kpi-light.3347879a1e2c.webp") right center/cover no-repeat!important;
  color:#153653!important;border:1px solid #c8dff5!important;
}
body[data-season="navidad"] .progress-card.progress-financial-card::after{display:none!important}
body[data-season="navidad"] .progress-financial-card :is(.progress-card-head,.progress-eyebrow,.progress-financial-copy,.progress-financial-amount,.progress-financial-caption){color:#173655!important}
body[data-season="navidad"] .progress-financial-card .progress-mini-stats>*{background:#f2f8ff!important;color:#163756!important;border-color:#c2d9ec!important}
body[data-season="navidad"] .progress-financial-card .progress-mini-stats>* *{color:#163756!important}
body[data-season="navidad"] .progress-financial-card .finance-progress-detail-row{background:#fff!important;color:#173655!important}
body[data-season="navidad"] .progress-financial-card .finance-progress-detail-row *{color:#173655!important}
body[data-season="navidad"] .progress-financial-card .finance-progress-details>summary{color:#165c98!important}
body[data-season="navidad"] :is(.finance-sheet,.finance-sheet tbody td,.finance-sheet tbody th){color:#17334a!important}
body[data-season="navidad"] .finance-sheet thead th{color:#fff!important;background:#12304d!important}
body[data-season="navidad"] .finance-sheet tbody :is(span,strong,b,small,a){color:#17334a!important}
body[data-season="navidad"] .contact-page .contact-page__hero :is(.contact-page__title,.contact-page__subtitle){color:#fff!important}
body[data-season="navidad"] :is(.login-page,.reg-page){background:linear-gradient(135deg,#09274f,#1e5d93)!important}
body[data-season="navidad"] :is(.login-aside,.reg-left){background:linear-gradient(130deg,#09274fdb,#1d4e83ad),var(--season-banner) center/cover!important}
body[data-season="navidad"] :is(.login-form,.reg-right){background:#fff!important;color:#152e47!important}
body[data-season="navidad"] :is(.login-form,.reg-right) :is(label,input,select,textarea){color:#152e47!important}
body[data-season="navidad"] .progress-dashboard--advisor .progress-hero .progress-title{
  max-width:none!important;max-inline-size:100%!important;width:max-content!important;
  overflow-wrap:normal!important;word-break:normal!important;
  font-size:clamp(27px,3vw,44px)!important;
}
@media(max-width:760px){
  body[data-season="navidad"] .progress-hero{background-position:68% center!important}
  body[data-season="navidad"] .progress-hero :is(.progress-title,.progress-eyebrow,.progress-subtitle){max-width:78%}
  body[data-season="navidad"] .seasonal-scene__sidebar{width:90px;height:105px;opacity:.65}
}


/* Navidad v2: composiciones sin textos incrustados y fondo azul global. */
body[data-season="navidad"]{
  --season-banner:url("../seasonal/navidad/banner-clean.7d1df3ae0207.webp");
  --season-sidebar:url("../seasonal/navidad/sidebar-clean.640f10c6ad14.webp");
  --season-character:url("../seasonal/navidad/kpi-blue-clean.c1383a352efa.webp");
  --season-detail:url("../seasonal/navidad/finance-clean.0d43f60e364d.webp");
  background:#071c45!important;
  background-image:radial-gradient(ellipse at 55% 0%,#175aa1 0%,#0b3068 35%,#081c43 85%)!important;
  background-attachment:fixed!important;
}
body[data-season="navidad"] :is(.portal-page-shell,.portal-page-content,.site-main){background:transparent!important}
body[data-season="navidad"] .admin-wrap{
  background:linear-gradient(145deg,rgba(11,58,116,.95),rgba(5,31,73,.98))!important;
}
body[data-season="navidad"] .site-header{
  background:#061c41 linear-gradient(90deg,rgba(4,20,51,.93),rgba(10,56,112,.67)),url("../seasonal/navidad/kpi-blue-clean.c1383a352efa.webp") center/cover no-repeat!important;
}
body[data-season="navidad"] .portal-sidebar{
  background:#061d41 linear-gradient(180deg,rgba(3,20,47,.97),rgba(6,31,66,.82)),url("../seasonal/navidad/sidebar-clean.640f10c6ad14.webp") center bottom/cover no-repeat!important;
}
body[data-season="navidad"] .seasonal-scene__sidebar{
  background:var(--season-sidebar) left bottom/contain no-repeat!important;
  opacity:.72;
}
body[data-season="navidad"] .progress-dashboard{
  background:linear-gradient(145deg,#0b3d7a,#0c2a5b)!important;
  color:#fff!important;
  border:1px solid rgba(163,214,255,.35)!important;
}
body[data-season="navidad"] .progress-hero{
  background:#061d45 linear-gradient(90deg,rgba(4,25,61,.92) 0%,rgba(5,31,70,.82) 34%,rgba(7,34,73,.08) 65%),url("../seasonal/navidad/banner-clean.7d1df3ae0207.webp") center center/cover no-repeat!important;
  min-height:200px;
}
body[data-season="navidad"] .progress-hero :is(.progress-title,.progress-eyebrow,.progress-subtitle){
  color:white!important;
  text-shadow:0 1px 7px rgba(0,16,45,.62);
}
body[data-season="navidad"] .progress-period-filter{
  background:#d8eaff!important;color:#133758!important;border-color:#76aee6!important;
}
body[data-season="navidad"] .progress-kpi-card{
  background:#eff7ff url("../seasonal/navidad/kpi-light-clean.c64d2bce1a06.webp") center/cover no-repeat!important;
  color:#082d57!important;
  border-color:#9fcbf8!important;
}
body[data-season="navidad"] .progress-kpi-card:nth-child(odd){
  background:#0a4792 linear-gradient(90deg,rgba(3,46,99,.62),rgba(9,78,142,.18)),url("../seasonal/navidad/kpi-blue-clean.c1383a352efa.webp") center/cover no-repeat!important;
  color:#fff!important;
}
body[data-season="navidad"] .progress-kpi-card:nth-child(5n + 5){
  background:#135a9b linear-gradient(90deg,rgba(4,40,88,.38),rgba(6,54,111,.08)),url("../seasonal/navidad/kpi-blue-clean.c1383a352efa.webp") right center/cover no-repeat!important;
  color:#fff!important;
}
body[data-season="navidad"] .progress-kpi-card :is(span,small,strong){color:inherit!important}
body[data-season="navidad"] .progress-card.progress-financial-card{
  background:#08356f linear-gradient(90deg,rgba(6,35,81,.96),rgba(6,36,78,.76) 50%,rgba(5,32,76,.12)),url("../seasonal/navidad/finance-clean.0d43f60e364d.webp") right center/cover no-repeat!important;
  color:#fff!important;border:1px solid #8ac5ff!important;
}
body[data-season="navidad"] .progress-financial-card :is(.progress-card-head,.progress-eyebrow,.progress-financial-copy,.progress-financial-amount,.progress-financial-caption){color:#fff!important}
body[data-season="navidad"] .progress-financial-card .progress-mini-stats>*{
  background:rgba(5,33,78,.86)!important;color:#fff!important;border-color:#7db2e9!important;
}
body[data-season="navidad"] .progress-financial-card .progress-mini-stats>* *{color:#fff!important}
body[data-season="navidad"] .progress-financial-card .finance-progress-details>summary{color:#e1f3ff!important}
body[data-season="navidad"] .progress-financial-card .finance-progress-detail-row,
body[data-season="navidad"] .progress-financial-card .finance-progress-detail-row *{color:#15354e!important}
body[data-season="navidad"] :is(.login-aside,.reg-left){
  background:#09264f linear-gradient(90deg,rgba(5,25,62,.85),rgba(5,37,77,.23)),url("../seasonal/navidad/banner-clean.7d1df3ae0207.webp") center/cover no-repeat!important;
}
@media(max-width:760px){
  body[data-season="navidad"] .progress-hero{background-position:68% center!important}
  body[data-season="navidad"] .progress-hero :is(.progress-title,.progress-eyebrow,.progress-subtitle){max-width:76%}
}

/* Navidad v3: superficies y contraste. Mantener el contenido sin opacidad. */
body[data-season="navidad"] .progress-kpi-card,
body[data-season="navidad"] .progress-kpi-card:nth-child(5n + 5){
  background-image:linear-gradient(90deg,rgba(240,248,255,.92) 0%,rgba(239,247,255,.80) 58%,rgba(235,245,255,.52) 100%),url("../seasonal/navidad/kpi-light-clean.c64d2bce1a06.webp")!important;
  background-position:center!important;background-size:cover!important;
  color:#102e52!important;
  text-shadow:none!important;
}
body[data-season="navidad"] .progress-kpi-card:nth-child(odd){
  background-image:linear-gradient(90deg,rgba(4,38,88,.94) 0%,rgba(5,48,103,.84) 59%,rgba(5,48,103,.60) 100%),url("../seasonal/navidad/kpi-blue-clean.c1383a352efa.webp")!important;
  background-position:center!important;background-size:cover!important;
  color:#ffffff!important;
}
body[data-season="navidad"] .progress-kpi-card :is(h2,h3,h4,p,span,small,strong,b){color:inherit!important;text-shadow:none!important}
body[data-season="navidad"] .progress-kpi-card :is(a,button){color:inherit!important}
body[data-season="navidad"] .progress-card.progress-financial-card{
  background-image:linear-gradient(90deg,rgba(247,251,255,.95) 0%,rgba(247,251,255,.91) 52%,rgba(240,248,255,.68) 100%),url("../seasonal/navidad/finance-clean.0d43f60e364d.webp")!important;
  background-color:#edf6ff!important;background-position:center!important;background-size:cover!important;
  color:#123353!important;border-color:#8abce9!important;
}
body[data-season="navidad"] .progress-financial-card :is(.progress-card-head,.progress-card-title,.progress-eyebrow,.progress-financial-copy,.progress-financial-amount,.progress-financial-caption,.progress-financial-title,.progress-financial-head h2,.progress-card-head h2,.progress-financial-summary,.progress-financial-panel){
  color:#102f50!important;text-shadow:none!important;
}
body[data-season="navidad"] .progress-financial-card :is(.progress-financial-amount,.progress-financial-summary strong){color:#102d50!important}
body[data-season="navidad"] .progress-financial-card .finance-progress-details>summary,
body[data-season="navidad"] .progress-financial-card :is(.progress-link,.progress-financial-link,.progress-goal-link){
  color:#07549f!important;text-decoration:underline;text-underline-offset:3px;text-shadow:none!important;
}
body[data-season="navidad"] .progress-financial-card .finance-progress-details>summary:hover,
body[data-season="navidad"] .progress-financial-card :is(.progress-link,.progress-financial-link,.progress-goal-link):hover{color:#003b79!important}
body[data-season="navidad"] .progress-financial-card .progress-mini-stats>*{
  background:rgba(10,46,96,.93)!important;color:#fff!important;border-color:#669ed4!important;
}
body[data-season="navidad"] .progress-financial-card .progress-mini-stats>* :is(span,small,strong,b,p){color:#fff!important}
body[data-season="navidad"] .progress-financial-card .finance-progress-detail-row{
  background:rgba(255,255,255,.97)!important;color:#173550!important;border-color:#c9ddec!important;
}
body[data-season="navidad"] .progress-financial-card .finance-progress-detail-row :is(span,small,strong,b,p){color:#173550!important}
body[data-season="navidad"] .progress-financial-card .finance-progress-detail-row .is-paid{color:#116b47!important}
body[data-season="navidad"] .progress-financial-card .finance-progress-detail-row .is-pending{color:#a12328!important}
body[data-season="navidad"] .progress-financial-card .progress-status{background:#e9f1fc!important;color:#153553!important;border-color:#8eb3da!important}
body[data-season="navidad"] .seasonal-scene__sidebar{
  width:min(122px,10vw)!important;height:170px!important;opacity:.54!important;
  background-size:contain!important;
}
body[data-season="navidad"] .site-footer::before,
body[data-season="navidad"] footer::before{pointer-events:none}
@media(max-width:760px){
  body[data-season="navidad"] .progress-kpi-card{background-position:right center!important}
  body[data-season="navidad"] .progress-card.progress-financial-card{background-position:70% center!important}
  body[data-season="navidad"] .seasonal-scene__sidebar{width:70px!important;height:95px!important}
}


/* Identidad de temporada: solo altera la decoración si el estilo está activo. */
body[data-season="navidad"] .brand__logo.portal-logo-frame--medical,
body[data-season="navidad"] .brand--full-logo .brand__logo{
  width:clamp(164px,16vw,230px)!important;
  min-width:0!important;
  height:54px!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
body[data-season="navidad"] .season-logo-image{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  max-width:none!important;
}
body[data-season="navidad"] .season-footer-logo{
  width:clamp(165px,16vw,220px)!important;
  max-width:100%!important;
  height:auto!important;
  max-height:72px!important;
  object-fit:contain!important;
}
body[data-season="navidad"] .season-patient-logo{
  width:clamp(135px,16vw,210px)!important;
  height:52px!important;
  object-fit:contain!important;
}
/* Halloween y Día de Muertos conservan el logo de marca, con identidad visual propia.
   Sus imágenes estilizadas pueden sustituirse posteriormente sin cambiar el motor. */
body[data-season="halloween"] .brand__logo.portal-logo-frame--medical{
  border-color:#f8a33a!important;
  box-shadow:0 0 12px rgba(210,87,244,.35)!important;
}
:is(body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .brand__logo.portal-logo-frame--medical{
  border-color:#f6a844!important;
  box-shadow:0 0 12px rgba(249,108,181,.32)!important;
}
/* El adorno flotante de Navidad no debe escapar del menú y tapar el pie de página. */
body[data-season="navidad"] .seasonal-scene__sidebar{
  display:none!important;
}
body[data-season="navidad"] .site-footer::before,
body[data-season="navidad"] footer::before{
  background-image:none!important;
}
@media(max-width:680px){
  body[data-season="navidad"] .brand__logo.portal-logo-frame--medical,
  body[data-season="navidad"] .brand--full-logo .brand__logo{
    width:155px!important;height:45px!important;
  }
  body[data-season="navidad"] .season-footer-logo{width:155px!important;max-height:60px!important}
}


/* Reyes Magos: identidad azul noche y oro, aislada de las demás temporadas. */
body[data-season="reyes-magos"]{--season-night:#06163c;--season-bright:#f2ba52;--season-purple:#4533b6;--season-banner:url("../seasonal/reyes-magos/banner.42a751df37cf.webp");background:linear-gradient(145deg,#07183c,#0a3270 55%,#061535) fixed!important;color:#f9f7f2}
body[data-season="reyes-magos"] :is(.portal-page-shell,.portal-page-content,.site-main){background:transparent!important}
body[data-season="reyes-magos"] .site-header{background:#07183e linear-gradient(90deg,#05112feb,#0b296ba0),url("../seasonal/reyes-magos/header.ef70e02572f9.webp") center/cover!important;border-bottom:1px solid #e7ac5680!important}
body[data-season="reyes-magos"] .portal-sidebar{background:#081637 linear-gradient(180deg,#061637f5,#092556ed),url("../seasonal/reyes-magos/sidebar.d18db202f2d2.webp") center bottom/cover!important;color:#fff!important}
body[data-season="reyes-magos"] .portal-sidebar :is(.portal-sidebar__identity,.portal-sidebar__link,.portal-sidebar__toggle){color:#fff!important}
body[data-season="reyes-magos"] .portal-sidebar__link:is(:hover,.is-active,[aria-current="page"]){background:linear-gradient(90deg,#142669,#693bc5)!important;color:#fff!important;box-shadow:inset 3px 0 #f2ba52!important}
body[data-season="reyes-magos"] .portal-sidebar__badge:not(.portal-sidebar__badge--dot){background:#f7c967!important;color:#091b40!important}
body[data-season="reyes-magos"] .progress-dashboard{background:linear-gradient(145deg,#071a47,#101e5b)!important;border-radius:20px;color:#fff!important}
body[data-season="reyes-magos"] .progress-hero{background:linear-gradient(90deg,#061943fa 0%,#071b46db 38%,#071b4624 75%),url("../seasonal/reyes-magos/banner.42a751df37cf.webp") center/cover!important;border:1px solid #d6a55f!important;color:white!important;overflow:hidden}
body[data-season="reyes-magos"] .progress-hero :is(.progress-title,.progress-eyebrow,.progress-subtitle){color:#fff!important;max-width:65%;overflow-wrap:normal;word-break:normal}
body[data-season="reyes-magos"] .progress-stamp{background:#fff4db!important;color:#162c4d!important}
body[data-season="reyes-magos"] .progress-period-filter{background:#0c2356!important;color:#fff!important;border-color:#9a7bc3!important}
body[data-season="reyes-magos"] .progress-period-filter__label,body[data-season="reyes-magos"] .progress-period-filter__label *{color:#fff!important}
body[data-season="reyes-magos"] .progress-period-tab{background:#102d66!important;border-color:#4b6ca9!important;color:#fff!important}
body[data-season="reyes-magos"] .progress-period-tab.is-active{background:linear-gradient(120deg,#6540dd,#bd862a)!important;color:#fff!important;box-shadow:0 0 11px #e6ab5550!important}
body[data-season="reyes-magos"] .progress-kpi-card{background:linear-gradient(100deg,#061948f2,#0d2b65bd),url("../seasonal/reyes-magos/kpi-camels.1d11d3de3771.webp") center/cover!important;color:#fff!important;border:1px solid #8d79e6!important;overflow:hidden}
body[data-season="reyes-magos"] .progress-kpi-card:nth-child(3n + 2){background:linear-gradient(100deg,#241252f2,#362080b0),url("../seasonal/reyes-magos/kpi-gifts.0531c2503e61.webp") center/cover!important}
body[data-season="reyes-magos"] .progress-kpi-card:nth-child(3n){background:linear-gradient(100deg,#42265af0,#753c2db5),url("../seasonal/reyes-magos/kpi-royal.892135f770ca.webp") center/cover!important;border-color:#dbad6c!important}
body[data-season="reyes-magos"] .progress-kpi-card :is(h2,h3,h4,p,span,strong,small,b){color:#fff!important;text-shadow:0 1px 3px #0a143bb0!important}
body[data-season="reyes-magos"] .progress-card.progress-financial-card{background:linear-gradient(90deg,#081a46f7 0%,#0a1d48ec 42%,#0e275678 100%),url("../seasonal/reyes-magos/finance.290cd371d9ba.webp") center/cover!important;color:#fff!important;border:1px solid #a28a73!important}
body[data-season="reyes-magos"] .progress-financial-card :is(.progress-card-head,.progress-card-head h2,.progress-eyebrow,.progress-financial-amount,.progress-financial-copy,.progress-financial-caption){color:#fff!important}
body[data-season="reyes-magos"] .progress-financial-card .progress-mini-stats>*{background:#0e285edb!important;color:#fff!important;border-color:#9e8ccd!important}
body[data-season="reyes-magos"] .progress-financial-card .progress-mini-stats>* *{color:#fff!important}
body[data-season="reyes-magos"] .progress-financial-card .finance-progress-detail-row{background:#fff!important;color:#132d4d!important}
body[data-season="reyes-magos"] .progress-financial-card .finance-progress-detail-row :is(span,small,strong,b,p){color:#132d4d!important}
body[data-season="reyes-magos"] .progress-financial-card .finance-progress-detail-row .is-paid{color:#087445!important}
body[data-season="reyes-magos"] .progress-financial-card .finance-progress-detail-row .is-pending{color:#a11d2c!important}
body[data-season="reyes-magos"] .progress-financial-card .finance-progress-details>summary{color:#ffe2a0!important}
body[data-season="reyes-magos"] :is(.login-page,.reg-page){background:linear-gradient(120deg,#06193b,#16356d)!important}
body[data-season="reyes-magos"] :is(.login-aside,.reg-left){background-image:linear-gradient(90deg,#071735cc,#0b20526b),url("../seasonal/reyes-magos/section.6f6afb4104cc.webp")!important;background-size:cover!important}
body[data-season="reyes-magos"] .brand__logo.portal-logo-frame--medical,body[data-season="reyes-magos"] .brand--full-logo .brand__logo{width:clamp(164px,16vw,230px)!important;height:54px!important;min-width:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
body[data-season="reyes-magos"] .season-logo-image{width:100%!important;height:100%!important;max-width:none!important;object-fit:contain!important}
body[data-season="reyes-magos"] .season-footer-logo{width:clamp(160px,16vw,220px)!important;max-width:100%!important;max-height:72px!important;object-fit:contain!important}
body[data-season="reyes-magos"] .seasonal-scene__sidebar{display:none!important}
body[data-season="reyes-magos"] .site-footer::before,body[data-season="reyes-magos"] footer::before{background-image:none!important}
@media(max-width:760px){body[data-season="reyes-magos"] .progress-hero :is(.progress-title,.progress-eyebrow,.progress-subtitle){max-width:95%}body[data-season="reyes-magos"] .progress-hero{background-position:65% center!important}body[data-season="reyes-magos"] .brand__logo.portal-logo-frame--medical{width:155px!important;height:45px!important}}

/* Contraste accesible para Navidad y Reyes Magos: sin modificar el tema original. */
:is(body[data-season="navidad"],body[data-season="reyes-magos"]) .portal-sidebar {
  background-color:#0b2646!important;
  color:#f7fbff!important;
}
:is(body[data-season="navidad"],body[data-season="reyes-magos"]) .portal-sidebar :is(.portal-sidebar__identity,.portal-sidebar__identity-copy,.portal-sidebar__identity-copy strong,.portal-sidebar__identity-copy small,.portal-sidebar__link,.portal-sidebar__link span,.portal-sidebar__section-title,.portal-sidebar__group-label,.portal-sidebar__heading,.portal-sidebar__section span) {
  color:#f7fbff!important;
  opacity:1!important;
  text-shadow:none!important;
}
:is(body[data-season="navidad"],body[data-season="reyes-magos"]) .portal-sidebar .portal-sidebar__section{
  border-top-color:rgba(255,255,255,.16)!important;
}
:is(body[data-season="navidad"],body[data-season="reyes-magos"]) .portal-sidebar .portal-sidebar__section span{
  color:#b9cde3!important;
  opacity:1!important;
  text-shadow:none!important;
}
:is(body[data-season="navidad"],body[data-season="reyes-magos"]) .portal-sidebar :is(.portal-sidebar__toggle,.portal-sidebar-toggle--rail){
  color:#fff!important;background:#0e3155!important;border:1px solid #6382a8!important;opacity:1!important;
}
:is(body[data-season="navidad"],body[data-season="reyes-magos"]) .portal-sidebar :is(.portal-sidebar__toggle,.portal-sidebar-toggle--rail) :is(svg,path){color:#fff!important;stroke:currentColor!important}
:is(body[data-season="navidad"],body[data-season="reyes-magos"]) .portal-sidebar__badge:not(.portal-sidebar__badge--dot),
:is(body[data-season="navidad"],body[data-season="reyes-magos"]) .portal-sidebar__link .portal-sidebar__badge:not(.portal-sidebar__badge--dot){background:#ffda82!important;color:#102541!important;opacity:1!important;text-shadow:none!important}
:is(body[data-season="navidad"],body[data-season="reyes-magos"]) .portal-sidebar__link:is(.is-active,[aria-current="page"]){background:#1c68aa!important;color:#fff!important;box-shadow:inset 3px 0 #f2ba52!important}

/* Los módulos operativos y financieros tienen fondos claros: usar texto oscuro. */
body[data-season="reyes-magos"] :is(.admin-wrap,.admin-container,.admin-content,.adm-panel,.adm-card,.adm-section,.finance-sheet-card,.finance-sheet-scroll,.finance-sheet-canvas,.finance-filter-card,.finance-filters,.finance-summary-payment-card,.finance-cut-card,.finance-collapsible-card){color:#17314d}
body[data-season="reyes-magos"] :is(.admin-wrap,.admin-container,.admin-content,.adm-panel,.adm-card,.adm-section) :is(h1,h2,h3,h4,label,summary){color:#17314d!important}
body[data-season="reyes-magos"] :is(.adm-table-wrap,.adm-table,.table-responsive,.table-container,.dataTables_wrapper,.finance-sheet-scroll,.finance-sheet-canvas){background:#fff!important;color:#17314d!important}
:is(body[data-season="navidad"],body[data-season="reyes-magos"]) :is(.adm-table,.table,.data-table,.finance-sheet) tbody :is(td,th),
:is(body[data-season="navidad"],body[data-season="reyes-magos"]) :is(.adm-table,.table,.data-table,.finance-sheet) tbody td :is(a,span,strong,b,small,div,p):not([class*="status"]):not([class*="estado"]):not([class*="paid"]):not([class*="pending"]):not([class*="badge"]):not([class*="alert"]):not([class*="text-"]){color:#19334e!important;text-shadow:none!important;opacity:1!important}
:is(body[data-season="navidad"],body[data-season="reyes-magos"]) :is(.adm-table,.table,.data-table,.finance-sheet) tbody :is(td,th){background-color:transparent!important}
:is(body[data-season="navidad"],body[data-season="reyes-magos"]) :is(.adm-table,.table,.data-table,.finance-sheet) tbody tr:nth-child(odd){background:#edf8f3!important}
:is(body[data-season="navidad"],body[data-season="reyes-magos"]) :is(.adm-table,.table,.data-table,.finance-sheet) tbody tr:nth-child(even){background:#fff0ee!important}
:is(body[data-season="navidad"],body[data-season="reyes-magos"]) :is(.adm-table,.table,.data-table,.finance-sheet) thead :is(th,td){background:#0b243d!important;color:#fff!important}
:is(body[data-season="navidad"],body[data-season="reyes-magos"]) :is(.finance-sheet,.adm-table,.table,.data-table) tbody a{color:#104e91!important;text-decoration:underline;text-underline-offset:2px}
:is(body[data-season="navidad"],body[data-season="reyes-magos"]) :is(.finance-filters,.finance-filter-card,.finance-sheet-card,.finance-cut-card,.finance-summary-payment-card) :is(label,input,select,textarea){color:#16314c!important}
:is(body[data-season="navidad"],body[data-season="reyes-magos"]) :is(.finance-filters,.finance-filter-card,.finance-sheet-card,.finance-cut-card,.finance-summary-payment-card) :is(input,select,textarea){background:#fff!important;color-scheme:light}
/* Hacer legibles los encabezados de acordeones blancos sin alterar banners oscuros. */
:is(body[data-season="navidad"],body[data-season="reyes-magos"]) :is(.admin-wrap,.adm-panel,.adm-card) :is(.accordion-button,.accordion-header button,.accordion-trigger){color:#162f4a!important}
body[data-season="reyes-magos"] .progress-financial-card .finance-progress-detail-row :is(a,span,small,strong,b,p){color:#173550!important}
body[data-season="reyes-magos"] .progress-financial-card .finance-progress-details>summary{color:#ffe0a0!important;text-decoration:underline;text-underline-offset:3px}


/* Reyes Magos: controles legibles en los paneles nocturnos de metas. */
body[data-season="reyes-magos"] .progress-dashboard .progress-financial-tabs{
  background:rgba(255,255,255,.11)!important;
  border-color:rgba(215,229,255,.36)!important;
}
body[data-season="reyes-magos"] .progress-dashboard .progress-financial-tabs label{
  color:#f4f8ff!important;
  background:transparent!important;
  text-shadow:none!important;
  opacity:1!important;
}
body[data-season="reyes-magos"] .progress-dashboard .progress-financial-tabs label:hover{
  color:#fff!important;
  background:rgba(255,255,255,.19)!important;
}
body[data-season="reyes-magos"] .progress-dashboard :is(
  #financial-global:checked ~ .progress-financial-tabs label[for="financial-global"],
  #financial-personal:checked ~ .progress-financial-tabs label[for="financial-personal"],
  #financial-responsibles:checked ~ .progress-financial-tabs label[for="financial-responsibles"],
  #hospital-global:checked ~ .progress-financial-tabs label[for="hospital-global"],
  #hospital-personal:checked ~ .progress-financial-tabs label[for="hospital-personal"],
  #hospital-responsibles:checked ~ .progress-financial-tabs label[for="hospital-responsibles"]
){
  background:linear-gradient(120deg,#335df2,#6238db)!important;
  color:#fff!important;
  box-shadow:0 3px 13px rgba(43,91,240,.36)!important;
}
body[data-season="reyes-magos"] .progress-dashboard .progress-financial-tabs label:focus-visible{
  outline:2px solid #ffd278!important;
  outline-offset:2px;
}

/* Integración compartida de temporadas: encabezados, selección de portales y pacientes. */
:is(body[data-season="navidad"],body[data-season="reyes-magos"],body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) {
 --theme-header-ink:#f8fbff;
}
:is(body[data-season="navidad"],body[data-season="reyes-magos"],body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) :is(.site-header,.portal-header){color:var(--theme-header-ink)!important}
:is(body[data-season="navidad"],body[data-season="reyes-magos"],body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) :is(.site-header,.portal-header) .nav__link{
 color:#f8fbff!important;background:rgba(8,26,61,.35)!important;border-radius:9px;padding:.55rem .8rem;opacity:1!important;
}
:is(body[data-season="navidad"],body[data-season="reyes-magos"],body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) :is(.site-header,.portal-header) .nav__link:is(:hover,:focus-visible){background:rgba(255,255,255,.18)!important;color:#fff!important;outline:2px solid #f7c663;outline-offset:2px}
body[data-season="navidad"] .portal-header{background:linear-gradient(90deg,#062044f2,#103e77dd),url("../seasonal/navidad/kpi-forest.53468cedf0d8.webp") center/cover!important;border-bottom:1px solid #a4cee8!important}
body[data-season="reyes-magos"] .portal-header{background:linear-gradient(90deg,#061738ef,#092d68cd),url("../seasonal/reyes-magos/header.ef70e02572f9.webp") center/cover!important;border-bottom:1px solid #f7c764!important}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .portal-header{background:linear-gradient(90deg,#0b1037ef,#23154bba),var(--season-banner) center/cover!important}
:is(body[data-season="navidad"],body[data-season="reyes-magos"],body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .portal-header :is(.nav__link,.brand__name){color:#fff!important}
:is(body[data-season="navidad"],body[data-season="reyes-magos"],body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .portal-header .portal-logo{object-fit:contain;max-height:55px;max-width:210px;width:auto}
:is(body[data-season="navidad"],body[data-season="reyes-magos"],body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .portal-sidebar__section{border-top-color:#ffffff33!important}
:is(body[data-season="navidad"],body[data-season="reyes-magos"],body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .portal-sidebar__section span{color:#c4d9ed!important;text-shadow:none!important;opacity:1!important}
/* Selector de portales: no depende de las hojas de estilo del dashboard. */
body.portal-selector-page[data-season]:not([data-season=""]){background:linear-gradient(135deg,#081a3b,#0c2c61)!important;color:#f8fbff!important;min-height:100vh}
body.portal-selector-page[data-season]:not([data-season=""]) .portal-selector__heading h1,
body.portal-selector-page[data-season]:not([data-season=""]) .portal-selector__access-label{color:#f8fbff!important}
body.portal-selector-page[data-season]:not([data-season=""]) .portal-card--medical{background:linear-gradient(145deg,#092b50,#0a1c37)!important;border:1px solid #c79f59!important}
body.portal-selector-page[data-season]:not([data-season=""]) .portal-card--medical :is(.portal-card__label,.portal-card__copy strong){color:#fff!important}
body.portal-selector-page[data-season]:not([data-season=""]) .portal-card--technical{background:#f4f9ff!important;color:#12304b!important}
body.portal-selector-page[data-season]:not([data-season=""]) .portal-card__logo img{max-height:86px;max-width:100%;object-fit:contain}
/* Portal de paciente: dar ambiente sin sacrificar lectura de datos, anuncios ni formularios. */
:is(body[data-season="navidad"],body[data-season="reyes-magos"]) .patient-dashboard-intro{border:1px solid #aacce5!important;background:linear-gradient(110deg,#f4f9ffef,#dceafaed)!important}
:is(body[data-season="navidad"],body[data-season="reyes-magos"]) :is(.patient-dashboard-intro,.patient-promotions-card,.card-portal,.patient-dashboard-grid .card){color:#16324f!important}
:is(body[data-season="navidad"],body[data-season="reyes-magos"]) :is(.patient-promotions-card,.card-portal,.patient-dashboard-grid .card){background-color:#fff!important}
:is(body[data-season="navidad"],body[data-season="reyes-magos"]) :is(.patient-dashboard-intro,.patient-promotions-card,.card-portal) :is(h1,h2,h3,p,label,small){color:#17334d!important}
body[data-season="navidad"].bg-portal{background:linear-gradient(145deg,#082b52,#154d80) fixed!important}
body[data-season="reyes-magos"].bg-portal{background:linear-gradient(145deg,#071c44,#153a79) fixed!important}
body[data-season="navidad"] .patient-dashboard-intro{background-image:linear-gradient(90deg,#f5fbfff7,#d8e9f1e6),url("../seasonal/navidad/banner-clean.7d1df3ae0207.webp")!important;background-position:right center;background-size:cover}
body[data-season="reyes-magos"] .patient-dashboard-intro{background-image:linear-gradient(90deg,#f5f9fff7,#e6eefce8),url("../seasonal/reyes-magos/section.6f6afb4104cc.webp")!important;background-position:right center;background-size:cover}
@media(max-width:760px){:is(body[data-season="navidad"],body[data-season="reyes-magos"]) .portal-header .portal-logo{max-width:135px;max-height:40px}}

/* Encabezado compartido: ambos layouts conservan su decoración de temporada. */
body[data-season="navidad"] :is(.site-header,.portal-header){
  background-color:#061d42!important;
  background-image:linear-gradient(90deg,rgba(4,24,55,.79),rgba(8,48,103,.46)),url("../seasonal/navidad/kpi-forest.53468cedf0d8.webp")!important;
  background-position:center!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
  border-bottom:1px solid #b8dff2!important;
}
body[data-season="reyes-magos"] :is(.site-header,.portal-header){
  background-color:#06183b!important;
  background-image:linear-gradient(90deg,rgba(4,17,45,.72),rgba(13,40,95,.35)),url("../seasonal/reyes-magos/header.ef70e02572f9.webp")!important;
  background-position:center!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
  border-bottom:1px solid #e7b65e!important;
}
:is(body[data-season="navidad"],body[data-season="reyes-magos"]) :is(.site-header,.portal-header) :is(.nav__link,.brand__name){color:#f7fbff!important}

/* Logotipos separados del branding editable: todos los portales usan la temporada publicada. */
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .brand__logo.portal-logo-frame--medical{
  width:clamp(170px,17vw,230px)!important;height:56px!important;min-width:0!important;
  background:transparent!important;overflow:visible!important;
}
:is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .season-logo-image{
  display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;max-width:none!important;
}

/* Full-wordmark assets need a consistent frame at every viewport size. */
.site-header .brand__logo.portal-logo-frame--medical{
  background:transparent!important;border:0!important;box-shadow:none!important;
  width:clamp(150px,17vw,230px)!important;min-width:0!important;
  height:56px!important;padding:0!important;overflow:visible!important;
}
.site-header .brand__logo .season-logo-image{
  display:block;width:100%;height:100%;max-width:none;object-fit:contain;
}
.site-footer .season-footer-logo{
  width:clamp(145px,16vw,215px);height:auto;max-height:75px;
  border:0;border-radius:0;background:transparent;padding:0;object-fit:contain;
}
.portal-header .portal-logo{object-fit:contain;object-position:center;padding:0;}
@media(max-width:760px){
  .site-header .brand__logo.portal-logo-frame--medical{
    width:clamp(118px,30vw,160px)!important;height:44px!important;
  }
  .portal-header .portal-logo{max-width:140px;max-height:44px;}
  .site-footer .season-footer-logo{max-width:155px;max-height:60px;}
}


/* Fase 2: zonas operativas legibles, sin alterar la semántica de estados. */
:is(body[data-season="navidad"],body[data-season="reyes-magos"]) :is(.adm-table,.table,.data-table,.finance-sheet) tbody :is(.is-paid,.status-paid,.text-success,.badge-success,.bg-success){color:#12603b!important;}
:is(body[data-season="navidad"],body[data-season="reyes-magos"]) :is(.adm-table,.table,.data-table,.finance-sheet) tbody :is(.is-pending,.status-pending,.text-danger,.badge-danger){color:#93202e!important;}
:is(body[data-season="navidad"],body[data-season="reyes-magos"]) :is(.adm-table,.table,.data-table,.finance-sheet) tbody :is(.badge,.status-badge,[class*="status-"],[class*="estado-"]){text-shadow:none!important;}
:is(body[data-season="navidad"],body[data-season="reyes-magos"]) :is(.adm-table,.table,.data-table,.finance-sheet) tbody :is(.badge,.status-badge,[class*="status-"],[class*="estado-"]) :is(span,strong,small){color:inherit!important;}

/* Los contenedores operativos pueden desplazar tablas anchas sin ampliar toda la página. */
@media (max-width: 760px){
  body[data-season]:not([data-season=""]) :is(.portal-page-content,.portal-main,.admin-wrap,.admin-content,.progress-dashboard){min-width:0;max-width:100%;}
  body[data-season]:not([data-season=""]) :is(.adm-table-wrap,.table-responsive,.table-container,.finance-sheet-scroll,.dataTables_wrapper){max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;}
  body[data-season]:not([data-season=""]) :is(.progress-hero,.patient-dashboard-intro){min-width:0;}
  :is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"],body[data-season="navidad"],body[data-season="reyes-magos"]) .progress-hero :is(.progress-title,.progress-eyebrow,.progress-subtitle){max-width:100%!important;overflow-wrap:anywhere;}
  :is(body[data-season="halloween"],body[data-season="dia-muertos"],body[data-season="dia-de-muertos"]) .progress-hero{background-image:linear-gradient(90deg,rgba(9,16,57,.97),rgba(15,16,60,.84)),var(--season-banner)!important;}
  body[data-season]:not([data-season=""]) .portal-header .patient-header-inner{min-width:0;flex-wrap:nowrap;gap:.5rem!important;}
  body[data-season]:not([data-season=""]) .portal-header .patient-header-actions{min-width:0;margin-left:auto;}
  body[data-season]:not([data-season=""]) .portal-header .portal-logo{max-width:min(34vw,140px);height:auto;max-height:44px;}
  body[data-season]:not([data-season=""]) .seasonal-scene__corner{display:none!important;}
}
@media (max-width: 420px){
  body[data-season]:not([data-season=""]) .site-header .brand__logo.portal-logo-frame--medical{width:clamp(108px,30vw,136px)!important;height:40px!important;}
  body[data-season]:not([data-season=""]) .portal-header .portal-logo{max-width:112px;max-height:38px;}
}
@media (prefers-reduced-motion: reduce){
  body[data-season]:not([data-season=""]) .seasonal-scene,body[data-season]:not([data-season=""]) .seasonal-scene *{animation:none!important;transition:none!important;}
}


/* Febrero: Amor y Amistad. Elementos decorativos separados de tablas y formularios. */
body[data-season="amor-amistad"]{
  --amor-ink:#fff7fb;--amor-night:#27071f;--amor-wine:#5c1137;--amor-pink:#ff4e9d;--amor-gold:#f2c16f;
  --amor-decor:url("../seasonal/amor-amistad/hearts.dc0c441d1451.svg");
}
body[data-season="amor-amistad"] :is(.site-header,.portal-header){
  color:var(--amor-ink)!important;
  background:linear-gradient(90deg,#27071fee,#5b1235dd),radial-gradient(circle at 83% 14%,#ef6d9e,#43102f 63%)!important;
  border-bottom:1px solid #f6a7c0!important;
}
body[data-season="amor-amistad"] :is(.site-header,.portal-header) :is(.nav__link,.brand__name){color:#fff!important}
body[data-season="amor-amistad"] :is(.site-header,.portal-header) .nav__link:is(:hover,:focus-visible){background:#a91e60!important;color:#fff!important}
body[data-season="amor-amistad"] .portal-sidebar{
  background:linear-gradient(180deg,#2c0b27ef,#510f34ee),var(--amor-decor) bottom center/190px auto repeat!important;
  border-right:1px solid #ec92bc!important;color:#fff!important;
}
body[data-season="amor-amistad"] .portal-sidebar__link{color:#fff0f7!important}
body[data-season="amor-amistad"] .portal-sidebar__link:is(:hover,.is-active,[aria-current="page"]){
  background:linear-gradient(90deg,#b51b67,#f42f85)!important;color:#fff!important;
  box-shadow:inset 3px 0 #ffd88b,0 3px 15px #f42f8555!important;
}
body[data-season="amor-amistad"] .portal-sidebar__section span{color:#ffcfeb!important;opacity:1!important}
body[data-season="amor-amistad"] .progress-dashboard{
  background:linear-gradient(155deg,#310a28,#4f1336 65%,#27071f)!important;
  color:#fff!important;border-radius:20px;padding:clamp(10px,1.5vw,22px)!important;
}
body[data-season="amor-amistad"] .progress-hero{
  position:relative;overflow:hidden;isolation:isolate;min-height:195px;
  background:linear-gradient(100deg,#3b0a2af5 0%,#671b48e8 60%,#a3235bcb),radial-gradient(circle at 83% 45%,#fd86bd,#511135 62%)!important;
  border:1px solid #f47bad!important;color:white!important;
}
body[data-season="amor-amistad"] .progress-hero::before{
  content:"";position:absolute;inset:0 0 0 50%;background:var(--amor-decor) center/auto 100% repeat-x;opacity:.65;pointer-events:none;z-index:0;
}
body[data-season="amor-amistad"] .progress-hero :is(.progress-title,.progress-eyebrow,.progress-subtitle){position:relative;z-index:1;color:white!important;text-shadow:0 2px 8px #2a061c88}
body[data-season="amor-amistad"] .progress-hero .progress-title{font-weight:900!important}
body[data-season="amor-amistad"] .progress-stamp{background:#fff4df!important;color:#42122e!important}
body[data-season="amor-amistad"] .progress-period-filter{background:#62163d!important;color:#fff!important;border:1px solid #e37eac!important}
body[data-season="amor-amistad"] .progress-period-filter :is(strong,span){color:#fff!important}
body[data-season="amor-amistad"] .progress-period-tab{background:#4d1737!important;border-color:#b65e87!important;color:#fff!important}
body[data-season="amor-amistad"] .progress-period-tab.is-active{background:linear-gradient(120deg,#ff2c86,#c71b6b)!important;border-color:#ffadd1!important;color:#fff!important}
body[data-season="amor-amistad"] .progress-kpi-card{
  background:linear-gradient(145deg,#701544,#360c2c)!important;border:1px solid #df6097!important;
  box-shadow:inset 0 1px 0 #ffffff33,0 7px 18px #19051655!important;
  color:#fff!important;position:relative;isolation:isolate;overflow:hidden;
}
body[data-season="amor-amistad"] .progress-kpi-card:nth-child(3n){background:linear-gradient(145deg,#a42352,#430d35)!important}
body[data-season="amor-amistad"] .progress-kpi-card::after{content:"♥";position:absolute;right:10px;bottom:-20px;font-size:90px;color:#f797b522;pointer-events:none;z-index:-1}
body[data-season="amor-amistad"] .progress-kpi-card :is(strong,small,span,p){color:#fff!important;position:relative;z-index:1}
body[data-season="amor-amistad"] .progress-card.progress-financial-card{
  position:relative;isolation:isolate;overflow:hidden;color:#fff!important;
  background:linear-gradient(110deg,#360921ed,#70153ce8),radial-gradient(circle at 85% 25%,#d84678,#3c0c30 70%)!important;
  border:1px solid #f378ae!important;
}
body[data-season="amor-amistad"] .progress-card.progress-financial-card::before{
  content:"";position:absolute;inset:0 0 0 50%;background:var(--amor-decor) right center/auto 100% repeat-x;opacity:.22;z-index:-1;pointer-events:none;
}
body[data-season="amor-amistad"] .progress-financial-card :is(.progress-card-head,.progress-eyebrow,.progress-financial-copy,.progress-financial-amount,.progress-financial-caption){color:#fff!important}
body[data-season="amor-amistad"] .progress-financial-card .progress-mini-stats>*{background:#62183dcc!important;color:#fff!important;border-color:#e189b1!important}
body[data-season="amor-amistad"] .progress-financial-card .progress-mini-stats>* *{color:#fff!important}
body[data-season="amor-amistad"] .progress-financial-tabs{background:#420f30!important;border-color:#a74c75!important}
body[data-season="amor-amistad"] .progress-financial-tabs :is(button,label){color:#ffe5f1!important}
body[data-season="amor-amistad"] .progress-financial-tabs :is(button,label):is(.active,.is-active,[aria-selected="true"],:has(input:checked)){
  background:linear-gradient(120deg,#ed2d87,#c91b6e)!important;color:#fff!important;border-color:#ffabd1!important;
}
body[data-season="amor-amistad"] .patient-dashboard-intro{
  background:linear-gradient(100deg,#fff9fbed,#ffe7f0e0),radial-gradient(circle at 90% 20%,#ffc0d8,#fff6fb 70%)!important;
  border:1px solid #ef9abb!important;color:#48243b!important;
}
body[data-season="amor-amistad"] .patient-dashboard-intro :is(h1,h2,h3,p,span){color:#48243b!important}
body[data-season="amor-amistad"].bg-portal{background:linear-gradient(150deg,#4a1032,#6d1a45) fixed!important}
body.portal-selector-page[data-season="amor-amistad"]{background:linear-gradient(140deg,#300a26,#661640)!important;color:#fff!important}
body.portal-selector-page[data-season="amor-amistad"] .portal-card--medical{background:#591336!important;border-color:#f09dc4!important}
body[data-season="amor-amistad"] :is(.portal-header,.site-header) .season-logo-image{object-fit:contain!important}
@media(max-width:760px){
 body[data-season="amor-amistad"] .progress-hero::before{inset:0 0 0 66%;opacity:.27}
 body[data-season="amor-amistad"] .progress-card.progress-financial-card::before{opacity:.13}
 body[data-season="amor-amistad"] .progress-hero :is(.progress-title,.progress-subtitle){max-width:95%!important}
 body[data-season="amor-amistad"] .portal-header .portal-logo{max-width:135px;max-height:40px}
}
@media(prefers-reduced-motion:reduce){body[data-season="amor-amistad"] *{scroll-behavior:auto!important}}


/* AMOR Y AMISTAD — gráficos dedicados y capas de contraste, v2 */
body[data-season="amor-amistad"]{
  --amor-hero:url("../seasonal/amor-amistad/banner-osos.e129751bb4fd.webp");
  --amor-wine-bg:url("../seasonal/amor-amistad/fondo-rosas.c048aeb7a31b.webp");
  --amor-kpi-bg:url("../seasonal/amor-amistad/fondo-kpi.0b7a4a3a4af2.webp");
  --amor-sidebar-bg:url("../seasonal/amor-amistad/fondo-lateral.4735b2f8615a.webp");
  --amor-mail:url("../seasonal/amor-amistad/iconos/carta-amor.14eeb2e9f99b.svg");
  --amor-ribbon:url("../seasonal/amor-amistad/decoraciones/lazo-liston.92e44c96d2dd.svg");
}
body[data-season="amor-amistad"] :is(.site-header,.portal-header){
 background-image:linear-gradient(90deg,rgba(30,5,29,.95),rgba(57,10,41,.75),rgba(38,7,33,.78)),url("../seasonal/amor-amistad/fondo-kpi.0b7a4a3a4af2.webp")!important;
 background-size:cover!important;background-position:center!important;
 border-bottom:1px solid #eeb2bc!important;
}
body[data-season="amor-amistad"] .portal-sidebar{
 background-image:linear-gradient(180deg,rgba(32,6,30,.79),rgba(76,9,44,.84)),var(--amor-sidebar-bg)!important;
 background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important;
}
body[data-season="amor-amistad"] .portal-sidebar__link:is(:hover,.is-active,[aria-current="page"]){
 border:1px solid rgba(255,182,210,.8)!important;
}
body[data-season="amor-amistad"] .progress-hero{
 background-image:linear-gradient(90deg,rgba(39,5,31,.95) 0%,rgba(54,8,38,.86) 35%,rgba(50,9,35,.34) 60%,rgba(24,4,22,.03) 100%),var(--amor-hero)!important;
 background-size:cover!important;background-position:center center!important;
 min-height:215px;
}
body[data-season="amor-amistad"] .progress-hero::before{content:none!important}
body[data-season="amor-amistad"] .progress-hero :is(.progress-title,.progress-eyebrow,.progress-subtitle){
 max-width:min(62%,700px)!important;text-shadow:0 2px 8px #23041c,0 1px 3px #21031c!important;
}
body[data-season="amor-amistad"] .progress-dashboard{
 background-image:linear-gradient(150deg,rgba(34,7,28,.93),rgba(73,12,45,.93)),var(--amor-wine-bg)!important;
 background-size:cover!important;background-attachment:local!important;
}
body[data-season="amor-amistad"] .progress-kpi-card{
 background-image:linear-gradient(120deg,rgba(69,8,41,.92),rgba(91,12,50,.76)),var(--amor-kpi-bg)!important;
 background-size:cover!important;background-position:center!important;
}
body[data-season="amor-amistad"] .progress-kpi-card:nth-child(2n){
 background-image:linear-gradient(125deg,rgba(68,10,45,.90),rgba(111,17,59,.70)),url("../seasonal/amor-amistad/fondo-tarjeta-rosas.da22dd3d2b6f.webp")!important;
}
body[data-season="amor-amistad"] .progress-kpi-card::before{
 content:"";position:absolute;inset:auto 7px 6px auto;width:clamp(36px,4.4vw,66px);height:clamp(36px,4.4vw,66px);
 background:url("../seasonal/amor-amistad/iconos/corazon-3d.ec766a0153af.svg") center/contain no-repeat;
 opacity:.40;pointer-events:none;z-index:0;
}
body[data-season="amor-amistad"] .progress-kpi-card:nth-child(2n)::before{background-image:url("../seasonal/amor-amistad/iconos/regalo.9cb9bba53158.svg")}
body[data-season="amor-amistad"] .progress-kpi-card:nth-child(3n)::before{background-image:var(--amor-mail)}
body[data-season="amor-amistad"] .progress-kpi-card::after{content:none!important}
body[data-season="amor-amistad"] .progress-card.progress-financial-card{
 background-image:linear-gradient(90deg,rgba(41,6,31,.96),rgba(60,8,40,.85) 45%,rgba(58,9,38,.50)),url("../seasonal/amor-amistad/banner-financiero.37e11ae26f42.webp")!important;
 background-size:cover!important;background-position:center!important;
}
body[data-season="amor-amistad"] .progress-card.progress-financial-card::before{content:none!important}
body[data-season="amor-amistad"] .patient-dashboard-intro{
 background-image:linear-gradient(90deg,rgba(255,246,250,.98),rgba(255,239,246,.95),rgba(255,230,238,.82)),url("../seasonal/amor-amistad/fondo-tarjeta-rosas.da22dd3d2b6f.webp")!important;
 background-size:cover!important;background-position:center!important;
}
body[data-season="amor-amistad"] :is(.progress-hero,.progress-kpi-card,.progress-card.progress-financial-card){
 box-shadow:0 6px 24px rgba(50,2,30,.28)!important;
}
body[data-season="amor-amistad"] .progress-kpi-card :is(.progress-kpi-value,.progress-kpi-label,.progress-kpi-meta),
body[data-season="amor-amistad"] .progress-financial-card :is(.progress-financial-amount,.progress-financial-caption){
 position:relative;z-index:1;color:#fff!important;text-shadow:0 1px 5px rgba(35,3,25,.7)!important;
}
/* Las tablas y formularios mantienen sus fondos, contraste y colores de estado originales. */
body[data-season="amor-amistad"] :is(.adm-table-wrap,.table-responsive,.table-container){isolation:isolate;}
@media(max-width:900px){
 body[data-season="amor-amistad"] .progress-hero{background-position:66% center!important}
 body[data-season="amor-amistad"] .progress-hero :is(.progress-title,.progress-eyebrow,.progress-subtitle){max-width:72%!important}
}
@media(max-width:600px){
 body[data-season="amor-amistad"] .progress-hero{
  background-image:linear-gradient(90deg,rgba(40,5,30,.96),rgba(51,8,34,.85) 58%,rgba(50,6,34,.60)),var(--amor-hero)!important;
  background-position:75% center!important;min-height:185px;
 }
 body[data-season="amor-amistad"] .progress-hero :is(.progress-title,.progress-eyebrow,.progress-subtitle){max-width:100%!important}
 body[data-season="amor-amistad"] .progress-card.progress-financial-card{background-position:68% center!important;}
 body[data-season="amor-amistad"] .progress-kpi-card::before{width:42px;height:42px;opacity:.26}
 body[data-season="amor-amistad"] .portal-sidebar{background-attachment:scroll!important;}
}
@media(print){
 body[data-season="amor-amistad"] :is(.progress-dashboard,.progress-hero,.progress-kpi-card,.progress-card.progress-financial-card){background-image:none!important;color:#111!important;box-shadow:none!important}
}



/* Amor y Amistad: contraste por superficie, sin resplandores ni efectos sobre cifras. */
body[data-season="amor-amistad"] .portal-sidebar :is(
 .portal-sidebar__identity-copy strong,.portal-sidebar__identity-copy small,
 .portal-sidebar__section span,.portal-sidebar__section-title,.portal-sidebar__group-label,
 .portal-sidebar__link,.portal-sidebar__link span,.portal-sidebar__link strong,
 .portal-sidebar__link small,.portal-sidebar__toggle
){color:#fff!important;text-shadow:none!important;opacity:1!important;}
body[data-season="amor-amistad"] .portal-sidebar__identity-copy small{color:#f9d3e6!important;}
body[data-season="amor-amistad"] .portal-sidebar__badge:not(.portal-sidebar__badge--dot){
 background:#ffdf94!important;color:#321023!important;text-shadow:none!important;
}
/* Fondo oscuro: blanco sólido y normal. No alterar los iconos ni las pastillas de estado. */
body[data-season="amor-amistad"] :is(.progress-hero,.progress-kpi-card,.progress-financial-card) :is(
 h1,h2,h3,h4,.progress-title,.progress-eyebrow,.progress-subtitle,
 .progress-card-head h2,.progress-kpi-value,.progress-kpi-label,.progress-kpi-meta,
 .progress-financial-caption,.progress-financial-amount,.progress-financial-copy
){color:#fff!important;text-shadow:none!important;}
body[data-season="amor-amistad"] .progress-financial-card .finance-progress-details summary{
 color:#fff!important;text-shadow:none!important;
}
/* Filas blancas dentro de los paneles oscuros. */
body[data-season="amor-amistad"] .progress-financial-card .finance-progress-detail-row{
 background:#fff!important;color:#17283c!important;border-color:#d8dee7!important;text-shadow:none!important;
}
body[data-season="amor-amistad"] .progress-financial-card .finance-progress-detail-row :is(span,small,strong,b,em){
 color:#17283c!important;text-shadow:none!important;
}
body[data-season="amor-amistad"] .progress-financial-card .finance-progress-detail-row .is-paid{color:#136a44!important;}
body[data-season="amor-amistad"] .progress-financial-card .finance-progress-detail-row .is-pending{color:#a52230!important;}
/* Tarjetas operativas claras: títulos, cifras y subtítulos oscuros, sin sombras. */
body[data-season="amor-amistad"] :is(
 .progress-payment-card,.progress-hospital-financial-card,.progress-quick-card,
 .progress-payment-panel,.progress-hospital-goal-panel,.progress-hospital-financial-panel
) :is(h1,h2,h3,h4,h5,h6,.progress-eyebrow,.progress-card-head,.progress-card-title,
 .progress-section-title,.progress-financial-caption,.progress-payment-intro,
 .progress-financial-amount){
 color:#17283c!important;text-shadow:none!important;
}
body[data-season="amor-amistad"] :is(
 .progress-payment-card,.progress-hospital-financial-card,.progress-quick-card,
 .progress-payment-panel,.progress-hospital-goal-panel,.progress-hospital-financial-panel
) :is(p,small,label,span,strong,b,a){text-shadow:none!important;}
/* Hojas, tablas y campos: no heredar el texto blanco de los paneles oscuros. */
body[data-season="amor-amistad"] :is(
 .adm-table,.table,.data-table,.finance-sheet
) tbody{color:#17283c!important;}
body[data-season="amor-amistad"] :is(
 .adm-table,.table,.data-table,.finance-sheet
) tbody :is(td,th){color:#17283c!important;text-shadow:none!important;}
body[data-season="amor-amistad"] :is(
 .adm-table,.table,.data-table,.finance-sheet
) tbody :is(td,th) :is(span,strong,small,b,p,div):not(.is-paid):not(.is-pending):not([class*="status-"]){
 color:#17283c!important;text-shadow:none!important;
}
body[data-season="amor-amistad"] :is(.adm-table,.table,.data-table,.finance-sheet) tbody a{color:#15518a!important;}
body[data-season="amor-amistad"] :is(.adm-table,.table,.data-table,.finance-sheet) tbody .is-paid{color:#126b45!important;}
body[data-season="amor-amistad"] :is(.adm-table,.table,.data-table,.finance-sheet) tbody .is-pending{color:#a52230!important;}
body[data-season="amor-amistad"] :is(.adm-table,.table,.data-table,.finance-sheet) thead :is(th,td){background:#edf0f4!important;color:#17283c!important;text-shadow:none!important;}


/* Amor y Amistad: superficies generales rosa vino, sin afectar paneles de datos. */
body[data-season="amor-amistad"] {
  background:#551439!important;
}
body[data-season="amor-amistad"] :is(.portal-page-shell,.portal-page-content,.site-main,.admin-wrap,.admin-content,.admin-container) {
  background-color:transparent!important;
}
body[data-season="amor-amistad"] .portal-page-content {
  background-image:linear-gradient(150deg,#4a1032 0%,#651840 58%,#4b1034 100%)!important;
  background-attachment:fixed!important;
  min-height:calc(100vh - var(--portal-header-offset,70px));
}
body[data-season="amor-amistad"] :is(.admin-wrap,.admin-content){
  background-image:none!important;
}
/* Navegación: hamburguesa y contador siempre distinguibles en la barra oscura. */
body[data-season="amor-amistad"] .portal-sidebar :is(.portal-sidebar-toggle--rail,.portal-sidebar-toggle--header){
  color:#fff!important;
  background:rgba(255,255,255,.14)!important;
  border-color:rgba(255,207,229,.65)!important;
  opacity:1!important;
}
body[data-season="amor-amistad"] .portal-sidebar :is(.portal-sidebar-toggle--rail,.portal-sidebar-toggle--header) svg{
  color:#fff!important;stroke:#fff!important;opacity:1!important;
}
body[data-season="amor-amistad"] .portal-sidebar .portal-sidebar__badge:not(.portal-sidebar__badge--dot){
  color:#361328!important;background:#ffe29a!important;
  border:1px solid #fff4d2!important;
  text-shadow:none!important;
}
body[data-season="amor-amistad"] .portal-sidebar .portal-sidebar__badge:not(.portal-sidebar__badge--dot) :is(span,strong){color:#361328!important}

/* Resumen del administrador: tarjetas claras con texto oscuro y sin brillo. */
body[data-season="amor-amistad"] .admin-wrap :is(.adm-h1,.adm-cardh){color:#17283c!important;text-shadow:none!important;}
body[data-season="amor-amistad"] .admin-wrap .adm-kpi{
  background:#fff8fb!important;border:1px solid #ebb7cd!important;
  color:#17283c!important;text-shadow:none!important;
}
body[data-season="amor-amistad"] .admin-wrap .adm-kpi :is(.kpi-n,.kpi-l,span,strong,small){
  color:#17283c!important;text-shadow:none!important;opacity:1!important;
}
body[data-season="amor-amistad"] .admin-wrap :is(.adm-card2,.adm-panel,.adm-card){
  color:#17283c!important;
}
body[data-season="amor-amistad"] .admin-wrap :is(.adm-card2,.adm-panel,.adm-card) :is(.adm-cardh,.adm-title,h1,h2,h3,p,small,strong){
  color:#17283c!important;text-shadow:none!important;
}
body[data-season="amor-amistad"] .admin-wrap .adm-input{
  background:#fff!important;color:#17283c!important;color-scheme:light;
}

/* Amor y Amistad: encabezados legibles únicamente en Citas por médico (Resumen). */
body[data-season="amor-amistad"] .adm-dashboard-doctors .adm-table-wrap--wide .adm-table thead th {
  background-color:#edf0f4!important;
  color:#17283c!important;
  opacity:1!important;
  text-shadow:none!important;
}

/* Febrero: superficie de trabajo uniforme, sin modificar el menú decorativo. */
body[data-season="amor-amistad"] .admin-wrap .admin-main {
  background:#fff!important;
  background-image:none!important;
  color:#17283c;
  border:1px solid #ead9e3;
  box-shadow:0 16px 38px rgba(27,7,24,.13);
}
body[data-season="amor-amistad"] .admin-wrap .admin-main > :is(h1,h2,h3,p),
body[data-season="amor-amistad"] .admin-wrap .admin-main > :is(header,section) > :is(h1,h2,h3,p),
body[data-season="amor-amistad"] .admin-wrap :is(.adm-h1,.adm-subtitle,.adm-lead) {
  color:#17283c!important;text-shadow:none!important;
}
body[data-season="amor-amistad"] .admin-wrap .admin-main :is(.adm-table,.table,.data-table,.finance-sheet) thead :is(th,td){
  background:#edf0f4!important;color:#17283c!important;text-shadow:none!important;
}
body[data-season="amor-amistad"] .admin-wrap .admin-main :is(.adm-table,.table,.data-table,.finance-sheet) thead :is(th,td) :is(span,strong,small){
  color:#17283c!important;text-shadow:none!important;
}
/* Capacitación usa paneles propios: preservar tarjetas y estados, aclarar únicamente sus superficies externas. */
body[data-season="amor-amistad"] :is(.training-shell,.training-home-shell){color:#17283c;}
body[data-season="amor-amistad"] .training-shell > .training-container {
  background:#fff!important;border:1px solid #ead9e3;border-radius:22px;
  padding:clamp(16px,2.2vw,30px);min-width:0;
}
body[data-season="amor-amistad"] .training-home-shell > .training-home-container {
  background:#fff!important;border:1px solid #ead9e3;border-radius:22px;
  padding:clamp(16px,2.2vw,30px);min-width:0;
}
body[data-season="amor-amistad"] :is(.training-management-table,.training-management-table-wrap) thead th{
  background:#edf0f4!important;color:#17283c!important;text-shadow:none!important;
}
@media(max-width:600px){
 body[data-season="amor-amistad"] :is(.training-shell > .training-container,.training-home-shell > .training-home-container){padding:14px;}
}


/* BLOQUE ESTACIONAL 01: Primavera y Día del Niño. Reglas aisladas por slug. */
:is(body[data-season="primavera"],body[data-season="dia-nino"]){
 --season-heading:#173146;--season-paper:#ffffff;--season-border:#d9e5ed;
 background:var(--new-season-bg)!important;color:#173146;
}
body[data-season="primavera"]{
 --new-season-bg:#e8f4ef;--new-season-dark:#03434c;--new-season-accent:#00ad7b;
 --new-season-banner:url("../seasonal/primavera/banner.732048445c7b.webp");
 --new-season-financial:url("../seasonal/primavera/financial.2e250cbd799a.webp");
 --new-season-sidebar:url("../seasonal/primavera/sidebar.c52fb1d46944.webp");
 --new-season-card:url("../seasonal/primavera/card.ded22051894d.webp");
 --new-season-bg-image:url("../seasonal/primavera/background.3ed78d1076f0.webp");
 --new-season-decoration:url("../seasonal/primavera/deco.acd79897b68b.webp");
}
body[data-season="dia-nino"]{
 --new-season-bg:#e9f3ff;--new-season-dark:#062b72;--new-season-accent:#7033ed;
 --new-season-banner:url("../seasonal/dia-nino/banner.9ee43b9339b5.webp");
 --new-season-financial:url("../seasonal/dia-nino/financial.e5b83478598b.webp");
 --new-season-sidebar:url("../seasonal/dia-nino/sidebar.7383ac091b40.webp");
 --new-season-card:url("../seasonal/dia-nino/card.bcfd5a3a3843.webp");
 --new-season-bg-image:url("../seasonal/dia-nino/background.0962940d81df.webp");
 --new-season-decoration:url("../seasonal/dia-nino/deco.5a53bf028095.webp");
}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) :is(.site-header,.portal-header){
 background-color:var(--new-season-dark)!important;
 background-image:linear-gradient(90deg,rgba(0,30,57,.83),rgba(1,43,67,.35)),var(--new-season-banner)!important;
 background-size:cover!important;background-position:center!important;
 border-bottom:1px solid #f1d37d!important;
}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .portal-sidebar{
 background-color:var(--new-season-dark)!important;
 background-image:linear-gradient(180deg,rgba(1,30,55,.80),rgba(1,30,55,.84)),var(--new-season-sidebar)!important;
 background-position:center!important;background-size:cover!important;
 color:#fff!important;
}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .portal-sidebar :is(.portal-sidebar__link,.portal-sidebar__identity,.portal-sidebar__identity-copy strong,.portal-sidebar__section span){color:#fff!important}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .portal-sidebar .portal-sidebar__link:is(.is-active,[aria-current="page"],:hover){
 background:linear-gradient(105deg,var(--new-season-accent),color-mix(in srgb,var(--new-season-accent) 65%,#06345b))!important;
 border:1px solid rgba(255,255,255,.6)!important;color:#fff!important;
}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .portal-sidebar__badge:not(.portal-sidebar__badge--dot){background:#ffe6a5!important;color:#173146!important}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) :is(.portal-page-content,.site-main){background:transparent!important}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) :is(.portal-page-shell,.admin-wrap){background:transparent!important}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .admin-wrap .admin-main{
 background:#fff!important;background-image:none!important;color:#173146!important;
 border:1px solid var(--season-border);box-shadow:0 10px 35px rgba(5,45,71,.1);
}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .admin-wrap .admin-main > :is(h1,h2,h3,p),
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .admin-wrap :is(.adm-h1,.adm-subtitle,.adm-lead){color:#173146!important;text-shadow:none!important}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) :is(.adm-table,.table,.data-table,.finance-sheet) thead :is(th,td){
 background:#eaf0f6!important;color:#173146!important;text-shadow:none!important;
}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) :is(.adm-table,.table,.data-table,.finance-sheet) tbody :is(th,td){color:#173146;text-shadow:none}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) :is(input,textarea,select){color-scheme:light}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) :is(.training-shell > .training-container,.training-home-shell > .training-home-container){
 background:#fff!important;border:1px solid #d9e5ed;border-radius:22px;min-width:0;
}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-dashboard:has(> .progress-kpis){
 background-image:linear-gradient(155deg,rgba(2,39,66,.86),rgba(2,65,78,.82)),var(--new-season-bg-image)!important;
 background-size:cover!important;background-position:center!important;color:#fff!important;border-radius:22px;
}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-hero{
 background-image:linear-gradient(90deg,rgba(1,27,55,.94) 0%,rgba(1,36,67,.87) 40%,rgba(1,36,67,.05) 80%),var(--new-season-banner)!important;
 background-size:cover!important;background-position:center!important;min-height:215px;color:#fff!important;
}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-hero :is(.progress-title,.progress-eyebrow,.progress-subtitle){
 color:#fff!important;max-width:61%;position:relative;z-index:1;text-shadow:0 2px 7px rgba(0,0,0,.5);
}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-kpi-card{
 background-image:linear-gradient(120deg,rgba(0,37,86,.76),rgba(1,66,93,.48)),var(--new-season-card)!important;
 background-size:cover!important;background-position:center!important;color:#fff!important;
 border:1px solid #8bc7e6!important;position:relative;isolation:isolate;overflow:hidden;
}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-kpi-card:nth-child(2n){background-image:linear-gradient(120deg,rgba(73,19,104,.78),rgba(119,26,107,.49)),var(--new-season-card)!important}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-kpi-card:nth-child(3n){background-image:linear-gradient(120deg,rgba(124,51,1,.77),rgba(165,91,7,.51)),var(--new-season-card)!important}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-kpi-card :is(.progress-kpi-value,.progress-kpi-label,.progress-kpi-meta){color:#fff!important;text-shadow:0 1px 5px #0b233b;position:relative;z-index:1}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-kpi-card::after{
 content:"";position:absolute;right:5px;bottom:0;width:65px;height:65px;background:var(--new-season-decoration) center/contain no-repeat;opacity:.45;pointer-events:none;
}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-card.progress-financial-card{
 background-image:linear-gradient(90deg,rgba(1,29,56,.94) 0%,rgba(1,38,72,.77) 52%,rgba(1,39,68,.24)),var(--new-season-financial)!important;
 background-size:cover!important;background-position:center!important;color:#fff!important;
}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-financial-card :is(.progress-card-title,.progress-financial-title,.progress-financial-amount,.progress-financial-caption,.progress-financial-copy,.progress-eyebrow){color:#fff!important;text-shadow:0 1px 5px #0b223c}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-financial-card .progress-mini-stats > *{background:rgba(5,37,68,.87)!important;color:#fff!important}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-financial-card .progress-mini-stats > * :is(span,strong,small){color:#fff!important}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-period-filter{background:#073e63!important;color:#fff!important;border-color:#73bacc!important}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-period-filter__label :is(span,strong){color:#fff!important}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-period-tab{background:#135075!important;color:#fff!important;border-color:#7dbfdc!important}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-period-tab.is-active{background:var(--new-season-accent)!important;color:#fff!important}
@media(max-width:760px){
 :is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-hero{background-position:67% center!important}
 :is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-hero :is(.progress-title,.progress-eyebrow,.progress-subtitle){max-width:90%}
 :is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-hero{background-image:linear-gradient(90deg,rgba(1,27,55,.97),rgba(1,36,67,.73)),var(--new-season-banner)!important}
 :is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-kpi-card::after{opacity:.22;width:45px;height:45px}
}
@media(prefers-reduced-motion:reduce){:is(body[data-season="primavera"],body[data-season="dia-nino"]) *{animation:none!important;transition:none!important}}


/* Consolidación estacional noviembre 2026: superficies, acceso y contraste. */
/* El fondo pertenece al lienzo exterior, no a tarjetas ni formularios. */
body[data-season="primavera"]{
 --season-stage:#063e4a;
 --season-stage-overlay:linear-gradient(110deg,rgba(1,33,45,.84),rgba(2,65,66,.72));
}
body[data-season="dia-nino"]{
 --season-stage:#092c72;
 --season-stage-overlay:linear-gradient(110deg,rgba(3,29,77,.83),rgba(12,58,141,.66));
}
:is(body[data-season="primavera"],body[data-season="dia-nino"]){
 background-color:var(--season-stage)!important;
 background-image:var(--season-stage-overlay),var(--new-season-bg-image)!important;
 background-position:center top!important;
 background-size:cover!important;
 background-attachment:fixed!important;
}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) :is(.site-main,.portal-page-shell,.portal-page-content,.admin-wrap,.admin-content,.admin-container){
 background-color:transparent!important;
}
/* Los paneles de operación se mantienen claros; la portada de Progreso es un lienzo ilustrado. */
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .admin-wrap .admin-main:has(> .progress-dashboard > .progress-kpis){
 background:transparent!important;border-color:transparent!important;box-shadow:none!important;
 padding-left:0;padding-right:0;
}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-dashboard:has(> .progress-kpis){
 padding:clamp(12px,1.5vw,24px); border:1px solid rgba(255,255,255,.35);
 background-image:var(--season-stage-overlay),var(--new-season-bg-image)!important;
 background-size:cover!important;background-position:center top!important;
}
/* Colores reales de h2, tabs y etiquetas en finanzas y hospitalizaciones. */
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-card.progress-financial-card :is(.progress-card-head h2,.progress-card-head h3,.progress-eyebrow,.progress-financial-caption,.progress-financial-amount){
 color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.22)!important;
}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-card.progress-financial-card .progress-financial-tabs{
 background:rgba(3,31,62,.8)!important;border-color:rgba(255,255,255,.45)!important;
}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-card.progress-financial-card .progress-financial-tabs label{
 color:#fff!important;background:transparent!important;text-shadow:none!important;
}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-card.progress-financial-card .progress-financial-tabs label:hover{
 background:rgba(255,255,255,.19)!important;color:#fff!important;
}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-card.progress-financial-card .progress-status{
 background:#f5f8ff!important;color:#142b44!important;border-color:#b9d2e4!important;text-shadow:none!important;
}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-card.progress-financial-card .progress-mini-stats--financial :is(span,b,strong,small){color:#fff!important;}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-card.progress-financial-card :is(.finance-progress-detail-row,.progress-financial-table,.progress-responsible-group){
 color:#17283c;
}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-card.progress-financial-card .finance-progress-detail-row :is(span,strong,small,b){color:#17283c!important;text-shadow:none!important;}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-card.progress-financial-card .finance-progress-detail-row .is-paid{color:#136a44!important;}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-card.progress-financial-card .finance-progress-detail-row .is-pending{color:#a52230!important;}
/* Contraste específico de KPIs: métricas siempre legibles independientemente de la imagen. */
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-kpi-card :is(span,strong,small,.progress-kpi-value,.progress-kpi-label,.progress-kpi-meta){
 color:#fff!important;text-shadow:0 1px 3px rgba(1,20,40,.5)!important;
}
/* Elementos del sidebar que estaban heredando trazos oscuros. */
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .portal-sidebar :is(.portal-sidebar-toggle--rail,.portal-sidebar-toggle--header){
 color:#fff!important;background:rgba(255,255,255,.14)!important;
 border-color:rgba(255,255,255,.6)!important;opacity:1!important;
}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .portal-sidebar :is(.portal-sidebar-toggle--rail,.portal-sidebar-toggle--header) svg{
 stroke:#fff!important;color:#fff!important;opacity:1!important;
}
/* El botón en header puede estar fuera del elemento sidebar en vista móvil. */
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .portal-sidebar-toggle--header{
 color:#fff!important;border-color:rgba(255,255,255,.65)!important;background:rgba(0,35,70,.4)!important;
}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .portal-sidebar-toggle--header svg{stroke:#fff!important;}
/* Encabezados de páginas públicas sobre fondos oscuros, sin alterar las tarjetas claras. */
:is(body[data-season="amor-amistad"],body[data-season="primavera"],body[data-season="dia-nino"]) :is(.directory-hero__title,.contact-page__title){
 color:#fff!important;text-shadow:none!important;
}
:is(body[data-season="amor-amistad"],body[data-season="primavera"],body[data-season="dia-nino"]) .contact-page__subtitle{
 color:#f1f6fb!important;text-shadow:none!important;
}
/* Acceso y selector poseen su propio documento y orden de CSS: precedencia aquí explícita. */
body.portal-selector-page[data-season="amor-amistad"]:not([data-season=""]){
 background:linear-gradient(110deg,rgba(51,8,35,.94),rgba(99,20,59,.84)),url("../seasonal/amor-amistad/fondo-rosas.c048aeb7a31b.webp") center/cover fixed!important;
 color:#fff!important;
}
body.portal-selector-page[data-season="primavera"]:not([data-season=""]){
 background:linear-gradient(110deg,rgba(1,36,48,.93),rgba(4,84,73,.78)),url("../seasonal/primavera/background.3ed78d1076f0.webp") center/cover fixed!important;
 color:#fff!important;
}
body.portal-selector-page[data-season="dia-nino"]:not([data-season=""]){
 background:linear-gradient(110deg,rgba(4,28,80,.93),rgba(10,65,142,.78)),url("../seasonal/dia-nino/background.0962940d81df.webp") center/cover fixed!important;
 color:#fff!important;
}
:is(body.portal-selector-page[data-season="amor-amistad"]:not([data-season=""]),body.portal-selector-page[data-season="primavera"]:not([data-season=""]),body.portal-selector-page[data-season="dia-nino"]:not([data-season=""])) :is(.portal-selector h1,.portal-selector__access-label){
 color:#fff!important;text-shadow:none!important;
}
body.portal-selector-page[data-season="amor-amistad"]:not([data-season=""]) .portal-selector__eyebrow{background:#f2c16f!important;}
body.portal-selector-page[data-season="primavera"]:not([data-season=""]) .portal-selector__eyebrow{background:#13c8a0!important;}
body.portal-selector-page[data-season="dia-nino"]:not([data-season=""]) .portal-selector__eyebrow{background:#f4c759!important;}
body.portal-selector-page[data-season="amor-amistad"]:not([data-season=""]) .portal-card--medical{
 background:linear-gradient(145deg,#61163f,#320922)!important;border-color:#ef9abb!important;
}
body.portal-selector-page[data-season="primavera"]:not([data-season=""]) .portal-card--medical{
 background:linear-gradient(145deg,#075668,#04323f)!important;border-color:#54dcb9!important;
}
body.portal-selector-page[data-season="dia-nino"]:not([data-season=""]) .portal-card--medical{
 background:linear-gradient(145deg,#07469d,#112665)!important;border-color:#8fb6ff!important;
}
body.portal-selector-page[data-season="primavera"]:not([data-season=""]) .portal-card--medical .portal-card__arrow{background:#007e69!important;border-color:#7be0c1!important;color:#fff!important;}
body.portal-selector-page[data-season="dia-nino"]:not([data-season=""]) .portal-card--medical .portal-card__arrow{background:#6330d8!important;border-color:#be9cff!important;color:#fff!important;}
/* Mantener el formulario de autenticación y tarjetas de administración claros. */
:is(body[data-season="primavera"],body[data-season="dia-nino"]) :is(.auth-card,.auth-shell,.login-card) :is(input,select,textarea){color:#17283c;}
@media(max-width:760px){
 :is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-dashboard:has(> .progress-kpis){padding:10px;}
 :is(body[data-season="primavera"],body[data-season="dia-nino"]) .admin-wrap .admin-main:has(> .progress-dashboard > .progress-kpis){padding:0!important;}
 :is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-card.progress-financial-card{background-position:65% center!important;}
}


/* Estabilización transversal de Primavera / Día del Niño — noviembre 2026.
   Solo elementos que viven fuera de superficies claras; no toca membresías,
   evaluaciones, tablas, formularios, alertas semánticas ni estados clínicos. */
:is(body[data-season="primavera"],body[data-season="dia-nino"]){
  --season-on-stage:#ffffff;
  --season-on-stage-muted:#e5f3f7;
  --season-control-bg:rgba(3,35,60,.86);
}
/* Pacientes: títulos flotantes sobre el paisaje. Las tarjetas internas siguen
   usando sus estilos de marca, incluso la tarjeta digital de membresía. */
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .portal-main :is(
  .membership-page-head,
  .patient-page-head,
  .patient-appointments-page__head,
  .patient-notif-page > .d-flex:first-child,
  .doctor-directory__head,
  .doctor-profile-public__head
) :is(.portal-page-title,.portal-page-subtitle,h1,h2,h3,p){
  color:var(--season-on-stage)!important;
  text-shadow:0 2px 5px rgba(1,21,39,.5)!important;
}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .portal-main :is(
  .membership-page-head,.patient-page-head,.patient-appointments-page__head,
  .patient-notif-page > .d-flex:first-child,.doctor-directory__head,.doctor-profile-public__head
) :is(.patient-section-kicker,.membership-eyebrow){color:#ffdf88!important;}
/* Otras cabeceras de paciente sin tarjeta contenedora (historial, solicitudes,
   perfil, foto), delimitadas solo a hijos directos del área de contenido. */
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .portal-main > :is(h1,h2,h3,.portal-page-title,.portal-page-subtitle),
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .portal-main > :is(section,div) > :is(.portal-page-title,.portal-page-subtitle){
  color:var(--season-on-stage)!important;
  text-shadow:0 2px 5px rgba(1,21,39,.45)!important;
}
/* Los botones de regreso flotantes necesitan contraste sin afectar las
   acciones dentro de formularios o componentes blancos. */
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .portal-main :is(
  .membership-page-actions,.patient-page-head__actions,.patient-appointments-page__head,
  .patient-notif-page > .d-flex:first-child,.doctor-directory__head
) > .btn-ghost,
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .portal-main .membership-page-actions .btn-ghost{
  color:#fff!important;background:var(--season-control-bg)!important;
  border:1px solid rgba(255,255,255,.65)!important;
}
/* El aviso de Documentos se encuentra fuera de las tarjetas blancas. Se le
   proporciona una superficie opaca para preservar sus colores de advertencia. */
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .patient-documents-page > .patient-inline-notice{
  background:#fff8e9!important;border-color:#d7b76c!important;color:#28374a!important;
  text-shadow:none!important;
}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .patient-documents-page > .patient-inline-notice :is(span,strong){
  color:#28374a!important;text-shadow:none!important;
}
/* Asesor: el encabezado usa dos columnas. El texto debe poder ocupar el
   espacio disponible sin heredar el max-width del título decorativo. */
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-dashboard--advisor > .progress-hero > div:first-child{
  flex:1 1 auto;min-width:0;max-width:none!important;
}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-dashboard--advisor > .progress-hero .progress-title{
  display:block;max-width:none!important;width:auto!important;
  white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;
  font-size:clamp(1.85rem,3.2vw,3rem);line-height:1.12;
}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-dashboard--advisor > .progress-hero .progress-stamp{
  flex:0 0 auto;max-width:min(42%,240px);
}
/* Encabezados del panel financiero/hospitalario siempre claros sobre imágenes,
   pero el número dentro del círculo y los estados mantienen su propio color. */
:is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-dashboard--advisor .progress-financial-card .progress-card-head h2{
  color:#fff!important;text-shadow:0 1px 5px rgba(0,0,0,.45)!important;
  overflow-wrap:normal;word-break:normal;
}
/* Capacitación: los shells tienen papel blanco, por lo tanto conservamos
   títulos oscuros sin pintar globalmente todas las preguntas de blanco. */
:is(body[data-season="primavera"],body[data-season="dia-nino"]) :is(
 .training-home-shell > .training-home-container,
 .training-shell > .training-container
){color:#173146;}
:is(body[data-season="primavera"],body[data-season="dia-nino"]) :is(
 .training-home-global,.training-lesson-topbar,.training-question-card,
 .training-content-panel,.training-exam-hero,.training-builder-hero
) :is(h1,h2,h3){overflow-wrap:break-word;}
/* Estética móvil: fecha debajo del título; no estrechar la columna de texto. */
@media(max-width:760px){
  :is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-dashboard--advisor > .progress-hero{
    flex-direction:column;align-items:stretch;gap:14px;
  }
  :is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-dashboard--advisor > .progress-hero .progress-stamp{
    max-width:100%;min-width:0;width:fit-content;
  }
  :is(body[data-season="primavera"],body[data-season="dia-nino"]) .progress-dashboard--advisor > .progress-hero .progress-title{
    font-size:clamp(1.8rem,7vw,2.5rem);
  }
}
/* Los estilos de impresión de la membresía deben permanecer intactos. */
@media print{
  :is(body[data-season="primavera"],body[data-season="dia-nino"]) .portal-main .membership-page-head{display:none!important;}
}
