/* "Ver un ejemplo": sample video whose own light fills the screen, with one clear call to action. */
html:has(#showcase[open]), body:has(#showcase[open]) { overflow: hidden; }
#showcase { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; overflow: hidden; border: 0; color: #fff8f3; background: #12060f; font-family: 'Memorias Lower Sans', ui-sans-serif, system-ui, sans-serif; }
#showcase:not([open]) { display: none; }
#showcase::backdrop { background: #12060f; }

/* Tiny copy of the current frame, blurred into ambient light. */
#showcase-glow { position: absolute; inset: -12%; width: 124%; height: 124%; filter: blur(80px) saturate(1.9) brightness(.46) contrast(1.15); }
#showcase::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #12060f8c, transparent 55%), radial-gradient(ellipse at center, transparent 30%, #12060fb3 100%); pointer-events: none; }

.showcase-dust { position: absolute; inset: 0 0 -420px; z-index: 1; background-image: radial-gradient(1.4px 1.4px at 30px 60px, #fbe3bb, transparent), radial-gradient(1px 1px at 140px 210px, #fff, transparent), radial-gradient(1.8px 1.8px at 260px 110px, #f6c98a, transparent), radial-gradient(1px 1px at 350px 320px, #fff, transparent), radial-gradient(1.5px 1.5px at 90px 360px, #f6c98a, transparent); background-size: 420px 420px; opacity: .7; pointer-events: none; animation: showcase-rise 30s linear infinite; }
@keyframes showcase-rise { to { transform: translateY(-420px); } }
.showcase-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); align-items: center; gap: 56px; width: min(1400px, 100%); height: 100%; margin-inline: auto; padding: 72px 48px 40px; }
.showcase-kicker { margin: 0 0 10px; color: #f6c98a; font-size: .8rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
#showcase h2 { margin: 0; color: #fff8f3; font-family: 'Memorias Lower Serif', Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(2.8rem, 4.6vw, 4.2rem); line-height: 1.06; letter-spacing: 0; text-shadow: 0 4px 24px #0000008c; }
.showcase-copy { max-width: 440px; }
#showcase-story { min-height: 13.4rem; transition: opacity 240ms ease, transform 240ms ease; }
#showcase-story.is-changing { opacity: 0; transform: translateY(8px); }
#showcase-line { max-width: 34ch; margin: 16px 0 0; color: #e6d8e4; font-size: 1.14rem; line-height: 1.5; }
.showcase-steps { display: flex; gap: 22px; margin: 20px 0 28px; padding: 0; color: #e6d8e4a6; font-size: .92rem; font-weight: 650; list-style: none; }
.showcase-steps li { display: flex; align-items: center; gap: 8px; transition: color 240ms ease; }
.showcase-steps li::before { content: ''; width: 9px; height: 9px; border: 1px solid currentColor; border-radius: 50%; }
.showcase-steps li.is-active { color: #f6c98a; }
.showcase-steps li.is-active::before { background: currentColor; box-shadow: 0 0 12px #f6c98a; }
.showcase-note { margin: 14px 0 0; color: #e6d8e4; font-size: .92rem; }

.showcase-cta { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 62px; padding: 0 34px; overflow: hidden; border-radius: 16px; color: #2b0f2e; background: linear-gradient(115deg, #fbe3bb, #f6c98a 45%, #f2a65a); box-shadow: 0 14px 36px #f2a65a66, inset 0 1px 0 #ffffffa6; font-size: 1.14rem; font-weight: 800; text-decoration: none; transition: transform var(--mw-duration-fast) var(--mw-ease-out), box-shadow var(--mw-duration-fast); }
.showcase-cta::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, #ffffffb3, transparent); transform: skewX(-20deg); animation: showcase-shine 3.6s ease-in-out infinite; }
@keyframes showcase-shine { 0%, 62% { left: -60%; } 100% { left: 130%; } }
.showcase-cta:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 20px 46px #f2a65a8c, inset 0 1px 0 #ffffffa6; }

.showcase-phone { position: relative; justify-self: end; width: min(100%, calc((100dvh - 112px) * 1.7778)); aspect-ratio: 16 / 9; overflow: hidden; border-radius: 22px; background: #000; box-shadow: 0 0 0 1px #f6c98a59, 0 36px 80px #000000b3; }
.showcase-phone video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }

.showcase-icon { position: fixed; top: 18px; z-index: 3; display: grid; width: 50px; height: 50px; padding: 0; place-items: center; border: 1px solid #f6c98a66; border-radius: 50%; color: #fff8f3; background: #12060fb3; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.showcase-icon:hover { border-color: #f6c98a; }
#showcase-close { right: 18px; }
#showcase-sound { right: 78px; }
#showcase-listen { position: absolute; top: 50%; left: 50%; z-index: 2; min-height: 54px; padding: 0 22px; border: 0; border-radius: 14px; color: #2b0f2e; background: #f6c98a; font: inherit; font-weight: 800; white-space: nowrap; cursor: pointer; transform: translate(-50%, -50%); }
#showcase-listen[hidden], #showcase-ending[hidden] { display: none; }

#showcase-ending { position: absolute; inset: 0; z-index: 2; display: grid; align-content: center; justify-items: center; gap: 14px; padding: 24px; background: #12060fd9; text-align: center; }
#showcase-ending h3 { margin: 0 0 6px; color: #fff8f3; font-family: 'Memorias Lower Serif', Georgia, serif; font-style: italic; font-weight: 400; font-size: 2.1rem; line-height: 1.12; letter-spacing: 0; }
#showcase-again { min-height: 48px; padding: 0 22px; border: 1px solid #f6c98a80; border-radius: 13px; color: #fff8f3; background: #ffffff14; font: inherit; font-weight: 700; cursor: pointer; }
#showcase-again:hover { border-color: #f6c98a; background: #f6c98a24; }

@media (max-width: 800px) {
  /* The video stays clean: title and button live in their own band below it. */
  .showcase-layout { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; gap: 0; width: 100%; padding: 0; }
  .showcase-phone { order: 1; flex: none; justify-self: auto; width: min(100%, calc((100dvh - 196px) * .5625)); aspect-ratio: 9 / 16; border-radius: 0 0 18px 18px; box-shadow: 0 16px 40px #00000099; }
  .showcase-copy { order: 2; display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 10px; width: 100%; max-width: none; padding: 8px 16px max(10px, env(safe-area-inset-bottom)); }
  .showcase-kicker, .showcase-steps, .showcase-note { display: none; }
  #showcase-line { max-width: none; margin: 4px 0 0; font-size: .95rem; line-height: 1.35; text-align: center; }
  #showcase-story { min-height: 0; }
  #showcase h2 { font-size: 1.32rem; text-align: center; }
  .showcase-copy .showcase-cta { width: 100%; min-height: 56px; }
  .showcase-icon { top: 20px; width: 40px; height: 40px; background: #12060f66; font-size: 1rem; }
  #showcase-sound { right: auto; left: 12px; }
  #showcase-close { right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-cta { transition: none; }
  .showcase-cta::after, .showcase-dust { animation: none; }
  #showcase-story { transition: none; }
}
