/* Celebraciones Norte: no modifica permisos, rutas ni datos. */
:root{--norte-color:#163c52;--norte-light:#d4b081;--norte-accent:#f7f4eb}
.norte-themed{color-scheme:light}
.norte-themed .app-sidebar,.norte-themed .hub-sidebar{background:var(--norte-color)!important;transition:background .25s ease}
.norte-themed .pagehead,.norte-themed .hero,.norte-themed .hub-hero{background-image:linear-gradient(110deg,var(--norte-color),color-mix(in srgb,var(--norte-color),#ffffff 23%))!important;color:#fff!important;transition:background .25s ease}
.norte-themed .pagehead .eyebrow,.norte-themed .pagehead p,.norte-themed .pagehead h1,.norte-themed .hero *{color:#fff!important}
.norte-themed .brand .mark{background:var(--norte-light)!important;color:var(--norte-color)!important}
.norte-themed .app-nav a[aria-current],.norte-themed .hub-sidebar nav a[aria-current]{background:var(--norte-accent)!important;color:var(--norte-color)!important}
.norte-themed .hub-main .eyebrow,.norte-themed .app-main .eyebrow{letter-spacing:.1em}
.norte-themed .module-card .card-art{border-top:3px solid var(--norte-light)}
.norte-themed .panel h2,.norte-themed .hub-main h2{accent-color:var(--norte-color)}
.norte-decor{pointer-events:none;position:fixed;inset:0;z-index:18;overflow:hidden}
.norte-decor span{position:absolute;top:-8vh;left:var(--x);font-size:clamp(17px,2.7vw,33px);line-height:1;opacity:.45;color:var(--norte-light);filter:drop-shadow(0 1px 1px #2222);animation:norte-float var(--duration) linear var(--delay) infinite}
@keyframes norte-float{from{transform:translate3d(-20px,-10vh,0) rotate(0deg)}to{transform:translate3d(30px,115vh,0) rotate(220deg)}}
.norte-celebration{position:relative;isolation:isolate;margin:12px auto 24px;max-width:1380px;border-radius:18px;overflow:hidden;border:1px solid color-mix(in srgb,var(--norte-light),#ffffff 40%);box-shadow:0 13px 35px #112c3f0b;color:#173c4e;background:linear-gradient(110deg,var(--norte-accent),#fff 65%)}
.norte-celebration:before{content:'✦';position:absolute;right:18px;top:-42px;font-size:150px;color:var(--norte-light);opacity:.11;z-index:-1}
.norte-celebration-inner{padding:16px 22px;display:grid;gap:13px}
.norte-greeting{display:flex;gap:17px;align-items:center}
.norte-greeting-icon{font-size:28px;display:grid;place-items:center;flex:none;width:55px;height:55px;border-radius:16px;background:var(--norte-light);color:var(--norte-color)}
.norte-greeting h2{font-size:clamp(18px,2.2vw,26px);margin:3px 0 5px;line-height:1.2;color:var(--norte-color);font-family:inherit}
.norte-greeting p{font-size:13px;line-height:1.5;margin:0;color:#4e5d61}
.norte-mini-label{display:block;font-size:10px!important;line-height:1.4;letter-spacing:.12em;font-weight:800;color:var(--norte-color)!important;opacity:.72}
.norte-celebration-extras{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.norte-season-label{display:flex;gap:10px;align-items:center;min-width:160px}
.norte-season-label>span{font-size:24px;color:var(--norte-color)}
.norte-season-label strong{display:block;font-size:14px;color:var(--norte-color)}
.norte-personal-medal{display:flex;align-items:center;gap:14px;flex:1;min-width:200px}
.norte-medal{position:relative;flex:none;display:grid;place-items:center;width:58px;height:64px;border-radius:50% 50% 45% 45%;clip-path:polygon(6% 5%,36% 5%,50% 26%,64% 5%,94% 5%,74% 41%,87% 74%,71% 100%,29% 100%,13% 74%,26% 41%);border:0;background:linear-gradient(132deg,#d9d6cb,#85847e,#e8e4db);box-shadow:inset 0 3px 10px #ffffff75}
.norte-medal span{display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#ffffff72,#00000022);box-shadow:inset 0 0 0 2px #ffffff66;width:39px;height:39px;font-size:23px;transform:translateY(9px);color:#fff}
.norte-medal-bronze{background:linear-gradient(135deg,#e9ae7c,#7c462e 48%,#d69669)}
.norte-medal-silver{background:linear-gradient(135deg,#f5f7fa,#84929d 46%,#dfebf0)}
.norte-medal-silver span{color:#455263}
.norte-medal-gold{background:linear-gradient(135deg,#ffe7a0,#a8771a 50%,#eacb65)}
.norte-medal-platinum{background:linear-gradient(135deg,#e1f5fb,#607785 53%,#d9f3f7)}
.norte-medal-base{background:linear-gradient(135deg,#b2bbc2,#677682 50%,#bec9cf)}
.norte-medal-text strong{display:block;color:#142f40;font-size:15px;margin:2px 0}
.norte-medal-text small{display:block;font-size:11px;color:#586a70}
.norte-medal-text details{font-size:11px;color:#456674;margin-top:5px}
.norte-medal-text summary{cursor:pointer}
.norte-medal-history{display:flex;gap:5px;flex-wrap:wrap;margin:7px 0}
.norte-medal-history-entry{background:#fff;border:1px solid #cfd6d3;padding:4px 7px;border-radius:5px}
.norte-personal-day .norte-celebration{outline:2px solid color-mix(in srgb,var(--norte-light),transparent 35%)}
.norte-celebrations-admin{display:grid;gap:20px}
.norte-celebrations-admin .norte-cards{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.norte-celebrations-admin .norte-card{border:1px solid #dbe4e6;padding:16px;border-radius:12px;background:#fff}
.norte-celebrations-admin .norte-stack{display:grid;gap:9px}
.norte-celebrations-admin h2{margin:0 0 10px}
.norte-celebrations-admin label{display:grid;gap:4px;font-size:12px}
.norte-celebrations-admin input,.norte-celebrations-admin select{width:100%;min-width:0;padding:10px;border:1px solid #c7d3d9;border-radius:7px;background:#fff;color:#203647}
.norte-celebrations-admin button{background:#1a465c;color:#fff;border:0;border-radius:8px;padding:10px 12px;cursor:pointer;font-weight:650}
.norte-celebrations-admin .norte-button-secondary{background:#ecf1f3;color:#153548}
.norte-celebrations-admin .norte-rule-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;border-bottom:1px solid #e8eaeb;padding:12px 0}
.norte-celebrations-admin .norte-rule-row small{display:block;color:#61737c;margin-top:3px}
.norte-celebrations-admin .norte-action-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.norte-celebrations-admin .norte-note{color:#567078;font-size:12px;line-height:1.6}
.norte-celebrations-admin .norte-feedback{font-weight:600;font-size:12px;min-height:20px;color:#215d45}
@media(max-width:720px){.norte-celebration{margin:10px 9px 18px}.norte-celebration-inner{padding:14px}.norte-greeting{align-items:flex-start}.norte-greeting-icon{width:42px;height:42px;border-radius:12px;font-size:20px}.norte-celebration-extras{display:grid;gap:12px}.norte-celebrations-admin .norte-rule-row{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.norte-decor span{animation:none!important;display:none}}

/* Día personal: globos flotantes y bienvenida accesible. */
.norte-decor .norte-balloon{font-size:0!important;width:19px;height:28px;border-radius:56% 56% 51% 51%;background:radial-gradient(circle at 35% 27%,#ffffffaa,transparent 32%),linear-gradient(125deg,#eb7ba5,#b34985);opacity:.6;box-shadow:inset -4px -3px 7px #0002}
.norte-decor .norte-balloon:after{content:'';position:absolute;height:25px;width:1px;top:28px;left:50%;background:#9a7797aa}
.norte-decor .norte-balloon:nth-child(3n){background:radial-gradient(circle at 30% 25%,#ffffffbb,transparent 32%),linear-gradient(110deg,#ffda89,#d69834)}
.norte-welcome-backdrop{position:fixed;inset:0;z-index:2000;background:#0c253bb9;display:grid;place-items:center;padding:20px;backdrop-filter:blur(5px)}
.norte-welcome-card{width:min(540px,100%);border-radius:23px;background:linear-gradient(145deg,#fff9fc,#fff);border:2px solid #e9bf78;box-shadow:0 24px 100px #0003;text-align:center;padding:32px 24px;color:#22394a}
.norte-welcome-symbol{display:grid;place-items:center;width:76px;height:76px;border-radius:22px;background:linear-gradient(130deg,#ffe9a7,#a9629b);color:#fff;font-size:40px;margin:0 auto 18px}
.norte-welcome-card h2{font-size:clamp(23px,4vw,35px);margin:10px 0;color:#304456}
.norte-welcome-card p{font-size:15px;line-height:1.65;max-width:430px;margin:8px auto 22px}
.norte-welcome-card button{padding:13px 20px;background:#1c4b62;color:white;border:0;border-radius:10px;font-size:14px;font-weight:700;cursor:pointer}

/* Ambientación integral sin cambiar la información ni el comportamiento de los módulos. */
.norte-themed body{background-image:linear-gradient(150deg,var(--norte-accent) 0%,#fbfaf6 58%,#fff 100%);background-attachment:fixed}
.norte-themed .app-top,.norte-themed .hub-top{border-bottom-color:var(--norte-light)!important}
.norte-themed body[data-norte-intensity="3"] .panel,
.norte-themed body[data-norte-intensity="3"] .stat,
.norte-themed body[data-norte-intensity="3"] .module-card,
.norte-themed body[data-norte-intensity="3"] .activity-card{border-top:3px solid var(--norte-light)!important;box-shadow:0 8px 25px #112c3f0a}
.norte-themed body[data-norte-intensity="3"] .app-main button.primary,
.norte-themed body[data-norte-intensity="3"] .app-main .button.primary{background:var(--norte-color)!important;color:#fff!important}
.norte-personal-day body .app-top,.norte-personal-day body .hub-top{box-shadow:inset 0 -3px 0 var(--norte-light)}
.norte-personal-day body .pagehead:after{content:'✦  ✷  ✦  ✷';position:absolute;right:15px;top:15px;font-size:18px;letter-spacing:15px;color:var(--norte-light);opacity:.65;pointer-events:none}

/* Ambientación ilustrada por temporada: motivos visibles, no solo cambio de color. */
.norte-decor{z-index:18}
.norte-motif{position:absolute;pointer-events:none;user-select:none}
.norte-papel-line{top:0;left:0;width:100%;height:76px;opacity:.94;background:repeating-linear-gradient(90deg,transparent 0 7px,#7b2c6b 7px 9px,transparent 9px 13.5%);clip-path:polygon(0 0,100% 0,100% 9%,0 9%);z-index:2}
.norte-papel-line:after{content:'';position:absolute;inset:8px 0 0;background:repeating-linear-gradient(90deg,#e85c50 0 42px,#f4bd48 42px 84px,#269b72 84px 126px,#5579c5 126px 168px,#a65caa 168px 210px);opacity:.9;clip-path:polygon(0 0,100% 0,100% 72%,96% 100%,92% 72%,88% 100%,84% 72%,80% 100%,76% 72%,72% 100%,68% 72%,64% 100%,60% 72%,56% 100%,52% 72%,48% 100%,44% 72%,40% 100%,36% 72%,32% 100%,28% 72%,24% 100%,20% 72%,16% 100%,12% 72%,8% 100%,4% 72%,0 100%)}
.norte-papel-line-two{top:auto;bottom:0;transform:scaleY(-1);opacity:.55}
.norte-papel-tricolor:after{background:repeating-linear-gradient(90deg,#16834b 0 42px,#fff 42px 84px,#c83d3d 84px 126px)}
.norte-cempasuchil{top:var(--y,12%);left:var(--x);font-size:clamp(28px,4vw,54px);color:#f28b16;text-shadow:0 0 8px #ffb52b88;opacity:.85;animation:norte-flower-sway 5s ease-in-out var(--delay) infinite alternate}
.norte-cempasuchil:nth-of-type(odd){top:76%}
.norte-calavera{top:13%;font-size:clamp(27px,4vw,48px);opacity:.75;filter:drop-shadow(0 3px 5px #0002)}
.norte-calavera:last-child{top:auto;bottom:12%}
.norte-garland{top:0;left:-2%;width:104%;height:68px;border-top:5px solid #1c7655;border-radius:0 0 50% 50%;transform:rotate(1deg);opacity:.95}
.norte-garland-two{top:8px;transform:rotate(-2deg);border-color:#b48a3e;opacity:.5}
.norte-ornament{top:12px;left:var(--x);width:18px;height:23px;border-radius:48% 48% 52% 52%;background:radial-gradient(circle at 30% 25%,#fff9,transparent 35%),linear-gradient(135deg,#d64b42,#8d1f28);box-shadow:0 2px 7px #0003;animation:norte-swing 3s ease-in-out var(--delay) infinite alternate}
.norte-ornament:before{content:'';position:absolute;width:7px;height:5px;border:1px solid #d7b76b;border-bottom:0;left:5px;top:-5px}
.norte-ornament:nth-of-type(3n){background:linear-gradient(135deg,#f7d77b,#a87525)}
.norte-snowflake{top:-8vh;left:var(--x);font-size:clamp(18px,2.5vw,34px);color:#a9d9f2;text-shadow:0 2px 5px #38799a55;opacity:.8;animation:norte-snow-fall var(--duration,18s) linear var(--delay) infinite}
.norte-heart,.norte-petal,.norte-autumn-leaf,.norte-confetti,.norte-generic{top:-8vh;left:var(--x);font-size:clamp(20px,3vw,35px);opacity:.58;animation:norte-snow-fall 18s linear var(--delay) infinite}
.norte-heart{color:#e77c9a}.norte-petal{color:#e9a3bc}.norte-autumn-leaf{filter:drop-shadow(0 2px 3px #0002)}.norte-confetti{color:#e7c15c}
@keyframes norte-snow-fall{from{transform:translate3d(0,-5vh,0) rotate(0)}to{transform:translate3d(35px,115vh,0) rotate(260deg)}}
@keyframes norte-flower-sway{from{transform:rotate(-12deg) scale(.92)}to{transform:rotate(12deg) scale(1.08)}}
@keyframes norte-swing{from{transform:rotate(-9deg)}to{transform:rotate(9deg)}}
.norte-palette-muertos .norte-celebration{background:linear-gradient(115deg,#fff3d9,#fff 58%,#ffe5b4);border-color:#e9a34d}
.norte-palette-christmas .norte-celebration{background:linear-gradient(115deg,#eaf7f0,#fff 55%,#f8e9d7);border-color:#c6a36b}
.norte-palette-valentine .norte-celebration{background:linear-gradient(115deg,#fff0f4,#fff 55%,#ffe2eb);border-color:#e9acbb}
.norte-palette-patriotic .norte-celebration{background:linear-gradient(115deg,#edf8ef,#fff 55%,#fff0ed);border-color:#c6a36b}
.norte-palette-muertos .norte-greeting-icon{background:#f2ab60;color:#613c79}
.norte-palette-christmas .norte-greeting-icon{background:#dfb56e;color:#175c52}
@media(prefers-reduced-motion:reduce){.norte-motif{animation:none!important}.norte-snowflake,.norte-heart,.norte-petal,.norte-autumn-leaf,.norte-confetti{display:none!important}}
@media(max-width:700px){.norte-papel-line{height:49px}.norte-garland{height:45px}.norte-calavera{font-size:25px}}


/* La temporada también se vive desde la pantalla de acceso, antes de iniciar sesión. */
.access-wrap>.norte-celebration{order:-1;position:relative;width:min(100%,1040px);max-width:1040px;margin:0 auto 22px;padding:0;border-radius:24px;overflow:hidden;box-shadow:0 18px 48px #122f4020;border:1px solid var(--norte-light);background:linear-gradient(120deg,var(--norte-accent),#fff 52%,color-mix(in srgb,var(--norte-light),#fff 78%));}
.access-wrap>.norte-celebration:after{content:'✦  ✿  ❄  ✦';position:absolute;right:22px;bottom:8px;font-size:clamp(25px,5vw,48px);letter-spacing:.18em;color:var(--norte-color);opacity:.16;pointer-events:none}
.access-wrap>.norte-celebration .norte-celebration-inner{padding:clamp(18px,3vw,30px);gap:18px}
.access-wrap>.norte-celebration .norte-greeting{padding:4px 0}
.access-wrap>.norte-celebration .norte-greeting h2{font-size:clamp(22px,3.4vw,34px)}
.access-wrap>.norte-celebration .norte-season-label{padding:12px 16px;border-radius:14px;background:#ffffffb8;border:1px solid color-mix(in srgb,var(--norte-light),#fff 35%);width:fit-content}
.access-wrap>.norte-celebration .norte-season-label>span{font-size:34px}
.norte-themed body[data-page="access"]{background-image:radial-gradient(ellipse at 12% 10%,var(--norte-accent),transparent 48%),linear-gradient(145deg,#f9faf8,#fff 55%,color-mix(in srgb,var(--norte-light),#fff 82%));background-attachment:fixed}
.norte-themed body[data-page="access"] .access-drawing{border-color:var(--norte-light);box-shadow:0 15px 38px #17394a18}
.norte-themed body[data-page="access"] .panel{border-top:4px solid var(--norte-light);box-shadow:0 15px 40px #17394a16}
.norte-themed body[data-page="access"] .access-wrap>.brand .mark{background:var(--norte-light);color:var(--norte-color)}
@media(max-width:680px){.access-wrap>.norte-celebration{margin:0 0 14px;border-radius:17px}.access-wrap>.norte-celebration .norte-celebration-inner{padding:15px}.access-wrap>.norte-celebration .norte-season-label{width:100%}}
