@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-latin.woff2") format("woff2"); font-style: normal; font-weight: 400 700; font-display: swap; }
@font-face { font-family: Fraunces; src: url("assets/fonts/fraunces-latin.woff2") format("woff2"); font-style: normal; font-weight: 500 600; font-display: swap; }
@font-face { font-family: Fraunces; src: url("assets/fonts/fraunces-italic-latin.woff2") format("woff2"); font-style: italic; font-weight: 500; font-display: swap; }
:root {
  --paper: #f4f2e9; --paper-light: #faf8f0; --ink: #203d2e; --muted: #566452;
  --forest: #1c382b; --mint: #b8e6c8; --jade: #2e5b40; --sand: #d2b87c;
  --line: #d6d8c9; --ease: cubic-bezier(.22, 1, .36, 1); --radius: 20px;
  --sans: "DM Sans", "Trebuchet MS", sans-serif; --serif: Fraunces, Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--mint); color: var(--forest); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #637e45; outline-offset: 6px; }
button:disabled { cursor: default; }
svg { display: block; }
button svg, a svg, .control-principles svg, .paper-seal svg, .floating-note svg, summary svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 100; padding: 12px 20px; background: var(--forest); color: var(--paper); }
.skip-link:focus { top: 16px; }
.reading-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 99; background: var(--jade); transform: scaleX(var(--progress, 0)); transform-origin: left; pointer-events: none; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 98px; border-bottom: 1px solid var(--line); gap: 24px; }
.wordmark { display: inline-flex; gap: 10px; align-items: center; font: 500 43px/.9 var(--serif); letter-spacing: -2.3px; }
.wordmark img { flex: none; object-fit: contain; }
.brand-dot { color: #64814b; }
.site-header nav { display: flex; align-items: center; gap: 38px; margin-left: auto; font-size: 13px; font-weight: 500; }
.site-header nav a { min-height: 44px; display: flex; align-items: center; position: relative; }
.site-header nav a:not(.nav-demo)::after { content: ""; position: absolute; inset: auto 0 5px; height: 1px; background: var(--jade); transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease); }
.site-header nav a:hover::after { transform: scaleX(1); }
.site-header .nav-demo { gap: 13px; margin-left: 8px; font-weight: 700; }
.motion-control { display: inline-flex; align-items: center; flex: none; gap: 9px; min-height: 44px; padding: 8px 15px; border: 1px solid #b7c6ab; border-radius: 22px; color: var(--muted); background: transparent; font-size: 11px; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.motion-control:hover:not(:disabled) { background: #e4e8d8; color: var(--ink); }
.motion-control svg { width: 15px; height: 15px; }
.motion-control:disabled { opacity: .6; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.8px; line-height: 1.7; margin: 0 0 30px; display: flex; align-items: center; gap: 11px; }
.little-star { width: 18px; height: 18px; fill: none; stroke: #697b45; stroke-width: 1.3; flex: none; }
.hero { position: relative; display: grid; grid-template-columns: 1.04fr 1fr; align-items: center; min-height: 770px; padding-top: 65px; gap: 0 36px; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 30px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(76px, 7.1vw, 105px); letter-spacing: -6px; line-height: .97; margin: 0 0 31px; }
h1 > span { display: block; }
h1 .air-line { margin-top: 6px; }
h1 em { color: #668346; font-weight: 500; }
.hero-description { max-width: 405px; font-size: 15px; line-height: 1.8; color: var(--muted); margin-bottom: 28px; }
.hero-description strong { color: var(--ink); font-weight: 700; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 27px; min-height: 56px; padding: 15px 23px; border-radius: 9px; font-size: 12px; font-weight: 600; transition: background .2s, box-shadow .2s, transform .2s var(--ease); }
.primary { color: #f3f7e9; background: var(--forest); box-shadow: 0 3px 0 #142e20; }
.primary:hover { background: #31523b; transform: translateY(-2px); box-shadow: 0 5px 0 #142e20; }
.primary:active { transform: translateY(1px); box-shadow: 0 1px 0 #142e20; }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 11px; font-weight: 600; }
.play-mark { width: 30px; height: 30px; border: 1px solid #aeb8a4; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.text-link:hover .play-mark { background: var(--mint); }
.play-mark svg { width: 13px; height: 13px; stroke-width: 1.3; }
.hero-signature { font-size: 10px; color: var(--muted); margin: 28px 0 0; }
.hero-signature span { color: var(--ink); }
.hero-world { height: 600px; position: relative; min-width: 0; isolation: isolate; }
.hero-light { position: absolute; inset: -30px -35px; z-index: -2; border-radius: 50%; background: radial-gradient(ellipse at var(--light-x, 54%) var(--light-y, 45%), #e3eac1 0, #e8ebcf 26%, #f4f2e900 65%); pointer-events: none; }
#light-dust { width: 100%; height: 100%; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.world-coordinate { position: absolute; font-size: 8px; font-weight: 600; letter-spacing: 2px; color: #617456; }
.coordinate-top { top: 38px; right: 22px; }
.coordinate-bottom { bottom: 30px; left: 47px; }
.hero-depth { height: 100%; position: relative; }
.hero-character > svg { transform: perspective(1100px) rotateX(var(--tilt-y,0deg)) rotateY(var(--tilt-x,0deg)); pointer-events: none; }
body[data-motion="off"] .hero-character > svg { transform: none; }
.character { display: block; }
.character > img, .character > svg { display: block; width: 100%; height: auto; }
.character > svg { stroke: none; stroke-width: 0; }
.hero-character { position: absolute; z-index: 1; left: 51%; top: 44px; width: min(450px, 92%); transform: translateX(-50%); border: 0; background: none; padding: 0; filter: drop-shadow(0 23px 21px #52724816); }
.gesti-float { transform-box: fill-box; transform-origin: 50% 60%; }
.gesti-face { transform: translate(var(--look-x, 0px), var(--look-y, 0px)); transition: transform .25s ease-out; }
body[data-motion="on"] .character .gesti-float { animation: levitate 6s ease-in-out infinite; }
body[data-motion="on"] .story-character .gesti-float { animation-delay: -2s; }
body[data-motion="on"] .companion-character .gesti-float { animation-delay: -4s; }
@keyframes levitate { 0%,100% { transform: translate(0, 0) rotate(-1.3deg); } 50% { transform: translate(3px, -12px) rotate(1.4deg); } }
.ground-shadow { position: absolute; width: 220px; height: 22px; top: 450px; left: 51%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, #45663b23, #45663b00 70%); }
body[data-motion="on"] .ground-shadow { animation: shadow-breathe 6s ease-in-out infinite; }
@keyframes shadow-breathe { 0%,100% { transform: translateX(-50%) scaleX(1); opacity: 1; } 50% { transform: translateX(-50%) scaleX(.84); opacity: .7; } }
.speech { background: var(--paper-light); box-shadow: 0 8px 26px #5663430c; border: 1px solid #e1e2d3; color: var(--ink); border-radius: 14px; }
.hero-speech { position: absolute; z-index: 2; top: 34px; left: 20px; padding: 13px 22px; font: 500 20px/1.2 var(--serif); transform: rotate(-5deg); --note-angle: -5deg; --note-cycle: 7.4s; --note-delay: 0s; --note-lift: -5px; }
.hero-speech::after { content: ""; position: absolute; width: 10px; height: 10px; background: var(--paper-light); border: solid #e1e2d3; border-width: 0 1px 1px 0; bottom: -6px; right: 26px; transform: rotate(45deg); }
.floating-note { position: absolute; z-index: 2; display: grid; gap: 7px; background: var(--paper-light); border: 1px solid #e2e3d3; box-shadow: 4px 7px 17px #334c260b; padding: 17px 20px; min-width: 183px; pointer-events: none; }
.floating-note > span:nth-child(2) { font: 500 17px/1.2 var(--serif); }
.note-stamp { font-size: 7px; letter-spacing: 1.8px; font-weight: 700; color: #64724f; }
.note-context { left: 0; top: 370px; transform: rotate(-7deg); padding-right: 45px; --note-angle: -7deg; --note-cycle: 8.6s; --note-delay: .14s; --note-lift: -4px; }
.note-context svg { position: absolute; right: 16px; bottom: 18px; width: 18px; height: 18px; color: #658148; }
.note-owner { right: -4px; top: 240px; transform: rotate(8deg); background: #f2e7ca; border-color: #e3d6b4; --note-angle: 8deg; --note-cycle: 7.8s; --note-delay: .28s; --note-lift: -6px; }
.note-dot { position: absolute; right: 17px; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: #8b6b34; }
.task-note { min-width: 116px; padding: 12px 17px; gap: 0; --note-cycle: 8s; --note-lift: -4px; }
.task-note > span { font: 500 17px/1.25 var(--serif); }
.task-meetings { right: 13px; top: 92px; transform: rotate(5deg); --note-angle: 5deg; --task-delay: 0s; }
.task-commitments { left: 8px; top: 218px; transform: rotate(-5deg); --note-angle: -5deg; --task-delay: .16s; }
.task-inquiries { right: 39px; top: 429px; transform: rotate(4deg); --note-angle: 4deg; --task-delay: .32s; }
.hero-bottom { grid-column: 1/-1; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; align-items: center; padding: 20px 0 27px; font-size: 10px; margin-top: 37px; }
.hero-bottom p { margin: 0; color: var(--muted); }
.hero-bottom strong { color: var(--ink); font-weight: 500; }
.scroll-cue { display: flex; gap: 16px; align-items: center; min-height: 44px; }
.scroll-cue span { font-size: 20px; }
.section-space { padding-block: clamp(85px, 9vw, 140px); }
h2 { font-size: clamp(38px, 4.4vw, 62px); line-height: 1.1; letter-spacing: -2.7px; margin-bottom: 26px; }
h2 em { font-weight: 500; }
.manifesto { color: var(--paper); background: var(--forest); padding-block: 105px 45px; overflow: hidden; position: relative; }
.manifesto::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 100% 100%, #b8e6c818, transparent 60%); }
.manifesto-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; }
.manifesto .eyebrow { color: #bfd6ac; }
.section-number { font-size: 9px; letter-spacing: 1.4px; color: #a1b89c; padding-top: 90px; }
.manifesto h2 { font-size: clamp(43px, 4.8vw, 68px); letter-spacing: -2.8px; }
.manifesto h2 em { color: #c6dfa8; }
.manifesto-copy p { font-size: 14px; line-height: 1.85; max-width: 525px; color: #c5d1bc; margin-bottom: 18px; }
.manifesto-copy p strong { color: var(--paper); font-weight: 500; }
.manifesto-footer { grid-column: 1/-1; margin-top: 45px; display: flex; align-items: center; gap: 28px; padding-top: 28px; border-top: 1px solid #e0ebc822; }
.handwritten { font: 500 italic 26px/1.3 var(--serif); color: #c6dfa8; }
.manifesto-line { height: 1px; width: 70px; background: #c6dfa86b; }
.capabilities { display: grid; grid-template-columns: .94fr 1.06fr; gap: 90px; align-items: start; }
.capabilities-heading { position: sticky; top: 55px; }
.capabilities-heading p:not(.eyebrow) { font-size: 14px; color: var(--muted); max-width: 320px; }
.capabilities h2 { font-size: clamp(36px, 3.5vw, 53px); }
.capability { display: grid; grid-template-columns: 30px 1fr; column-gap: 17px; border-top: 1px solid var(--line); padding: 25px 0 28px; }
.capability:last-child { border-bottom: 1px solid var(--line); }
.cap-index { font-size: 10px; color: #596747; padding-top: 5px; font-variant-numeric: tabular-nums; }
.capability h3 { font: 500 24px/1.2 var(--serif); letter-spacing: -.5px; margin: 0 0 11px; }
.capability p { font-size: 13px; line-height: 1.85; color: var(--muted); margin: 0; }
.cap-tag { grid-column: 2; width: fit-content; border: 1px solid #c9d3b8; border-radius: 30px; font-size: 7px; letter-spacing: 1.3px; font-weight: 600; padding: 3px 9px; margin-top: 15px; }
.small-things { grid-column: 1/-1; display: grid; grid-template-columns: .94fr 1.06fr; gap: 90px; border-top: 1px solid var(--line); padding-top: 38px; margin-top: 5px; }
.small-things .eyebrow { font-size: 8px; margin-bottom: 15px; }
.small-things h3 { font: 500 30px/1.15 var(--serif); letter-spacing: -.7px; margin: 0; }
.small-things h3 em { font-weight: 500; }
.small-things ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 17px 25px; align-content: start; }
.small-things li { display: flex; align-items: baseline; gap: 11px; font-size: 11px; color: var(--muted); }
.small-things li::before { content: "+"; color: #6a7c47; font-size: 17px; line-height: 1; }
.demo-section { background: #e9ecdf; position: relative; padding-top: clamp(48px, 5vw, 72px); padding-bottom: clamp(60px, 6vw, 88px); }
.capabilities + .companion { border-top: 1px solid var(--line); }
.demo-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 38px; gap: 30px; }
.demo-heading h2 { margin-bottom: 0; }
.demo-heading > p { font-size: 12px; color: var(--muted); margin: 0 0 4px; }
.story-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.story-choice { display: flex; align-items: center; justify-content: start; gap: 13px; background: transparent; border: 1px solid #bac6a8; border-radius: 9px; min-height: 62px; padding: 15px 20px; color: var(--ink); font-size: 12px; transition: background .2s, border-color .2s; }
.story-choice > span { font-size: 9px; color: #637353; font-variant-numeric: tabular-nums; }
.story-choice svg { margin-left: auto; width: 18px; }
.story-choice[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.story-choice[aria-pressed="true"] > span { color: var(--mint); }
.story-choice:hover:not([aria-pressed="true"]) { background: #f4f5e9; }
.story-stage { position: relative; background: var(--forest); color: var(--paper); border-radius: 26px; min-height: 490px; display: grid; grid-template-columns: 1fr 1.2fr; padding: 40px 65px 0; overflow: hidden; }
.story-art { position: relative; min-height: 320px; pointer-events: none; }
.story-halo { position: absolute; width: 440px; height: 440px; left: 50%; top: -35px; transform: translateX(-50%); background: radial-gradient(circle, #b5d69b22, #b5d69b00 62%); }
.story-character { position: absolute; width: 260px; left: 45%; top: 7px; transform: translateX(-50%) rotate(-6deg); transition: transform .6s var(--ease); }
.story-character .gesti-face, .story-character .gesti-prop { transition: opacity .19s ease; }
.story-character.is-face-fading .gesti-face, .story-character.is-face-fading .gesti-prop { opacity: 0; }
.story-shadow { width: 160px; height: 15px; border-radius: 50%; background: radial-gradient(ellipse, #0b211a6b, #0b211a00 70%); position: absolute; left: 45%; top: 285px; transform: translateX(-50%); }
.story-star { position: absolute; width: 40px; height: 40px; fill: none; stroke: #d6e7b6; stroke-width: 1.2; transition: opacity .5s var(--ease); }
.star-one { left: 17%; top: 80px; transform: rotate(-7deg); }
.star-two { right: 16%; top: 205px; width: 23px; height: 23px; transform: rotate(17deg); stroke: var(--sand); }
.story-copy { display: flex; flex-direction: column; justify-content: center; padding-left: 25px; padding-block: 10px 25px; transition: opacity .22s var(--ease), transform .22s var(--ease); }
.story-copy.is-leaving { opacity: 0; transform: translateY(-8px); }
.story-kicker { color: #c9dda9; font-size: 9px; letter-spacing: 1.8px; font-weight: 600; margin-bottom: 23px; }
.story-copy h3 { font: 500 43px/1.14 var(--serif); letter-spacing: -1.4px; margin-bottom: 20px; white-space: pre-line; }
.story-copy > p { color: #c6d3bd; font-size: 13px; max-width: 360px; margin-bottom: 17px; line-height: 1.8; }
.story-copy .story-quote { font: 500 italic 22px/1.4 var(--serif); color: #d9eab8; }
.story-navigation { grid-column: 1/-1; border-top: 1px solid #b8e6c824; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 21px 0 25px; }
.story-steps { display: flex; align-items: center; gap: 12px; }
.story-steps button { display: inline-flex; align-items: center; gap: 8px; color: #afc5a2; font-size: 9px; background: none; padding: 7px 0; min-height: 44px; border: 0; }
.story-steps button > span { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid #9db99668; border-radius: 50%; font-size: 8px; }
.story-steps [aria-current="step"] { color: var(--paper); }
.story-steps [aria-current="step"] > span { color: var(--forest); border-color: var(--mint); background: var(--mint); }
.step-connector { width: 24px; height: 1px; background: #b5d2a945; }
.story-next { display: inline-flex; align-items: center; gap: 24px; background: none; color: var(--paper); border: 0; min-height: 44px; padding: 7px 0; font-size: 11px; }
.story-next:hover { color: var(--mint); }
.illustration-note { color: #526145; font-size: 9px; text-align: center; margin: 22px 0 0; }
.companion { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 100px; }
.companion-scene { position: relative; height: 400px; }
.companion-sheet { width: 220px; height: 285px; position: absolute; left: 13%; top: 13px; background: #faf9ef; border: 1px solid #e2e3d3; transform: rotate(-12deg); padding: 42px 28px; box-shadow: 7px 15px 35px #31442f0b; }
.paper-line { height: 2px; width: 120px; background: #cad4bd; margin-bottom: 15px; }
.paper-line.long { width: 145px; }
.paper-line.short { width: 75px; }
.paper-seal { margin-top: 90px; width: 38px; height: 38px; color: #5d7c44; display: grid; place-items: center; border: 1px solid #c5d6b5; border-radius: 50%; }
.companion-character { width: 275px; position: absolute; left: 43%; top: 80px; transform: rotate(9deg); filter: drop-shadow(4px 14px 14px #233b2512); }
.companion-caption { position: absolute; left: 19%; bottom: 0; font-size: 8px; letter-spacing: 1.9px; color: var(--muted); }
.companion-copy > p:not(.eyebrow) { font-size: 14px; color: var(--muted); line-height: 1.85; max-width: 405px; }
.state-legend { display: flex; flex-wrap: wrap; gap: 25px; margin-top: 30px; font-size: 9px; }
.state-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.state-dot { width: 6px; height: 6px; border-radius: 50%; background: #5c8352; }
.state-dot.preparing { background: #43756a; }
.state-dot.owner { background: #997344; }
.control-section { border-block: 1px solid var(--line); background: #efeee3; }
.control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; }
.control-principles { display: grid; gap: 30px; }
.control-principles article + article { border-top: 1px solid var(--line); padding-top: 30px; }
.control-principles article > span { display: block; font-size: 8px; letter-spacing: 1.6px; font-weight: 600; color: #546644; margin-bottom: 15px; }
.control-principles h3 { font: 500 28px/1.2 var(--serif); letter-spacing: -.5px; margin-bottom: 12px; }
.control-principles p { font-size: 13px; color: var(--muted); line-height: 1.85; margin-bottom: 0; max-width: 430px; }
.faq { display: grid; grid-template-columns: .82fr 1.18fr; gap: 80px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 25px; list-style: none; padding: 25px 0; font-size: 13px; font-weight: 500; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 18px; height: 18px; transition: transform .2s; }
.faq-list [open] summary svg { transform: rotate(45deg); }
.faq-list details > p { max-width: 520px; color: var(--muted); font-size: 13px; line-height: 1.85; margin-bottom: 27px; }
.closing { position: relative; overflow: hidden; background: #dce7ca; padding: 80px 0 155px; text-align: center; }
.closing::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 20%, #edf3d4, transparent 75%); pointer-events: none; }
.closing-inner { position: relative; z-index: 1; }
.closing-brand { display: flex; flex-direction: column; align-items: center; }
.closing-character { width: 100px; margin-bottom: 8px; }
.closing-brand .eyebrow { font-size: 8px; margin-bottom: 25px; }
.closing h2 { font-size: clamp(33px, 4.5vw, 60px); }
.closing .primary { margin-top: 12px; }
.closing-inner > p { font-size: 10px; color: #526546; margin: 27px 0 0; }
.closing-inner > p span { color: var(--ink); }
.closing-watermark { font: 500 310px/.75 var(--serif); letter-spacing: -18px; position: absolute; left: 50%; bottom: -60px; transform: translateX(-50%); color: #54753714; pointer-events: none; }
.site-footer { padding-block: 33px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-wordmark { font-size: 33px; }
.site-footer > p { margin: 0 auto 0 20px; font-size: 10px; color: var(--muted); }
.site-footer > span { font-size: 14px; line-height: 1.6; letter-spacing: .15px; color: #465744; }
.site-footer > span strong { font-weight: 600; }
.noscript-note { text-align: center; font-size: 12px; padding: 15px; }
body[data-motion="on"].effects-ready .reveal:not(.is-visible) { opacity: 0; transform: translateY(24px); }
.effects-ready .reveal { transition: opacity .75s var(--ease), transform .75s var(--ease); }
body[data-motion="off"] *, body.page-hidden * { animation-play-state: paused !important; }
body[data-motion="off"] .hero-depth { transform: none; }
body[data-motion="off"] .reveal { opacity: 1 !important; transform: none !important; transition: none; }
body[data-motion="off"] .story-copy { animation: none; transition: none; opacity: 1; transform: none; }
.character.offscreen * { animation-play-state: paused !important; }
/* Gestos originales del estudio de personaje, aplicados según su significado. */
.gesti-eyes { transform-box: fill-box; transform-origin: center; }
body[data-motion="on"] [data-character="available"] .gesti-eyes,
body[data-motion="on"] [data-character="watching"] .gesti-eyes,
body[data-motion="on"] [data-character="preparing"] .gesti-eyes { animation: natural-blink 11s linear infinite; }
@keyframes natural-blink { 0%,43%,45%,100% { transform: scaleY(1); } 44% { transform: scaleY(.08); } }
body[data-motion="on"] [data-character="needs_owner"] .gesti-float { animation: ask-owner 7s ease-in-out infinite; }
@keyframes ask-owner { 0%,100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-4px); } }
body[data-motion="on"] [data-character="paused"] .gesti-float,
body[data-motion="on"] [data-character="uncertain"] .gesti-float { animation: none; }
.story-stage[data-scenario="decision"] .story-star { opacity: 0; }
.story-stage[data-scenario="decision"] .story-character { transform: translateX(-50%); }
.state-legend { gap: 8px; }
.state-legend button { color: var(--ink); background: transparent; border: 1px solid #a8b99a; border-radius: 22px; padding: 9px 13px; min-height: 44px; font-size: 11px; }
.state-legend button[aria-pressed="true"] { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.state-legend button:hover:not([aria-pressed="true"]) { background: #e0e7d3; }
.companion-copy .expression-caption { font-size: 12px; min-height: 4em; margin-top: 16px; }
.expression-playback { display: flex; align-items: center; margin-top: 8px; }
.expression-playback button { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 12px; border: 1px solid #a8b99a; border-radius: 22px; background: transparent; color: var(--ink); font-size: 11px; }
.expression-playback button svg { width: 15px; height: 15px; }
.expression-playback button:hover:not(:disabled) { background: #e3ead8; }
.expression-playback button:disabled { opacity: .65; }
.companion-character .gesti-face { transition: transform .25s ease-out, opacity .14s ease-in; }
.companion-character .gesti-prop, .expression-caption { transition: opacity .14s ease-in; }
.companion-character.is-expression-shifting .gesti-face, .companion-character.is-expression-shifting .gesti-prop, .expression-caption.is-expression-shifting { opacity: 0; }
body[data-motion="off"] .companion-character .gesti-face, body[data-motion="off"] .companion-character .gesti-prop, body[data-motion="off"] .expression-caption { opacity: 1; transition: none; }
/* Una escena coordinada: los cartelitos se suman y un gesto de Gesti los ordena. */
body[data-motion="on"] .hero-note {
  animation: note-drift var(--note-cycle) ease-in-out infinite;
  transform-origin: 50% 60%;
}
body[data-motion="on"] .hero-world:is([data-hero-phase="context"],[data-hero-phase="owner"],[data-hero-phase="tasks"]) .hero-speech,
body[data-motion="on"] .hero-world:is([data-hero-phase="context"],[data-hero-phase="owner"]) .task-note,
body[data-motion="on"] .hero-world[data-hero-phase="context"] .note-owner { opacity: 0; }
body[data-motion="on"] .hero-world[data-hero-phase="clear"] .hero-note,
body[data-motion="on"] .hero-world:is([data-hero-phase="resolve"],[data-hero-phase="settle"],[data-hero-phase="rest"]) .floating-note { opacity: 0; pointer-events: none; }
body[data-motion="on"] .hero-world:is([data-hero-phase="clear"],[data-hero-phase="resolve"],[data-hero-phase="settle"],[data-hero-phase="rest"]) .floating-note { animation: none; translate: none; rotate: none; }
body[data-motion="on"] .hero-world[data-hero-phase="context"] .note-context,
body[data-motion="on"] .hero-world[data-hero-phase="owner"] .note-owner,
body[data-motion="on"] .hero-world[data-hero-phase="take"] .hero-speech {
  animation: note-arrival .64s var(--ease) 1 backwards, note-drift var(--note-cycle) ease-in-out .64s infinite;
}
body[data-motion="on"] .hero-world[data-hero-phase="tasks"] .task-note { animation: note-arrival .64s var(--ease) var(--task-delay) 1 backwards, note-drift var(--note-cycle) ease-in-out calc(var(--task-delay) + .64s) infinite; }
body[data-motion="on"] .hero-world:is([data-hero-phase="context"],[data-hero-phase="owner"],[data-hero-phase="tasks"],[data-hero-phase="take"],[data-hero-phase="anticipate"],[data-hero-phase="vortex"]) .note-context svg { opacity: 0; }
/* Anticipación y reacción del personaje: una acción preparada, no un giro mecánico. */
.gesti-action { transform-box: view-box; transform-origin: 200px 218px; }
body[data-motion="on"] .hero-world[data-hero-phase="anticipate"] #greet .gesti-action { animation: cartoon-windup .42s var(--ease) 1 both; }
@keyframes cartoon-windup {
  from { transform: translateY(0) rotate(0) scale(1); }
  to { transform: translateY(4px) rotate(-5deg) scale(1.04,.95); }
}
body[data-motion="on"] .hero-world[data-hero-phase="vortex"] #greet .gesti-action { animation: cartoon-working 2.4s ease-in-out 1; }
@keyframes cartoon-working {
  0% { transform: translateY(4px) rotate(-5deg) scale(1.04,.95); }
  22% { transform: translateY(-7px) rotate(3deg) scale(.975,1.035); }
  54% { transform: translateY(-2px) rotate(-2.5deg) scale(1.015,.985); }
  80% { transform: translateY(-5px) rotate(2deg) scale(.99,1.01); }
  100% { transform: translateY(0) rotate(0) scale(1); }
}
.gesti-arm-left { transform-box: view-box; transform-origin: 122px 219px; }
.gesti-arm-right { transform-box: view-box; transform-origin: 282px 216px; }
body[data-motion="on"] .hero-world[data-hero-phase="vortex"] #greet .gesti-arm-left { animation: cartoon-left-hand 2.4s ease-in-out 1; }
body[data-motion="on"] .hero-world[data-hero-phase="vortex"] #greet .gesti-arm-right { animation: cartoon-right-hand 2.4s ease-in-out 1; }
@keyframes cartoon-left-hand { 0%,100% { transform: rotate(0); } 28% { transform: rotate(22deg); } 60% { transform: rotate(-8deg); } 82% { transform: rotate(13deg); } }
@keyframes cartoon-right-hand { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-24deg); } 56% { transform: rotate(12deg); } 80% { transform: rotate(-16deg); } }
body[data-motion="on"] .is-solving .gesti-action { animation: solve-gesture .95s var(--ease) 1; }
@keyframes solve-gesture {
  0%,100% { transform: translate(0,0) rotate(0) scale(1); }
  30% { transform: translate(0,-7px) rotate(-5deg) scale(1.025); }
  64% { transform: translate(1px,1px) rotate(4deg) scale(1); }
}
/* Los cartelitos circulan hacia el centro y desaparecen antes del resultado. */
body[data-motion="on"] .hero-world[data-hero-phase="vortex"] .hero-note {
  animation: none; translate: none; rotate: none; transform-origin: center;
  z-index: 2; will-change: transform, opacity;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
/* El filtro de sombra se rasteriza por cuadro: se releva sólo durante el giro. */
body[data-motion="on"] .hero-world:is([data-hero-phase="anticipate"],[data-hero-phase="vortex"]) .hero-character,
body[data-motion="on"] .hero-world:is([data-hero-phase="anticipate"],[data-hero-phase="vortex"]) .ground-shadow { filter: none; }


body[data-motion="on"] .hero-world[data-hero-phase="resolve"] .hero-speech {
  animation: listo-arrival .45s var(--ease) 1 backwards, note-drift var(--note-cycle) ease-in-out .45s infinite;
}
@keyframes listo-arrival {
  from { opacity: 0; transform: translateY(5px) rotate(var(--note-angle)) scale(.92); }
  to { opacity: 1; transform: translateY(0) rotate(var(--note-angle)) scale(1); }
}
@keyframes note-arrival {
  from { opacity: 0; transform: translate3d(0, 10px, 0) rotate(calc(var(--note-angle) - 3deg)) scale(.98); }
  to { opacity: 1; transform: rotate(var(--note-angle)) scale(1); }
}
@keyframes note-drift {
  0%,100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 2px var(--note-lift); rotate: .8deg; }
}
body[data-motion="off"] .hero-note { animation: none; opacity: 1; translate: none; rotate: none; }
.hero-world.notes-offscreen .hero-note { animation-play-state: paused !important; }
@media (min-width: 1600px) { .hero { min-height: 840px; } .hero-world { height: 650px; } .hero-character { width: 485px; top: 35px; } .ground-shadow { top: 475px; } .hero-speech { left: 0; } }
@media (max-width: 1100px) {
  .task-inquiries { top: 395px; right: 25px; }
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 0 12px; min-height: 740px; }
  h1 { font-size: 80px; letter-spacing: -4px; }
  .hero-world { height: 520px; }
  .hero-character { top: 62px; width: 385px; }
  .ground-shadow { top: 410px; width: 175px; }
  .note-context { top: 355px; padding: 14px 35px 14px 15px; min-width: 165px; }
  .note-owner { top: 230px; right: -9px; min-width: 156px; padding: 14px 17px; }
  .floating-note > span:nth-child(2) { font-size: 15px; }
  .coordinate-top { right: 0; }
  .hero-light { inset-inline: -20px; }
  .coordinate-bottom { left: 15px; bottom: 25px; }
  .hero-description { font-size: 14px; }
  .hero-actions { gap: 17px; }
  .hero-actions .button { padding-inline: 16px; gap: 16px; font-size: 11px; }
  .capabilities { gap: 45px; }
  .small-things { gap: 45px; }
  .story-stage { padding-inline: 35px; }
  .story-choice { padding-inline: 14px; gap: 9px; font-size: 10px; }
  .story-copy h3 { font-size: 38px; }
  .companion { gap: 60px; }
  .companion-character { left: 35%; width: 230px; }
  .control-grid { gap: 65px; }
  .faq { gap: 45px; }
}
@media (max-width: 900px) {
  .task-meetings { top: 76px; right: 9px; }
  .task-commitments { top: 202px; left: 3px; }
  .task-inquiries { top: 373px; right: 15px; }
  .wrap { width: calc(100% - 44px); }
  .site-header { min-height: 80px; gap: 14px; }
  .wordmark { font-size: 36px; }
  .wordmark img { width: 30px; height: 34px; }
  .site-header nav { gap: 22px; font-size: 11px; }
  .site-header nav a:first-child { display: none; }
  .site-header .nav-demo { margin: 0; }
  .hero { grid-template-columns: 1fr; padding-top: 47px; min-height: 0; }
  .hero .eyebrow { font-size: 8px; margin-bottom: 25px; }
  h1 { font-size: clamp(66px, 12vw, 86px); line-height: .98; letter-spacing: -3.5px; }
  h1 > span:first-child { display: inline; }
  h1 > span:nth-child(2) { display: inline; }
  h1 > span:nth-child(2)::before { content: " "; }
  .hero-description { max-width: 430px; font-size: 14px; margin-bottom: 24px; }
  .hero-copy { padding-bottom: 0; }
  .hero-signature { margin-top: 24px; }
  .hero-world { width: min(520px, 100%); height: 490px; margin: 10px auto 0; }
  .hero-character { width: 385px; top: 29px; }
  .hero-speech { top: 25px; left: 0; font-size: 18px; }
  .ground-shadow { top: 382px; }
  .note-context { left: 0; top: 305px; }
  .note-owner { right: 0; top: 200px; }
  .coordinate-top { top: 10px; right: 0; font-size: 7px; }
  .coordinate-bottom { bottom: 5px; font-size: 7px; }
  .hero-light { inset-inline: -15px; }
  .hero-bottom { margin-top: 19px; gap: 15px; font-size: 9px; padding-block: 12px; }
  .hero-bottom p { max-width: 180px; }
  .scroll-cue { gap: 10px; max-width: 155px; text-align: right; line-height: 1.6; }
  .manifesto { padding-block: 65px 35px; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 25px; }
  .section-number { display: none; }
  .manifesto .eyebrow { margin-bottom: 0; }
  .manifesto h2 { font-size: clamp(38px, 6.8vw, 55px); }
  .manifesto-copy p { font-size: 13px; }
  .manifesto-footer { margin-top: 16px; gap: 15px; flex-wrap: wrap; }
  .handwritten { font-size: 22px; }
  .manifesto-line { width: 30px; }
  .section-space { padding-block: 65px; }
  h2 { font-size: 42px; letter-spacing: -1.8px; }
  .eyebrow { font-size: 8px; margin-bottom: 24px; }
  .capabilities { grid-template-columns: 1fr; gap: 25px; }
  .capabilities-heading { position: static; }
  .capabilities h2 { font-size: 42px; }
  .capabilities-heading p:not(.eyebrow) { max-width: 400px; }
  .capability { grid-template-columns: 25px 1fr; column-gap: 16px; padding-block: 23px; }
  .capability h3 { font-size: 24px; }
  .capability p { font-size: 13px; }
  .small-things { grid-template-columns: 1fr; gap: 25px; margin-top: 12px; padding-top: 28px; }
  .small-things h3 { font-size: 29px; }
  .small-things ul { gap: 15px 18px; }
  .small-things li { font-size: 10px; gap: 8px; }
  .demo-heading { display: block; margin-bottom: 26px; }
  .demo-heading > p { margin-top: 17px; font-size: 12px; }
  .demo-heading > p br { display: none; }
  .story-picker { grid-template-columns: 1fr; gap: 8px; margin-bottom: 20px; }
  .story-choice { min-height: 51px; padding: 12px 17px; font-size: 12px; }
  .story-stage { grid-template-columns: 1fr; padding: 25px 25px 0; min-height: 0; }
  .story-art { min-height: 230px; }
  .story-character { width: 210px; left: 50%; top: -14px; }
  .story-shadow { top: 200px; left: 50%; width: 145px; }
  .story-halo { width: 330px; height: 330px; top: -50px; }
  .star-one { left: 10%; top: 25px; font-size: 31px; }
  .star-two { right: 12%; top: 160px; font-size: 24px; }
  .story-copy { padding: 0 0 22px; min-height: 240px; justify-content: start; }
  .story-copy h3 { font-size: 35px; line-height: 1.16; }
  .story-kicker { margin-bottom: 14px; }
  .story-copy > p { font-size: 12px; max-width: none; }
  .story-copy .story-quote { font-size: 20px; }
  .story-navigation { flex-direction: column; gap: 3px; padding-block: 10px 18px; }
  .story-steps { width: 100%; justify-content: space-between; gap: 7px; }
  .step-connector { flex: 1; width: auto; min-width: 5px; }
  .story-steps button { font-size: 8px; gap: 5px; }
  .story-next { align-self: flex-end; font-size: 11px; gap: 15px; }
  .illustration-note { font-size: 8px; max-width: 300px; margin-inline: auto; }
  .companion { grid-template-columns: 1fr; gap: 30px; }
  .companion-scene { height: 345px; width: min(420px, 100%); margin: 0 auto; }
  .companion-sheet { width: 195px; height: 253px; left: 8%; top: 0; padding: 35px 24px; }
  .paper-line.long { width: 130px; }
  .paper-seal { margin-top: 73px; }
  .companion-character { width: 230px; left: 32%; top: 62px; }
  .companion-caption { bottom: 0; left: 13%; }
  .companion-copy p:not(.eyebrow) { max-width: none; font-size: 13px; }
  .control-grid { grid-template-columns: 1fr; gap: 22px; }
  .control-principles { gap: 25px; }
  .control-principles article + article { padding-top: 25px; }
  .control-principles h3 { font-size: 27px; }
  .faq { grid-template-columns: 1fr; gap: 10px; }
  .faq-list summary { font-size: 12px; padding-block: 23px; }
  .faq-list details > p { font-size: 12px; }
  .closing { padding-block: 50px 95px; }
  .closing h2 { font-size: clamp(32px, 6vw, 43px); }
  .closing h2 br { display: none; }
  .closing-watermark { font-size: 205px; bottom: -39px; letter-spacing: -11px; }
  .site-footer { flex-wrap: wrap; justify-content: space-between; padding-block: 25px; gap: 16px; }
  .site-footer > p { order: 3; margin: 0; flex: 1 1 100%; font-size: 9px; }
  .site-footer > span { font-size: 13px; }
}
@media (max-width: 400px) {
  .floating-note.task-note { min-width: 100px; padding: 10px 13px; }
  .task-note > span { font-size: 15px; }
  .task-meetings { top: 86px; right: 0; }
  .task-commitments { top: 201px; left: 0; }
  .task-inquiries { top: 327px; right: 2px; }
  .wrap { width: calc(100% - 36px); }
  .site-header nav > a:nth-child(2) { display: none; }
  .site-header nav { margin-left: auto; }
  .site-header .nav-demo { font-size: 11px; gap: 8px; }
  .site-header .nav-demo svg { width: 17px; }
  .motion-control { padding-inline: 13px; }
  h1 { font-size: clamp(51px, 15.3vw, 62px); letter-spacing: -2.6px; }
  h1 > span:first-child, h1 > span:nth-child(2) { display: block; }
  h1 > span:nth-child(2)::before { content: none; }
  .hero-actions { gap: 10px 16px; }
  .hero-actions .button { min-height: 53px; }
  .hero-world { height: 425px; margin-top: 20px; }
  .hero-character { width: min(320px, 100%); top: 34px; }
  .ground-shadow { top: 330px; }
  .hero-speech { font-size: 16px; padding: 11px 16px; }
  .coordinate-top { font-size: 5px; top: 14px; }
  .floating-note { min-width: 139px; padding: 13px; }
  .floating-note > span:nth-child(2) { font-size: 13px; }
  .note-stamp { font-size: 6px; }
  .note-context { top: 276px; }
  .note-context svg { display: none; }
  .note-owner { top: 173px; }
  .note-dot { width: 5px; height: 5px; right: 12px; top: 13px; }
  .coordinate-bottom { font-size: 6px; left: 15px; }
  .hero-bottom { font-size: 8px; }
  .hero-bottom p { max-width: 128px; }
  .scroll-cue { max-width: 135px; }
  h2, .capabilities h2 { font-size: 35px; }
  .manifesto h2 { font-size: 35px; }
  .handwritten { font-size: 18px; }
  .manifesto-footer { gap: 10px; }
  .manifesto-line { width: 15px; }
  .story-stage { padding-inline: 19px; }
  .story-copy h3 { font-size: 30px; }
  .story-steps button { font-size: 7px; }
  .story-steps button > span { width: 20px; height: 20px; }
  .companion-scene { height: 315px; }
  .companion-sheet { left: 6%; width: 170px; height: 238px; padding: 28px 20px; }
  .paper-line { width: 105px; }
  .paper-line.long { width: 124px; }
  .companion-character { width: 205px; left: 26%; }
  .companion-caption { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-depth, .reveal { transform: none !important; }
  .reveal { opacity: 1 !important; }
}

/* Familia óptica de la app: vidrio para lo que flota, mate para leer, jade para actuar.
   Composición pública propia; no reutiliza pantallas ni componentes del panel. */
:root {
  --glass-light: #f7fcf1;
  --glass-edge: #c4d8c8;
  --glass-ink: #153c30;
  --glass-rim: inset 0 1px 1px #fbfff1e6, inset 0 -1px 1px #729e8b42;
}
.hero-light { background: radial-gradient(ellipse at var(--light-x,54%) var(--light-y,45%), #d4e7cfc9, #e7edd755 40%, #f4f2e900 68%); }
.hero-depth { z-index: 1; }
.hero-character { filter: drop-shadow(0 24px 21px #274d3b1f); }
.site-header nav { position: relative; isolation: isolate; }
.site-header nav::before {
  content: ''; position: absolute; inset: 0 -18px; z-index: -1;
  border: 1px solid #b2c9b872; border-radius: 999px;
  background: radial-gradient(ellipse at var(--glass-x,36%) var(--glass-y,0%), #fcfff3b5, transparent 75%),
    linear-gradient(125deg, #fcfff3d9, #dfebdd6b 55%, #f4f8eaae);
  box-shadow: var(--glass-rim), 0 9px 20px -16px #224d3c60;
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  pointer-events: none;
}
.site-header nav a { min-height: 46px; }
.site-header nav a:not(.nav-demo)::after { inset-inline: 8px; bottom: 7px; background: #618d75; }
.motion-control, .play-mark {
  background: linear-gradient(135deg, #fafff3de, #dce9da9e);
  border-color: #a6beaab3; box-shadow: var(--glass-rim), 0 5px 12px -8px #284b3942;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.motion-control:hover { background: #e7f2dedb; }
.speech, .floating-note {
  background: radial-gradient(ellipse at var(--glass-x,var(--light-x,36%)) var(--glass-y,var(--light-y,8%)), #fbfff2f0, transparent 75%),
    linear-gradient(135deg, #f3f9e9c4, #dcebd7c4);
  border: 1px solid #a8c7b575;
  border-radius: 15px; color: var(--glass-ink);
  box-shadow: var(--glass-rim), inset 1px 0 0 #ffffff61, 0 15px 30px -18px #153d3069;
  -webkit-backdrop-filter: blur(10px) saturate(135%);
  backdrop-filter: blur(10px) saturate(135%);
}
.speech::after { background: #eaf3de; border-color: #a8c7b575; }
.floating-note { overflow: hidden; }
.floating-note::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(120deg, #ffffff38, transparent 38%, #dbf6e50a 70%, #f9ffed52);
  pointer-events: none;
}
.note-owner {
  background: radial-gradient(ellipse at var(--glass-x,30%) var(--glass-y,0%), #fff9e9ed, transparent 76%),
    linear-gradient(130deg, #f4e8cbcf, #e8dab6cf);
  border-color: #c4ab724d; color: #4b412a;
  box-shadow: inset 0 1px 1px #fffae3eb, inset 0 -1px 1px #997b3833, 0 15px 30px -18px #56461c52;
}
.primary {
  background: linear-gradient(180deg, #286e5b, #194c3d); color: #effff5;
  box-shadow: inset 0 1px 0 #eaffdc70, inset 0 -2px 0 #082b2638, 0 9px 17px -11px #164e3b85;
}
.primary:hover {
  background: linear-gradient(180deg, #327b63, #205943);
  box-shadow: inset 0 1px 0 #f2ffe18a, inset 0 -2px 0 #092f2a40, 0 12px 21px -10px #1d5a4594;
}
.primary:active { background: #1d5643; box-shadow: inset 0 2px 4px #082b264d, inset 0 -1px 0 #e3ffee38; }
.demo-section {
  background: radial-gradient(ellipse at 17% 30%, #cedfcb99, transparent 54%),
    radial-gradient(ellipse at 93% 92%, #c9d8d17a, transparent 50%), #e9eddf;
}
.story-choice {
  background: linear-gradient(130deg, #f7fff075, #e2ecdbb5);
  border-color: #a6bea29e; border-radius: 15px;
  box-shadow: inset 0 1px 0 #ffffffbc, inset 0 -1px 0 #759a8433, 0 8px 15px -13px #234b344d;
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
}
.story-choice[aria-pressed="true"] {
  background: radial-gradient(ellipse at var(--glass-x,35%) var(--glass-y,0%), #4e89733d, transparent 80%), linear-gradient(135deg, #284f43, #18352e);
  border-color: #adc8ac70; color: #eff8e8;
  box-shadow: inset 0 1px 1px #dffad342, inset 0 -1px 0 #061c2361, 0 9px 16px -11px #102f2980;
}
.story-choice:hover:not([aria-pressed="true"]) { background: linear-gradient(130deg, #fcfff4d6, #dfe9d4c4); }
.story-stage {
  isolation: isolate; border: 1px solid #9ac7af59;
  background: radial-gradient(ellipse at 19% 14%, #386f5847, transparent 66%),
    linear-gradient(120deg, #173d32eb, #102e31f5 82%);
  box-shadow: inset 0 1px 2px #e5ffdd63, inset 0 -1px 1px #a6d4c026, 0 29px 48px -30px #173b3370;
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
}
.story-stage::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at var(--glass-x,26%) var(--glass-y,0%), #a3e1b71f, transparent 70%);
}
.story-stage::after {
  content: ''; position: absolute; width: 580px; height: 275px; left: -90px; top: -143px;
  transform: rotate(-27deg); border-radius: 50%; border: 1px solid #c6e9d541;
  box-shadow: inset 0 -5px 10px #d1f3df0a, 0 5px 9px #c9ead90a;
  z-index: -1; pointer-events: none;
}
.story-halo { background: radial-gradient(circle, #cbeebb24, #a5d5bc0d 38%, transparent 67%); }
.story-navigation { border-color: #a9d6c333; }
.story-copy .story-quote { color: #dcedb9; }
.state-legend button { border-color: #9fb99c; box-shadow: inset 0 1px 0 #fcfff278; background: linear-gradient(135deg, #f8fdf178, #e7ecddc4); }
.state-legend button[aria-pressed="true"] { background: linear-gradient(140deg, #2a5543, #19392e); color: #f4fbe9; box-shadow: inset 0 1px 0 #d1eccf38; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header nav::before, .speech, .floating-note, .story-choice { background-color: #edf2e6; }
  .note-owner { background-color: #f0e2c0; }
  .story-stage, .story-choice[aria-pressed="true"] { background-color: #193a30; }
}
@media (max-width: 900px) {
  .site-header nav { gap: 23px; }
  .site-header nav::before { inset-inline: -12px; }
  .story-stage { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
@media (max-width: 520px) {
  .site-header { gap: 12px; }
  .site-header nav { gap: 15px; }
  .site-header nav::before { inset-inline: -8px; }
  .site-header nav a { min-height: 44px; }
  .site-header .wordmark { font-size: 33px; gap: 7px; }
  .site-header .wordmark img { width: 27px; height: 31px; }
  .speech, .floating-note { -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
}
@media (max-width: 560px) {
  /* Logo y botón comparten fila y la firma baja entera: antes el botón caía solo a una fila propia. */
  .site-footer { row-gap: 8px; }
  .site-footer > span { order: 3; flex: 1 1 100%; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header nav::before, .speech, .floating-note, .story-choice, .motion-control, .play-mark {
    -webkit-backdrop-filter: none; backdrop-filter: none; background: #edf2e6;
  }
  .note-owner { background: #f0e2c0; }
  .story-stage, .story-choice[aria-pressed="true"], .state-legend button[aria-pressed="true"] { -webkit-backdrop-filter: none; backdrop-filter: none; background: #193a30; }
}
/* Celulares y tablets: el blur de fondo sobre piezas que se mueven (cartelitos, caja de «En acción» con su
   aparición) deja a veces un recuadro borroso suelto al componer, sobre todo en Safari; y el drop-shadow del
   personaje se rasteriza en cada cuadro porque su hijo flota. Se usa el mismo respaldo opaco que ya existe sin
   blur: color sólido bajo los degradados, que conservan los reflejos. La sombra de piso (.ground-shadow) queda. */
@media (pointer: coarse) {
  .site-header nav::before, .speech, .floating-note, .story-choice, .story-stage, .motion-control, .play-mark {
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .site-header nav::before, .speech, .floating-note, .story-choice, .motion-control, .play-mark { background-color: #edf2e6; }
  .note-owner { background-color: #f0e2c0; }
  .story-stage { background-color: #e6ebdc; }
  .story-choice[aria-pressed="true"] { background-color: #193a30; }
  .hero-character, .companion-character { filter: none; }
}
@media (forced-colors: active) {
  .site-header nav::before, .speech, .floating-note, .story-choice, .story-stage, .primary, .state-legend button {
    background: Canvas; color: CanvasText; border: 1px solid CanvasText;
    box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .story-choice[aria-pressed="true"], .state-legend button[aria-pressed="true"] { background: Highlight; color: HighlightText; }
  .floating-note::before, .story-stage::before, .story-stage::after { display: none; }
}
