@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700;800;900&family=Nunito:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600;1,700;1,800&display=swap');
:root{--font-primary:'Helvetica Rounded','Helvetica Rounded LT Std','M PLUS Rounded 1c','Arial Rounded MT Bold','Nunito',system-ui,sans-serif;--font-secondary:'Proxima Soft','Nunito','Segoe UI',system-ui,sans-serif;--navy:#002858;--brand-navy:#00346D;--ink:#264456;--blue:#157fa4;--brand-blue:#0087AE;--teal:#00b5b5;--brand-cyan:#01C5C6;--green:#278b45;--lime:#80c43b;--coral:#ff6262;--gold:#e5aa00;--bg:#f6fafb;--cream:#fff9eb;--shadow:0 18px 45px rgba(0,40,88,.10)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font-secondary);font-size:16px;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}a{text-decoration:none;color:inherit}button,input,select{font:inherit}button{cursor:pointer}img{max-width:100%}.notice{background:#123e5f;color:#eaf9ff;font-size:12px;padding:8px 24px;text-align:center}.notice strong{color:#ffdf7b}.shell{max-width:1200px;margin:auto;padding:0 24px}.topbar{background:white;position:sticky;top:0;z-index:30;box-shadow:0 5px 25px rgba(0,40,88,.07)}.topbar .shell{display:flex;align-items:center;justify-content:space-between;min-height:75px;gap:22px}.brand{display:flex;align-items:center;gap:12px;white-space:nowrap}.brand-logo{width:56px;height:56px;background:white;border:2px solid #e8f8ec;border-radius:16px;display:grid;place-items:center;overflow:hidden;box-shadow:0 8px 20px rgba(0,40,88,.08)}.brand-logo img{width:100%;height:100%;object-fit:contain;padding:6px}.brand-txt{font-size:18px;font-weight:900;color:var(--navy);line-height:1}.brand-txt small{display:block;color:var(--teal);font-size:10px;letter-spacing:2px;margin-top:6px}.nav{display:flex;align-items:center;gap:6px}.nav a{padding:9px 11px;font-weight:800;font-size:13px;color:var(--ink);border-radius:10px}.nav a:hover,.nav a.active{background:#e9f6f3;color:var(--green)}.nav .nav-cta{background:var(--coral);color:white}.nav-toggle{display:none;background:#e6f3f6;border:0;border-radius:12px;padding:9px 12px;font-size:21px}.hero{position:relative;overflow:hidden;background:radial-gradient(circle at 82% 18%,#2a9c94,transparent 26%),linear-gradient(125deg,#003765,#096e82 66%,#227d56);color:white}.hero:after{content:'';position:absolute;bottom:-36px;left:-3%;right:-3%;height:82px;background:var(--bg);border-radius:50% 50% 0 0 / 100% 100% 0 0}.hero .shell{display:grid;grid-template-columns:1.1fr .9fr;align-items:center;min-height:515px;position:relative;z-index:1;padding-top:35px;padding-bottom:90px}.eyebrow{display:inline-flex;gap:8px;align-items:center;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.28);border-radius:50px;padding:8px 14px;font-size:12px;font-weight:900;letter-spacing:1px}.hero h1{font-size:clamp(40px,5.4vw,72px);line-height:1.04;margin:22px 0 17px;letter-spacing:-2px;font-weight:900}.hero h1 em{font-style:normal;color:#fbe185}.hero p{font-size:18px;line-height:1.65;max-width:560px;color:#eef9f9}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:27px}.btn{border:0;border-radius:14px;padding:13px 20px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:900;box-shadow:0 8px 20px rgba(0,40,88,.12)}.btn-primary{background:var(--coral);color:white}.btn-secondary{background:white;color:var(--navy)}.btn-green{background:var(--green);color:white}.btn-outline{background:transparent;color:var(--navy);border:2px solid #bad9df}.hero .btn-outline{color:white;border-color:#ffffff6f}.scene{height:390px;position:relative;isolation:isolate}.moon{width:110px;height:110px;border-radius:50%;background:#ffdd81;position:absolute;right:62px;top:26px;box-shadow:0 0 70px #fff3b75f}.hill{position:absolute;border-radius:50% 50% 0 0}.hill-back{width:490px;height:150px;bottom:16px;left:0;background:#67ae96}.hill-front{width:550px;height:120px;bottom:-10px;left:-40px;background:#32765d}.tree{position:absolute;bottom:45px;width:0;height:0;border-left:50px solid transparent;border-right:50px solid transparent;border-bottom:128px solid #065d46;filter:drop-shadow(0 10px 0 #0e543a)}.tree:after{content:'';position:absolute;left:-10px;top:118px;width:20px;height:30px;background:#874f3c}.tree.one{left:24px;transform:scale(.7)}.tree.two{right:5px;transform:scale(.85)}.tree.three{right:95px;bottom:20px;transform:scale(.45)}.gift{position:absolute;bottom:52px;left:175px;background:var(--coral);width:100px;height:92px;border-radius:9px;box-shadow:inset 0 -10px #e64e57;transform:rotate(-6deg);display:grid;place-items:center;font-size:58px}.santi-hero{position:absolute;right:20px;bottom:-8px;width:min(300px,55%);filter:drop-shadow(0 18px 20px rgba(0,0,0,.18));animation:float 4s ease-in-out infinite;z-index:3}.scene-bg{position:absolute;object-fit:cover;border-radius:26px;box-shadow:0 18px 40px rgba(0,0,0,.16)}.scene-bg.one{left:0;bottom:35px;width:48%;height:160px;z-index:1;border:4px solid rgba(255,255,255,.28)}.scene-bg.two{left:18%;bottom:0;width:38%;height:135px;z-index:2;border:4px solid rgba(255,255,255,.28)}.scene-logo{position:absolute;left:18px;top:18px;width:130px;background:rgba(255,255,255,.9);padding:8px;border-radius:20px;box-shadow:0 10px 30px rgba(0,40,88,.18)}.flag-badge{position:absolute;top:40px;right:34px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3);backdrop-filter:blur(8px);padding:10px 14px;border-radius:999px;font-weight:800;z-index:4}.snow{position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(#fff9 2px,transparent 3px),radial-gradient(#fff7 1px,transparent 3px);background-size:63px 70px,91px 95px;background-position:0 0,29px 47px;opacity:.5}@keyframes float{50%{transform:translateY(-8px)}}.section{padding:72px 0}.section.compact{padding:45px 0}.heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:30px}.kicker{text-transform:uppercase;letter-spacing:2px;color:var(--green);font-size:12px;font-weight:900;margin-bottom:9px}.heading h2,h2{font-size:clamp(27px,3vw,40px);color:var(--navy);line-height:1.2;letter-spacing:-.8px;margin:0}.heading p{color:#5c7081;margin:9px 0 0;max-width:660px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.grid.four{grid-template-columns:repeat(4,1fr)}.card{background:white;border:1px solid #e0edf0;border-radius:22px;padding:24px;box-shadow:0 8px 32px rgba(0,40,88,.045);transition:transform .2s,box-shadow .2s}.card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.card .emoji{font-size:35px;background:#eef8f5;width:60px;height:60px;display:grid;place-items:center;border-radius:18px;margin-bottom:18px}.card h3{margin:0 0 10px;font-size:19px;color:var(--navy)}.card p{font-size:14px;line-height:1.65;color:#627688;margin:0 0 17px}.link{font-weight:900;color:var(--green);font-size:14px}.pagehero{background:linear-gradient(105deg,#00335c,#0f7b87);color:white;padding:75px 0 83px;position:relative;overflow:hidden}.pagehero:after{content:'❄  ✦   ❄   ✧   ❄   ✦';position:absolute;right:0;top:25px;transform:rotate(-14deg);font-size:67px;color:#ffffff15;white-space:nowrap}.pagehero h1{font-size:clamp(34px,4.7vw,54px);letter-spacing:-1px;margin:10px 0}.pagehero p{max-width:700px;color:#d6f2f0;line-height:1.7}.crumb{font-size:12px;letter-spacing:1px;color:#a8e5d6;font-weight:900}.pill{display:inline-flex;align-items:center;border-radius:50px;padding:6px 12px;background:#e9f7f0;color:#237c52;font-size:12px;font-weight:900}.pill.gold{background:#fff1c9;color:#956400}.pill.coral{background:#fff0ed;color:#b84f4f}.split{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:44px}.feature{padding:35px;background:#fff;border:1px solid #e1ebed;border-radius:26px}.feature p{line-height:1.75;color:#607388}.timeline{display:grid;gap:0;position:relative;margin:25px 0 20px}.milestone{display:grid;grid-template-columns:90px 1fr;gap:20px;align-items:start;padding:0 0 30px}.milestone .bubble{background:#def4ed;border:3px solid white;box-shadow:0 0 0 2px #bdded2;color:var(--green);height:70px;width:70px;display:grid;place-items:center;border-radius:50%;font-size:28px}.milestone>div:last-child{border-left:3px solid #dce9ea;padding:4px 0 25px 25px}.milestone h3{color:var(--navy);margin:0 0 8px}.milestone p{margin:0;color:#6a7c89;line-height:1.7}.filters{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 26px}.filter{background:white;color:var(--ink);padding:9px 15px;border-radius:50px;border:1px solid #d5e4e5;font-size:13px;font-weight:900}.filter.active{background:var(--green);color:white;border-color:var(--green)}.status{margin-top:12px;display:inline-block}.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}.weekday{text-align:center;font-size:12px;font-weight:900;padding:9px;color:#4d6675}.day{background:white;min-height:105px;border:1px solid #dce9ec;border-radius:16px;padding:11px;text-align:left;color:var(--navy);font-weight:900;position:relative}.day.muted{opacity:.2;pointer-events:none}.day.today{outline:2px solid var(--green)}.day.has-event{background:#edfaf3;border-color:#9ed6b4}.day:hover{border-color:var(--teal)}.dot{display:block;margin-top:8px;color:#176e5b;font-size:10px;font-weight:800}.subnote{margin:20px 0;padding:14px 18px;background:#fff8e8;color:#85652d;border:1px solid #ffe4ab;border-radius:14px;font-size:13px}.detail{background:white;border:1px solid #d9e8ea;padding:22px;border-radius:20px;margin-top:20px;min-height:110px}.demo-tag{font-weight:900;background:#fff1ca;color:#8d6900;padding:4px 9px;border-radius:7px;font-size:11px;display:inline-block}.game-box{background:#fff;border-radius:23px;border:1px solid #dbe9e9;padding:32px;box-shadow:var(--shadow)}.game-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.bar{background:#e4eeee;border-radius:99px;overflow:hidden;height:9px;margin:20px 0}.bar>div{height:100%;background:var(--green);width:0;transition:width .3s}.options{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:22px}.answer{padding:17px;text-align:left;border-radius:13px;border:2px solid #e0e9ed;background:#f8fbfc;color:var(--navy);font-weight:800}.answer.correct{background:#e7f8ec;border-color:#42b675}.answer.incorrect{background:#fff1f0;border-color:#e87373}.answer:disabled{cursor:default}.quiz-feedback{padding:16px;border-radius:13px;background:#f0f8f3;margin:15px 0;line-height:1.55}.ornament-tree{display:grid;place-items:center;min-height:365px;background:radial-gradient(circle at center,#e2f4ea,#f6fafb 70%);border-radius:28px;position:relative}.tree-emoji{font-size:230px;line-height:1}.ornament{border:3px solid #fff;border-radius:50%;background:var(--coral);width:43px;height:43px;box-shadow:0 6px 12px #0002;position:absolute;color:white;font-size:20px}.ornament.o1{top:105px;left:43%}.ornament.o2{top:173px;left:56%;background:#e5aa00}.ornament.o3{top:244px;left:38%;background:#00b5b5}.footer{background:#002858;color:#d2e5ee;margin-top:50px;padding:45px 0 25px}.footer .shell{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:30px}.footer p,.footer a{color:#b6d2dc;font-size:13px;line-height:1.7}.footer a{display:block;margin:6px 0}.footer strong{color:white}.footer-bottom{border-top:1px solid #ffffff29;margin-top:25px;padding-top:18px;color:#8fb5c5;font-size:12px}.media-placeholder{height:195px;border-radius:15px;background:linear-gradient(135deg,#b2d9d1,#3d8d8f);display:grid;place-items:center;font-size:85px;overflow:hidden}.media-placeholder.orange{background:linear-gradient(135deg,#f9d9a0,#ec9b69)}.media-placeholder.blue{background:linear-gradient(135deg,#bbddf7,#5d9fcb)}.faqs{display:grid;gap:12px}.faqs details{background:white;border:1px solid #e0eaed;border-radius:15px;padding:18px}.faqs summary{font-weight:900;color:var(--navy);cursor:pointer}.faqs p{color:#627688;line-height:1.7}.badge-warning{padding:4px 9px;border-radius:6px;background:#fff1d5;color:#8f6808;font-weight:900;font-size:11px}.stat{font-size:35px;color:var(--navy);font-weight:900}.small{font-size:13px;color:#657888;line-height:1.6}.text-center{text-align:center}.intro{font-size:18px;line-height:1.75;color:#5d7586;max-width:900px}.checklist{padding:0;list-style:none}.checklist li{padding:12px 0;border-bottom:1px solid #e3ecee}.checklist li:before{content:'✦';color:var(--green);margin-right:12px}
.align-start{align-items:start}.feature-assets{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;background:linear-gradient(135deg,#eefaf7,#fff9ea)}.feature-mascot{width:min(100%,340px);max-height:300px;object-fit:contain}.asset-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.scene-card{background:white;border:1px solid #e1ebed;border-radius:22px;overflow:hidden;box-shadow:0 8px 32px rgba(0,40,88,.045)}.scene-card img{width:100%;height:180px;object-fit:cover;display:block}.scene-card-copy{padding:16px 18px;display:flex;flex-direction:column;gap:6px;color:#607388}.scene-card-copy strong{color:var(--navy)}.asset-hero-card{width:100%;border-radius:22px;object-fit:contain;background:#f3faf9;padding:12px}.asset-hero-card.small{max-width:260px;margin:auto}.asset-hero-card.center{display:block}.asset-mini{width:90px;height:90px;object-fit:contain;background:white;padding:10px;border-radius:18px;box-shadow:0 12px 25px rgba(0,40,88,.08);margin-bottom:12px}.asset-avatar{width:120px;height:120px;border-radius:22px}.reto-card,.game-card{padding:0;overflow:hidden}.reto-cover,.game-cover,.gallery-cover{width:100%;height:200px;object-fit:cover;display:block}.reto-body{padding:22px 24px 24px}.calendar-side{position:relative}.audio-player{width:100%;margin-top:12px}.tree-base-img{width:min(250px,72%);filter:drop-shadow(0 12px 16px rgba(0,0,0,.16))}.hero .scene .moon{z-index:0}.hero .scene{display:flex;align-items:flex-end;justify-content:flex-end}.hero .scene>*{pointer-events:none}.ornament{pointer-events:auto}.footer .shell:nth-child(1){align-items:start}@media(max-width:1020px){.nav{display:none;position:absolute;top:75px;left:0;right:0;background:#fff;padding:15px 22px 22px;box-shadow:0 20px 30px #00285820;flex-direction:column;align-items:stretch}.nav.open{display:flex}.nav-toggle{display:block}.hero .shell{grid-template-columns:1fr}.hero .scene{max-width:500px;width:100%;margin:0 auto}.grid.four{grid-template-columns:repeat(2,1fr)}.asset-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:710px){.shell{padding:0 17px}.hero .shell{padding-top:44px;padding-bottom:50px}.hero h1{font-size:43px}.hero p{font-size:16px}.scene{height:280px;transform:none}.scene-logo{width:100px;top:12px;left:12px}.scene-bg.one{width:58%;height:120px}.scene-bg.two{left:12%;width:45%;height:110px}.santi-hero{width:56%;right:0}.hero:after{display:none}.section{padding:48px 0}.grid,.grid.four,.split,.asset-grid{grid-template-columns:1fr}.heading{display:block}.calendar{gap:4px}.day{min-height:71px;padding:6px;border-radius:9px;font-size:12px}.weekday{padding:4px;font-size:10px}.dot{font-size:9px;line-height:1.1}.options{grid-template-columns:1fr}.footer .shell{grid-template-columns:1fr}.pagehero{padding:48px 0}.game-box{padding:20px}.brand-txt{font-size:15px}.brand-logo{width:48px;height:48px}.asset-mini{width:78px;height:78px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}

/* Ajustes de presentación: conservar completos logo, personajes e insignias. */
[hidden] { display: none !important; }
button, a, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #157fa4; outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 14px 20px; background: white; color: var(--navy); border-radius: 12px; }
.skip-link:focus { top: 12px; }
.topbar .shell { max-width: 1360px; gap: 24px; min-height: 126px; }
.brand { flex-shrink: 0; gap: 16px; }
.brand-logo { width: 158px; height: 112px; background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.brand-logo img { padding: 0; display: block; }
.brand-txt { font-size: 16px; line-height: 1.25; }
.brand-txt small { color: #216e39; font-size: 11px; letter-spacing: 1px; }
.nav { justify-content: flex-end; flex-wrap: wrap; gap: 2px; }
.nav a { padding: 10px 9px; }
.nav-toggle { flex-shrink: 0; min-width: 48px; min-height: 48px; }
.footer-logo { display: block; width: 190px; height: 135px; object-fit: contain; background: white; padding: 8px; border-radius: 20px; margin-bottom: 18px; }
.footer .shell:last-child { display: block; }
.footer-bottom { width: 100%; }
.hero .shell { grid-template-columns: 1fr 1fr; gap: 36px; padding-top: 46px; padding-bottom: 84px; }
.hero h1 { font-size: clamp(40px, 4.4vw, 64px); }
.hero .scene { display: grid; grid-template-columns: 44% 56%; grid-template-rows: 190px 175px 38px; grid-template-areas: 'logo santi' 'worlds santi' 'badge badge'; height: auto; gap: 14px 0; align-items: center; justify-content: normal; }
.scene-logo { grid-area: logo; position: static; width: 100%; max-height: 185px; object-fit: contain; padding: 12px; background: #fff; border-radius: 24px; z-index: 2; }
.santi-hero { grid-area: santi; position: static; width: 100%; height: 365px; object-fit: contain; align-self: end; z-index: 1; }
.scene-worlds { grid-area: worlds; display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.scene-worlds img { width: calc(50% - 6px); height: 140px; object-fit: contain; filter: drop-shadow(0 8px 10px #00285850); }
.flag-badge { grid-area: badge; position: static; justify-self: center; padding: 9px 20px; font-size: 14px; }
.moon { width: 180px; height: 180px; right: 10%; top: 30px; opacity: .32; }
.hero-game-link { width: 100%; font-weight: 800; color: white; text-decoration: underline; text-underline-offset: 5px; padding: 8px 0; }
.btn-primary { color: var(--navy); }
.btn-green, .filter.active { background: #216e39; }
.kicker { color: #216e39; }
.scene-card img, .reto-cover, .gallery-cover, .game-cover { object-fit: contain; background: linear-gradient(145deg, #edf6fa, #f1f8ef); padding: 18px; height: 230px; }
.scene-card img { height: 200px; }
.game-cover { height: 250px; padding: 24px; }
.game-card { display: flex; flex-direction: column; }
.game-card-body { padding: 24px; display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.game-card-body .btn { margin-top: auto; }
.card p { font-size: 16px; }
.card .small { font-size: 14px; }
.scene-card-copy span { font-size: 14px; line-height: 1.6; }
.asset-hero-card:not(.small) { max-height: 380px; display: block; margin: auto; }
.asset-mini:not(.asset-avatar) { width: 180px; height: 130px; padding: 8px; }
.day { min-width: 0; }
.day[aria-pressed='true'] { outline: 3px solid var(--blue); outline-offset: 1px; }
.dot { overflow-wrap: anywhere; }
.calendar-side { padding: 28px; }
.experience-tree { position: relative; width: 270px; height: 310px; }
.experience-tree::before { content: ''; position: absolute; inset: 15px 0 25px; background: linear-gradient(120deg, #278b45, #065d46); clip-path: polygon(50% 0, 78% 34%, 65% 34%, 91% 67%, 74% 67%, 100% 100%, 0 100%, 26% 67%, 9% 67%, 35% 34%, 22% 34%); }
.experience-tree::after { content: ''; position: absolute; bottom: 0; height: 25px; width: 34px; left: calc(50% - 17px); background: #874f3c; border-radius: 0 0 6px 6px; }
.experience-tree span { position: absolute; top: -10px; left: calc(50% - 21px); font-size: 42px; color: #c08a00; z-index: 1; }
.ornament { width: 48px; height: 48px; }
.story-list { padding: 18px; background: white; border: 1px solid #d9e8ea; border-radius: 14px; line-height: 1.7; }
.story-list summary { cursor: pointer; font-weight: 800; }

/* Juegos de demostración, con controles táctiles y de teclado. */
.game-section { padding-top: 38px; }
.game-shell { max-width: 1200px; }
.game-intro { margin-bottom: 30px; }
.game-back { display: block; width: fit-content; margin-bottom: 20px; color: #216e39; font-weight: 900; text-decoration: underline; text-underline-offset: 4px; }
.game-intro h1 { font-size: clamp(30px, 4vw, 48px); color: var(--navy); line-height: 1.15; margin: 16px 0; letter-spacing: -1px; }
.game-intro p { color: #4c6576; max-width: 760px; line-height: 1.7; }
.game-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.game-guide { padding: 24px; background: #eaf5ef; border: 1px solid #cfe5d7; border-radius: 24px; }
.game-guide h2 { font-size: 24px; }
.game-guide p, .game-guide li { line-height: 1.65; font-size: 15px; }
.game-guide ol, .game-guide ul { padding-left: 20px; }
.game-guide li { margin-bottom: 10px; }
.game-guide summary { cursor: pointer; font-weight: 800; font-size: 14px; }
.game-guide dt { font-weight: 900; margin-top: 14px; }
.game-guide dd { margin: 4px 0 0; font-size: 14px; line-height: 1.6; }
.game-mascot { display: block; width: 100%; height: 180px; object-fit: contain; margin: 0 auto 18px; }
.game-toolbar { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.game-metrics { display: flex; flex-wrap: wrap; gap: 24px; color: #4c6576; font-size: 14px; }
.game-metrics strong { display: block; font-size: 25px; color: var(--navy); }
.game-message { padding: 14px 16px; border-radius: 12px; background: #edf5f9; color: #264456; line-height: 1.6; min-height: 76px; margin: 20px 0; }
.memory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.memory-card { min-height: 135px; padding: 12px 10px; color: white; background: linear-gradient(135deg, #002858, #157fa4); border: 2px solid #157fa4; border-radius: 14px; font-size: 30px; font-weight: 800; line-height: 1.45; overflow-wrap: anywhere; }
.memory-card.revealed { background: #fff9eb; border-color: #bd8800; color: var(--navy); font-size: 14px; }
.memory-card.matched { background: #e8f6ed; border-color: #278b45; color: #175f30; }
.memory-card.matched::after { content: ' ✓'; }
.race-world { display: block; width: 100%; height: 170px; object-fit: contain; margin: 0 auto 20px; }
.game-guide label { display: block; font-weight: 900; margin-top: 20px; }
.game-guide select { width: 100%; min-height: 48px; margin-top: 8px; border: 1px solid #819ba4; border-radius: 10px; padding: 10px; background: white; color: var(--navy); }
.race-box { padding: 24px; }
.race-metrics { justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.race-track { position: relative; isolation: isolate; width: 100%; height: 400px; overflow: hidden; background: linear-gradient(#b5e0f2, #edf9fc 55%, #c6ded4); border: 2px solid #bfd5df; border-radius: 20px; }
.race-lanes { position: absolute; inset: 0 6%; display: grid; grid-template-columns: repeat(3, 1fr); background: #264456; border-inline: 5px solid #dbeef0; transform: perspective(700px) rotateX(8deg); }
.race-lanes i + i { border-left: 3px dashed #e6f2f17a; }
.race-scenery { position: absolute; inset: 0; color: white; font-size: 40px; padding: 18px 2px; }
.race-scenery span { position: absolute; right: 0; bottom: 30px; }
.race-player { position: absolute; left: 50%; top: 78%; width: 76px; height: 82px; object-fit: contain; transform: translate(-50%, -25%); z-index: 3; filter: drop-shadow(0 6px 6px #0006); }
.race-item { position: absolute; font-size: 36px; line-height: 1; transform: translate(-50%, 0); }
.race-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; background: #002858df; color: white; z-index: 4; text-align: center; padding: 30px; }
.race-overlay strong { font-size: 28px; line-height: 1.25; }
.race-overlay span { max-width: 340px; line-height: 1.6; }
.race-actions, .race-steering { display: flex; gap: 12px; margin-bottom: 12px; }
.race-actions > *, .race-steering > * { flex: 1; min-height: 48px; }
button:disabled { cursor: default; opacity: .6; box-shadow: none; }
.race-box .game-message { min-height: 0; margin: 14px 0; }
.game-top { flex-wrap: wrap; }
.game-layout .game-box { min-width: 0; }

@media (max-width: 1200px) {
  .nav { display: none; top: 100%; padding: 16px 24px 24px; flex-direction: column; flex-wrap: nowrap; align-items: stretch; max-height: 70vh; overflow-y: auto; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .nav a { font-size: 16px; padding: 12px; }
  .topbar .shell { min-height: 112px; }
  .brand-logo { width: 146px; height: 102px; }
}
@media (max-width: 1020px) {
  .hero .shell { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero .scene { grid-template-rows: 150px 135px 38px; }
  .scene-logo { max-height: 150px; }
  .santi-hero { height: 285px; }
  .scene-worlds img { height: 100px; }
  .game-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
  .game-guide { padding: 20px; }
  .memory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .memory-card { min-height: 145px; }
  .game-box { padding: 24px; }
  .race-metrics strong { font-size: 22px; }
}
@media (max-width: 710px) {
  .topbar .shell { min-height: 94px; gap: 12px; }
  .brand { gap: 10px; }
  .brand-logo { width: 120px; height: 86px; }
  .brand-txt { font-size: 14px; }
  .brand-txt small { font-size: 10px; }
  .notice { padding: 9px 17px; font-size: 12px; line-height: 1.6; }
  .hero .shell { grid-template-columns: 1fr; padding-top: 36px; gap: 22px; }
  .hero h1 { font-size: clamp(36px, 9vw, 48px); }
  .hero .scene { width: 100%; max-width: 440px; margin: auto; grid-template-rows: 155px 135px 38px; }
  .scene-logo { max-height: 155px; }
  .santi-hero { height: 290px; width: 100%; }
  .scene-worlds img { height: 105px; }
  .hero .actions .btn { flex: 1 1 auto; }
  .scene-card img, .reto-cover, .gallery-cover { height: 245px; }
  .asset-hero-card:not(.small) { max-height: 310px; }
  .game-cover { height: 250px; }
  .calendar { gap: 5px; }
  .day { min-height: 77px; padding: 5px; font-size: 14px; }
  .weekday { font-size: 12px; }
  .dot { font-size: 10px; }
  .calendar-side { padding: 22px; }
  .game-layout { grid-template-columns: 1fr; }
  .game-guide { display: block; }
  .game-mascot, .race-world { float: right; width: 100px; height: 100px; margin: 0 0 12px 16px; }
  .game-guide::after { content: ''; display: block; clear: both; }
  .game-guide h2 { font-size: 24px; }
  .game-box { padding: 18px; }
  .memory-grid { gap: 8px; }
  .memory-card { min-height: 145px; padding: 10px 7px; }
  .memory-card.revealed { font-size: 13px; }
  .game-intro .demo-tag { font-size: 12px; line-height: 1.6; }
  .race-track { height: 370px; }
  .race-metrics { font-size: 12px; }
  .race-metrics strong { font-size: 22px; }
  .race-player { width: 66px; height: 72px; }
  .race-item { font-size: 30px; }
  .race-actions .btn, .race-steering .btn { padding: 12px 8px; font-size: 14px; }
}
@media (max-width: 380px) {
  .brand-logo { width: 106px; height: 80px; }
  .brand-txt { font-size: 12px; }
  .brand-txt small { letter-spacing: 0; }
  .memory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Navidad interactiva: ilustraciones de demo, nieve y música compartida. */
body { padding-bottom: 112px; }
html { scroll-padding-top: 150px; }
.christmas-garland { position: absolute; left: 0; right: 0; bottom: -9px; height: 18px; display: flex; justify-content: space-around; border-top: 2px solid #23583d; pointer-events: none; z-index: 1; }
.christmas-garland span { position: relative; top: -1px; width: 9px; height: 14px; border-radius: 40% 40% 50% 50%; background: #e7b63e; box-shadow: 0 3px 12px #e7b63e85; }
.christmas-garland span::before { content: ''; position: absolute; left: 2px; right: 2px; top: -3px; height: 4px; background: #23583d; }
.christmas-garland span:nth-child(3n) { background: #ff6262; box-shadow: 0 3px 12px #ff626280; }
.christmas-garland span:nth-child(3n + 1) { background: #55c596; box-shadow: 0 3px 12px #55c59680; }
.hero { background: #002858; }
.christmas-panorama { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #002858f0 10%, #002858da 36%, #00285878 68%, #00285852); }
.hero .shell { z-index: 2; padding-top: 60px; padding-bottom: 100px; }
.hero::after { z-index: 3; pointer-events: none; }
.hero-christmas-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-christmas-actions a, .hero-christmas-actions button { padding: 11px 14px; color: #fff1bb; font-weight: 800; border: 1px solid #ffffff55; background: #00285880; border-radius: 12px; font-size: 14px; }
.hero-christmas-actions a:hover, .hero-christmas-actions button:hover { background: #ffffff20; }
.pagehero { background: linear-gradient(90deg, #002858f5, #002858b8), url('public/assets/navidad-demo/villa-navidad.png') center 60% / cover; }
.falling-snow { position: fixed; inset: 0; z-index: 50; pointer-events: none; overflow: hidden; display: none; }
.snow-enabled .falling-snow { display: block; }
.falling-snow i { position: absolute; top: -20px; left: var(--left); width: var(--size); height: var(--size); border-radius: 50%; background: #f5fcff; opacity: .68; box-shadow: 0 0 3px #88c0df; animation: christmas-snowfall var(--duration) var(--delay) linear infinite; }
.snow-paused .falling-snow i { animation-play-state: paused; }
@keyframes christmas-snowfall { from { transform: translate3d(0, -20px, 0); } to { transform: translate3d(var(--drift), calc(100vh + 40px), 0); } }
.festive-dock { position: fixed; z-index: 70; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(960px, calc(100% - 32px)); display: grid; grid-template-columns: minmax(180px, 1fr) auto auto auto; gap: 16px; align-items: center; padding: 14px 18px; color: var(--navy); background: #fffffff5; backdrop-filter: blur(12px); border: 1px solid #c4d8de; border-radius: 20px; box-shadow: 0 10px 45px #00285830; }
.music-label { display: flex; align-items: center; gap: 10px; min-width: 0; }
.music-label > div { min-width: 0; }
.music-label strong { display: block; font-size: 14px; }
.music-label #music-status { display: block; color: #5a7081; font-size: 12px; line-height: 1.4; margin-top: 3px; }
.music-note { flex-shrink: 0; display: grid; place-items: center; width: 38px; height: 38px; font-size: 26px; border-radius: 50%; color: #216e39; background: #e7f4eb; }
.music-playing .music-note { color: #fff; background: #216e39; }
.music-toggle { background: #002858; color: white; border: 0; padding: 13px 16px; border-radius: 12px; min-height: 46px; font-weight: 800; font-size: 14px; }
.music-toggle:hover { background: #157fa4; }
.music-volume { display: flex; align-items: center; gap: 7px; }
.music-volume button { flex-shrink: 0; width: 38px; min-height: 42px; border-radius: 10px; border: 1px solid #d5e5e9; background: white; color: var(--navy); font-size: 25px; }
.music-volume label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.music-volume input { width: 95px; min-width: 60px; height: 38px; accent-color: #216e39; cursor: pointer; }
.music-volume output { width: 34px; color: #4c6576; font-size: 12px; }
.snow-toggle { min-height: 44px; border: 1px solid #a9cbd8; background: #e6f2f8; color: var(--navy); border-radius: 11px; padding: 9px 12px; font-size: 13px; font-weight: 800; }
.snow-toggle[aria-pressed='false'] { background: white; color: #5a7081; }

.christmas-tree-section { position: relative; overflow: hidden; background: radial-gradient(ellipse at 80% 48%, #1d645c66, transparent 47%), linear-gradient(120deg, #062d3c, #073c42); color: #e6f3f1; padding: 76px 0; }
.christmas-tree-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.tree-intro .kicker { color: #eaca84; letter-spacing: 1.5px; }
.tree-intro h2 { color: white; font-size: clamp(34px, 4vw, 48px); margin: 14px 0 20px; line-height: 1.12; }
.tree-intro > p { font-size: 16px; line-height: 1.75; color: #cfdfdf; max-width: 490px; }
.tree-palette { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 18px; }
.tree-swatch { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 12px; font-size: 14px; color: white; border: 1px solid #ffffff45; border-radius: 12px; background: #ffffff08; }
.tree-swatch[aria-pressed='true'] { border-color: #f8d98d; box-shadow: 0 0 0 2px #f8d98d44; background: #ffffff12; }
.tree-swatch span { width: 16px; height: 16px; border-radius: 50%; background: #ff6262; box-shadow: inset 0 2px 2px #ffffff85; }
.tree-swatch.gold span { background: #e7b63e; }
.tree-swatch.teal span { background: #00b5b5; }
.tree-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.tree-buttons .btn { font-size: 14px; }
.tree-reset { color: white; border: 1px solid #ffffff55; background: transparent; box-shadow: none; }
.tree-intro .tree-progress { color: #f1d794; margin: 20px 0 16px; font-size: 14px; }
.tree-message { color: #163c49; background: #f6fbf8; border: 1px solid #ffffff; border-radius: 18px; padding: 20px 24px; min-height: 170px; }
.tree-message .demo-tag { font-size: 11px; }
.tree-message h3 { color: var(--navy); font-size: 20px; line-height: 1.4; margin: 10px 0 8px; }
.tree-message p { color: #4b6570; margin: 0; line-height: 1.65; font-size: 15px; }
.gift-surprise { display: flex; gap: 12px; align-items: center; color: #fbe4ac; font-size: 15px; font-weight: 800; padding: 14px 0; background: transparent; border: 0; text-align: left; }
.gift-surprise > span:first-child { font-size: 32px; }
.gift-surprise small { display: block; font-size: 12px; color: #bdd4d3; margin-top: 3px; font-weight: 500; }
.tree-intro .tree-greeting { padding: 16px 20px; background: #ffffff10; border: 1px solid #c7a751; border-radius: 14px; color: #fff0c9; margin: 0 0 14px; font-size: 15px; }
.tree-more { display: inline-block; padding: 8px 0; color: #e3eedd; text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }
.tree-readable { color: #d7e9e5; font-size: 13px; margin-top: 12px; line-height: 1.75; }
.tree-readable summary { cursor: pointer; }
.tree-readable ul { padding-left: 20px; }
.tree-readable li { margin: 8px 0; }
.tree-intro .tree-disclaimer { color: #b7cfcc; font-size: 13px; }
.tree-scene { position: relative; width: 100%; min-width: 0; align-self: center; text-align: center; }
.tree-halo { position: absolute; inset: 8% -12% 12%; background: radial-gradient(ellipse, #d3bb5429, transparent 67%); pointer-events: none; }
.interactive-tree { position: relative; width: 100%; max-width: 450px; aspect-ratio: 3 / 4; margin: auto; z-index: 1; }
.christmas-tree-image { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 24px #001c2860); }
.tree-ground { position: absolute; left: 8%; right: 8%; bottom: 44px; height: 42px; border-radius: 50%; background: radial-gradient(ellipse, #e8f9f042, transparent 70%); }
.interactive-star { position: absolute; top: 7.7%; left: 50%; transform: translate(-50%, -50%); width: 78px; height: 78px; border-radius: 50%; padding: 0; border: 0; background: transparent; z-index: 4; color: #fff1a7; }
.interactive-star span { display: block; font-size: 58px; line-height: 1; opacity: 0; text-shadow: 0 0 12px #fff2b4, 0 0 40px #ffcf5c; transition: opacity .4s; }
.interactive-star:hover { box-shadow: 0 0 30px #ffcf5c55; }
.star-on .interactive-star span { opacity: .85; }
.star-on .christmas-tree-image { filter: drop-shadow(0 0 26px #ffd57733) drop-shadow(0 16px 24px #001c2860); }
.tree-bauble { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 46px; height: 46px; border: 1px dashed #fff5c5cc; background: #d4e9e249; box-shadow: 0 3px 12px #00285840; border-radius: 50%; padding: 0; color: white; display: grid; place-items: center; font-size: 26px; z-index: 3; transition: transform .2s, background .2s; }
.tree-bauble::before { content: ''; position: absolute; top: -6px; left: calc(50% - 6px); width: 12px; height: 7px; background: #e4c075; border-radius: 3px 3px 0 0; }
.tree-bauble.decorated { border: 1px solid #ffdd9870; box-shadow: inset -4px -5px 8px #0003, 0 4px 14px #00162580; color: #fff2c4; font-size: 20px; }
.tree-bauble.coral { background: radial-gradient(circle at 32% 25%, #ffbbb1, #ed4d58 52%, #ad1d35); }
.tree-bauble.gold { background: radial-gradient(circle at 32% 25%, #fff5bb, #e6ab24 52%, #a06b00); color: #5d3b00; }
.tree-bauble.teal { background: radial-gradient(circle at 32% 25%, #9ce5dc, #00a49f 52%, #00716d); }
.tree-bauble:hover { transform: translate(-50%, -50%) scale(1.12); }
.tree-sparkles { position: absolute; inset: 13% 0; color: #ffe6a0; font-size: 40px; opacity: 0; pointer-events: none; }
.tree-sparkles span { position: absolute; right: 2%; bottom: 30%; font-size: 26px; }
.star-on .tree-sparkles { opacity: .8; }
.tree-touch-hint { position: relative; color: #f4dca2; font-size: 14px; margin: 12px 0 8px; z-index: 1; }
.illustration-note { color: #a1c0bc; font-size: 11px; }

@media (max-width: 1020px) {
  .christmas-tree-layout { gap: 28px; }
  .tree-bauble { width: 42px; height: 42px; }
  .festive-dock { grid-template-columns: minmax(160px, 1fr) auto auto; gap: 12px; }
  .music-volume { grid-column: 2; grid-row: 2; margin-top: -6px; }
  .music-label { grid-row: 1 / span 2; }
  .music-toggle { grid-column: 2; }
  .snow-toggle { grid-column: 3; grid-row: 1 / span 2; }
  body { padding-bottom: 145px; }
}
@media (max-width: 710px) {
  html { scroll-padding-top: 116px; }
  .christmas-panorama { top: auto; height: 46%; object-position: 80% bottom; }
  .hero::before { background: linear-gradient(#002858 0%, #002858eb 52%, #00285833); }
  .hero .shell { padding-top: 42px; padding-bottom: 70px; }
  .hero-christmas-actions { gap: 8px; }
  .hero-christmas-actions a, .hero-christmas-actions button { font-size: 13px; padding: 10px 12px; }
  .christmas-garland span { width: 7px; height: 11px; }
  .christmas-tree-section { padding: 45px 0; }
  .christmas-tree-layout { grid-template-columns: 1fr; gap: 20px; }
  .tree-intro .kicker { margin: 0; }
  .tree-intro h2 { margin: 0; font-size: 36px; }
  .tree-intro > p:not([class]) { margin: 0; }
  .tree-palette { margin: 0; gap: 8px; }
  .tree-swatch { flex: 1; justify-content: center; padding: 10px 8px; font-size: 13px; }
  .tree-buttons .btn { flex: 1; padding: 12px 10px; font-size: 13px; }
  .tree-intro .tree-progress { margin: 0; }
  .interactive-tree { max-width: 360px; }
  .interactive-star { width: 60px; height: 60px; }
  .interactive-star span { font-size: 45px; }
  .tree-message { min-height: 160px; padding: 18px 20px; }
  .gift-surprise { padding: 0; }
  .tree-intro .tree-greeting { margin: 0; }
  .tree-more, .tree-intro .tree-disclaimer { margin: 0; }
  .tree-readable { margin: 0; }
  .festive-dock { width: calc(100% - 24px); bottom: 10px; padding: 12px; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; border-radius: 17px; }
  .music-label { grid-row: 1; grid-column: 1; gap: 7px; }
  .music-note { width: 26px; height: 32px; background: transparent; font-size: 22px; }
  .music-label strong { font-size: 12px; line-height: 1.4; }
  .music-label #music-status { font-size: 11px; }
  .music-toggle { grid-column: 2; grid-row: 1; font-size: 12px; padding: 11px 10px; min-width: 125px; }
  .music-volume { grid-column: 1; grid-row: 2; margin: 0; gap: 6px; }
  .music-volume input { width: 100%; min-width: 30px; }
  .music-volume output { flex-shrink: 0; width: 30px; font-size: 11px; }
  .music-volume button { width: 32px; min-height: 36px; font-size: 23px; }
  .snow-toggle { grid-column: 2; grid-row: 2; justify-self: stretch; min-height: 36px; padding: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .falling-snow { display: none !important; }
}
@media print {
  .festive-dock, .falling-snow, .christmas-garland { display: none !important; }
  body { padding-bottom: 0; }
}

/* Revisión: cabecera azul con vidrio, árbol de mensajes y recorrido de Santi. */
.notice { background: #03264c; color: #dbe9f7; border-bottom: 1px solid #ffffff12; }
.topbar { background: #042952ed; border-bottom: 1px solid #ffffff20; box-shadow: 0 8px 28px #001a3d30; backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.brand-txt { color: white; }
.brand-txt small { color: #c3ddd9; }
.brand-logo { padding: 7px; background: #ffffffd9; border: 1px solid #ffffff7a; border-radius: 17px; }
.nav { gap: 7px; }
.nav a { color: #e8f2ff; background: #ffffff09; border: 1px solid #ffffff24; border-radius: 12px; padding: 11px 12px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .2s, border-color .2s; }
.nav a:hover { color: white; background: #ffffff22; border-color: #ffffff65; }
.nav a.active { color: #fff2bd; background: linear-gradient(135deg, #ffffff26, #ffffff0e); border-color: #e4c57685; box-shadow: inset 0 1px #ffffff24, 0 4px 18px #001b3a33; }
.nav-toggle { color: white; background: #ffffff16; border: 1px solid #ffffff40; }
.hero::after { display: none; }
.hero .shell { padding-bottom: 72px; }
.christmas-tree-section { background: radial-gradient(ellipse at 78% 40%, #157fa433, transparent 58%), linear-gradient(125deg, #032c54, #063958); }
.christmas-tree-layout { grid-template-columns: 1fr 1.05fr; gap: 56px; }
.tree-intro > p { max-width: 455px; }
.tree-message { min-height: 210px; margin: 28px 0 20px; color: white; background: linear-gradient(135deg, #ffffff12, #ffffff06); border: 1px solid #ffffff30; box-shadow: inset 0 1px #ffffff14, 0 16px 38px #00182c26; backdrop-filter: blur(12px); }
.tree-message h3 { color: #fff1bc; font-size: 24px; margin: 16px 0 12px; }
.tree-message p { color: #d7e8ef; font-size: 16px; }
.tree-message .demo-tag { color: #ffe8ad; background: #e4c57617; border: 1px solid #e4c57640; }
.tree-options { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 15px; }
.tree-options .btn { font-size: 14px; padding: 12px 15px; }
.tree-scene { min-height: 0; }
.interactive-tree { max-width: 430px; margin-left: 0; margin-right: auto; }
.santi-decorator { position: absolute; right: -4px; bottom: 86px; width: 210px; height: auto; z-index: 2; pointer-events: none; transform-origin: 65% 100%; animation: santi-place-ornament 6s ease-in-out infinite; filter: drop-shadow(0 10px 14px #001b3b55); }
.tree-bauble { animation: ornament-sway var(--sway-duration, 5s) var(--sway-delay, 0s) ease-in-out infinite; transform-origin: 50% -18px; }
.tree-bauble.selected { outline: 3px solid #fff0a3; outline-offset: 4px; box-shadow: 0 0 26px #ffd87577; }
.tree-bauble:hover, .tree-bauble:focus-visible { animation-play-state: paused; }
.tree-motion-paused .tree-bauble, .tree-motion-paused .santi-decorator { animation-play-state: paused; }
.eternal-star { pointer-events: none; }
.eternal-star span { opacity: 1; animation: christmas-star-glow 4s ease-in-out infinite alternate; }
.eternal-star::before { content: ''; position: absolute; inset: -12px; background: radial-gradient(circle, #fff2b877, #ffcf5c16 45%, transparent 72%); border-radius: 50%; z-index: -1; }
.tree-touch-hint { min-height: 46px; max-width: 450px; margin: 12px auto 5px; font-size: 14px; line-height: 1.6; }
@keyframes ornament-sway { 0%, 100% { transform: translate(-50%, -50%) rotate(-5deg); } 50% { transform: translate(-50%, -50%) rotate(5deg); } }
@keyframes christmas-star-glow { from { filter: drop-shadow(0 0 5px #ffda78); text-shadow: 0 0 14px #fff2b4, 0 0 28px #ffd77a; } to { filter: drop-shadow(0 0 13px #ffda78); text-shadow: 0 0 20px #fff9d2, 0 0 52px #ffd77a; } }
@keyframes santi-place-ornament { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-2deg); } }

.festive-dock { left: auto; right: 18px; bottom: 16px; transform: none; width: 328px; grid-template-columns: minmax(0, 1fr) 42px 34px; gap: 9px; padding: 12px; border-radius: 19px; color: white; background: #042952ed; border: 1px solid #ffffff3d; box-shadow: 0 8px 34px #00142d45; }
.music-label { grid-row: 1; grid-column: 1; gap: 8px; }
.music-label strong { font-size: 12px; color: #f0f7ff; }
.music-label #music-status { color: #c4d4e6; font-size: 11px; }
.music-note { width: 28px; height: 34px; font-size: 24px; color: #ffe7a2; background: transparent; }
.music-playing .music-note { background: transparent; color: #ffe7a2; }
.music-toggle.music-compact { grid-row: 1; grid-column: 2; width: 42px; min-width: 42px; min-height: 42px; padding: 8px; color: #03264c; background: #ffe9ac; border: 1px solid #ffedbc; font-size: 19px; }
.music-settings-toggle { grid-row: 1; grid-column: 3; width: 34px; min-height: 42px; padding: 4px; border: 1px solid #ffffff30; border-radius: 11px; color: white; background: #ffffff0d; font-size: 22px; }
.music-settings-toggle[aria-expanded='true'] { background: #ffffff25; }
.music-settings-panel { grid-row: 2; grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; border-top: 1px solid #ffffff20; padding-top: 10px; }
.music-volume { display: flex; margin: 0; flex: 1; min-width: 0; }
.music-volume input { width: 100%; min-width: 40px; accent-color: #ffdc83; }
.music-volume button { background: #ffffff0d; color: white; border-color: #ffffff30; width: 34px; min-height: 36px; }
.music-volume output { color: #d4e2f1; }
.snow-toggle { min-height: 36px; padding: 8px 10px; background: #ffffff12; border-color: #ffffff36; color: white; }
.snow-toggle[aria-pressed='false'] { color: #d4e2f1; background: transparent; }

.story-page { background: radial-gradient(ellipse at 20% 45%, #157fa430, transparent 60%), #032c54; color: #d9e7f5; padding-top: 52px; }
.story-heading { max-width: 810px; margin-bottom: 34px; }
.story-heading .kicker { color: #efce8d; }
.story-heading h1 { color: white; font-size: clamp(32px, 4vw, 50px); line-height: 1.15; margin: 14px 0; letter-spacing: -1px; }
.story-heading p { color: #c2d8e9; line-height: 1.7; max-width: 720px; }
.story-roadmap-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: stretch; }
.roadmap-card { min-width: 0; border: 1px solid #ffffff30; border-radius: 26px; background: #ffffff06; overflow: hidden; padding-bottom: 18px; text-align: center; }
.roadmap-stage { position: relative; isolation: isolate; height: 440px; overflow: hidden; }
.roadmap-landscape { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 63% bottom; opacity: .55; }
.roadmap-stage::before { content: ''; position: absolute; inset: 0; background: linear-gradient(#032c54aa, #032c5433); z-index: 1; }
.roadmap-route { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; overflow: visible; }
.roadmap-route path { fill: none; stroke-linecap: round; }
.roadmap-snow-track { stroke: #e4f2ffbd; stroke-width: 22; }
.roadmap-gold-track { stroke: #b2853b; stroke-width: 3; stroke-dasharray: 8 12; }
.roadmap-traveler { position: absolute; transform: translate(-50%, -100%); width: 175px; z-index: 3; pointer-events: none; transition: left 1s cubic-bezier(.25,.7,.2,1), top 1s cubic-bezier(.25,.7,.2,1); }
.roadmap-traveler img { width: 100%; display: block; filter: drop-shadow(0 10px 12px #00183066); animation: sleigh-float 5s ease-in-out infinite; }
.roadmap-stop { position: absolute; transform: translate(-50%, -50%); width: 44px; height: 44px; border: 2px solid #dcecf8; border-radius: 50%; background: #073761; color: white; z-index: 4; font-size: 16px; font-weight: 900; box-shadow: 0 4px 15px #001b3b50; }
.roadmap-stop small { display: block; position: absolute; top: 49px; left: 50%; transform: translateX(-50%); font-weight: 800; font-size: 12px; color: white; white-space: nowrap; text-shadow: 0 2px 4px #00172e; }
.roadmap-stop[aria-pressed='true'] { background: #ffe1a0; color: #002858; border-color: white; box-shadow: 0 0 0 5px #ffe1a033, 0 0 24px #ffdc7e55; }
.roadmap-instruction { color: #e6d4a4; font-size: 13px; margin: 16px 0 8px; }
.story-narration { display: flex; flex-direction: column; padding: 28px; border: 1px solid #ffffff30; border-radius: 26px; background: linear-gradient(145deg, #ffffff13, #ffffff06); backdrop-filter: blur(18px); box-shadow: inset 0 1px #ffffff12; }
.story-narrator { color: #ddc88e; font-size: 12px; font-weight: 900; letter-spacing: 1.5px; margin-bottom: 24px; }
.story-narrator > span { padding-right: 7px; }
.story-period { color: #b7e4ea; font-size: 14px; font-weight: 900; }
.story-copy h2 { font-size: 32px; color: white; margin: 12px 0 18px; }
.story-copy p { color: #ccdfed; font-size: 16px; line-height: 1.8; min-height: 144px; margin: 0; }
.story-world { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: auto 0 20px; padding-top: 12px; }
.story-world img { width: 82px; height: 82px; object-fit: contain; }
.story-world > span { font-size: 13px; color: #dacb9e; }
.story-navigation { display: flex; gap: 12px; }
.story-navigation .btn { flex: 1; font-size: 14px; padding: 13px 12px; }
#story-continue { margin-top: 12px; font-size: 14px; }
.story-source { font-size: 13px; color: #b3cadb; line-height: 1.7; margin: 24px 0 16px; }
.story-transcript { border: 1px solid #ffffff20; background: #ffffff06; border-radius: 16px; padding: 18px 22px; }
.story-transcript summary { cursor: pointer; color: #e7d5a7; font-weight: 800; }
.story-transcript h2 { color: white; font-size: 21px; margin-top: 24px; }
.story-transcript p { color: #cadce9; line-height: 1.75; }
@keyframes sleigh-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

@media (max-width: 1200px) {
  .nav { background: #042952f5; border: 1px solid #ffffff30; border-top: 0; border-radius: 0 0 20px 20px; backdrop-filter: blur(24px); }
  .nav a { margin-top: 5px; }
}
@media (max-width: 1020px) {
  .christmas-tree-layout { gap: 28px; }
  .santi-decorator { width: 165px; right: -12px; bottom: 90px; }
  .story-roadmap-layout { grid-template-columns: 1fr; }
  .roadmap-stage { height: 390px; }
  .story-copy p { min-height: 0; }
  .story-world { margin: 18px 0; }
}
@media (max-width: 710px) {
  body { padding-bottom: 100px; }
  .brand-logo { padding: 5px; border-radius: 14px; }
  .hero .shell { padding-bottom: 42px; }
  .christmas-tree-layout { grid-template-columns: 1fr; gap: 26px; }
  .tree-intro { display: flex; flex-direction: column; }
  .tree-intro > * { order: initial; }
  .tree-intro h2 { margin: 14px 0 18px; font-size: 35px; }
  .tree-intro > p { margin: 0; }
  .tree-message { margin: 22px 0 18px; min-height: 190px; }
  .tree-message h3 { font-size: 22px; }
  .tree-options { margin: 0 0 16px; gap: 9px; }
  .tree-options .btn { font-size: 13px; padding: 12px; }
  .tree-scene { order: initial; }
  .interactive-tree { max-width: 290px; margin-left: 0; }
  .santi-decorator { width: 132px; right: -4px; bottom: 107px; }
  .tree-touch-hint { max-width: 320px; min-height: 58px; font-size: 13px; }
  .tree-bauble { width: 40px; height: 40px; }
  .festive-dock { width: min(328px, calc(100% - 24px)); left: auto; right: 12px; bottom: 10px; grid-template-columns: minmax(0, 1fr) 42px 34px; gap: 8px; padding: 10px 12px; }
  .music-label strong { font-size: 12px; }
  .music-settings-panel .music-volume, .music-settings-panel .snow-toggle { grid-column: auto; grid-row: auto; }
  .story-page { padding-top: 36px; }
  .story-heading h1 { font-size: 34px; }
  .story-heading p { font-size: 15px; }
  .roadmap-stage { height: 320px; }
  .roadmap-traveler { width: 116px; }
  .roadmap-stop { width: 42px; height: 42px; font-size: 15px; }
  .roadmap-stop small { font-size: 11px; top: 46px; }
  .story-narration { padding: 24px; }
  .story-copy h2 { font-size: 29px; }
}

/* Sistema tipográfico Brandbook Caja Arequipa 2026 (pp. 13-16)
   - Tipografía principal: Helvetica Rounded (respaldo web M PLUS Rounded 1c) para títulos principales, sellos, frases clave y acciones.
   - Tipografía secundaria: Proxima Soft (respaldo web Nunito) para subtítulos, navegación y lectura clara. */
body,
p,
h3,
h4,
.nav a,
.card h3,
.concept-layout h3,
.milestone h3,
.faqs summary,
.story-transcript summary,
.footer {
  font-family: var(--font-secondary);
}
h1,
h2,
.hero h1,
.pagehero h1,
.heading h2,
.game-intro h1,
.story-heading h1,
.story-copy h2,
.tree-intro h2,
.imported-calendar h1,
.kicker,
.eyebrow,
.crumb,
.btn,
.stat,
.day-number,
.game-metrics strong,
.race-overlay strong,
.pill,
.demo-tag {
  font-family: var(--font-primary);
}
h1,
.hero h1,
.pagehero h1,
.game-intro h1,
.story-heading h1 {
  font-weight: 800;
  letter-spacing: -0.025em;
}
h2,
.heading h2,
.story-copy h2,
.tree-intro h2 {
  font-weight: 800;
  letter-spacing: -0.018em;
}
h3,
.card h3,
.concept-layout h3,
.milestone h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
}
p,
.intro,
.concept-lead,
.feature p,
.card p,
.faqs p,
.story-copy p {
  font-weight: 500;
}
.kicker,
.crumb {
  font-weight: 700;
  letter-spacing: 0.12em;
}
.btn {
  font-weight: 700;
  letter-spacing: 0.01em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 900;
}
