:root{font-family:ui-rounded,"Segoe UI",system-ui,sans-serif;color:#263e39;background:#faf7ee;line-height:1.6;--green:#294c43;--yellow:#f3cd74;--mint:#e5eee2;--line:#e3e5d8}*{box-sizing:border-box}body{margin:0;padding-bottom:90px}a{color:var(--green)}button,a,input,select{touch-action:manipulation}button,.button{font:inherit;display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:12px 19px;border:0;border-radius:13px;background:var(--green);color:white;font-weight:750;text-decoration:none;cursor:pointer;min-height:46px}button:disabled{opacity:.6;cursor:wait}.secondary{background:var(--mint);color:var(--green)}.danger{background:#9c4034}.site-header{display:flex;justify-content:space-between;align-items:center;gap:14px;max-width:1140px;margin:auto;padding:22px 24px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:10px;align-items:center;text-decoration:none;font-size:20px;font-weight:850;line-height:1.2}.brand img{width:43px;height:43px}.brand small{display:block;font-size:11px;text-transform:uppercase;letter-spacing:2px;font-weight:650}.identity{display:block;padding:8px 12px;border-radius:20px;background:#fffdf6;text-decoration:none;font-size:14px;overflow-wrap:anywhere}main{max-width:1100px;margin:auto;padding:38px 24px 50px}h1{font-size:clamp(34px,5.5vw,58px);line-height:1.1;letter-spacing:-1.5px;margin:10px 0 18px;max-width:850px}h2{font-size:25px;line-height:1.25;margin:0 0 14px}h3{font-size:19px;line-height:1.3;margin:9px 0}p{margin:0 0 14px}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:2.5px;font-weight:800;color:#8b6e35}.lead{color:#60736b;font-size:18px;max-width:680px}.save-state,.small{font-size:13px;color:#64766b}.save-state{margin:22px 0}.welcome-actions,.actions,.access-tabs{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:20px 0}.museum-grid,.piece-grid,.medal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px;margin:22px 0}.museum-card{display:flex;gap:18px;padding:24px;background:white;border:1px solid var(--line);border-radius:22px;text-decoration:none;box-shadow:0 6px 0 #e9ebdf}.museum-illustration{font-size:42px;display:grid;place-items:center;width:78px;min-width:78px;height:92px;background:#f8e9c6;border-radius:18px}.museum-card h3{margin:0 0 10px}.museum-card p{font-size:13px;color:#64766b}.pill{display:inline-block;font-size:12px;font-weight:750;padding:5px 10px;border-radius:16px;background:var(--mint);color:var(--green)}.museum-hero{display:flex;gap:25px;align-items:center;background:#e6eedf;padding:28px;border-radius:24px;margin:24px 0}.hero-icon{font-size:65px}.museum-hero>div{flex:1;min-width:0}.instruction{background:#fff0cd;padding:15px 20px;border-radius:15px}progress{display:block;width:100%;height:12px;accent-color:#47866b;margin:14px 0}.piece-card{border:1px solid var(--line);border-radius:20px;background:#fffef9;padding:20px;display:flex;align-items:flex-start;flex-direction:column}.piece-card p{font-size:14px;flex:1}.piece-art{height:100px;display:grid;place-items:center;background:#f4ead3;border-radius:13px;width:100%;font-size:42px;margin-bottom:15px}.collected .piece-art{background:#e5eee2}.pending .piece-art{color:#839187}.text-link{font-size:14px;font-weight:750}.passport-summary{display:flex;gap:20px;align-items:center;flex-wrap:wrap;padding:25px;background:#294c43;color:white;border-radius:24px;margin-top:36px}.passport-summary>span{font-size:46px}.passport-summary>div{flex:1}.passport-summary h2{margin:0 0 6px}.passport-summary p{margin:0}.passport-summary .button{background:var(--yellow);color:#263e39}.passport-cover{display:flex;gap:24px;align-items:center;background:#f5d991;border-radius:24px;padding:28px;margin:24px 0 34px}.explorer-avatar{font-size:64px}.passport-cover h2{margin-bottom:6px}.passport-cover p{margin:0}.museum-album{background:white;border:1px solid var(--line);border-radius:20px;padding:22px;margin:18px 0}.museum-album summary{display:flex;gap:14px;justify-content:space-between;align-items:center;cursor:pointer;font-weight:800;list-style:none}.museum-album summary:after{content:'⌄'}.museum-album[open] summary:after{content:'⌃'}#medals{margin-top:38px}.medal{text-align:center;padding:25px;border:1px solid var(--line);border-radius:20px;background:white}.medal>span{font-size:48px;display:block}.medal p{font-size:13px}.medal strong{font-size:13px}.medal.earned{background:#fff0c9;border-color:#e6c376}.medal.locked>span{filter:grayscale(1);opacity:.5}.medal.locked{background:#f0f1e9;color:#68746e}.discovery-card{max-width:760px;margin:24px auto;background:white;border:1px solid var(--line);border-radius:28px;padding:30px;text-align:center}.discovery-art{display:block;font-size:85px;margin-bottom:14px}.discovery-card h2{font-size:30px;margin-top:16px}.discovery-card .actions{justify-content:center}.story{font-size:19px;max-width:570px;margin:14px auto 22px}.medal-celebration{background:#fff0c9;border:1px solid #e6c376;border-radius:16px;padding:18px;margin:18px 0}.surface{background:white;border:1px solid var(--line);border-radius:22px;padding:25px;margin:22px 0;max-width:760px}.surface h2{margin-top:0}label{display:block;font-size:14px;font-weight:750;margin:15px 0 8px}input,select{display:block;width:100%;border:1px solid #c4d0c2;border-radius:12px;padding:12px 14px;background:#fffef9;color:#263e39;font:inherit;min-height:46px}select{max-width:660px}input[type=checkbox],input[type=radio]{width:auto;min-height:auto;display:inline-block;accent-color:var(--green)}.check{display:flex;gap:10px;align-items:flex-start;font-weight:500}.check input{margin-top:5px}.avatar-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.avatar-option{margin:0;text-align:center;position:relative;padding:12px;border:1px solid var(--line);border-radius:13px;cursor:pointer}.avatar-option:has(input:checked){background:var(--mint);border-color:#47866b}.avatar-option>span{display:block}.avatar-option>span:first-of-type{font-size:32px}fieldset{border:0;padding:0;margin:24px 0}legend{font-size:14px;font-weight:750;margin-bottom:10px}.recovery-code{display:block;background:#f8f2df;border:1px dashed #c0a76d;padding:18px;margin:18px 0;font-size:18px;overflow-wrap:anywhere;user-select:all}.callout{background:#fff0cf;border:1px solid #eed7a3;padding:17px 20px;border-radius:15px;margin:18px 0}.error{color:#a33b30}.empty{padding:28px;text-align:center;color:#64766b}.loading{padding:70px 0;text-align:center}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:20;display:flex;justify-content:center;gap:8px;background:#fffdf6;border-top:1px solid var(--line);padding:10px 12px calc(10px + env(safe-area-inset-bottom))}.bottom-nav a{display:flex;align-items:center;justify-content:center;flex-direction:column;min-width:100px;max-width:190px;flex:1;font-size:12px;font-weight:750;text-decoration:none;border-radius:13px;padding:5px 8px}.bottom-nav a>span{font-size:23px}.bottom-nav a.active{background:var(--mint)}footer{text-align:center;font-size:13px;color:#64766b;padding:25px 24px}footer span{font-size:11px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}:focus-visible{outline:3px solid #cf9a36;outline-offset:4px}body[data-style=young] .story{font-size:22px}body[data-style=young] .piece-art{height:125px}body[data-style=teen] .piece-art{height:80px}body[data-style=teen] .lead{font-size:17px}body[data-style=teen] h1{letter-spacing:-.8px}@media(min-width:800px){.museum-grid{grid-template-columns:repeat(2,1fr)}.access-tabs{max-width:760px}}@media(max-width:600px){main{padding:28px 18px 38px}.site-header{padding:17px 18px}.brand{font-size:18px}.identity{font-size:12px;max-width:145px}.museum-hero{padding:22px;gap:15px}.hero-icon{font-size:44px}.museum-card{padding:20px;gap:15px}.piece-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.piece-card{padding:14px}.piece-card h3{font-size:17px}.piece-card p{font-size:12px}.piece-art{height:85px}.medal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.medal{padding:17px 12px}.medal h3{font-size:16px}.passport-summary{padding:22px}.passport-summary .button{width:100%}.passport-cover{padding:22px}.explorer-avatar{font-size:48px}.surface{padding:22px}.access-tabs{gap:7px}.access-tabs button{font-size:12px;padding:10px 13px}.discovery-card{padding:25px 20px}.museum-album{padding:17px}.recovery-code{font-size:15px}}
h1,h2,h3,p{overflow-wrap:anywhere}.museum-card>div{min-width:0}.passport-cover>div{min-width:0}@media(max-width:600px){.bottom-nav a{min-width:0}}
@media(prefers-reduced-motion:no-preference){.discovery-art{animation:pop .45s ease-out}@keyframes pop{from{transform:scale(.8);opacity:.5}to{transform:scale(1);opacity:1}}}

.site-header:has(.guest-identity){align-items:center;flex-wrap:wrap}.guest-identity{text-align:right;margin-left:auto}.guest-identity .identity{border:1px solid var(--line);border-radius:13px;font-weight:750;text-align:center}.guest-session{display:block;font-size:11px;color:#64766b;font-weight:500}.guest-access{display:block;margin-top:5px;font-size:12px;font-weight:750;text-underline-offset:3px}#identity:has(.guest-identity){margin-left:auto}

.piece-art{position:relative;height:155px;overflow:hidden}.piece-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fffef9}.piece-art>span{font-size:42px}.discovery-photo{height:280px;max-width:560px;margin:0 auto 22px;position:relative;display:grid;place-items:center;border-radius:18px;overflow:hidden;background:#e5eee2}.discovery-photo>span{font-size:80px}.discovery-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fffef9}img[data-piece-photo][hidden]{display:none}.piece-hint{width:100%;background:#fff0cd;border-radius:12px;padding:10px 12px;margin:0 0 14px;font-size:14px}.piece-hint summary{cursor:pointer;font-weight:750;min-height:28px}.piece-hint p{margin:10px 0 0}.discovery-progress{font-size:20px;font-weight:800;color:#294c43;background:#e5eee2;border-radius:12px;padding:12px}@media(max-width:600px){.piece-art{height:130px}.discovery-photo{height:220px}.piece-hint{padding:9px;font-size:12px}.piece-hint summary{min-height:32px}.discovery-progress{font-size:18px}}

.museum-achievements{margin:32px 0}.medal-museum{font-weight:750}.achievement-progress{font-weight:750;margin-top:16px}.medal progress{width:100%;height:10px;accent-color:var(--green)}.achievement-requirements{text-align:left;margin:14px 0;font-size:13px}.achievement-requirements summary{cursor:pointer;font-weight:750;padding:7px 0;min-height:34px}.achievement-requirements ul{padding-left:22px;max-height:180px;overflow:auto}.achievement-requirements li{margin:6px 0}

.medal-art{position:relative;display:grid;place-items:center;width:112px;height:112px;margin:0 auto 15px;border-radius:18px;overflow:hidden;background:#f5f3eb}.medal-art>span{font-size:48px}.medal-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fffef9}.medal-art img[hidden]{display:none}.medal.locked .medal-art{filter:grayscale(1);opacity:.6}.museum-completion{background:#f4ecd8;border:1px solid #e7d8b5;border-radius:14px;padding:16px;margin:18px 0}.museum-completion.complete{background:#e3f0df;border-color:#afcaa6}.museum-completion p{margin:8px 0 0}.completion-updates{color:#64766b}.album-summary-progress{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;flex:none}.completion-tag{border-radius:20px;padding:5px 9px;font-size:11px;font-weight:750;background:#f4ecd8}.completion-tag.complete{background:#e3f0df}.medal-celebration{display:flex;align-items:center;gap:18px}.medal-celebration .medal-art{width:76px;height:76px;margin:0;flex:none}@media(max-width:600px){.medal-art{width:90px;height:90px}.medal-art>span{font-size:40px}.album-summary-progress{max-width:100px;gap:5px}.museum-completion{padding:13px}.medal-celebration{gap:12px}.medal-celebration .medal-art{width:60px;height:60px}}
.museum-hero{flex-wrap:wrap}.museum-hero>.museum-completion{flex:1 0 100%;margin:0}.museum-album summary>span:first-child{min-width:0;overflow-wrap:anywhere}

/* El inicio parte de una columna y crece cuando hay espacio. */
body{padding-bottom:calc(92px + env(safe-area-inset-bottom))}
.site-header{padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right));padding-top:max(16px,env(safe-area-inset-top))}
.brand{min-height:44px}.identity-status{font-size:11px;color:#64766b;display:block;text-align:right;max-width:112px;line-height:1.4}.identity:has(.identity-name){display:flex;align-items:center;gap:7px;min-height:44px}.identity-name{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.identity-avatar{flex:none}
.bottom-nav a{min-height:52px}.bottom-nav a.active{color:#1d4538}
.home-page{max-width:760px;padding:24px 18px 34px}
.home-page h1{font-size:clamp(30px,7.8vw,42px);line-height:1.13;letter-spacing:-.9px;margin:0 0 14px}
.home-page h2{font-size:21px;margin:0 0 10px}.home-page .lead{font-size:16px;line-height:1.6;margin:0;color:#52695e}
.home-page .eyebrow{letter-spacing:1.5px;margin:0 0 16px;font-size:10px}
.home-welcome{text-align:center;padding:8px 6px 20px}.home-welcome .lead{max-width:440px;margin:auto}
.home-passport-art{height:106px;position:relative;width:190px;margin:0 auto 22px;display:flex;justify-content:center;align-items:center}
.home-passport-art img{width:82px;height:93px;transform:rotate(-10deg);filter:drop-shadow(0 7px 0 #e5e3d5)}
.home-art-owl{position:absolute;bottom:-2px;right:27px;font-size:43px;line-height:1}.home-art-spark{position:absolute;left:23px;top:13px;color:#b18834;font-size:23px}.home-art-star{position:absolute;right:20px;top:7px;font-size:29px;color:#779877}
.home-access-actions{display:grid;gap:10px;margin:22px auto 0;max-width:460px}.home-access-actions .button{width:100%;min-height:50px;font-size:15px;padding:13px 16px;border-radius:14px}.home-access-actions .secondary{background:#fffdf6;border:1px solid #b9cbb9}
.home-scan-help{display:flex;gap:14px;align-items:flex-start;background:#f5edd6;border:1px solid #e8dbb8;border-radius:20px;padding:18px;margin:10px 0 22px}.home-scan-help h2{font-size:18px;line-height:1.35}.home-scan-help p{font-size:14px;margin:0 0 9px;line-height:1.5}.home-scan-help p:last-child{font-size:12px;margin:0;color:#637163}.scan-icon{display:grid;place-items:center;width:42px;height:42px;flex:none;background:#fffaf0;color:#52674e;border-radius:12px}.scan-icon svg{width:25px;height:25px}.home-scan-help>div{min-width:0}
.home-account{padding:20px;background:white;border:1px solid var(--line);border-radius:20px;margin:16px 0 22px}.home-account>p{font-size:14px;margin:0;color:#52695e}
.home-page .home-current-museum{display:block;margin:0 0 18px;padding:22px;background:#e6eedf;border:1px solid #ceddc5;border-radius:22px}
.home-museum-title{display:flex;gap:14px;align-items:center}.home-museum-title>div{min-width:0}.home-museum-title .eyebrow{margin-bottom:8px}.home-museum-title h1{font-size:28px;margin:0;letter-spacing:-.5px}.home-museum-title .hero-icon{font-size:40px;flex:none}.home-museum-description{font-size:14px;color:#52695e;margin:16px 0 0}.home-museum-progress{font-size:13px;font-weight:750;margin-top:18px}.home-museum-progress progress{margin:8px 0 0;height:10px}
.home-page .save-state{font-size:12px;margin:14px 0}.home-museum-achievements{font-size:12px;font-weight:500;margin:10px 0 0;color:#52695e}.home-museum-progress .pill{margin-top:12px}.home-page .museum-completion{padding:14px;margin:18px 0 24px}.home-page .museum-completion strong{font-size:15px}.home-page .completion-updates{font-size:11px}
.home-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.home-section-heading h2{margin:0;min-width:0}.home-section-heading>span{flex:none}.home-discoveries{margin-top:24px}.home-page .instruction{font-size:13px;line-height:1.5;margin:12px 0 16px;padding:13px 15px;background:#fff1d0}
.home-page .piece-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.home-page .piece-card{padding:12px;border-radius:17px}.home-page .piece-card h3{font-size:16px}.home-page .piece-card p{font-size:13px}.home-page .piece-art{height:128px;border-radius:10px}.home-page .piece-card .small{font-size:11px}.home-page .piece-card .text-link{display:flex;align-items:center;min-height:44px;font-size:13px}.home-page .piece-hint summary{min-height:34px}
.home-passport-summary{border:1px solid var(--line);border-radius:20px;background:#fffef9;padding:20px;margin:28px 0 0}.home-section-heading>span:not(.pill){font-size:26px}.home-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:16px 0 18px}.home-stats p{display:flex;flex-direction:column;gap:2px;margin:0;text-align:center}.home-stats p+p{border-left:1px solid var(--line)}.home-stats strong{font-size:28px;line-height:1.2}.home-stats span{font-size:12px;color:#64766b}.home-passport-summary .button{width:100%;min-height:48px}
@media(max-width:360px){.home-page{padding:20px 14px 30px}.home-page .piece-grid{grid-template-columns:1fr}.home-page .piece-art{height:170px}.home-passport-art{height:88px;margin-bottom:18px}.home-passport-art img{width:68px;height:80px}.home-page h1{font-size:29px}.home-scan-help{padding:15px;gap:10px}.brand{font-size:16px}.brand img{width:36px;height:36px}.identity-status{max-width:93px;font-size:10px}}
@media(min-width:600px){.home-page{padding:36px 24px 46px}.home-welcome{padding-top:16px}.home-access-actions{grid-template-columns:1fr 1fr;max-width:560px}.home-scan-help{padding:24px}.home-page .piece-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.home-page .piece-card{padding:16px}.home-page .piece-art{height:150px}.home-page .home-current-museum{padding:28px}.home-museum-title h1{font-size:34px}}
