.demo-ready .hero { display: block; padding-top: 24px; }
.mood-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 18px; margin-bottom: 38px; border: 1px solid #9fd8b830; border-radius: 999px; background: linear-gradient(90deg, #132b26b3, #0e201eb3); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 14px 36px #00000038; }
.mood-bar p { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; font-weight: 500; color: #daebe1; padding-left: 6px; }
.mood-bar>div { display: flex; flex-wrap: wrap; gap: 6px; }
.mood-choice, .portal-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #b7dcc224; border-radius: 999px; background: #d8e7dc08; color: #cde0d5; padding: 9px 16px; min-height: 40px; font-size: 12px; font-weight: 500; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .2s; }
.mood-choice[aria-pressed=true], .portal-controls button[aria-pressed=true] { background: #9fd8b8; color: #071914; border-color: #9fd8b8; font-weight: 600; box-shadow: 0 4px 16px #9fd8b83d; }
.mood-choice:hover, .portal-controls button:hover { border-color: #b7dcc270; }
.mood-choice>span { font-size: 16px; line-height: 1; }
.demo-ready .hero-explore { display: none; }

.sound-preview { border: 1px solid #9fd8b836; border-radius: 26px; background: linear-gradient(155deg, #152e28b3, #0d1f1cb3); backdrop-filter: blur(16px); max-width: 450px; margin-top: 24px; padding: 18px 22px 15px; box-shadow: 0 18px 42px #00000040; transition: border-color .3s, box-shadow .3s; }
.sound-preview.sound-playing { border-color: #9fd8b880; box-shadow: 0 18px 46px #00000050, 0 0 32px #9fd8b81f; }
.sound-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.preview-kicker { font-size: 9px; letter-spacing: .16em; color: #9fd8b8; font-weight: 600; }
.sound-heading p { font-size: 15.5px; font-weight: 600; margin: 2px 0 0; color: #eef7f1; }
.sound-wave-group { display: flex; align-items: center; gap: 10px; }
.audio-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; padding-inline: 4px; opacity: .45; transition: opacity .25s; }
.audio-bars.is-active { opacity: 1; }
.audio-bars i { width: 3px; height: 5px; border-radius: 2px; background: var(--accent); transition: height .2s; }
.audio-bars.is-active i:nth-child(1) { animation: eq-bar .9s ease-in-out infinite alternate; }
.audio-bars.is-active i:nth-child(2) { animation: eq-bar .65s .15s ease-in-out infinite alternate; }
.audio-bars.is-active i:nth-child(3) { animation: eq-bar .8s .3s ease-in-out infinite alternate; }
.audio-bars.is-active i:nth-child(4) { animation: eq-bar .7s .08s ease-in-out infinite alternate; }
@keyframes eq-bar { from { height: 4px; } to { height: 16px; } }

.sound-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; border: 1px solid #afd4bc45; border-radius: 999px; background: #cee6d40d; color: #e2f2e7; padding: 8px 15px; font-size: 11.5px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.sound-toggle[aria-pressed=true] { background: #9fd8b8; border-color: #9fd8b8; color: #071914; }
.sound-icon { font-size: 16px; line-height: 1; }
.sound-controls { border-bottom: 0; margin-top: 8px; padding: 0; background: transparent; border: 0; }
.sound-controls summary { font-size: 11.5px; min-height: 36px; padding-block: 6px; color: #b4d1c1; font-weight: 500; }
.sound-controls summary>span { font-size: 17px; }
.mixer-channels { display: grid; gap: 12px; padding-block: 8px 12px; }
.mixer-channels label { display: block; font-size: 12px; color: #d0e2d8; }
.mixer-channels label>span { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 2px; }
.mixer-channels output { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.mixer-channels input { width: 100%; accent-color: #9fd8b8; min-height: 24px; margin: 0; cursor: pointer; }
.sound-preview .sound-note { font-size: 10.5px; color: #9ab5a7; line-height: 1.5; margin: 4px 0 0; }
.sound-error { font-size: 12px; color: #ebd5b1; margin: 10px 0 0; }

.demo-ready .hero-content { padding-bottom: 16px; }
.demo-ready .hero h1 { font-size: clamp(46px, 4.7vw, 68px); }
.demo-ready .hero-visual { align-self: stretch; display: flex; align-items: center; }
.demo-ready .landscape-frame { width: 100%; height: clamp(560px, 48vw, 680px); }
.demo-ready .scene-top { top: 26px; }
.portal-controls { position: absolute; z-index: 5; top: 76px; left: 24px; right: 24px; display: flex; flex-wrap: wrap; width: fit-content; max-width: calc(100% - 48px); gap: 3px; padding: 4px; background: #061613d9; backdrop-filter: blur(12px); border: 1px solid #d8ead533; border-radius: 999px; }
.portal-controls button { padding: 7px 13px; font-size: 11px; border-color: transparent; min-height: 36px; }
.landscape-frame figcaption { transition: opacity .25s; }
.landscape-frame[data-mode=water] figcaption, .landscape-frame[data-mode=nebula] figcaption, .landscape-frame[data-mode=breathe] figcaption { opacity: 0; pointer-events: none; }

.water-experience, .nebula-experience, .water-demo, .nebula-demo, .rain-demo, .light-demo { position: absolute; inset: 0; }
.water-experience, .nebula-experience { z-index: 2; }
.water-demo { overflow: hidden; background: radial-gradient(ellipse at 48% 42%, #214852, #0f2933 52%, #071820 88%); }
.water-demo:before { content: ''; position: absolute; inset: 0; opacity: .45; background: repeating-radial-gradient(ellipse at 50% 50%, transparent 0 35px, #8abfba14 37px 39px, transparent 41px 70px); transform: scale(1.3); pointer-events: none; }
.portal-water, .portal-nebula { z-index: 2; }
.water-tap, .nebula-tap { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: inherit; background: transparent; cursor: pointer; touch-action: pan-y; }
.zen-stone { position: absolute; z-index: 2; width: 65px; height: 43px; border-radius: 46% 55% 43% 52%; border: 1px solid #a8cdc245; background: radial-gradient(ellipse at 32% 20%, #7ca395, #3e6158 30%, #253f39 66%, #122925); box-shadow: inset 0 3px 5px #c1d9cb2e, 4px 10px 14px #0008; transform: translate(-50%, -50%) rotate(-12deg); touch-action: none; cursor: grab; transition: box-shadow .2s; }
.stone-2 { width: 53px; height: 35px; transform: translate(-50%, -50%) rotate(17deg); }
.stone-3 { width: 42px; height: 28px; transform: translate(-50%, -50%) rotate(-5deg); }
.zen-stone.dragging { cursor: grabbing; box-shadow: inset 0 3px 5px #c1d9cb40, 6px 16px 22px #000a; }
.demo-water-hint { position: absolute; z-index: 4; left: 20px; right: 20px; bottom: 56px; color: #d2ece1; font-size: 11px; line-height: 1.55; pointer-events: none; text-align: left; text-shadow: 0 2px 8px #000c; }
.portal-water .demo-water-hint, .portal-nebula .demo-water-hint { bottom: 104px; left: 28px; right: 28px; }
.touch-ripple { position: absolute; z-index: 1; width: 130px; height: 75px; margin: -37px 0 0 -65px; border: 2px solid #9fd8b8b8; border-radius: 50%; pointer-events: none; animation: touch-water 1.4s ease-out forwards; box-shadow: inset 0 0 0 6px #9fd8b814; }
@keyframes touch-water { from { transform: scale(.1); opacity: .95; } to { transform: scale(2.6); opacity: 0; } }

/* Observatorio interactivo de Nebulosa */
.nebula-demo { overflow: hidden; background: radial-gradient(ellipse at 35% 32%, #3a1c42cc 0%, transparent 52%), radial-gradient(ellipse at 68% 58%, #124854cc 0%, transparent 55%), radial-gradient(ellipse at 50% 48%, #10192e 0%, #050811 85%); }
.nebula-glow { position: absolute; z-index: 1; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, #9fd8b829 0%, #7dd3fc14 45%, transparent 72%); transform: translate(-50%, -50%); pointer-events: none; transition: left .12s ease-out, top .12s ease-out; }
.nebula-svg { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.nebula-star { position: absolute; z-index: 3; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; transform: translate(-50%, -50%); cursor: pointer; display: grid; place-items: center; }
.nebula-star:before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--star-col, #fff); box-shadow: 0 0 12px 3px var(--star-col, #9fd8b8), 0 0 24px #ffffff80; transition: transform .2s, box-shadow .2s; }
.nebula-star:after { content: ''; position: absolute; width: 18px; height: 1.5px; background: linear-gradient(90deg, transparent, #ffffffbf, transparent); pointer-events: none; }
.nebula-star:hover:before, .nebula-star.is-linked:before { transform: scale(1.38); box-shadow: 0 0 16px 5px #9fd8b8, 0 0 30px #ffffff; }
.nebula-pulse { position: absolute; z-index: 2; width: 48px; height: 48px; margin: -24px 0 0 -24px; border: 1.5px solid #fde68acc; border-radius: 50%; pointer-events: none; animation: neb-wave 1s ease-out forwards; }
@keyframes neb-wave { from { transform: scale(.15); opacity: .95; } to { transform: scale(1.9); opacity: 0; } }
.nebula-badge { position: absolute; z-index: 4; left: 22px; bottom: 84px; padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #eef8f3; background: #0b2220d9; border: 1px solid #9fd8b859; backdrop-filter: blur(8px); pointer-events: none; display: inline-flex; align-items: center; gap: 6px; }
.portal-nebula .nebula-badge { left: 28px; bottom: 136px; }
.nebula-badge span { color: var(--accent); }
.nebula-reset { position: absolute; z-index: 4; top: 18px; left: 18px; padding: 5px 11px; border-radius: 999px; font-size: 10px; font-weight: 600; color: #d5eae0; background: #081918cc; border: 1px solid #ffffff29; cursor: pointer; backdrop-filter: blur(6px); }
.portal-nebula .nebula-reset { top: auto; bottom: 136px; left: auto; right: 28px; }
.nebula-reset:hover { border-color: var(--accent); color: #fff; }

/* Escena interactiva de Lluvia */
.rain-demo { z-index: 2; width: 100%; height: 100%; overflow: hidden; border: 0; background: linear-gradient(180deg, #09181c59, #06131699); cursor: pointer; color: inherit; touch-action: pan-y; }
.rain-streaks { position: absolute; inset: -20%; background-image: repeating-linear-gradient(90deg, transparent 0 28px, #bae6fd24 28px 29px, transparent 29px 64px), repeating-linear-gradient(180deg, transparent 0 40px, #e0f2fe29 40px 58px, transparent 58px 90px); transform: rotate(var(--rain-tilt, 4deg)); transition: transform .2s ease-out; pointer-events: none; }
.rain-drop-ring { position: absolute; z-index: 2; width: 54px; height: 22px; margin: -11px 0 0 -27px; border: 1.5px solid #bae6fd99; border-radius: 50%; pointer-events: none; animation: touch-water 1.2s ease-out forwards; }

.light-demo { z-index: 2; width: 100%; height: 100%; overflow: hidden; border: 0; background: transparent; cursor: pointer; color: inherit; touch-action: pan-y; pointer-events: none; }
.light-spot { position: absolute; left: 50%; top: 45%; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, #e9ecda38, #b6d6b714 40%, transparent 70%); transform: translate(-50%, -50%); pointer-events: none; }
.experience-image>.experience-mark, .experience-image>span { pointer-events: none; z-index: 4; }
.portal-breath { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: #071b198c; backdrop-filter: blur(4px); }
.demo-breathing { display: grid; place-items: center; width: 170px; height: 170px; padding: 20px; border-radius: 50%; text-align: center; background: radial-gradient(circle at 32% 25%, #8dbd9c, #365f4a 55%, #17372d); border: 1px solid #bddcb680; box-shadow: 0 0 0 24px #a2c8ac12, 0 0 0 48px #a2c8ac0a; transform: scale(.9); transition: transform 6s ease-in-out; }
.demo-breathing.inhale { transform: scale(1.12); transition-duration: 4s; }
.demo-phase { font-size: 16px; color: #f0f5ed; font-weight: 500; line-height: 1.35; }

.sanctuary { color: #eaf3ec; background: #081814; padding: 0; border: 1px solid #abc9b54d; border-radius: 32px; width: min(860px, calc(100% - 40px)); max-height: calc(100dvh - 40px); overscroll-behavior: contain; box-shadow: 0 34px 90px #000c; }
.sanctuary::backdrop { background: #020b08f0; backdrop-filter: blur(8px); }
.sanctuary-shell { min-height: min(700px, calc(100dvh - 44px)); display: flex; flex-direction: column; background: radial-gradient(ellipse at 50% 50%, #284b3559, transparent 65%); }
.sanctuary header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 22px 28px; }
.sanctuary-close { min-height: 44px; min-width: 44px; border: 1px solid #bdd9c52e; border-radius: 50%; background: #cce4cc0a; color: #d4e4d8; cursor: pointer; }
.sanctuary-body { text-align: center; padding: 12px 35px 25px; margin-block: auto; }
.sanctuary h2 { font-size: clamp(26px, 4vw, 39px); }
.sanctuary-body>p:first-of-type { max-width: 475px; margin: 20px auto 0; color: #b0c9ba; font-size: 14px; }
.sanctuary-orbits { min-height: 310px; display: grid; place-items: center; }
.sanctuary-time { color: #a5c9b0; font-size: 12px; margin: 0; font-variant-numeric: tabular-nums; }
.sanctuary-message { color: #d5e9d7; font-size: 14px; margin: 10px 0 0; }
.sanctuary-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }
.sanctuary-actions .button { font-size: 12px; min-height: 44px; padding: 8px 16px; }
.sanctuary footer { text-align: center; font-size: 10px; color: #99b3a2; padding: 16px 20px; border-top: 1px solid #c2d9bf17; }
.sanctuary-active { overflow: hidden; }
.sanctuary-active .landing * { animation-play-state: paused !important; }

@media (max-width: 1100px) {
  .mood-bar { flex-direction: column; align-items: flex-start; gap: 12px; border-radius: 24px; padding: 14px 18px; }
  .demo-ready .hero h1 { font-size: clamp(44px, 5vw, 60px); }
  .portal-controls { left: 16px; right: 16px; max-width: calc(100% - 32px); }
  .portal-controls button { padding-inline: 11px; }
  .sound-heading { gap: 12px; }
}
@media (max-width: 760px) {
  .demo-ready .hero { padding-top: 16px; }
  .mood-bar { padding: 14px 16px; margin-bottom: 24px; border-radius: 20px; }
  .mood-bar p { font-size: 12px; padding-left: 0; }
  .mood-bar>div { gap: 6px; }
  .mood-choice { padding: 8px 11px; font-size: 11px; min-height: 38px; gap: 6px; }
  .mood-choice>span { font-size: 14px; }
  .demo-ready .hero h1 { font-size: clamp(40px, 8vw, 56px); }
  .demo-ready .hero-visual { display: block; }
  .demo-ready .landscape-frame { height: 450px; }
  .sound-preview { margin-top: 20px; padding: 15px 16px; max-width: 100%; }
  .sound-heading p { font-size: 14px; }
  .sound-toggle { font-size: 10.5px; gap: 6px; padding-inline: 11px; }
  .portal-controls { top: 72px; left: 14px; right: 14px; max-width: calc(100% - 28px); }
  .portal-controls button { font-size: 10px; min-height: 34px; padding-inline: 10px; }
  .demo-water-hint { font-size: 10px; bottom: 52px; }
  .portal-water .demo-water-hint, .portal-nebula .demo-water-hint { bottom: 96px; left: 18px; right: 18px; }
  .portal-nebula .nebula-badge { left: 18px; bottom: 128px; }
  .portal-nebula .nebula-reset { right: 18px; bottom: 128px; }
  .sanctuary { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 24px; }
  .sanctuary-shell { min-height: 0; }
  .sanctuary header { padding: 12px 16px; }
  .sanctuary-body { padding: 12px 20px 24px; }
  .sanctuary-orbits { min-height: 270px; }
  .sanctuary .demo-breathing { width: 150px; height: 150px; }
}
@media (max-width: 360px) {
  .demo-ready .hero h1 { font-size: 36px; }
  .mood-choice { padding-inline: 9px; font-size: 10px; }
  .mood-choice>span { display: none; }
  .sound-heading { flex-wrap: wrap; }
  .portal-controls button { padding-inline: 8px; font-size: 9.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .touch-ripple, .nebula-pulse, .rain-drop-ring { animation: none; opacity: .5; transform: scale(.7); }
  .audio-bars.is-active i { animation: none !important; height: 10px; }
  .demo-breathing, .demo-breathing.inhale { transform: none; }
}
