/* Free gallery (/colorear): big cards for small fingers, «Luz de estudio» warmth, no horizontal scroll on iPad or phone. */
.gallery-page{background:radial-gradient(1200px 600px at 20% -10%,#fff6e8 0%,transparent 60%),#fbf7ef}
.gallery{max-width:1180px;margin:0 auto;padding:12px 20px 64px}
.gallery-hero h1{font-size:clamp(34px,5vw,56px);margin:6px 0 8px}
.gallery-hero p{max-width:640px}
.artist-bar{display:flex;align-items:center;gap:10px;font-weight:700}
.filters{display:flex;flex-direction:column;gap:10px;margin:18px 0 14px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{min-height:44px;padding:0 16px;border-radius:999px;border:1px solid #e4dccb;background:#fff;color:#22332c;font:inherit;font-weight:700;font-size:15px;cursor:pointer}
.chip.on{background:#22332c;color:#fff;border-color:#22332c}
.themes .chip{min-height:40px;font-weight:600;font-size:14px}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px}
.card{display:flex;flex-direction:column;gap:8px;padding:10px;border-radius:18px;border:1px solid #efe6d5;background:#fff;box-shadow:0 8px 24px #3a2f1a14;text-align:left;font:inherit;color:inherit;text-decoration:none;cursor:pointer;touch-action:manipulation}
.card:active{transform:scale(.98)}
.card-art{display:block;aspect-ratio:3/4;border-radius:12px;overflow:hidden;background:#f6f1e6}
.card-art img{width:100%;height:100%;object-fit:contain;display:block}
.card-meta{display:flex;align-items:center;justify-content:space-between;gap:6px 8px;min-width:0}
/* narrow phones (360 px): the «🔒 Special» badge goes under the title instead of past the card; wider screens unchanged */
@media(max-width:600px){.card-meta{flex-wrap:wrap}}
.card-meta strong{min-width:0;overflow-wrap:anywhere}
.card-meta strong{font-size:16px;line-height:1.2}
.badge{flex:none;max-width:100%;font-size:12px;font-weight:800;padding:4px 10px;border-radius:999px;background:#dcefe2;color:#1e5236} /* never wider than its card: a long badge wraps inside it */
.badge.device-badge{border-radius:12px;line-height:1.25} /* «On this device (no account)» takes two lines on narrow cards */
.badge.lock{background:#f6e3d8;color:#8a3b1c}
.mine{margin:16px 0 8px}.mine h2{margin:0 0 10px}
.mine-cards{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
.sheet{border:0;border-radius:22px;padding:22px;width:min(520px,calc(100vw - 32px));max-height:calc(100vh - 40px);box-shadow:0 30px 80px #0004;background:#fffdf8}
.sheet::backdrop{background:#2b241a66}
.sheet-close{position:absolute;right:10px;top:8px}.sheet-close button{border:0;background:none;font-size:28px;line-height:1;cursor:pointer;min-width:44px;min-height:44px}
.sheet h2{margin:8px 0}
.sheet-art{display:block;width:100%;max-height:52vh;object-fit:contain;border-radius:14px;background:#f6f1e6}
.sheet input{width:100%;min-height:52px;font-size:20px;border-radius:12px;border:1px solid #e4dccb;padding:0 14px;margin:8px 0 12px;box-sizing:border-box}
.button.big{display:flex;justify-content:center;align-items:center;width:100%;min-height:56px;font-size:18px;margin-top:12px;box-sizing:border-box}
.opening{font-size:18px;font-weight:700;text-align:center;padding:24px 0}
@media(max-width:600px){.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.gallery{padding:8px 14px 48px}}
.chip.little{background:#fff3c4;border-color:#f3d36b;font-size:16px}.chip.little.on{background:#e7a93b;border-color:#e7a93b;color:#2b1d00}
/* Gallery identity (13-11): an art gallery, not a shop. */
.gallery-hero{margin:8px 0 6px}
.hero-frame{position:relative;padding:26px 26px 22px;border-radius:24px;background:linear-gradient(135deg,#fffdf8 0%,#fff3e3 55%,#f9e7f1 100%);border:1px solid #efe2cc;box-shadow:inset 0 0 0 8px #fff8,0 18px 50px #3a2f1a14;overflow:hidden}
.hero-frame::after{content:"";position:absolute;right:-60px;top:-60px;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle at 30% 30%,#f6c9a4,#e98a6c 45%,#8f6cc7 75%,transparent 76%);opacity:.18}
.hero-frame .eyebrow{letter-spacing:.18em}
.hero-frame h1{font-size:clamp(38px,6vw,64px);margin:6px 0 10px}
.ages-wrap h2,.collections-wrap h2,.mine h2{font-size:22px;margin:22px 0 10px}
.ages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.age,.collection{position:relative;display:flex;flex-direction:column;gap:4px;padding:10px;border-radius:18px;border:1px solid #efe6d5;background:#fff;text-align:left;font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;box-shadow:0 8px 24px #3a2f1a12}
.age.on,.collection.on{outline:3px solid #22332c;outline-offset:2px}
.age-art,.collection-art{display:block;aspect-ratio:4/3;border-radius:12px;overflow:hidden;background:#f6f1e6}
.age-art img,.collection-art img{width:100%;height:100%;object-fit:cover;object-position:center 30%}
.age strong,.collection strong{font-size:16px}
.collections{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(200px,1fr);gap:12px;overflow-x:auto;padding-bottom:6px;scroll-snap-type:x mandatory}
.collection{scroll-snap-align:start}
.collection.special,.card.special{border:2px solid #d9b25c;background:linear-gradient(#fff,#fffaf0);box-shadow:0 0 0 3px #fff inset,0 10px 28px #8a6a1a22}
.seal{position:absolute;top:10px;right:10px;z-index:1;font-size:11px;font-weight:800;letter-spacing:.04em;padding:5px 9px;border-radius:999px;background:linear-gradient(135deg,#f7dc8f,#d9a93f);color:#3b2a05;box-shadow:0 2px 8px #0002}
.card .card-art{position:relative}.card .seal{top:8px;right:8px}
.badge.friendly{background:#e3f4e8;color:#1e5236}
.collection-on{display:flex;align-items:center;gap:12px;font-weight:700;margin:6px 0}
@media(max-width:700px){.ages{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-frame{padding:20px 18px}.collections{grid-auto-columns:minmax(160px,70%)}}
/* Language switch: the gallery uses links (they change the page), styled like the rest of the site's EN | ES segments,
   with a comfortable touch area on iPad. */
.gallery-page .lang-switch a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:40px;padding:0 12px;font-size:12px;font-weight:700;letter-spacing:1px;color:var(--ink);text-decoration:none}
.gallery-page .lang-switch a+a{border-left:1px solid var(--ink)}
.gallery-page .lang-switch a[aria-current="true"]{background:var(--ink);color:#fff}
@media(max-width:720px){.gallery-page .lang-switch a{min-width:40px;min-height:38px;padding:0 10px}.gallery-page header nav{gap:8px}}
/* «Start from scratch» (blank sheets). */
.scratch-wrap{margin:18px 0 6px}
.scratch{display:grid;grid-template-columns:minmax(180px,260px) 1fr;gap:22px;align-items:center;padding:18px 22px;border-radius:22px;background:#fff;border:2px dashed #e4cfa8;box-shadow:0 12px 34px #3a2f1a14}
.scratch h2{margin:0 0 6px;font-size:26px}.scratch p{margin:0 0 12px}
.scratch-actions{display:flex;flex-wrap:wrap;gap:10px}.scratch-actions .button.big{width:auto;min-width:160px;margin:0}
.scratch-art{position:relative;height:150px}
.scratch-art .sheet{position:absolute;background:#fff;border:1px solid #e6dccb;border-radius:6px;box-shadow:0 8px 20px #3a2f1a22}
.scratch-art .sheet.portrait{width:96px;height:128px;left:18px;top:6px;transform:rotate(-4deg)}
.scratch-art .sheet.landscape{width:128px;height:96px;left:90px;top:40px;transform:rotate(5deg)}
.scratch-art.single{height:auto;display:flex;justify-content:center;padding:10px 0}.scratch-art.single .sheet{position:static;transform:none;width:150px;height:200px}.scratch-art.single .sheet.landscape{width:200px;height:150px}
@media(max-width:700px){.scratch{grid-template-columns:1fr;padding:16px}.scratch-art{height:120px}.scratch-actions .button.big{flex:1 1 140px;min-width:0}}
/* «On this device (no account)» (FREE_ANON): no thumbnail is kept on the device, a warm placeholder instead. */
.card-art.device{display:grid;place-items:center;background:#fff4e8}
.device-mark{font-size:42px}
