:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#f8eada;background:#110c17;--cream:#fff2dc;--muted:#bbaaba;--orange:#f69a32;--gold:#fbd28c;--wine:#6d274d;--magenta:#c65083}*{box-sizing:border-box}html,body{margin:0;min-height:100%;}button,a{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:wait}a{color:#f6b66d}.hidden{display:none!important}body{background:radial-gradient(circle at 75% 12%,#3e2134 0,transparent 33%),radial-gradient(circle at 10% 70%,#251221 0,transparent 38%),#110c17}.landing{max-width:1300px;margin:auto;min-height:100vh;padding:22px clamp(20px,6vw,76px) 22px;overflow:hidden}.topbar{height:52px;display:flex;gap:10px;align-items:center;font-size:15px;letter-spacing:.16em;font-weight:650;border-bottom:1px solid #ffffff18}.topbar strong{color:var(--orange)}.brand-dot{font-size:28px;color:var(--orange)}.top-label{margin-left:auto;color:#b59c9b;font-size:10px;letter-spacing:.2em}.hero{min-height:490px;display:grid;grid-template-columns:1.08fr .92fr;align-items:center;gap:22px}.hero-copy{position:relative;z-index:2}.eyebrow{font-size:11px;color:#f4b876;letter-spacing:.24em;font-weight:800;display:flex;align-items:center;gap:9px}.eyebrow span{width:22px;height:1px;background:#f4b876}h1{font-size:clamp(48px,6.1vw,94px);line-height:.99;letter-spacing:-.065em;margin:22px 0 18px;font-weight:790}h1 em{color:var(--orange);font-style:normal;font-family:Georgia,serif;letter-spacing:-.045em;font-weight:500}.hero-description{max-width:520px;color:#d0bfc6;font-size:clamp(15px,1.55vw,18px);line-height:1.7}.cta-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}.primary-btn,.ghost-btn{display:inline-flex;align-items:center;justify-content:center;gap:14px;border-radius:14px;padding:15px 22px;font-weight:800;font-size:14px;min-height:52px;text-decoration:none;transition:.2s}.primary-btn{border:0;color:#200d1b;background:linear-gradient(110deg,#ffd486,#f79439);box-shadow:0 8px 36px #c05a2037}.ghost-btn{border:1px solid #a6766e66;color:#f9eada;background:#2c1b29}.primary-btn:hover,.ghost-btn:hover{transform:translateY(-2px)}.camera-ico{font-size:22px;line-height:1}.hint{color:#bd9d99;font-size:12px;margin-top:18px}.hint span{color:#ffba57}.start-status{font-size:13px;color:#ffd38f;max-width:470px;min-height:16px;line-height:1.4}.visual{height:480px;display:flex;align-items:center;justify-content:center;position:relative;isolation:isolate}.glow{position:absolute;width:340px;height:340px;background:#b5476260;filter:blur(90px)}.halo{position:absolute;border:1px solid #e58d66a8;border-radius:50%;width:360px;height:420px;transform:rotate(21deg);opacity:.36}.halo-2{transform:rotate(-28deg);height:350px;width:420px;border-color:#ffd57888}.visual-card{position:relative;border-radius:49% 49% 43% 43%;width:min(310px,76%);height:385px;border:2px solid #e6ab73;background:radial-gradient(ellipse at 50% 35%,#664059 0,#3a1d32 45%,#210f21 87%);box-shadow:0 0 0 14px #ae724624,inset 0 0 70px #100716,0 24px 85px #020205;display:flex;align-items:center;justify-content:center;overflow:hidden}.visual-card:before{content:"";position:absolute;inset:12px;border-radius:inherit;border:1px dashed #ffcf9e52}.visual-forehead{position:absolute;top:49px;font-size:58px;color:#ffc071}.mask-art{position:relative;width:240px;height:170px;filter:drop-shadow(0 5px 15px #17101b)}.mask-left,.mask-right{position:absolute;top:40px;width:101px;height:82px;background:#f5d3a5;border-radius:45% 55% 62% 39%;transform:rotate(12deg);border:8px solid #a23b55;box-shadow:0 0 0 5px #f8a84e}.mask-right{right:0;transform:rotate(-12deg) scaleX(-1)}.mask-left{left:0}.mask-left span,.mask-right span{display:block;position:absolute;inset:20px 13px 10px;background:#321529;border-radius:50%}.mask-nose{position:absolute;left:103px;top:105px;border-left:17px solid transparent;border-right:17px solid transparent;border-bottom:29px solid #261020}.mask-smile{position:absolute;bottom:4px;left:50%;transform:translateX(-50%);color:#fcd08c;white-space:nowrap;font-size:21px}.flower{color:#ffb544;font-size:74px;position:absolute;text-shadow:0 4px 14px #c83c22}.flower-a{left:-17px;bottom:82px}.flower-b{right:-18px;top:72px}.card-caption{position:absolute;bottom:18px;font-size:9px;color:#fdd0a4;letter-spacing:.23em}.stamp{position:absolute;right:-1%;bottom:30px;font-size:11px;letter-spacing:.3em;color:#ffdaaa;transform:rotate(-10deg);border:1px solid #d3936e;padding:13px;background:#190f1caa}.stamp b{font-size:19px;letter-spacing:.1em}.style-section{margin-top:6px;border-top:1px solid #ffffff19;padding-top:24px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:20px}.section-heading span{color:#e8a56e;font-size:11px;letter-spacing:.2em}.section-heading h2{font-size:24px;margin:0;font-family:Georgia,serif;font-weight:500}.style-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}.style-tile{position:relative;min-height:132px;padding:20px 22px;text-align:left;background:#211522;border:1px solid #72515a55;color:#f9eada;border-radius:17px;display:flex;flex-direction:column;justify-content:end;gap:7px}.style-tile.active{border-color:#e9a563;background:linear-gradient(130deg,#502c38,#271726)}.style-tile:hover{border-color:#eda26a}.tile-number{position:absolute;right:19px;top:17px;color:#b68d86;font-size:10px}.tile-icon{position:absolute;top:9px;left:20px;font-size:34px;color:#ffc173}.style-tile strong{font-size:16px}.style-tile small{font-size:12px;color:#bca4ad}.home-footer{display:flex;gap:20px;justify-content:space-between;flex-wrap:wrap;font-size:11px;color:#967f89;margin-top:32px;line-height:1.5}.home-footer b{color:#d7aea2}
.experience{position:fixed;z-index:20;inset:0;background:#100c15;overflow:hidden;overscroll-behavior:none;touch-action:manipulation}#cameraVideo{position:absolute;visibility:hidden;width:1px;height:1px;pointer-events:none}#renderCanvas{position:absolute;inset:0;width:100%;height:100%;display:block;background:#241a28}.camera-header{position:absolute;top:0;left:0;right:0;z-index:2;padding:max(16px,env(safe-area-inset-top)) 19px 0;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none}.camera-brand{background:#110d17c7;border:1px solid #e2ac7166;border-radius:16px;padding:10px 14px;font-size:13px;letter-spacing:.17em;font-weight:800;pointer-events:auto;backdrop-filter:blur(10px)}.camera-brand strong{color:#ffc278}.camera-brand small{display:block;color:#debca3;font-size:8px;margin-top:4px;letter-spacing:.13em}.ornament{font-size:17px;color:#ffb454}.circle-button{width:45px;height:45px;border-radius:100px;border:1px solid #eecead73;background:#1e1524c7;color:#ffefdc;font-size:20px;display:inline-flex;align-items:center;justify-content:center;backdrop-filter:blur(10px)}.circle-button.exit{pointer-events:auto}.tracking{position:absolute;z-index:2;top:calc(max(16px,env(safe-area-inset-top)) + 90px);left:50%;transform:translateX(-50%);display:flex;gap:8px;align-items:center;padding:9px 13px;border-radius:40px;background:#190f1ed6;border:1px solid #eac08c44;white-space:nowrap;font-size:11px;color:#fce8d6;max-width:92%;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.tracking-light{width:7px;height:7px;background:#dc8455;border-radius:50%;box-shadow:0 0 8px #ee905d;flex-shrink:0}.tracking.found .tracking-light{background:#54dd9e;box-shadow:0 0 8px #54dd9e}.camera-bottom{position:absolute;z-index:2;bottom:0;left:0;right:0;padding:46px 16px calc(16px + env(safe-area-inset-bottom));background:linear-gradient(transparent,#130d1bf3 19%,#130d1b 100%);display:flex;align-items:center;flex-direction:column;pointer-events:none}.camera-bottom button{pointer-events:auto}.style-heading{text-align:center;margin-bottom:11px}.style-heading span{font-size:9px;letter-spacing:.29em;color:#f1ac6f}.style-heading h2{font-size:23px;margin:4px 0 0;font-family:Georgia,serif;font-weight:500}.filter-tabs{display:flex;gap:8px;justify-content:center;width:100%;max-width:430px}.filter-tab{background:#311c32b8;color:#e6cdd0;border:1px solid #e6bc9955;padding:10px 11px;border-radius:12px;font-size:12px;font-weight:700;flex:1;white-space:nowrap}.filter-tab span{font-size:16px;vertical-align:middle}.filter-tab.active{background:#efa34d;color:#25131a;border-color:#efa34d}.capture-actions{display:flex;gap:32px;justify-content:center;align-items:center;margin-top:17px}.capture-actions .secondary{height:43px;width:43px}.capture-actions .secondary.active{border-color:#f1c77c;color:#f1c77c}.shutter{border:3px solid #ffead8;background:transparent;width:74px;height:74px;border-radius:50%;padding:5px;display:flex;align-items:center;justify-content:center}.shutter span{display:block;background:#fff1e0;border-radius:50%;width:56px;height:56px}.shutter:active span{transform:scale(.86)}.camera-help{text-align:center;font-size:10px;color:#dfb8ae;margin:12px 0 0}.modal{position:fixed;inset:0;background:#09070edc;z-index:40;display:flex;align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(12px)}.modal-panel{width:min(420px,100%);background:#211425;border:1px solid #efbf816b;border-radius:20px;padding:14px;box-shadow:0 18px 70px #000}.modal-title{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#ffbf6b;font-size:11px;letter-spacing:.14em;font-weight:800;margin-bottom:11px}.modal-title .circle-button{width:35px;height:35px;font-size:16px}#capturedImage{width:100%;max-height:min(58vh,580px);object-fit:contain;display:block;background:#100a16;border-radius:9px}.modal-buttons{display:flex;gap:8px;margin-top:12px}.modal-buttons button{flex:1;padding:11px 9px;min-height:44px}.modal-panel p{text-align:center;color:#c1a7a6;font-size:10px;margin:12px 0 1px}
@media(max-width:780px){.landing{padding:16px 20px 24px}.hero{grid-template-columns:1fr;gap:0}.hero-copy{padding-top:31px}.hero{min-height:0}.hero h1{font-size:clamp(49px,11vw,72px);margin:15px 0}.hero-description{font-size:15px;line-height:1.55}.cta-row{margin-top:19px}.cta-row button{flex:1 1 190px}.hint{margin-top:12px}.visual{height:300px;margin:-5px 0 12px}.visual-card{width:190px;height:256px}.visual-forehead{top:31px;font-size:41px}.mask-art{transform:scale(.65)}.flower{font-size:49px}.flower-a{left:-12px;bottom:48px}.flower-b{right:-8px;top:36px}.stamp{bottom:10px;right:10px;font-size:8px}.stamp b{font-size:12px}.halo{width:245px;height:285px}.halo-2{width:300px;height:235px}.style-section{margin-top:0}.section-heading h2{font-size:20px}.style-grid{grid-template-columns:1fr 1fr;gap:9px}.style-tile{min-height:118px;padding:18px 13px 12px}.style-tile strong{font-size:13px}.style-tile small{font-size:10px}.tile-icon{left:12px;top:8px;font-size:29px}.style-tile:last-child{grid-column:1/-1;min-height:100px}.home-footer{margin-top:23px}.top-label{font-size:8px}}
@media(max-width:350px){.filter-tabs{gap:4px}.filter-tab{font-size:10px;padding:9px 6px}.camera-brand{font-size:11px}.style-heading h2{font-size:20px}}

/* V2 - botón de recuperación de MediaPipe, visible sólo si falla la red/CDN */
.retry-model{pointer-events:auto;border:1px solid #f4c286;color:#2b1720;background:#ffbd72;border-radius:12px;font-size:12px;font-weight:800;padding:10px 16px;margin-top:10px;max-width:92vw}.retry-model.hidden{display:none!important}

/* V7 — fewer controls, editorial makeup presets */
.style-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.style-tile:last-child{grid-column:auto;min-height:132px}
.filter-tabs{max-width:420px;gap:12px}
.filter-tab{font-size:14px;letter-spacing:.02em;min-height:48px}
#toggleDecor{display:none!important}
.camera-brand small{letter-spacing:.1em}
@media(max-width:780px){.style-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.style-tile:last-child{grid-column:auto;min-height:130px}}
/* AR camera: keep the crown and forehead unobstructed */
.camera-header{padding:max(10px,env(safe-area-inset-top)) 13px 0}
.camera-brand{padding:9px 12px;border-radius:12px;font-size:11px;letter-spacing:.12em}
.camera-brand small{display:none}
.circle-button.exit{height:40px;width:40px;font-size:18px}
.tracking{left:13px;top:calc(max(10px,env(safe-area-inset-top)) + 50px);transform:none;padding:6px 10px;font-size:10px;max-width:72vw}
.camera-bottom{padding-top:37px}
@media(max-width:390px){.tracking{max-width:78vw}.camera-brand{font-size:10px}}

/* V8: editorial view, keep face visible and avoid covering forehead */
.camera-brand{max-width:44vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tracking{top:calc(max(10px,env(safe-area-inset-top)) + 43px);background:rgba(21,12,26,.65)}
