:root {
  color-scheme: dark;
  --bg: #0a0716; --glow: #2b1d52; --surface: rgb(16 11 32 / .72);
  --line: rgb(217 184 120 / .24); --line-soft: rgb(255 255 255 / .09);
  --gold: #d9b878; --gold-bright: #f0d9a4; --gold-deep: #9c7a42; --text: #efe9f6; --muted: #a99fbe;
  --display: 'Cormorant Garamond', Georgia, serif; --caps: 'Cinzel', Georgia, serif; --body: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --gold-grad: linear-gradient(180deg, #fff3d1 0%, #f0d9a4 30%, #d9b878 62%, #9c7a42 100%);
  --ease-out: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
}
:root { --surface: rgb(16 11 32 / .72); --bar: rgb(10 7 22 / .86); --bar-solid: #140d28; --tile1: rgb(43 29 82 / .65); --tile2: rgb(14 9 30 / .85); --ov1: #281a50; --ov2: #07040f;
  --acc1: #4a3388; --acc2: #1e1540; --leaf1: #43307c; --leaf2: #2b1e57; --leaf3: #1a1236; --back1: #3a2870; --back2: #1c1340; --back3: #0e0a20;
  --neb1: rgb(98 58 170 / .35); --neb2: rgb(160 90 140 / .18); --neb3: rgb(60 40 130 / .3); --field: rgb(0 0 0 / .3); --soft: rgb(0 0 0 / .18); --shadow: rgb(0 0 0 / .35);
  --star: 240,217,164; --snow: rgba(255,255,255,.75); --snowc: #ffffff; --edge1: #d9b878; --edge2: #6b4f22; }
:root[data-theme="negro"] { --bg: #060606; --glow: #17120a; --surface: rgb(17 16 14 / .8); --text: #f3eee6; --muted: #a59c8e; --line: rgb(217 184 120 / .26); --line-soft: rgb(255 255 255 / .08);
  --bar: rgb(8 8 8 / .86); --bar-solid: #121110; --tile1: rgb(32 29 24 / .82); --tile2: rgb(12 11 10 / .92); --ov1: #1f1a12; --ov2: #040404;
  --acc1: #3a3126; --acc2: #110f0c; --leaf1: #2e2a24; --leaf2: #1b1916; --leaf3: #0c0b0a; --back1: #26221c; --back2: #151310; --back3: #090807;
  --neb1: rgb(150 115 50 / .16); --neb2: rgb(110 80 40 / .1); --neb3: rgb(70 55 30 / .18); }
:root[data-theme="blanco"] { color-scheme: light; --bg: #f6f1e7; --glow: #efe4cf; --surface: rgb(255 255 255 / .82); --text: #2a2017; --muted: #85745e;
  --gold: #a87d36; --gold-bright: #8a6326; --gold-deep: #7a5520; --gold-grad: linear-gradient(180deg, #d9b066 0%, #b88a3e 55%, #7a5520 100%);
  --line: rgb(168 125 54 / .32); --line-soft: rgb(60 40 20 / .1); --bar: rgb(250 246 238 / .9); --bar-solid: #fbf7ef; --tile1: #ffffff; --tile2: #f7efe0; --ov1: #fffaf1; --ov2: #ede2cd;
  --acc1: #f3e6cb; --acc2: #ddc79c; --leaf1: #fffaf0; --leaf2: #f1e5cf; --leaf3: #dfccaa; --back1: #fbf5ea; --back2: #efe2c9; --back3: #e0cfad;
  --neb1: rgb(217 184 120 / .22); --neb2: rgb(230 200 160 / .2); --neb3: rgb(200 170 120 / .16); --field: rgb(255 255 255 / .8); --soft: rgb(168 125 54 / .06); --shadow: rgb(120 90 40 / .14);
  --star: 168,125,54; --snow: rgba(176,140,80,.4); --snowc: #c9a86a; --edge1: #c9a35a; --edge2: #8a6326; }
:root[data-theme="blanco"] body::after { opacity: .04; }
:root[data-theme="blanco"] .door b { text-shadow: none; }
:root[data-theme="blanco"] .demo-tag, :root[data-theme="blanco"] .primary { color: #241a10; }
.themes { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; border: 1px solid var(--line); }
.themes button { border: 0; background: none; color: var(--muted); font-size: .78rem; padding: .3rem .7rem; border-radius: 999px; min-height: 30px; display: inline-flex; align-items: center; gap: .35rem; }
.themes button i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--gold); }
.themes button[aria-pressed="true"] { background: rgb(217 184 120 / .16); color: var(--text); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 300 1.0625rem/1.7 var(--body); overflow-x: clip; }
body::before { content: ''; position: fixed; inset: -20%; z-index: 0; pointer-events: none;
  background: radial-gradient(40% 35% at 25% 20%, var(--neb1), transparent 70%), radial-gradient(35% 30% at 80% 35%, var(--neb2), transparent 70%), radial-gradient(45% 40% at 50% 90%, var(--neb3), transparent 70%);
  animation: nebula 38s ease-in-out infinite alternate; }
@keyframes nebula { to { transform: translate3d(4%, -3%, 0) rotate(8deg) scale(1.08); } }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
[hidden] { display: none !important; }
canvas.layer { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#sky { z-index: 0; } #fx { z-index: 95; }
.app { position: relative; z-index: 1; }
.eyebrow { font: 500 .74rem var(--caps); color: var(--gold); letter-spacing: .26em; text-transform: uppercase; }
.hint { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.link { background: none; border: 0; color: var(--muted); padding: .5rem .4rem; min-height: 40px; font-size: .9rem; letter-spacing: .03em; }
.link:hover { color: var(--gold-bright); }
.primary { position: relative; overflow: hidden; min-height: 52px; padding: .75rem 1.8rem; border: 0; border-radius: 999px; background: linear-gradient(135deg, #fff0c8, var(--gold) 50%, var(--gold-deep)); color: #1d1430; font: 600 .82rem var(--caps); letter-spacing: .16em; text-transform: uppercase; box-shadow: 0 10px 30px rgb(217 184 120 / .28), inset 0 1px 0 rgb(255 255 255 / .6); transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s; }
.primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .75) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s cubic-bezier(.22, 1, .36, 1); }
.primary:hover::after { transform: translateX(120%); }
.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgb(217 184 120 / .32); }
.primary:active { transform: translateY(0); box-shadow: 0 6px 16px rgb(217 184 120 / .25); }
.primary:disabled { opacity: .5; cursor: default; transform: none; }
.primary:disabled::after { display: none; }
@keyframes btnshine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lt { display: inline-block; opacity: 0; transform: translateY(.28em); animation: lt 1.1s cubic-bezier(.22, 1, .36, 1) forwards; animation-delay: var(--d, 0ms); }
.gold-text .lt { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes lt { to { opacity: 1; transform: none; } }

/* Barra de demo */
.demobar { position: relative; z-index: 60; background: var(--bar); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.demobar-in { max-width: 820px; margin: 0 auto; padding: .5rem 16px; display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: center; justify-content: space-between; }
.demo-tag { color: #1d1430; background: var(--gold); border-radius: 999px; padding: .12rem .75rem; font: 600 .68rem var(--caps); letter-spacing: .18em; }
.timebox { display: flex; align-items: center; gap: .35rem; }
.timebox button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: none; font-size: 1.1rem; line-height: 1; transition: border-color .2s, background .2s; }
.timebox button:hover:not(:disabled) { border-color: var(--gold); background: rgb(217 184 120 / .1); }
.timebox button:disabled { opacity: .35; cursor: default; }
.timebox output { min-width: 10em; text-align: center; font-size: .9rem; font-variant-numeric: lining-nums; }
.demo-actions { display: flex; gap: .1rem; flex-wrap: wrap; }

main { max-width: 820px; margin: 0 auto; padding: 0 14px 3rem; overflow-x: clip; }

/* Portada */
.welcome { position: relative; overflow: clip; overflow-clip-margin: 0; text-align: center; padding: clamp(3rem, 10vw, 5.5rem) 0 clamp(2rem, 6vw, 3rem); isolation: isolate; }
.zodiac { position: absolute; left: 50%; top: 50%; width: min(560px, 96vw); aspect-ratio: 1; translate: -50% -50%; z-index: -1; opacity: .32; animation: spin 140s linear infinite; }
.zodiac text { fill: var(--gold); font: 400 15px var(--body); }
.zodiac .ring { fill: none; stroke: var(--gold); stroke-width: .6; }
@keyframes spin { to { rotate: 360deg; } }
.welcome h1 { font: 500 clamp(4rem, 17vw, 7.5rem)/1 var(--caps); letter-spacing: .04em; margin: .5rem 0 .7rem; filter: drop-shadow(0 2px 18px rgb(217 184 120 / .22)); }
.welcome .sub { font: italic 400 clamp(1.3rem, 4.4vw, 1.6rem) var(--display); opacity: 0; animation: rise 1s var(--ease-out) 1.1s forwards; }
.welcome .sub span { color: var(--gold-bright); }
.welcome .hint { margin-top: 1rem; opacity: 0; animation: rise 1s var(--ease-out) 1.4s forwards; }
.welcome .eyebrow { opacity: 0; animation: rise 1s var(--ease-out) .1s forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.5rem, 5vw, 2.8rem); margin-bottom: 1.8rem; backdrop-filter: blur(6px); box-shadow: 0 30px 80px var(--shadow), inset 0 1px 0 rgb(255 255 255 / .04); }
.card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgb(240 217 164 / .55), transparent 30%, transparent 70%, rgb(240 217 164 / .35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.card > h2 { font: 400 clamp(2rem, 5.5vw, 2.7rem)/1.1 var(--display); margin: .55rem 0 1.4rem; }
.center { text-align: center; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s cubic-bezier(.22, 1, .36, 1), transform 1s cubic-bezier(.22, 1, .36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Calendario: puertas de dos hojas */
.today-cta { display: grid; justify-items: center; gap: .5rem; margin: 0 auto 2rem; max-width: 330px; }
.today-cta .primary { width: 100%; }
.month { margin-bottom: 1.8rem; }
.month h3 { font: 500 1.35rem var(--caps); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-bright); margin: 0 0 1rem; }
.grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .8rem .55rem; max-width: 560px; margin: 0 auto; }
.weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .55rem; max-width: 560px; margin: 0 auto .5rem; font: 500 .66rem var(--caps); letter-spacing: .14em; color: var(--muted); }
.door { position: relative; aspect-ratio: 3 / 4.2; padding: 0; border: 0; background: none; perspective: 500px; border-radius: 50% 50% 6px 6px / 28% 28% 6px 6px; }
.door .in { position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 50% 45%, #fff6dc, var(--gold) 45%, #6b4f22); box-shadow: inset 0 0 14px rgb(0 0 0 / .5); }
.door .lf, .door .rf { position: absolute; top: 0; bottom: 0; width: 50%; background: linear-gradient(180deg, var(--leaf1), var(--leaf3)); border: 1px solid rgb(217 184 120 / .5); transition: transform .9s var(--ease-out), filter .4s; backface-visibility: hidden; }
.door .lf { left: 0; transform-origin: left center; border-radius: 100% 0 3px 6px / 40% 0 3px 6px; border-right-color: rgb(217 184 120 / .25); }
.door .rf { right: 0; transform-origin: right center; border-radius: 0 100% 6px 3px / 0 40% 6px 3px; border-left-color: rgb(217 184 120 / .25); }
.door .lf::after, .door .rf::after { content: ''; position: absolute; top: 52%; width: 3px; height: 3px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 6px var(--gold); }
.door .lf::after { right: 4px; } .door .rf::after { left: 4px; }
.door b { position: absolute; inset: 0; display: grid; place-items: center; font: 600 1.25rem/1 var(--caps); font-variant-numeric: lining-nums; color: var(--gold-bright); pointer-events: none; text-shadow: 0 0 10px rgb(0 0 0 / .8); transition: color .5s; }
.door .lock { position: absolute; left: 50%; bottom: 3%; translate: -50% 0; color: var(--muted); pointer-events: none; }
.door.futuro { cursor: not-allowed; }
.door.futuro .lf, .door.futuro .rf { filter: saturate(.4) brightness(.65); }
.door.futuro b { color: var(--muted); }
.door.disponible { filter: drop-shadow(0 0 8px rgb(240 217 164 / .35)); }
.door.disponible .lf { transform: rotateY(-14deg); } .door.disponible .rf { transform: rotateY(14deg); }
.door.disponible:hover .lf { transform: rotateY(-38deg); } .door.disponible:hover .rf { transform: rotateY(38deg); }
.door.abierta .lf { transform: rotateY(-78deg); } .door.abierta .rf { transform: rotateY(78deg); }
.door.abierta b { color: #2a1b0c; text-shadow: none; }
.door.abierta:hover .lf { transform: rotateY(-88deg); } .door.abierta:hover .rf { transform: rotateY(88deg); }
.door.hoy::before { content: ''; position: absolute; inset: -5px; border: 1px solid rgb(240 217 164 / .55); border-radius: 50% 50% 9px 9px / 30% 30% 9px 9px; pointer-events: none; }
.door.shake { animation: shake .45s ease; }
@keyframes doorglow { 50% { filter: drop-shadow(0 0 14px rgb(240 217 164 / .65)); } }
@keyframes shake { 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }

/* Portal: la puerta grande */
.overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; overflow-y: auto; background: radial-gradient(900px 600px at 50% 40%, var(--ov1), var(--ov2) 75%) var(--ov2); animation: fadein .5s ease; }
.overlay.out { animation: fadeout .5s ease forwards; }
@keyframes fadein { from { opacity: 0; } } @keyframes fadeout { to { opacity: 0; } }
.close-x { position: fixed; top: 12px; right: 12px; z-index: 82; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgb(0 0 0 / .3); font-size: 1.3rem; }
.rays { position: absolute; left: 50%; top: 45%; width: 140vmax; height: 140vmax; translate: -50% -50%; pointer-events: none; opacity: 0; background: radial-gradient(circle, rgb(255 228 170 / .14), rgb(120 80 170 / .08) 30%, transparent 55%); transition: opacity 1.6s ease; }
.rays.on { opacity: 1; }
.pstage { position: relative; display: grid; place-items: center; width: min(560px, 100%); min-height: 70vh; }
.pdoor { position: relative; width: min(260px, 64vw); aspect-ratio: 3 / 4.4; perspective: 1100px; transform: translateY(16px); opacity: 0; transition: transform 1.2s cubic-bezier(.22, 1, .36, 1), opacity 1s; }
.pdoor.show { transform: none; opacity: 1; }
.pdoor.leak { transform: scale(1.035); transition: transform 2.4s cubic-bezier(.4, 0, .2, 1), opacity .8s; }
.pdoor.through { transform: scale(1.08); opacity: 0; transition: transform 1.2s cubic-bezier(.4, 0, .2, 1), opacity 1s; }
@keyframes rumble { 25% { translate: -2px 1px; } 50% { translate: 2px -1px; } 75% { translate: -1px -1px; } }
.pdoor .frame { position: absolute; inset: -12px; border-radius: 50% 50% 10px 10px / 30% 30% 10px 10px; border: 2px solid var(--gold); box-shadow: 0 0 30px rgb(217 184 120 / .35), inset 0 0 20px rgb(217 184 120 / .2); }
.pdoor .light { position: absolute; inset: 0; border-radius: 50% 50% 6px 6px / 30% 30% 6px 6px; background: radial-gradient(circle at 50% 50%, #fff, #fff2c9 30%, var(--gold) 65%, #7a5a26); box-shadow: 0 0 80px rgb(255 240 200 / .6); }
.pleaf { position: absolute; top: 0; bottom: 0; width: 50%; transition: transform 1.6s cubic-bezier(.5, 0, .2, 1); background: linear-gradient(180deg, var(--leaf1), var(--leaf3) 90%); border: 1.5px solid var(--gold); display: grid; place-items: center; overflow: hidden; }
.pleaf.l { left: 0; transform-origin: left center; border-radius: 100% 0 0 6px / 30% 0 0 6px; }
.pleaf.r { right: 0; transform-origin: right center; border-radius: 0 100% 6px 0 / 0 30% 6px 0; }
.pleaf svg { width: 72%; color: var(--gold); opacity: .85; }
.pleaf.r svg { transform: scaleX(-1); }
.pdoor .seam { position: absolute; left: 50%; top: 8%; bottom: 0; width: 2px; translate: -50% 0; background: #fff6da; box-shadow: 0 0 10px #fff2c9, 0 0 30px var(--gold); opacity: 0; transition: opacity .6s, width .6s; }
.pdoor.leak .seam { opacity: 1; width: 4px; }
.pdoor.open .pleaf.l { transform: rotateY(-112deg); } .pdoor.open .pleaf.r { transform: rotateY(112deg); }
.pdoor.open .seam { opacity: 0; }
.pnum { position: absolute; left: 50%; top: -5rem; translate: -50% 0; text-align: center; white-space: nowrap; }
.pnum b { display: block; font: 600 2.4rem/1 var(--caps); }
.flood { position: fixed; left: 50%; top: 50%; width: 40px; height: 40px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, #fff 0, #fff3d1 35%, rgb(240 217 164 / 0) 70%); opacity: 0; pointer-events: none; z-index: 81; }
.flood.on { animation: flood 1.6s ease-out forwards; }
@keyframes flood { 0% { opacity: 0; transform: scale(1); } 30% { opacity: .55; } 100% { opacity: 0; transform: scale(34); } }
.pmsg { position: absolute; width: min(540px, 100%); text-align: center; padding: clamp(1.6rem, 6vw, 2.8rem); border-radius: 24px; background: linear-gradient(180deg, var(--tile1), var(--tile2)); border: 1px solid var(--gold); box-shadow: 0 0 60px rgb(217 184 120 / .25), 0 30px 80px rgb(0 0 0 / .6); opacity: 0; transform: translateY(14px); transition: opacity 1s cubic-bezier(.22, 1, .36, 1), transform 1.1s cubic-bezier(.22, 1, .36, 1); }
.pmsg.show { opacity: 1; transform: none; filter: none; }
.pmsg h3 { font: 500 clamp(2rem, 7vw, 2.9rem)/1.1 var(--display); margin: .6rem 0 1.1rem; }
.pmsg .orn { color: var(--gold); letter-spacing: .6em; margin-bottom: .2rem; }
.door-text { font: italic 400 clamp(1.35rem, 4.4vw, 1.7rem)/1.5 var(--display); min-height: 4.5em; }
.pmsg .foot-row { margin-top: 1.6rem; display: grid; justify-items: center; gap: .6rem; }
.typing::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.12em; background: var(--gold-bright); box-shadow: 0 0 8px var(--gold); animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Racha */
.streak-wrap { display: grid; justify-items: center; }
.ring { position: relative; width: 200px; height: 200px; }
.ring svg { width: 100%; height: 100%; rotate: -90deg; overflow: visible; }
.ring .track { fill: none; stroke: rgb(255 255 255 / .07); stroke-width: 6; }
.ring .bar { fill: none; stroke: url(#rg); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--ease-out); filter: drop-shadow(0 0 6px rgb(240 217 164 / .7)); }
.ring .num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .num b { font: 500 4.4rem/1 var(--caps); font-variant-numeric: lining-nums; }
.ring .num span { font: 500 .66rem var(--caps); letter-spacing: .24em; color: var(--gold); text-transform: uppercase; margin-top: .3rem; }
.flame { position: absolute; left: 50%; top: -6px; translate: -50% 0; font-size: 1rem; color: var(--gold-bright); }
@keyframes flick { 50% { transform: scale(1.18) translateY(-2px); opacity: .8; } }
.streak-note { margin: 1.1rem auto 0; max-width: 32em; }
.rewards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; text-align: left; margin-top: 1.8rem; width: 100%; }
.reward { position: relative; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 18px; padding: 1.2rem; display: grid; gap: .5rem; align-content: start; background: var(--soft); }
.reward.locked > *:not(.eyebrow):not(h4):not(.hint) { display: none; }
.reward.locked h4 { color: var(--muted); }
.reward .badge { position: absolute; right: 14px; top: 12px; font-size: 1.2rem; opacity: .4; }
.reward.open { border-color: var(--gold); background: linear-gradient(160deg, rgb(217 184 120 / .14), rgb(217 184 120 / .03)); }
.reward.open .badge { opacity: 1; filter: drop-shadow(0 0 8px var(--gold)); }
.reward.open::after { display: none;  content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgb(255 245 215 / .22) 50%, transparent 65%); transform: translateX(-100%); animation: sweep 4s ease-in-out infinite; pointer-events: none; }
.reward.pop { animation: rewardpop 1s var(--spring); }
@keyframes rewardpop { 0% { transform: scale(.9); } 50% { transform: scale(1.05); box-shadow: 0 0 50px rgb(240 217 164 / .5); } }
@keyframes sweep { 0%, 50% { transform: translateX(-100%); } 90%, 100% { transform: translateX(100%); } }
.reward h4 { font: 500 1.4rem var(--display); }
.reward p { font-size: .95rem; line-height: 1.55; }
.audio-mock { display: flex; align-items: center; gap: .7rem; border: 1px solid var(--line); border-radius: 999px; padding: .45rem .9rem; font-size: .85rem; color: var(--muted); }
.audio-mock i { width: 0; height: 0; border-left: 10px solid var(--gold); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.audio-mock .wave { display: flex; gap: 2px; align-items: center; height: 18px; }
.audio-mock .wave span { width: 2px; background: var(--gold); border-radius: 2px; animation: wave 1.1s ease-in-out infinite; animation-delay: calc(var(--k) * -110ms); height: 40%; }
@keyframes wave { 50% { height: 100%; } }
.mini-card { width: 92px; justify-self: center; border-radius: 6px; box-shadow: 0 1px 0 rgb(255 255 255 / .15) inset, 0 10px 24px rgb(0 0 0 / .55); }
@keyframes floaty { 50% { transform: translateY(-6px) rotate(1.5deg); } }

/* Quincenales */
.timeline { position: relative; padding-left: 1.6rem; }
.timeline::before { content: ''; position: absolute; left: 5px; top: .5rem; bottom: .5rem; width: 1px; background: linear-gradient(var(--gold), transparent); }
.transit { position: relative; padding: 0 0 1.6rem; }
.transit::before { content: ''; position: absolute; left: calc(-1.6rem + 1px); top: .45rem; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgb(217 184 120 / .15); }
.transit.latest::before { background: #fff3d1; box-shadow: 0 0 0 5px rgb(217 184 120 / .25), 0 0 16px var(--gold); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgb(217 184 120 / .08), 0 0 24px var(--gold); } }
.transit h3 { font: 400 1.65rem/1.2 var(--display); margin: .3rem 0 .6rem; }
.transit.latest h3 { color: var(--gold-bright); }
.transit p + p { margin-top: .55em; }
.transit.locked { opacity: .55; }
.transit.locked p.blur { filter: blur(5px); user-select: none; }

/* Tarot */
.table { position: relative; height: var(--th, 460px); margin: .5rem 0 0; }
.slot { position: absolute; left: 50%; top: 50%; width: var(--cw); height: var(--chh); margin-left: calc(var(--cw) / -2); margin-top: calc(var(--chh) / -2); will-change: transform; }
.tc { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; border-radius: 9px; }
.tc:disabled { cursor: default; }
.tcin { display: block; width: 100%; height: 100%; transition: transform .45s cubic-bezier(.22, 1, .36, 1), filter .45s; filter: drop-shadow(0 10px 18px rgb(0 0 0 / .5)); }
.tcin svg { display: block; width: 100%; height: 100%; }
.fanned .tc { animation: none; }
.fanned .tc:hover .tcin, .fanned .tc:focus-visible .tcin { transform: translateY(-18px); filter: drop-shadow(0 18px 22px rgb(0 0 0 / .55)) drop-shadow(0 0 1px rgb(240 217 164 / .9)); }
@keyframes bob { 50% { transform: translateY(-5px); } }
.table-ctl { display: grid; justify-items: center; gap: .4rem; margin-top: .6rem; min-height: 90px; }
.flipwrap { position: absolute; left: 50%; top: 50%; width: var(--bw); aspect-ratio: 300 / 508; translate: -50% -50%; perspective: 1400px; }
.halo { position: absolute; left: 50%; top: 50%; width: 190%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none; opacity: 0; scale: .85; transition: opacity 1.4s ease, scale 1.8s cubic-bezier(.22, 1, .36, 1); background: radial-gradient(circle, rgb(255 236 190 / .22), rgb(217 184 120 / .06) 40%, transparent 62%); }
.halo.on { opacity: 1; scale: 1; }
.tilt { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.flipper { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1.15s cubic-bezier(.45, .05, .2, 1); }
.flipper.on { transform: rotateY(180deg); }
.flipper > * { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 12px; overflow: hidden; box-shadow: 0 25px 60px rgb(0 0 0 / .6), 0 0 50px rgb(217 184 120 / .2); }
.flipper .back svg { display: block; width: 100%; height: 100%; }
.flipper .front { transform: rotateY(180deg); background: #e9dcc0; border: 1px solid rgb(240 217 164 / .7); }
.flipper .front img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sheen { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgb(255 255 255 / .75), transparent 45%); }
.sheen::after { display: none;  content: ''; position: absolute; inset: 0; mix-blend-mode: color-dodge; background: linear-gradient(115deg, transparent 30%, rgb(255 230 170 / .55) 45%, rgb(190 160 255 / .35) 52%, transparent 65%); background-size: 250% 100%; background-position: 120% 0; }
.sheen.go::after { animation: holo 1.8s ease-out; }
@keyframes holo { to { background-position: -40% 0; } }
.card-info { max-width: 30em; margin: 0 auto; display: grid; gap: .5rem; justify-items: center; }
.card-info h3 { font: 500 clamp(2.1rem, 6.5vw, 2.9rem)/1.1 var(--display); }
.card-info .fade { opacity: 0; animation: rise 1s var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
.card-info q { display: block; quotes: none; font: italic 400 clamp(1.4rem, 4vw, 1.75rem)/1.35 var(--display); margin-top: .4rem; }
.card-info .trad { margin-top: .8rem; padding-top: .9rem; border-top: 1px solid var(--line-soft); }
.sub-block { margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); text-align: left; }
.sub-block h3 { font: 400 1.55rem var(--display); margin: 0 0 1rem; }

/* Comentarios */
textarea { display: block; width: 100%; min-height: 84px; padding: .7rem .9rem; resize: vertical; line-height: 1.55; font: inherit; color: inherit; background: var(--field); border: 1px solid var(--line-soft); border-radius: 12px; transition: border-color .3s, box-shadow .3s; }
textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 4px rgb(217 184 120 / .12); }
.cform { display: flex; justify-content: flex-end; margin: .7rem 0 .4rem; }
.cform .primary { min-height: 44px; padding: .45rem 1.4rem; }
.clist { list-style: none; padding: 0; margin: 0; }
.clist li { border-top: 1px solid var(--line-soft); padding: 1rem 0; text-align: left; }
.clist li.new { animation: newc .9s var(--spring); }
@keyframes newc { from { opacity: 0; transform: translateY(-12px) scale(.97); background: rgb(217 184 120 / .15); } }
.chead { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--acc1), var(--acc2)); border: 1px solid var(--line); color: var(--gold-bright); font-size: 1rem; }
.chead b { color: var(--gold-bright); font-weight: 400; }
.chead span.s { color: var(--muted); font-size: .84rem; }
.ctext { margin: .35rem 0 0 calc(34px + .65rem); overflow-wrap: anywhere; }
.luz { margin: .5rem 0 0 calc(34px + .65rem); min-height: 34px; padding: .15rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--muted); font-size: .9rem; transition: all .3s var(--spring); }
.luz.on { border-color: var(--gold); color: var(--gold-bright); background: rgb(217 184 120 / .14); box-shadow: 0 0 18px rgb(217 184 120 / .35); transform: scale(1.06); }
.question { border-left: 2px solid var(--gold); padding: .2rem 0 .2rem 1.1rem; margin-bottom: 2rem; text-align: left; }
.question q { display: block; quotes: none; font: italic 400 clamp(1.45rem, 4vw, 1.85rem)/1.3 var(--display); margin: .3rem 0 .9rem; }

/* Ritual */
.rstage { position: relative; width: min(560px, 100%); text-align: center; display: grid; justify-items: center; gap: 1.05rem; }
.rt { font: 500 clamp(3.2rem, 13vw, 5.4rem)/1.05 var(--caps); filter: drop-shadow(0 0 24px rgb(217 184 120 / .4)); }
.rglyph { font: 400 clamp(5rem, 22vw, 8rem)/1 var(--body); color: var(--gold-bright); text-shadow: 0 0 24px rgb(217 184 120 / .45); animation: glyphin 1.4s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes glyphin { from { opacity: 0; transform: scale(.94); } }
.rs { font: 500 clamp(2.4rem, 10vw, 4rem)/1.05 var(--caps); }
.rp { font: italic 400 clamp(1.4rem, 4.5vw, 1.85rem)/1.45 var(--display); min-height: 5.8em; max-width: 24em; }
.rstage .primary { width: min(280px, 100%); }
.rstage > .in-anim { opacity: 0; animation: rise .9s var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
.wheel { width: min(340px, 80vw); height: auto; overflow: visible; }
.wl { fill: none; stroke: var(--gold); stroke-width: .7; stroke-opacity: .85; }
.wheel .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s ease forwards; animation-delay: var(--d, 0s); }
.wheel .fade { opacity: 0; animation: appear .8s ease forwards; animation-delay: var(--d, 0s); }
.wheel .spinner { transform-origin: 0 0; animation: spin 26s linear infinite; }
.wheel .scan { transform-origin: 0 0; animation: spin 3s linear infinite; opacity: 0; animation-name: spin, appear; animation-duration: 3s, .6s; animation-delay: 0s, 1.6s; animation-iteration-count: infinite, 1; animation-fill-mode: none, forwards; }
.wsign { fill: var(--gold-bright); font: 400 10px var(--body); }
.wdot { fill: #fff3d1; filter: drop-shadow(0 0 4px rgb(240 217 164 / 1)); }
.wplanet { transform-origin: 0 0; animation: orbit 2s var(--ease-out) both; animation-delay: var(--d, 0s); }
@keyframes orbit { from { transform: rotate(-200deg) scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 96; translate: -50% 0; width: max-content; max-width: calc(100% - 32px); padding: .75rem 1.3rem; border-radius: 22px; background: var(--bar-solid); border: 1px solid var(--gold); box-shadow: 0 0 30px rgb(217 184 120 / .3); font-size: .95rem; text-align: center; animation: toast 3.2s var(--ease-out) forwards; }
@keyframes toast { 0% { opacity: 0; transform: translateY(20px) scale(.95); } 12%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(10px); } }
.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 1rem 16px 3rem; max-width: 760px; margin: 0 auto; }
@media (max-width: 560px) { .demobar-in { justify-content: center; padding: .4rem 10px; gap: .1rem .4rem; } .timebox output { min-width: 0; font-size: .85rem; } .demo-actions .link { font-size: .82rem; padding: .35rem .3rem; min-height: 34px; } .card { padding: 1.4rem 1.05rem; border-radius: 20px; backdrop-filter: none; } .welcome { padding-top: 2.4rem; } .rewards { grid-template-columns: 1fr; } .ring { width: 170px; height: 170px; } .ring .num b { font-size: 3.6rem; } .pnum { top: -4.4rem; } .pnum b { font-size: 2rem; } .grid { gap: .6rem .32rem; } .weekdays { gap: .32rem; } .door b { font-size: 1.05rem; } }
@media (prefers-reduced-motion: reduce) { body::before, .zodiac, .rays, .halo, .door.hoy::before, .tilt, .mini-card, .fanned .tc, .flame { animation: none !important; } .pdoor.leak { animation: none; } }

/* App: cabecera, navegación, inicio */
.apphead { position: sticky; top: 0; z-index: 55; background: var(--bar); backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid var(--line-soft); }
.apphead-in { max-width: 980px; margin: 0 auto; height: 64px; padding: 0 16px; display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--gold); margin-right: auto; }
.logo { width: 40px; height: 40px; flex: none; border-radius: 50%; filter: drop-shadow(0 0 10px rgb(217 184 120 / .45)); }
.brand span { display: grid; line-height: 1.15; }
.brand b { font: 600 .95rem var(--caps); letter-spacing: .12em; color: var(--text); }
.brand small { font-size: .72rem; color: var(--muted); letter-spacing: .06em; }
.topnav { display: none; gap: .25rem; }
.navbtn { display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: .4rem .95rem; border: 1px solid transparent; border-radius: 999px; background: none; color: var(--muted); font-size: .9rem; transition: color .25s, background .25s, border-color .25s; }
.navbtn svg { width: 18px; height: 18px; }
.navbtn:hover { color: var(--text); }
.navbtn[aria-current="page"] { color: var(--gold-bright); background: rgb(217 184 120 / .1); border-color: var(--line); }
.me { position: relative; width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--gold); background: linear-gradient(135deg, var(--acc1), var(--acc2)); display: grid; place-items: center; padding: 0; }
.me span { font: 600 1rem var(--caps); color: var(--gold-bright); }
.me i { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #1d1430; font-style: normal; font-size: .7rem; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: repeat(4, 1fr); padding: .35rem 6px calc(.35rem + env(safe-area-inset-bottom)); background: var(--bar); backdrop-filter: blur(16px) saturate(1.3); border-top: 1px solid var(--line-soft); }
.tabbar .navbtn { flex-direction: column; gap: .2rem; padding: .3rem 0; border: 0; border-radius: 12px; font-size: .68rem; letter-spacing: .04em; min-height: 54px; justify-content: center; }
.tabbar .navbtn svg { width: 22px; height: 22px; }
.tabbar .navbtn[aria-current="page"] { background: none; }
.tabbar .navbtn[aria-current="page"] svg { filter: drop-shadow(0 0 6px rgb(240 217 164 / .7)); }
.dot { position: absolute; top: 6px; margin-left: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 8px var(--gold); }
.navbtn { position: relative; }
body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) { .topnav { display: flex; } .tabbar { display: none; } body { padding-bottom: 0; } }
.view { animation: viewin .6s var(--ease-out); }
@keyframes viewin { from { opacity: 0; transform: translateY(14px); } }
main { padding-top: 1.2rem !important; }
.welcome .bigthree { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.3rem; opacity: 0; animation: rise 1s var(--ease-out) 1s forwards; }
.chip { display: flex; align-items: center; gap: .6rem; padding: .45rem 1rem .45rem .5rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(6px); text-align: left; }
.chip i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 1.05rem; color: #1d1430; background: var(--gold-grad); }
.chip span { display: grid; line-height: 1.2; }
.chip small { font: 500 .6rem var(--caps); letter-spacing: .18em; color: var(--gold); text-transform: uppercase; }
.chip b { font-weight: 400; font-size: .95rem; }
.tiles { display: grid; gap: .9rem; margin-bottom: 1.8rem; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; align-items: center; text-align: left; padding: 1.1rem 1.15rem; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--tile1), var(--tile2)); color: inherit; transition: transform .45s cubic-bezier(.22, 1, .36, 1), border-color .3s, box-shadow .3s; }
.tile:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 16px 40px rgb(0 0 0 / .4), 0 0 24px rgb(217 184 120 / .15); }
.tile .ic { grid-row: span 3; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgb(217 184 120 / .1); border: 1px solid var(--line); color: var(--gold-bright); }
.tile .ic svg { width: 26px; height: 26px; }
.tile .ic img { width: 38px; border-radius: 4px; box-shadow: 0 4px 12px rgb(0 0 0 / .5); }
.tile .ic b { font: 600 1.6rem/1 var(--caps); }
.tile small { font: 500 .62rem var(--caps); letter-spacing: .2em; color: var(--gold); text-transform: uppercase; }
.tile strong { font: 500 1.3rem/1.2 var(--display); }
.tile em { font-style: normal; font-size: .84rem; color: var(--muted); }
.tile.todo { border-color: rgb(240 217 164 / .55); }
.tile.todo::after { display: none;  content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgb(255 245 215 / .12) 50%, transparent 65%); transform: translateX(-100%); animation: sweep 4.5s ease-in-out infinite; pointer-events: none; }
.tile .bar { grid-column: 2; height: 4px; border-radius: 4px; background: rgb(255 255 255 / .08); overflow: hidden; margin-top: .3rem; }
.tile .bar span { display: block; height: 100%; border-radius: inherit; background: var(--gold-grad); box-shadow: 0 0 8px var(--gold); }
.ico { width: 1em; height: 1em; vertical-align: -.12em; }
.foot { display: grid; justify-items: center; gap: .4rem; border-top: 1px solid var(--line-soft); margin-top: 1rem; padding-top: 2rem !important; }
.foot .logo { width: 56px; height: 56px; }
.foot b { color: var(--text); font-weight: 500; }
.pmsg .orn { display: block; width: 120px; height: 12px; margin: 0 auto .4rem; color: var(--gold); }

.card-head h2 { font: 400 clamp(2rem, 5.5vw, 2.7rem)/1.1 var(--display); margin: .55rem 0 1.6rem; }
.me i { font-size: .8rem; }
@media (max-width: 560px) { .welcome .bigthree { gap: .35rem; flex-wrap: nowrap; } .chip { gap: .4rem; padding: .3rem .6rem .3rem .3rem; } .chip i { width: 26px; height: 26px; font-size: .9rem; } .chip b { font-size: .82rem; } .chip small { font-size: .52rem; letter-spacing: .12em; } .apphead-in { height: 58px; } }

/* Navidad */
.welcome { padding: clamp(1.6rem, 6vw, 3rem) 0 clamp(1.4rem, 4vw, 2.2rem) !important; }
.welcome h1 { font-size: clamp(3.4rem, 14vw, 6rem) !important; margin: .3rem 0 .4rem !important; }
.tiles { grid-template-columns: 1fr; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tabbar { grid-template-columns: repeat(3, 1fr); }
.xmas { overflow: hidden; padding-top: 4.6rem; background: radial-gradient(120% 60% at 50% 0%, rgb(120 30 45 / .18), transparent 60%), var(--surface); }
.xmas > *:not(.snowfx):not(.garland):not(.holly) { position: relative; z-index: 1; }
.garland { position: absolute; left: 0; right: 0; top: 0; height: 64px; z-index: 2; pointer-events: none; }
.garland svg.wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.garland .wire path { fill: none; stroke: #2b5a3a; stroke-width: 3; vector-effect: non-scaling-stroke; }
.garland .wire path.w2 { stroke: #3e7a52; stroke-width: 1.2; stroke-dasharray: 2 5; }
.bulb { position: absolute; width: 10px; height: 15px; translate: -50% 2px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; background: var(--c); opacity: .22; transition: opacity .35s, box-shadow .35s; transition-delay: calc(var(--i) * 85ms); rotate: var(--r, 0deg); transform-origin: 50% -3px; }
.bulb::before { content: ''; position: absolute; left: 50%; top: -4px; width: 6px; height: 5px; translate: -50% 0; border-radius: 2px; background: linear-gradient(#e8d39a, #9c7a42); }
.garland.lit .bulb { opacity: 1; box-shadow: 0 0 6px var(--c), 0 0 16px var(--c); animation: twinkle 5.5s ease-in-out infinite; animation-delay: calc(var(--i) * -.41s + 1.6s); }
@keyframes twinkle { 50% { opacity: .78; box-shadow: 0 0 4px var(--c), 0 0 10px var(--c); } }
.holly { position: absolute; top: 2px; width: 62px; z-index: 3; pointer-events: none; filter: drop-shadow(0 3px 6px rgb(0 0 0 / .5)); }
.holly.hl { left: -4px; rotate: -12deg; } .holly.hr { right: -4px; rotate: 12deg; scale: -1 1; }
.snowfx { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.snowfx i { position: absolute; top: -20px; left: var(--x); color: var(--snowc); font-style: normal; font-size: var(--s); opacity: var(--o); animation: fall var(--d) linear infinite; animation-delay: var(--dl); text-shadow: 0 0 6px rgb(255 255 255 / .6); }
@keyframes fall { to { transform: translate3d(var(--dx), 1400px, 0) rotate(360deg); } }
.door .rib { position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; translate: -50% 0; background: linear-gradient(90deg, #e8c77c 0 1px, #c8323c 1px 5px, #e8c77c 5px); pointer-events: none; box-shadow: 0 0 6px rgb(0 0 0 / .4); }
.door .bow { position: absolute; left: 50%; top: 14%; width: 30px; translate: -50% 0; pointer-events: none; filter: drop-shadow(0 2px 3px rgb(0 0 0 / .5)); }
@keyframes bowbob { 50% { transform: rotate(-6deg) scale(1.08); } }
.door b { z-index: 2; }
.door.disponible.hoy b { inset: auto; left: 50%; top: 62%; translate: -50% -50%; width: 28px; height: 28px; border-radius: 50%; background: var(--leaf3); border: 1px solid var(--gold); box-shadow: 0 0 10px rgb(240 217 164 / .5); font-size: .95rem; }
.door.fiesta .lf, .door.fiesta .rf { background: linear-gradient(180deg, #8f2236, #3d0b17); border-color: rgb(232 199 124 / .7); }
.door.fiesta.futuro .lf, .door.fiesta.futuro .rf { filter: saturate(.75) brightness(.8); }
.door .star { position: absolute; left: 50%; top: 6%; translate: -50% 0; color: var(--gold-bright); font-size: .7rem; pointer-events: none; text-shadow: 0 0 6px var(--gold); }
.pribbon { position: absolute; left: 50%; top: 0; bottom: 0; width: 16px; translate: -50% 0; z-index: 3; background: linear-gradient(90deg, #f0d9a4 0 2px, #c8323c 2px 14px, #f0d9a4 14px); box-shadow: 0 0 12px rgb(0 0 0 / .4); transition: transform 1s cubic-bezier(.5, 0, .8, .5), opacity 1s; border-radius: 0 0 3px 3px; }
.pbow { position: absolute; left: 50%; top: 26%; width: 96px; translate: -50% -50%; z-index: 4; filter: drop-shadow(0 6px 10px rgb(0 0 0 / .5)); transition: transform .9s cubic-bezier(.6, -0.4, .7, 1), opacity .8s; }
.pdoor.wiggle .pbow { animation: wiggle 1.2s cubic-bezier(.36, 0, .2, 1); }
@keyframes wiggle { 30% { rotate: -4deg; } 65% { rotate: 3deg; } }
.pdoor.untie .pbow { transform: translateY(160px) rotate(40deg) scale(.6); opacity: 0; }
.pdoor.untie .pribbon { transform: translateY(110%); opacity: 0; }
.overlay .snowfx { position: fixed; z-index: 0; }
.overlay .snowfx i { animation-name: fallv; }
@keyframes fallv { to { transform: translate3d(var(--dx), 110vh, 0) rotate(360deg); } }
.pmsg .hollytop { display: block; width: 74px; margin: -.4rem auto .4rem; }
/* Acabados */
body::after { content: ''; position: fixed; inset: 0; z-index: 99; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.card::after { content: ''; position: absolute; inset: 7px; border-radius: 18px; border: 1px solid rgb(217 184 120 / .1); pointer-events: none; }
.door .lf, .door .rf { background: linear-gradient(180deg, var(--leaf1) 0%, var(--leaf2) 45%, var(--leaf3) 100%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), inset 0 0 0 3px rgb(0 0 0 / .18), inset 0 0 0 4px rgb(217 184 120 / .16); transition: transform 1s cubic-bezier(.4, 0, .2, 1), filter 1s cubic-bezier(.4, 0, .2, 1) !important; }
.door.fiesta .lf, .door.fiesta .rf { background: linear-gradient(180deg, #9a2a3e, #6a1627 50%, #3d0b17); }
.door.abierta .lf, .door.abierta .rf { filter: brightness(.62); }
.door .in { background: radial-gradient(ellipse at 50% 40%, #fff3d6, #e7c98c 45%, #a07c3e 85%, #6b4f22); box-shadow: inset 0 6px 12px rgb(0 0 0 / .35), inset 0 -2px 6px rgb(0 0 0 / .3); }
.door { transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.door:not(.futuro):hover { transform: translateY(-2px); }
.pleaf { box-shadow: inset 0 0 0 6px rgb(0 0 0 / .18), inset 0 0 0 7px rgb(217 184 120 / .35), inset 0 0 40px rgb(0 0 0 / .35); transition: transform 2s cubic-bezier(.45, .05, .2, 1), filter 2s cubic-bezier(.45, .05, .2, 1) !important; }
.pleaf::before { content: ''; position: absolute; inset: 14% 16% 10%; border: 1px solid rgb(217 184 120 / .35); border-radius: 40% 40% 4px 4px / 18% 18% 4px 4px; }
.pleaf.l::after, .pleaf.r::after { content: ''; position: absolute; top: 18%; width: 6px; height: 14px; border-radius: 2px; background: linear-gradient(90deg, #8a6a35, #f0d9a4, #8a6a35); }
.pleaf.l::after { left: -1px; } .pleaf.r::after { right: -1px; }
.pdoor.open .pleaf { filter: brightness(.38); }
.pdoor .spill { position: absolute; left: 50%; bottom: -26px; width: 230%; height: 70px; translate: -50% 0; border-radius: 50%; background: radial-gradient(ellipse at 50% 0%, rgb(255 236 190 / .55), rgb(217 184 120 / .12) 45%, transparent 70%); opacity: 0; transition: opacity 1.8s ease .3s; pointer-events: none; }
.pdoor.open .spill { opacity: 1; }
.pdoor .frame { box-shadow: 0 0 0 1px rgb(0 0 0 / .4), 0 18px 50px rgb(0 0 0 / .55), inset 0 0 18px rgb(217 184 120 / .15) !important; }
.flipper > * { box-shadow: 0 1px 0 rgb(255 255 255 / .12) inset, 0 2px 0 #c9b48a, 0 3px 0 #9d8760, 0 24px 50px rgb(0 0 0 / .55) !important; }
.flipper .front img { filter: saturate(.92) contrast(1.03); }
.sheen { mix-blend-mode: soft-light; background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgb(255 255 255 / .35), transparent 50%); }
.welcome h1 .lt { animation-duration: 1.4s; }

/* Grosor de las puertas y puerta roja */
.door .lf, .door .rf { transform-style: preserve-3d; }
.door .edge, .pleaf .edge { position: absolute; top: 0; bottom: 0; display: block; background: linear-gradient(90deg, var(--edge2), var(--edge1) 45%, var(--edge2)); backface-visibility: visible; pointer-events: none; }
.door .edge { width: 5px; }
.door .lf .edge { right: 0; transform-origin: right center; transform: rotateY(-90deg); }
.door .rf .edge { left: 0; transform-origin: left center; transform: rotateY(90deg); }
.door.abierta .lf, .door.abierta .rf { filter: none !important; box-shadow: inset 0 0 0 40px rgb(0 0 0 / .32), inset 0 0 0 3px rgb(0 0 0 / .18) !important; }
.pleaf { overflow: visible !important; transform-style: preserve-3d; }
.pleaf .edge { width: 16px; background: linear-gradient(90deg, var(--edge2), var(--edge1) 30%, #f6e2b0 50%, var(--edge1) 70%, var(--edge2)); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .25); }
.pleaf.l .edge { right: 0; transform-origin: right center; transform: rotateY(-90deg); }
.pleaf.r .edge { left: 0; transform-origin: left center; transform: rotateY(90deg); }
.pdoor.open .pleaf { filter: none !important; box-shadow: inset 0 0 0 300px rgb(0 0 0 / .5), inset 0 0 0 7px rgb(217 184 120 / .35) !important; }
.pdoor.open .pleaf.l { transform: rotateY(-100deg) !important; } .pdoor.open .pleaf.r { transform: rotateY(100deg) !important; }
.pdoor.fiesta .pleaf { background: linear-gradient(180deg, #a52f45, #6a1627 55%, #320a14); }
.pdoor.fiesta .frame { border-color: #e8c77c; }
.pstage { grid-template-areas: "s"; } .pstage > * { grid-area: s; }
.pmsg { position: relative !important; }
.door-text { font-size: clamp(1.2rem, 3.9vw, 1.45rem) !important; line-height: 1.55 !important; min-height: 0 !important; text-wrap: pretty; }

.pdoor.open .pleaf.l { transform: rotateY(-70deg) !important; } .pdoor.open .pleaf.r { transform: rotateY(70deg) !important; }
.pdoor.open .pleaf { box-shadow: inset 0 0 0 300px rgb(0 0 0 / .35), inset 0 0 0 7px rgb(217 184 120 / .35) !important; }
.door.abierta .lf { transform: rotateY(-68deg) !important; } .door.abierta .rf { transform: rotateY(68deg) !important; }
.door .lf::after, .door .rf::after { top: 66% !important; }
:root[data-theme="blanco"] .door.futuro .lf, :root[data-theme="blanco"] .door.futuro .rf { filter: saturate(.7) brightness(.97) !important; }
:root[data-theme="blanco"] .door.futuro b { color: #6e5a3c; } :root[data-theme="blanco"] .door .lock { color: #8f7a58; } :root[data-theme="blanco"] .door b { color: #5c4526; }

/* Administración */
.tabbar { grid-template-columns: repeat(var(--tabs, 4), 1fr) !important; }
.adm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.adm-head h2 { font: 400 clamp(1.9rem, 5vw, 2.5rem)/1.1 var(--display); margin-top: .4rem; }
.adm-badge { font: 600 .66rem var(--caps); letter-spacing: .18em; text-transform: uppercase; color: #1d1430; background: var(--gold-grad); padding: .35rem .8rem; border-radius: 999px; }
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; margin-bottom: 1.4rem; }
.stat { padding: .9rem 1rem; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--soft); }
.stat b { display: block; font: 500 1.9rem/1 var(--caps); color: var(--gold-bright); font-variant-numeric: lining-nums; }
.stat span { font-size: .8rem; color: var(--muted); }
.seg { display: flex; gap: .3rem; overflow-x: auto; padding: .25rem; border-radius: 999px; border: 1px solid var(--line); margin-bottom: 1.4rem; scrollbar-width: none; }
.seg button { flex: none; border: 0; background: none; color: var(--muted); padding: .5rem 1rem; border-radius: 999px; font-size: .88rem; min-height: 40px; transition: background .3s, color .3s; }
.seg button[aria-selected="true"] { background: rgb(217 184 120 / .16); color: var(--text); }
.adm label.f { display: grid; gap: .35rem; margin-bottom: 1rem; font-size: .82rem; color: var(--muted); }
.adm input[type=text], .adm select { width: 100%; min-height: 46px; padding: .55rem .9rem; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--field); color: var(--text); font: inherit; }
.adm select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.adm input:focus, .adm select:focus { outline: none; border-color: var(--gold); }
.adm textarea { min-height: 150px; }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: .35rem; margin-bottom: 1.2rem; }
.days button { min-height: 40px; border-radius: 10px; border: 1px solid var(--line-soft); background: var(--soft); color: var(--text); font: 500 .95rem var(--caps); font-variant-numeric: lining-nums; position: relative; }
.days button[aria-pressed="true"] { border-color: var(--gold); background: rgb(217 184 120 / .18); color: var(--gold-bright); }
.days button.mod::after { content: ''; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.days button.fiesta { border-color: rgb(200 60 70 / .5); }
.ph { display: flex; flex-wrap: wrap; gap: .35rem; margin: -.4rem 0 1rem; align-items: center; }
.ph span { font-size: .78rem; color: var(--muted); margin-right: .2rem; }
.ph button { border: 1px dashed var(--line); background: none; color: var(--gold-bright); border-radius: 999px; padding: .2rem .7rem; font-size: .8rem; min-height: 32px; }
.adm-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .4rem 0 1.4rem; }
.adm-actions .primary { min-height: 46px; padding: .5rem 1.5rem; }
.ghost { min-height: 46px; padding: .5rem 1.2rem; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--text); font-size: .9rem; }
.ghost.danger { border-color: rgb(200 70 80 / .5); color: #e58a93; }
.preview { border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem 1.4rem; background: linear-gradient(180deg, var(--tile1), var(--tile2)); }
.preview .eyebrow { margin-bottom: .4rem; }
.preview h4 { font: 500 1.6rem var(--display); color: var(--gold-bright); margin-bottom: .5rem; }
.preview p.m { font: italic 400 1.2rem/1.55 var(--display); }
.preview .src { margin-top: .8rem; font-size: .78rem; color: var(--muted); }
.signs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .4rem; margin-bottom: 1.2rem; }
.signs button { display: flex; align-items: center; gap: .4rem; min-height: 42px; padding: .3rem .6rem; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--soft); color: var(--text); font-size: .85rem; position: relative; }
.signs button i { font-style: normal; color: var(--gold-bright); }
.signs button[aria-pressed="true"] { border-color: var(--gold); background: rgb(217 184 120 / .18); }
.signs button.mod::after { content: ''; position: absolute; top: 5px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.switch { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; font-size: .92rem; cursor: pointer; }
.switch input { width: 42px; height: 24px; appearance: none; border-radius: 999px; background: var(--line-soft); border: 1px solid var(--line); position: relative; cursor: pointer; transition: background .3s; }
.switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .3s cubic-bezier(.22, 1, .36, 1), background .3s; }
.switch input:checked { background: rgb(217 184 120 / .35); } .switch input:checked::after { transform: translateX(18px); background: var(--gold-bright); }
.mlist { display: grid; gap: .5rem; }
.mrow { display: grid; grid-template-columns: 40px 1fr; gap: .2rem .8rem; align-items: center; text-align: left; padding: .75rem .9rem; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--soft); color: inherit; width: 100%; }
.mrow:hover { border-color: var(--line); }
.mrow .avatar { grid-row: span 2; width: 40px; height: 40px; }
.mrow b { font-weight: 500; } .mrow small { color: var(--muted); font-size: .8rem; }
.mrow .r { grid-row: span 2; font: 500 .8rem var(--caps); color: var(--gold-bright); text-align: right; }
.adm .back { margin-bottom: 1rem; }
.adm h3 { font: 500 1.8rem var(--display); }
.adm .bigthree { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0 1.2rem; }
.adm h4.sec { font: 500 .72rem var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 1.6rem 0 .8rem; padding-top: 1.2rem; border-top: 1px solid var(--line-soft); }
.tedit { border: 1px solid var(--line-soft); border-radius: 14px; padding: 1rem; margin-bottom: .8rem; }
.tedit .eyebrow { margin-bottom: .5rem; }
.tedit textarea { min-height: 120px; }
.clist2 { list-style: none; margin: 0; padding: 0; }
.clist2 li { display: grid; gap: .4rem; padding: .9rem 0; border-top: 1px solid var(--line-soft); }
.clist2 li.off { opacity: .45; }
.clist2 .where { font: 500 .62rem var(--caps); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.clist2 .row { display: flex; gap: .4rem; flex-wrap: wrap; }
.clist2 .row button { min-height: 34px; padding: .2rem .9rem; font-size: .8rem; }
.claude { display: grid; gap: 1rem; }
.claude .lead { display: flex; gap: 1rem; align-items: center; }
.claude .lead i { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: #d97757; color: #fff; font-style: normal; font-size: 1.4rem; }
.claude ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .4rem; }
.claude .ask { display: grid; gap: .5rem; }
.claude .ask p { padding: .7rem 1rem; border-radius: 14px 14px 14px 4px; background: var(--soft); border: 1px solid var(--line-soft); font-size: .95rem; }
.note-box { padding: .9rem 1rem; border-radius: 14px; border: 1px dashed var(--line); font-size: .88rem; color: var(--muted); }
.adm .bigthree .chip { opacity: 1; }
.adm h3 + .hint { margin-top: .2rem; }

/* Predicción diaria */
.predcard { display: grid; grid-template-columns: auto 1fr auto; gap: .2rem 1rem; align-items: center; width: 100%; text-align: left; margin: 0 0 1.4rem; padding: 1.05rem 1.2rem; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--tile1), var(--tile2)); color: inherit; transition: transform .45s cubic-bezier(.22, 1, .36, 1), border-color .3s; }
.predcard:hover { transform: translateY(-2px); border-color: var(--gold); }
.predcard .moon { grid-row: span 2; width: 48px; height: 48px; }
.predcard small { font: 500 .62rem var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.predcard strong { font: 500 1.3rem/1.2 var(--display); }
.predcard .go { grid-row: span 2; color: var(--gold-bright); font-size: 1.2rem; }
.moon circle.lit { fill: var(--gold-bright); }
.pred { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; padding: clamp(1.5rem, 6vw, 2.4rem); border-radius: 26px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--tile1), var(--tile2)); box-shadow: 0 30px 80px rgb(0 0 0 / .55); text-align: left; animation: predin 1s cubic-bezier(.22, 1, .36, 1) both; scrollbar-width: thin; }
@keyframes predin { from { opacity: 0; transform: translateY(20px); } }
.pred .ptop { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.pred .ptop .moon { width: 58px; height: 58px; flex: none; }
.pred h2 { font: 500 clamp(1.9rem, 6.5vw, 2.5rem)/1.1 var(--display); margin-top: .3rem; }
.pred .scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0 0 1.3rem; }
.pred .score { padding: .65rem .7rem; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--soft); }
.pred .score span { display: block; font: 500 .6rem var(--caps); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.pred .dots { display: flex; gap: 4px; }
.pred .dots i { width: 100%; height: 5px; border-radius: 3px; background: var(--line-soft); }
.pred .dots i.on { background: var(--gold-grad); box-shadow: 0 0 6px rgb(217 184 120 / .5); }
.pred .dots i { transform-origin: left; animation: dot .8s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--k) * 90ms + 400ms); }
@keyframes dot { from { transform: scaleX(0); } }
.pred .sec { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line-soft); }
.pred .sec > .eyebrow { margin-bottom: .5rem; }
.pred .clima { font-size: .98rem; color: var(--muted); line-height: 1.6; }
.pred .parati { font: italic 400 clamp(1.25rem, 4vw, 1.45rem)/1.5 var(--display); }
.pred .two { display: grid; gap: 1rem; }
@media (min-width: 520px) { .pred .two { grid-template-columns: 1fr 1fr; } }
.pred ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pred li { display: grid; grid-template-columns: 18px 1fr; gap: .5rem; font-size: .95rem; line-height: 1.45; }
.pred li svg { width: 16px; height: 16px; margin-top: .2rem; }
.pred .fav li svg { color: var(--gold-bright); }
.pred .care li svg { color: #d9848c; }
.pred .consejo { margin-top: 1.3rem; padding: 1rem 1.1rem; border-radius: 16px; border: 1px solid var(--line); background: rgb(217 184 120 / .07); font: italic 400 1.2rem/1.45 var(--display); }
.pred .consejo b { display: block; font: 500 .6rem var(--caps); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .3rem; }
.pred .week li { grid-template-columns: 1fr; color: var(--muted); }
.pred .close-row { display: flex; justify-content: center; margin-top: 1.6rem; }
.pred > * { animation: rise .9s cubic-bezier(.22, 1, .36, 1) both; }
.pred > *:nth-child(2) { animation-delay: .08s; } .pred > *:nth-child(3) { animation-delay: .16s; } .pred > *:nth-child(4) { animation-delay: .24s; } .pred > *:nth-child(5) { animation-delay: .32s; } .pred > *:nth-child(n+6) { animation-delay: .4s; }
.predcard .moon { grid-column: 1; grid-row: 1 / 3; } .predcard small { grid-column: 2; grid-row: 1; } .predcard strong { grid-column: 2; grid-row: 2; } .predcard .go { grid-column: 3; grid-row: 1 / 3; }

/* Acceso */
body.out .apphead, body.out main, body.out .foot, body.out .tabbar { display: none !important; }
body.out { padding-bottom: 0; }
.auth { max-width: 520px; margin: 0 auto; padding: clamp(1.6rem, 6vw, 3rem) 16px 3rem; }
.auth-in { display: grid; justify-items: center; text-align: center; gap: .5rem; }
.logo.big { width: 96px; height: 96px; margin-bottom: .4rem; animation: rise 1.2s cubic-bezier(.22, 1, .36, 1) both; }
.auth h1 { font: 500 clamp(2.3rem, 9vw, 3.3rem)/1.05 var(--caps); margin: .2rem 0 .3rem; }
.auth-lead { max-width: 28em; margin-bottom: 1rem; }
.auth-tabs { width: 100%; justify-content: center; }
.auth-tabs button { flex: 1; }
.auth-form { width: 100%; text-align: left; padding: clamp(1.2rem, 5vw, 1.8rem); border-radius: 22px; border: 1px solid var(--line); background: var(--surface); animation: rise .8s cubic-bezier(.22, 1, .36, 1) both; }
.auth-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.auth-form input[type=date], .auth-form input[type=time], .auth-form input[type=email] { width: 100%; min-height: 46px; padding: .55rem .9rem; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--field); color: var(--text); font: inherit; color-scheme: inherit; }
.auth-form .primary { width: 100%; margin-top: .4rem; }
.auth-form .small { font-size: .8rem; margin-top: .8rem; text-align: center; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: -.3rem 0 1rem; cursor: pointer; text-align: left; }
.check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--gold); flex: none; }
.form-err { min-height: 1.2em; color: #e58a93; font-size: .88rem; margin: 0 0 .4rem; }
.auth-form .bad { border-color: #c75b66 !important; }
.auth-step { width: 100%; padding: 2.2rem 1.4rem; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); display: grid; justify-items: center; gap: .9rem; }
.auth-step .spin { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--line-soft); border-top-color: var(--gold-bright); animation: spin 1s linear infinite; }
.auth-step .ok { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: #1d1430; font-size: 1.6rem; animation: rise .6s cubic-bezier(.22, 1, .36, 1) both; }
.auth-step p.big { font: 500 1.5rem/1.3 var(--display); }
.auth-step ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; text-align: left; font-size: .92rem; color: var(--muted); }
.auth-step li.done { color: var(--text); }
.auth-step li.done::before { content: '✓  '; color: var(--gold-bright); }
.auth-step li:not(.done)::before { content: '·  '; }
.auth-step .mail { font: 500 1.1rem var(--display); color: var(--gold-bright); word-break: break-all; }
#asAdmin { margin-top: 1rem; font-size: .82rem; }

.code-in { text-align: center; font: 600 1.25rem var(--caps) !important; letter-spacing: .18em; text-transform: uppercase; min-height: 56px !important; }
.hint.left { text-align: left !important; margin-top: -.5rem !important; margin-bottom: .6rem; }
#demoCode { color: var(--gold-bright); letter-spacing: .12em; }
.pw { position: relative; display: block; }
.pw input { width: 100%; min-height: 46px; padding: .55rem 4rem .55rem .9rem; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--field); color: var(--text); font: inherit; }
.pw input:focus { outline: none; border-color: var(--gold); }
.pw .eye { position: absolute; right: 6px; top: 50%; translate: 0 -50%; min-height: 34px; padding: 0 .7rem; border: 0; border-radius: 8px; background: none; color: var(--gold-bright); font-size: .8rem; }
.forgot { display: block; margin: .6rem auto 0; font-size: .85rem; }
.code-box { display: grid; gap: .8rem; }
.code-box .big-code { font: 600 1.8rem var(--caps); letter-spacing: .2em; color: var(--gold-bright); }
.code-in::placeholder { font: 400 1rem var(--body); letter-spacing: .02em; text-transform: none; }

/* Predicción dentro de la puerta */
.pmsg { max-height: calc(100dvh - 48px); overflow-y: auto; scrollbar-width: thin; }
.pinline { margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid var(--line); text-align: left; opacity: 0; transform: translateY(10px); transition: opacity 1s cubic-bezier(.22, 1, .36, 1), transform 1s cubic-bezier(.22, 1, .36, 1); }
.pinline.show { opacity: 1; transform: none; }
.pinline h4 { font: 500 1.45rem/1.2 var(--display); color: var(--gold-bright); margin: .3rem 0 .7rem; }
.pinline .scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-bottom: .9rem; }
.pinline .score { padding: .5rem .6rem; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--soft); }
.pinline .score span { display: block; font: 500 .56rem var(--caps); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.pinline .dots { display: flex; gap: 3px; } .pinline .dots i { width: 100%; height: 4px; border-radius: 3px; background: var(--line-soft); } .pinline .dots i.on { background: var(--gold-grad); }
.pinline .pt { font: italic 400 1.15rem/1.5 var(--display); margin-bottom: .9rem; }
.pinline .two { display: grid; gap: .8rem; } @media (min-width: 520px) { .pinline .two { grid-template-columns: 1fr 1fr; } }
.pinline ul { list-style: none; margin: .35rem 0 0; padding: 0; display: grid; gap: .4rem; }
.pinline li { display: grid; grid-template-columns: 16px 1fr; gap: .45rem; font-size: .9rem; line-height: 1.4; }
.pinline li svg { width: 14px; height: 14px; margin-top: .2rem; }
.pinline .fav svg { color: var(--gold-bright); } .pinline .care svg { color: #d9848c; }
.pinline .tip { margin-top: .9rem; font: italic 400 1.05rem/1.45 var(--display); color: var(--gold-bright); }
/* Carta del día: lectura */
.card-info .ctx { color: var(--muted); font-size: .98rem; max-width: 32em; }
.card-info .hoy { width: 100%; margin-top: .6rem; padding: 1.1rem 1.2rem; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--tile1), var(--tile2)); text-align: left; }
.card-info .hoy q { display: block; quotes: none; font: italic 400 clamp(1.35rem, 4vw, 1.6rem)/1.4 var(--display); margin-top: .3rem; }
.card-info .two { width: 100%; display: grid; gap: .6rem; text-align: left; } @media (min-width: 560px) { .card-info .two { grid-template-columns: 1fr 1fr; } }
.card-info .box { padding: .9rem 1rem; border-radius: 16px; border: 1px solid var(--line-soft); background: var(--soft); }
.card-info .box p:last-child { margin-top: .3rem; font-size: .95rem; line-height: 1.5; }
.card-info .box.care .eyebrow { color: #d9848c; }
.card-info .frase { font: italic 400 1.1rem var(--display); color: var(--muted); }
/* Registro */
.reg-filter { display: flex; gap: .6rem; flex-wrap: wrap; align-items: end; margin-bottom: 1rem; }
.reg-filter label.f { flex: 1; min-width: 160px; margin: 0; }
.reglist { list-style: none; margin: 0; padding: 0; }
.reglist li { display: grid; gap: .25rem; padding: .8rem 0; border-top: 1px solid var(--line-soft); }
.reglist .top { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; font-size: .82rem; color: var(--muted); }
.reglist .tag { font: 600 .58rem var(--caps); letter-spacing: .14em; text-transform: uppercase; padding: .15rem .55rem; border-radius: 999px; border: 1px solid var(--line); color: var(--gold-bright); }
.reglist b { font-weight: 500; }
.reglist p { font-size: .9rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reglist .rep { color: #e58a93; }

.place { position: relative; }
.auth-form select { width: 100%; min-height: 46px; padding: .55rem .9rem; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--field); color: var(--text); font: inherit; }
.place input:disabled { opacity: .55; }
#placeHint { margin-top: -.4rem !important; }
.place-list { position: absolute; left: 0; right: 0; top: calc(100% - .7rem); z-index: 5; list-style: none; margin: 0; padding: .3rem; max-height: 300px; overflow-y: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--bar-solid); box-shadow: 0 18px 40px rgb(0 0 0 / .45); }
.place-list button { display: grid; width: 100%; text-align: left; gap: .05rem; padding: .55rem .7rem; border: 0; border-radius: 10px; background: none; color: var(--text); }
.place-list button:hover, .place-list button.on { background: rgb(217 184 120 / .14); }
.place-list b { font-weight: 500; } .place-list small { color: var(--muted); font-size: .8rem; }
.place-list .msg { padding: .6rem .7rem; color: var(--muted); font-size: .88rem; }

/* Lectura completa de cada puerta */
.reading { text-align: left; margin-top: .4rem; }
.dr { margin-top: 1.1rem; padding-top: 1.05rem; border-top: 1px solid var(--line-soft); opacity: 0; transform: translateY(10px); transition: opacity .9s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1); }
.dr.show { opacity: 1; transform: none; }
.dr:first-child { border-top: 0; padding-top: 0; }
.dr > .eyebrow { margin-bottom: .45rem; }
.dr .big { font: italic 400 clamp(1.35rem, 4.4vw, 1.65rem)/1.4 var(--display); }
.dr .txt { font-size: .98rem; line-height: 1.6; }
.dr .sub { font-size: .9rem; color: var(--muted); margin-top: .5rem; line-height: 1.55; }
.dr .scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin: .7rem 0 0; }
.dr .score { padding: .5rem .6rem; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--soft); }
.dr .score span { display: block; font: 500 .56rem var(--caps); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.dr .dots { display: flex; gap: 3px; } .dr .dots i { width: 100%; height: 4px; border-radius: 3px; background: var(--line-soft); } .dr .dots i.on { background: var(--gold-grad); }
.dr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.dr li { display: grid; grid-template-columns: 16px 1fr; gap: .5rem; font-size: .95rem; line-height: 1.45; }
.dr li svg { width: 14px; height: 14px; margin-top: .22rem; }
.dr.fav svg { color: var(--gold-bright); } .dr.care svg { color: #d9848c; } .dr.work svg { color: #b9a6e8; }
.dr.two { display: grid; gap: 1rem; } @media (min-width: 520px) { .dr.two { grid-template-columns: 1fr 1fr; } }
.dr.two > div > .eyebrow { margin-bottom: .45rem; }
.dr.two .care-t { color: #d9848c; }
.dr.uni { padding: 1rem 1.1rem; margin-top: 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: rgb(217 184 120 / .07); }
.dr.uni .big { font-size: clamp(1.2rem, 4vw, 1.45rem); }
.dr.uni .tip { margin-top: .6rem; font: italic 400 1.1rem/1.45 var(--display); color: var(--gold-bright); }
.dr.cta { text-align: center; display: grid; justify-items: center; gap: .6rem; }
.dr.cta .decree-q { font: italic 500 clamp(1.3rem, 4.4vw, 1.6rem)/1.35 var(--display); color: var(--gold-bright); }
/* Decreto en la carta del día */
.decreto { width: 100%; margin-top: .4rem; padding: 1.3rem 1.2rem; border-radius: 20px; border: 1px solid var(--gold); background: radial-gradient(120% 120% at 50% 0%, rgb(217 184 120 / .14), transparent 70%), var(--soft); display: grid; justify-items: center; gap: .55rem; text-align: center; }
.decreto q { display: block; quotes: none; font: italic 500 clamp(1.45rem, 4.6vw, 1.8rem)/1.35 var(--display); color: var(--gold-bright); }
.decreto .how { font-size: .92rem; color: var(--muted); max-width: 26em; }
.decreto .row { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-top: .3rem; }
.decreto .row .ghost { min-height: 42px; }
.decreto .done { color: var(--gold-bright); font: 500 .8rem var(--caps); letter-spacing: .16em; text-transform: uppercase; }
.pred .consejo { margin-bottom: 1.3rem; }

/* ---- tarjeta del día (portada) ---- */
.pred.daycard { width: 100%; max-height: none; overflow: visible; box-shadow: none; animation: none; margin: 0 0 1.4rem; }
.daycard .mw .moon { width: 54px; height: 54px; }
.daycard h2 { font: 500 clamp(1.7rem, 6vw, 2.2rem)/1.12 var(--display); }
.daycard .lead { font: 400 1.08rem/1.55 var(--body); color: var(--text); margin: .2rem 0 0; }
@media (max-width: 520px) { .pred.daycard .two { grid-template-columns: 1fr; } }

/* ---- regalo ---- */
#advCard.giftmode .garland, #advCard.giftmode .holly { opacity: .55; }
.giftwrap { display: grid; justify-items: center; gap: .2rem; padding: .4rem 0 .6rem; }
.giftstage { width: min(300px, 78vw); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gift { width: 100%; height: auto; overflow: visible; display: block; animation: giftfloat 6s ease-in-out infinite; }
@keyframes giftfloat { 50% { transform: translateY(-5px); } }
.gift .lid, .gift .bow, .gift .tag, .gift .body { transform-box: view-box; transform-origin: 130px 90px; }
.gift .sheen { animation: sheen 5.5s ease-in-out 1.2s infinite; }
@keyframes sheen { 0%, 62% { transform: skewX(-20deg) translateX(0); } 100% { transform: skewX(-20deg) translateX(330px); } }
.gift .glow { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4); transition: opacity 1s .35s, transform 1.4s cubic-bezier(.22, 1, .36, 1) .35s; }
.giftstage.nudge .gift { animation: giftnudge .6s cubic-bezier(.36, .07, .19, .97); }
@keyframes giftnudge { 15% { transform: rotate(-3deg); } 35% { transform: rotate(3deg); } 55% { transform: rotate(-2deg); } 75% { transform: rotate(1deg); } }
.giftstage.opening .gift { animation: giftshake .7s ease-in-out; }
@keyframes giftshake { 20%, 60% { transform: translateX(-2px) rotate(-1deg); } 40%, 80% { transform: translateX(2px) rotate(1deg); } }
.giftstage.opening .bow { transition: transform 1.1s cubic-bezier(.55, 0, .3, 1) .55s, opacity .9s .75s; transform: translateY(-150px) rotate(-28deg) scale(.7); opacity: 0; }
.giftstage.opening .tag { transition: opacity .5s .4s; opacity: 0; }
.giftstage.opening .lid { transition: transform 1.2s cubic-bezier(.55, 0, .3, 1) .7s, opacity 1s 1s; transform: translateY(-120px) rotate(14deg); opacity: 0; }
.giftstage.opening .glow { opacity: 1; transform: scale(1.25); }
.gcount { display: flex; gap: .55rem; margin: .4rem 0 .2rem; }
.gu { min-width: 64px; padding: .55rem .3rem .45rem; border-radius: 14px; border: 1px solid var(--line); background: rgb(217 184 120 / .05); text-align: center; }
.gu b { display: block; font: 500 1.75rem/1 var(--display); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.gu span { display: block; margin-top: .3rem; font: 500 .56rem var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.gsub { margin: .6rem 0 0; font: italic 400 1.15rem/1.4 var(--display); color: var(--text); text-align: center; }
.gbtn { margin-top: .9rem; }
.giftmsg { text-align: center; animation: gmsg 1.2s cubic-bezier(.22, 1, .36, 1) both; }
.giftmsg h3 { font: 500 clamp(1.4rem, 5vw, 1.8rem)/1.2 var(--display); margin-top: .3rem; }
@keyframes gmsg { from { opacity: 0; transform: translateY(14px); } }
#advCard.revealing #doors { animation: calrise 1.4s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes calrise { from { opacity: 0; transform: translateY(40px) scale(.97); } }
.fwcanvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 300; }
#advCard.giftmode #cta { display: none; } #advCard.giftmode #doors { min-height: 0; }
.giftwrap .gone { transition: opacity .5s, transform .5s; opacity: 0; transform: translateY(8px); pointer-events: none; }

/* ---- regalo animado (paredes que caen) ---- */
.g3 { position: relative; width: 100%; aspect-ratio: 270 / 250; }
.g3 .gwrap { position: absolute; inset: 0; transform-origin: 50% 95%; animation: gfloat 5s ease-in-out infinite, gwig 6s ease-in-out 2s infinite; }
@keyframes gfloat { 50% { translate: 0 -6px; } }
@keyframes gwig { 0%, 80%, 100% { rotate: 0deg; } 84% { rotate: -2.2deg; } 88% { rotate: 2deg; } 92% { rotate: -1.2deg; } 96% { rotate: .6deg; } }
.g3 .gshadow { position: absolute; left: 12%; right: 12%; bottom: 2%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgb(0 0 0 / .6), transparent); }
.g3 .gin { position: absolute; left: 13%; right: 13%; bottom: 6%; height: 55%; display: grid; place-items: center; }
.g3 .gin::before { content: ''; position: absolute; inset: -30% -20%; background: radial-gradient(closest-side, rgb(255 236 186 / .55), rgb(240 213 147 / .18) 55%, transparent); opacity: 0; transform: scale(.5); transition: opacity 1s 1.3s, transform 1.4s cubic-bezier(.22, 1, .36, 1) 1.3s; }
.g3 .gmini { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4%; width: 86%; padding: 6%; border-radius: 10px; border: 1px solid rgb(217 184 120 / .5); background: linear-gradient(180deg, #17130e, #0c0a08); opacity: .0; transform: translateY(6%) scale(.96); transition: opacity .6s 1.2s, transform 1.2s cubic-bezier(.22, 1, .36, 1) 1.3s; }
.g3 .gmini i { aspect-ratio: 3 / 4; border-radius: 40% 40% 3px 3px; border: 1px solid rgb(217 184 120 / .55); background: linear-gradient(180deg, #2a2219, #120f0b); }
.g3 .gmini i.e { visibility: hidden; }
.g3 .gmini i.r { background: linear-gradient(180deg, #8d1a22, #4a0b10); border-color: #c9545a; }
.g3 .gmini i.hoy { border-color: #f6dc9c; box-shadow: 0 0 6px rgb(246 220 156 / .9); }
.g3 .gw { position: absolute; bottom: 6%; height: 55%; width: 37%; background: linear-gradient(90deg, #0b0a09, #1d1a16 45%, #141210 70%, #070606); border: 1px solid #c9a25a; box-shadow: inset 0 0 0 5px transparent, inset 0 -8px 14px rgb(0 0 0 / .45); }
.g3 .gw::before { content: ''; position: absolute; inset: 6px; border: 1px solid rgb(217 184 120 / .16); }
.g3 .gw i { position: absolute; top: 0; bottom: 0; width: 15%; background: linear-gradient(90deg, #4d0a0f, #9a1620 40%, #d0434a 60%, #9a1620); }
.g3 .gw.l { left: 13%; border-right: 0; border-radius: 3px 0 0 3px; transform-origin: 0% 100%; }
.g3 .gw.l i { right: 0; }
.g3 .gw.r { right: 13%; border-left: 0; border-radius: 0 3px 3px 0; transform-origin: 100% 100%; background: linear-gradient(90deg, #141210, #1b1814 30%, #0d0c0a 70%, #060505); }
.g3 .gw.r i { left: 0; background: linear-gradient(90deg, #9a1620, #d0434a 40%, #9a1620 60%, #4d0a0f); }
.g3 .glid { position: absolute; left: 9%; right: 9%; top: 28%; height: 13%; border-radius: 4px; border: 1.2px solid #d9b46a; background: linear-gradient(180deg, #2a251e, #191612 55%, #0e0c0a); overflow: hidden; box-shadow: 0 6px 10px rgb(0 0 0 / .45); }
.g3 .glid i { position: absolute; left: 50%; top: 0; bottom: 0; width: 8.5%; translate: -50% 0; background: linear-gradient(90deg, #4d0a0f, #9a1620 28%, #d0434a 50%, #9a1620 72%, #4d0a0f); }
.g3 .glid::after { content: ''; position: absolute; top: -20%; bottom: -20%; width: 22%; left: -30%; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .2), transparent); transform: skewX(-20deg); animation: lidsheen 5s ease-in-out 1s infinite; }
@keyframes lidsheen { 0%, 60% { left: -30%; } 100% { left: 120%; } }
.g3 .gbow { position: absolute; left: 29%; width: 42%; top: 5%; overflow: visible; transform-origin: 50% 40%; animation: bowsway 3.2s ease-in-out infinite; }
@keyframes bowsway { 50% { rotate: 3deg; scale: 1.03; } }
.g3 .gtag { position: absolute; left: 60%; top: 37%; width: 30%; transform-origin: 0 0; animation: tagsway 4s ease-in-out infinite; }
@keyframes tagsway { 50% { rotate: -6deg; } }
.g3 .tw { position: absolute; left: var(--x); top: var(--y); color: #f3dea6; font-size: 14px; opacity: 0; animation: twinkle 3.6s ease-in-out var(--d) infinite; pointer-events: none; }
.g3 .tw.s { font-size: 10px; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } 60% { opacity: .1; } }
.giftstage.nudge .gwrap { animation: gnudge .6s cubic-bezier(.36, .07, .19, .97); }
@keyframes gnudge { 15% { rotate: -4deg; } 35% { rotate: 4deg; } 55% { rotate: -2.5deg; } 75% { rotate: 1deg; } }
/* apertura */
.giftstage.opening .gwrap { animation: gopen .55s ease-in-out; }
@keyframes gopen { 20%, 60% { rotate: -2deg; translate: -2px 0; } 40%, 80% { rotate: 2deg; translate: 2px 0; } }
.giftstage.opening .tw { animation: none; opacity: 0; }
.giftstage.opening .gtag { animation: none; transition: opacity .35s .3s; opacity: 0; }
.giftstage.opening .gbow { animation: none; transition: transform 1s cubic-bezier(.55, 0, .3, 1) .45s, opacity .7s .7s; transform: translateY(-140%) rotate(-30deg) scale(.6); opacity: 0; }
.giftstage.opening .glid { transition: transform 1.1s cubic-bezier(.55, 0, .3, 1) .6s, opacity .7s 1s; transform: translateY(-260%) rotate(16deg); opacity: 0; }
.giftstage.opening .gw.l { transition: transform 1.05s cubic-bezier(.55, -.15, .55, 1.25) 1s, opacity .5s 1.9s; transform: rotate(-96deg); opacity: 0; }
.giftstage.opening .gw.r { transition: transform 1.05s cubic-bezier(.55, -.15, .55, 1.25) 1.05s, opacity .5s 1.95s; transform: rotate(96deg); opacity: 0; }
.giftstage.opening .gin::before { opacity: 1; transform: scale(1.15); }
.giftstage.opening .gmini { opacity: 1; transform: none; }
.giftstage.opening .gmini i:not(.e) { animation: celon .5s ease-out both; animation-delay: calc(1.5s + var(--i) * 45ms); }
@keyframes celon { from { filter: brightness(.3); } 60% { filter: brightness(1.9); } to { filter: brightness(1); } }
.giftstage .gift { display: none; }

/* ---- camino de diciembre ---- */
.metawrap { display: grid; gap: .7rem; max-width: 460px; margin: 0 auto; padding: .2rem 0 .6rem; }
.metawrap .gsub { margin: 0 0 .4rem; }
.metaopt { display: grid; gap: .3rem; text-align: left; padding: 1rem 1.1rem; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--tile1), var(--tile2)); color: var(--text); transition: transform .35s cubic-bezier(.22, 1, .36, 1), border-color .3s, box-shadow .3s; }
.metaopt b { font: 500 1.3rem/1.2 var(--display); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metaopt span { font-size: .93rem; line-height: 1.5; color: var(--muted); }
.metaopt:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--gold); }
.metaopt.sel { border-color: var(--gold-bright); box-shadow: 0 0 0 1px var(--gold-bright), 0 10px 30px rgb(217 184 120 / .25); }
.metaopt:disabled:not(.sel) { opacity: .4; }
.dr.camino .etapa { font: 500 1.05rem var(--display); color: var(--gold-bright); }
.dr .cbar { height: 5px; border-radius: 4px; background: var(--line-soft); margin-top: .5rem; overflow: hidden; }
.dr .cbar::before { content: ''; display: block; height: 100%; width: var(--p); background: var(--gold-grad); border-radius: 4px; }
.dr .hoytxt { font-size: 1.02rem; line-height: 1.65; }
.dr.tarea .txt { padding: .8rem .95rem; border-radius: 14px; border: 1px dashed var(--line); background: rgb(217 184 120 / .05); }
.dr.afirm { text-align: center; }
.dr.afirm .aq { font: italic 500 clamp(1.4rem, 4.8vw, 1.75rem)/1.35 var(--display); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: .2rem 0 .4rem; }

.card-info .personal { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 16px; border: 1px solid var(--line); background: rgb(217 184 120 / .06); text-align: left; }
.card-info .personal p:last-child { font-size: .98rem; line-height: 1.6; margin: .3rem 0 0; }
.g3 .gmini { box-sizing: border-box; width: 94%; height: 94%; padding: 5% 5%; gap: 6% 4%; grid-template-rows: repeat(5, 1fr); overflow: hidden; }
.g3 .gmini i { aspect-ratio: auto; height: 100%; min-height: 0; }

.advinfo { margin: 1.3rem auto .4rem; max-width: 520px; text-align: left; padding: 1.1rem 1.2rem; border-radius: 18px; border: 1px solid var(--line); background: rgb(217 184 120 / .05); }
.advinfo .eyebrow { text-align: center; margin-bottom: .5rem; }
.advinfo .ai-lead { font: italic 400 1.08rem/1.5 var(--display); color: var(--text); margin: 0 0 .8rem; text-align: center; }
.advinfo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.advinfo li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .4rem; font-size: .93rem; line-height: 1.5; color: var(--muted); }
.advinfo .ai-i { text-align: center; color: var(--gold); }

/* --- A tu manera (Luna) en la puerta --- */
.dr.manera .txt { padding: .8rem .95rem; border-radius: 14px; border-left: 2px solid var(--gold); background: rgb(217 184 120 / .06); }

/* --- Decreto: compositor para el muro --- */
.decomp { margin-top: 1rem; text-align: left; animation: appear .5s var(--ease-out); }
.decomp[hidden] { display: none; }
.decomp-ta { width: 100%; box-sizing: border-box; min-height: 7.5rem; resize: vertical; padding: .85rem 1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--field); color: var(--text); font: 400 1rem/1.5 var(--body); }
.decomp-ta:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgb(217 184 120 / .18); }
.decomp .row { margin-top: .8rem; justify-content: flex-end; }

/* --- Mi carta --- */
.micarta .mc > h2 { margin-bottom: 1rem; }
.mc.portada { text-align: center; }
.mc-datos { color: var(--muted); letter-spacing: .04em; margin: -.4rem 0 1rem; }
.mc-wheel { display: block; margin: .5rem auto 1.2rem; width: min(300px, 74vw); }
.mc-trio { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); text-align: center; margin: 1rem 0; }
.mc-pz { padding: 1.1rem 1rem; border-radius: 18px; border: 1px solid var(--line-soft); background: var(--soft); }
.mc-pz h3 { font: 500 1.7rem/1.1 var(--display); margin: .2rem 0; }
.mc-g { font-size: 1.8rem; color: var(--gold); }
.mc-sub { color: var(--muted); font-size: .86rem; margin: .1rem 0 .5rem; }
.mc-acc { justify-content: center; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.mc.texto p, .mc-p p { line-height: 1.6; }
.mc-tres { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: .4rem 0 1rem; }
.mc-tres > div { padding: 1rem; border-radius: 16px; border: 1px solid var(--line-soft); background: var(--soft); }
.mc-tres h3, .mc-p h3 { font: 500 1.3rem/1.2 var(--display); color: var(--gold-bright); margin: 0 0 .3rem; }
.mc-lista { padding-left: 1.1rem; margin: 0 0 1rem; }
.mc-lista li { margin: .45rem 0; line-height: 1.55; }
.mc-lista li::marker { color: var(--gold); content: '✦  '; }
.mc-pl { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.mc-p { padding: 1rem 1.1rem; border-radius: 16px; border: 1px solid var(--line-soft); background: var(--soft); break-inside: avoid; }
.mc-ph { display: flex; gap: .8rem; align-items: center; margin-bottom: .3rem; }
.mc-ph .mc-sub { margin: 0; }
.mc-sym { font-size: 1.6rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--gold); flex: none; }
.mc-el { display: grid; gap: .55rem; margin: .3rem 0 1rem; }
.mc-elr { display: grid; grid-template-columns: 4.5rem 1fr 1.5rem; gap: .7rem; align-items: center; }
.mc-bar { height: 8px; border-radius: 8px; background: var(--line-soft); position: relative; overflow: hidden; }
.mc-bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) / 7 * 100%); border-radius: inherit; background: var(--gold-grad); }
.mc-cs { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 1rem; }
.mc-c { padding: .75rem .9rem; border-radius: 14px; border: 1px solid var(--line-soft); display: grid; gap: .15rem; break-inside: avoid; }
.mc-c.llena { border-color: var(--line); background: rgb(217 184 120 / .06); }
.mc-c span { font-size: .9rem; } .mc-c em { font-style: normal; color: var(--gold); font-size: .85rem; }
.mc-pie { text-align: center; color: var(--muted); font-size: .8rem; letter-spacing: .08em; margin: 0 0 2rem; }

/* --- PDF de Mi carta: versión clara para imprimir --- */
@media print {
  @page { margin: 14mm; }
  body.imprimiendo { background: #fff !important; color: #2a2017 !important; }
  body.imprimiendo > *:not(.app), body.imprimiendo .app > *:not(main), body.imprimiendo main > .view:not([data-view="carta"]), body.imprimiendo .mc-acc, body.imprimiendo canvas, body.imprimiendo .sky, body.imprimiendo .snow { display: none !important; }
  body.imprimiendo, body.imprimiendo .app { height: auto !important; overflow: visible !important; }
  body.imprimiendo::before, body.imprimiendo::after, body.imprimiendo .app::before, body.imprimiendo .app::after { display: none !important; }
  body.imprimiendo .reveal { opacity: 1 !important; transform: none !important; }
  body.imprimiendo main { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  body.imprimiendo .card { background: #fff !important; box-shadow: none !important; backdrop-filter: none !important; border: 1px solid #d8c7a3 !important; break-inside: avoid; page-break-inside: avoid; }
  body.imprimiendo .card::before { display: none; }
  body.imprimiendo .mc.planetas, body.imprimiendo .mc.casas { break-inside: auto; page-break-inside: auto; }
  body.imprimiendo * { color: #2a2017 !important; -webkit-text-fill-color: currentColor; }
  body.imprimiendo .gold-text, body.imprimiendo .eyebrow, body.imprimiendo .mc-g, body.imprimiendo .mc-sym, body.imprimiendo .mc-c em, body.imprimiendo h3 { color: #8a6326 !important; background: none !important; }
  body.imprimiendo .mc-pz, body.imprimiendo .mc-p, body.imprimiendo .mc-tres > div, body.imprimiendo .mc-c { background: #fbf7ef !important; border-color: #e5d8bd !important; }
  body.imprimiendo .mc-bar { background: #eee3cc !important; } body.imprimiendo .mc-bar::after { background: #b88a3e !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  body.imprimiendo .wheel * { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; }
  body.imprimiendo .wheel { color: #8a6326; }
}
.natal .wsign { font-size: 9px; }
.natal .whouse { fill: var(--muted); font: 400 6px var(--body); }
.natal .wglyph { fill: var(--gold-bright); font: 400 10px var(--body); }
.natal .wasc { fill: var(--gold); font: 500 6.5px var(--caps); letter-spacing: .05em; }
.natal .wascl { stroke-width: 1.1; stroke-opacity: 1; }
.natal .wdot { filter: none; }
@media print { body.imprimiendo .natal .wsign, body.imprimiendo .natal .wglyph, body.imprimiendo .natal .wasc { fill: #8a6326 !important; } body.imprimiendo .natal .whouse { fill: #85745e !important; } body.imprimiendo .natal .wdot { fill: #8a6326 !important; } }
.decomp .hint { margin: .2rem 0 .7rem; }

/* --- Rueda natal explicada con scroll --- */
.mc-baja { margin: 0 auto .4rem; }
.mc-scrolly { position: relative; margin: 0 -.4rem; }
.mc-sticky { position: sticky; top: 70px; height: min(50vh, 420px); display: grid; place-items: center; z-index: 3; pointer-events: none; background: linear-gradient(var(--bar-solid) 88%, transparent); border-radius: 18px; }
.mc-sticky .mc-wheel { width: min(100%, 48vh, 400px); margin: 0; }
.mc-steps { position: relative; z-index: 2; padding: 1rem 0 30vh; }
.mc-step { min-height: 58vh; display: flex; align-items: flex-start; justify-content: center; }
.mc-sbox { width: 100%; max-width: 34rem; text-align: left; padding: 1.1rem 1.2rem; border-radius: 18px; border: 1px solid var(--line); background: var(--bar-solid); box-shadow: 0 18px 50px var(--shadow); opacity: .35; transform: translateY(14px); transition: opacity .5s, transform .6s var(--ease-out); }
.mc-step.act .mc-sbox { opacity: 1; transform: none; }
.mc-sbox h3 { font: 500 1.45rem/1.2 var(--display); color: var(--gold-bright); margin: .2rem 0 .45rem; }
.mc-sbox p:last-child { margin: 0; line-height: 1.6; }
.natal .wsign { font-size: 9px; transition: opacity .6s .3s; }
.natal .whouse { fill: var(--muted); font: 400 6px var(--body); }
.natal .wglyph { font: 400 10px var(--body); }
.natal .wasc { fill: var(--gold); font: 500 6.5px var(--caps); letter-spacing: .05em; }
.natal .wascl { stroke-width: 1.2; stroke-opacity: 1; }
.natal .wdot { filter: none; }
.natal .dl { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease-out); }
.natal .w-signs .wsign, .natal .w-houses .whouse, .natal .w-asc .wasc { opacity: 0; transition: opacity .7s .5s; }
.natal.s-ring .w-ring .dl, .natal.s-signs .w-signs .dl, .natal.s-houses .w-houses .dl, .natal.s-asc .w-asc .dl { stroke-dashoffset: 0; }
.natal.s-signs .w-signs .wsign, .natal.s-houses .w-houses .whouse, .natal.s-asc .w-asc .wasc { opacity: 1; }
.natal .wsect { fill: rgb(217 184 120 / .14); stroke: var(--gold); stroke-width: .5; stroke-opacity: .6; opacity: 0; transition: opacity .6s; }
.natal.s-sect .wsect { opacity: 1; }
.natal .w-pl { opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; transition: opacity .6s, transform .7s var(--spring); }
.natal .w-pl.on { opacity: 1; transform: none; }
.natal.focus .w-pl.on:not(.hl) { opacity: .35; }
.natal .whalo { fill: rgb(217 184 120 / .0); stroke: none; transition: fill .5s; }
.natal .w-pl.hl .whalo { fill: rgb(217 184 120 / .22); }
.natal .wglyph { fill: var(--gold-bright); }
.natal .w-pl.hl .wglyph { fill: #fff3d1; }
@media (prefers-reduced-motion: reduce) { .natal .dl, .natal .w-pl, .mc-sbox { transition: none; } }
@media print {
  body.imprimiendo .mc-steps, body.imprimiendo .mc-baja { display: none !important; }
  body.imprimiendo .mc-sticky { position: static; height: auto; }
  body.imprimiendo .natal .dl { stroke-dashoffset: 0 !important; }
  body.imprimiendo .natal .w-pl, body.imprimiendo .natal .wsign, body.imprimiendo .natal .whouse, body.imprimiendo .natal .wasc { opacity: 1 !important; transform: none !important; }
  body.imprimiendo .natal .wsect { opacity: 0 !important; }
  body.imprimiendo .natal .wl { stroke: #8a6326 !important; }
}

/* --- Baraja explicativa de Mi carta --- */
.mc-step { min-height: 40vh; }
.mc-steps { padding-bottom: 12vh; }
.mc.baraja { text-align: center; }
.mc-mazo { display: grid; grid-template-columns: repeat(5, 1fr); gap: .55rem; max-width: 34rem; margin: .4rem auto 1.2rem; perspective: 900px; }
@media (max-width: 520px) { .mc-mazo { grid-template-columns: repeat(3, 1fr); max-width: 20rem; } .mc-naipe:nth-child(4) { grid-column: 1 / span 1; transform: translateX(50%); } .mc-naipe:nth-child(5) { transform: translateX(50%); } }
.mc-naipe { padding: 0; border: 0; background: none; aspect-ratio: 300 / 508; cursor: pointer; transition: transform .4s var(--spring), filter .4s; }
.mc-naipe:hover .mc-giro, .mc-naipe:focus-visible .mc-giro { transform: translateY(-6px); }
.mc-giro { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s var(--ease-out); }
.mc-naipe.vista .mc-giro { transform: rotateY(180deg); }
.mc-naipe.vista:hover .mc-giro { transform: rotateY(180deg) translateY(-6px); }
.mc-dorso, .mc-cara { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 9px; overflow: hidden; box-shadow: 0 10px 24px rgb(0 0 0 / .45); }
.mc-dorso svg { display: block; width: 100%; height: 100%; }
.mc-cara { transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: .55rem .35rem .6rem; background: linear-gradient(160deg, var(--back1), var(--back3)); border: 1.5px solid var(--gold); color: var(--text); }
.mc-cara b { font: 600 .72rem var(--caps); color: var(--gold); letter-spacing: .08em; }
.mc-cara i { font-style: normal; font-size: 1.8rem; color: var(--gold-bright); text-shadow: 0 0 14px rgb(240 217 164 / .6); }
.mc-cara span { font: 500 .78rem/1.15 var(--display); color: var(--gold-bright); }
.mc-naipe.sel { filter: drop-shadow(0 0 10px rgb(240 217 164 / .55)); }
.mc-mazo:has(.sel) .mc-naipe:not(.sel) { filter: brightness(.7); }
.mc-lect { text-align: left; min-height: 2rem; }
.mc-lect > .mc-elige { text-align: center; }
.mc-lpanel { padding: 1.2rem 1.2rem .6rem; border-radius: 18px; border: 1px solid var(--line); background: var(--soft); animation: appear .7s var(--ease-out); }
.mc-lpanel > h3 { font: 500 1.7rem/1.15 var(--display); margin: .2rem 0 .8rem; }
.mc-lpanel p { line-height: 1.6; }
.mc-lpanel .mc-elige { text-align: center; margin-top: 1rem; }
.mc-print { display: none; }
@media print {
  body.imprimiendo .mc-mazo, body.imprimiendo .mc-lect { display: none !important; }
  body.imprimiendo .mc-print { display: block !important; text-align: left; }
  body.imprimiendo .mc-pitem { break-inside: avoid; margin-bottom: 1.2rem; }
  body.imprimiendo .mc.baraja { break-inside: auto; page-break-inside: auto; }
}
.mc-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem; background: rgb(5 3 12 / .78); backdrop-filter: blur(8px); overflow-y: auto; animation: appear .4s ease; }
.mc-modal.out { opacity: 0; transition: opacity .3s; }
.mc-mbox { position: relative; width: min(34rem, 100%); max-height: calc(100dvh - 2rem); overflow-y: auto; padding: 1.4rem 1.3rem 1.2rem; border-radius: 22px; border: 1px solid var(--line); background: var(--bar-solid); box-shadow: 0 30px 80px rgb(0 0 0 / .6); text-align: left; animation: mcIn .7s var(--ease-out); }
@keyframes mcIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.mc-mbox > .eyebrow, .mc-mbox > h3 { text-align: center; }
.mc-mbox > h3 { font: 500 1.75rem/1.15 var(--display); margin: .2rem 0 .9rem; }
.mc-mbox p { line-height: 1.6; }
.mc-mbox .row { justify-content: center; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.mc-mbox .mc-elige { text-align: center; }
.mc-cara.mc-grande { position: relative; inset: auto; transform: none; width: 120px; aspect-ratio: 300 / 508; margin: 0 auto 1rem; animation: mcFlip 1s var(--ease-out); }
.mc-grande i { font-size: 2.8rem; } .mc-grande span { font-size: .95rem; } .mc-grande b { font-size: .85rem; }
@keyframes mcFlip { from { transform: rotateY(90deg) scale(.8); opacity: .2; } }
.mc.baraja > .mc-elige { margin-top: 0; }
.mc-cara span { text-align: center; }

/* --- v3: rueda completa desde el inicio + líneas que unen planetas --- */
.natal .wsign, .natal .whouse, .natal .wasc { opacity: 1; }
.natal .w-pl { opacity: 1; transform: none; }
.natal.focus .w-pl:not(.hl) { opacity: .45; }
.natal .wlink { stroke: var(--gold-bright); stroke-width: .8; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .9; transition: stroke-dashoffset 1.1s var(--ease-out); }
.natal .wlink.on { stroke-dashoffset: 0; }
.natal .wnodo { fill: var(--gold-bright); opacity: 0; transition: opacity .5s .6s; }
.natal .wnodo.on { opacity: 1; }
.mc-step:first-child { min-height: 30vh; }
@media print { body.imprimiendo .natal .wlink { stroke-dashoffset: 0 !important; stroke: #8a6326 !important; } body.imprimiendo .natal .wnodo { opacity: 1 !important; fill: #8a6326 !important; } body.imprimiendo .natal.focus .w-pl { opacity: 1 !important; } }

/* --- v3: baraja de 3 y ventana de cristal --- */
.mc-mazo { grid-template-columns: repeat(3, 1fr) !important; max-width: 22rem !important; gap: .9rem; }
.mc-naipe:nth-child(4), .mc-naipe:nth-child(5) { transform: none; }
.mc-modal { background: rgb(8 5 18 / .28) !important; backdrop-filter: blur(3px) !important; -webkit-backdrop-filter: blur(3px); animation: appear .35s ease; }
.mc-modal.out { opacity: 0; transition: opacity .4s; }
.mc-modal.out .mc-mbox { transform: scale(.92); transition: transform .4s; }
.mc-mbox { background: linear-gradient(145deg, rgb(255 255 255 / .16), rgb(255 255 255 / .05) 45%, rgb(217 184 120 / .08)) !important; border: 1px solid rgb(255 255 255 / .22) !important; backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 30px 80px rgb(0 0 0 / .45), inset 0 1px 0 rgb(255 255 255 / .35), inset 0 -1px 0 rgb(255 255 255 / .06) !important; animation: glassIn .75s var(--ease-out) !important; overflow: hidden auto; }
.mc-mbox::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / .14) 45%, transparent 60%); background-size: 250% 100%; animation: sheenGlass 1.6s .4s ease-out both; }
@keyframes glassIn { from { opacity: 0; transform: translate(var(--fx, 0), var(--fy, 0)) scale(.18); filter: blur(6px); } 60% { opacity: 1; filter: blur(0); } }
@keyframes sheenGlass { from { background-position: 120% 0; } to { background-position: -40% 0; } }
.mc-msym { display: block; text-align: center; font-size: 2.2rem; color: var(--gold-bright); text-shadow: 0 0 18px rgb(240 217 164 / .7); margin-bottom: .2rem; }
.mc-mbox .mc-tres > div { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .12); }
:root[data-theme="blanco"] .mc-mbox { background: linear-gradient(145deg, rgb(255 255 255 / .75), rgb(255 255 255 / .55)) !important; border-color: rgb(255 255 255 / .9) !important; }
.mc-etq { position: absolute; left: 6%; right: 6%; bottom: 13%; display: grid; gap: .15rem; justify-items: center; padding: .45rem .3rem; border-radius: 8px; background: rgb(10 7 22 / .82); border: 1px solid rgb(217 184 120 / .55); box-shadow: 0 4px 14px rgb(0 0 0 / .5); }
.mc-etq b { font: 600 .62rem var(--caps); letter-spacing: .1em; color: var(--gold); }
.mc-etq span { font: 600 .82rem/1.15 var(--display); color: var(--gold-bright); text-align: center; }
.mc-etq { bottom: 15%; padding: .3rem .25rem; background: rgb(10 7 22 / .72); }
.mc-etq span { font-size: .74rem; }
.mc-etq { top: 16.5%; bottom: auto; left: 8%; right: 8%; height: 14%; padding: 0; gap: .05rem; align-content: center; background: none; border: 0; box-shadow: none; border-radius: 0; }
.mc-etq b { font-size: .56rem; }
.mc-etq span { font: 500 .74rem/1.12 var(--display); color: var(--gold-bright); text-shadow: 0 1px 6px rgb(0 0 0 / .9), 0 0 2px rgb(0 0 0 / .9); }
.mc-etq b { display: none; }
.mc-etq { top: 17.5%; height: 12%; left: 10%; right: 10%; }
.mc-etq span { font-size: .7rem; line-height: 1.1; }
.mc-etq { top: 19%; }
.mc-dorso svg g[fill="#d9b878"] > path:first-child { display: none; }
.mc-etq { top: 12%; height: 16%; }
.mc-etq span { font: 500 .86rem/1.15 var(--display); letter-spacing: .01em; }
/* Mini baraja en la portada */
.tile .minibaraja { position: relative; display: block; width: 3.4rem; height: 3.4rem; }
.minibaraja i { position: absolute; top: 50%; left: 50%; width: 1.55rem; aspect-ratio: 300 / 508; margin: -1.3rem 0 0 -.78rem; border-radius: 3px; overflow: hidden; box-shadow: 0 3px 8px rgb(0 0 0 / .5); transition: transform .5s var(--spring); }
.tile .ic .minibaraja i svg { display: block; width: 100%; height: 100%; }
.minibaraja i:nth-child(1) { transform: rotate(-16deg) translate(-.55rem, .15rem); }
.minibaraja i:nth-child(3) { transform: rotate(16deg) translate(.55rem, .15rem); }
.tile.baraja:hover .minibaraja i:nth-child(1) { transform: rotate(-24deg) translate(-.8rem, .1rem); }
.tile.baraja:hover .minibaraja i:nth-child(3) { transform: rotate(24deg) translate(.8rem, .1rem); }
.advinfo-btn { margin: .9rem auto 0; display: block; font-size: .9rem; }
/* Cristal más opaco para leer mejor */
.mc-modal { background: rgb(6 4 14 / .55) !important; backdrop-filter: blur(6px) !important; -webkit-backdrop-filter: blur(6px); }
.mc-mbox { background: linear-gradient(145deg, rgb(34 26 52 / .93), rgb(18 13 32 / .95) 55%, rgb(40 32 22 / .93)) !important; backdrop-filter: blur(26px) saturate(140%); -webkit-backdrop-filter: blur(26px) saturate(140%); }
.mc-mbox p, .mc-mbox li { color: #f3eef8; }
:root[data-theme="negro"] .mc-mbox { background: linear-gradient(145deg, rgb(34 31 26 / .94), rgb(16 15 13 / .96)) !important; }
:root[data-theme="blanco"] .mc-mbox { background: linear-gradient(145deg, rgb(255 255 255 / .95), rgb(250 245 235 / .95)) !important; }
:root[data-theme="blanco"] .mc-mbox p, :root[data-theme="blanco"] .mc-mbox li { color: var(--text); }
.mc-mbox .row { justify-content: center !important; }
