* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #050507;
}

body {
  color: var(--ink-50, #faf9f6);
  font-family: var(--font-body, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

button,
a,
img,
video {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}

.gw {
  --gw-accent: #d99b2f;
  --gw-accent-soft: rgba(217, 155, 47, 0.24);
  --gw-accent-faint: rgba(217, 155, 47, 0.1);
  --gw-panel: rgba(7, 7, 10, 0.48);
  --gw-shell-width: min(100vw, 520px);
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), transparent 24%, transparent 76%, rgba(0, 0, 0, 0.78)),
    #050507;
  isolation: isolate;
}

.gw-pain-sueno {
  --gw-accent: #8fd3ff;
  --gw-accent-soft: rgba(143, 211, 255, 0.28);
  --gw-accent-faint: rgba(143, 211, 255, 0.11);
}

.gw-pain-ruido {
  --gw-accent: #d99b2f;
  --gw-accent-soft: rgba(217, 155, 47, 0.28);
  --gw-accent-faint: rgba(217, 155, 47, 0.11);
}

.gw-pain-decisiones {
  --gw-accent: #92ccff;
  --gw-accent-soft: rgba(146, 204, 255, 0.28);
  --gw-accent-faint: rgba(146, 204, 255, 0.11);
}

.gw-pain-burnout {
  --gw-accent: #f3a35d;
  --gw-accent-soft: rgba(243, 163, 93, 0.28);
  --gw-accent-faint: rgba(243, 163, 93, 0.11);
}

.gw-pain-foco {
  --gw-accent: #9be7a6;
  --gw-accent-soft: rgba(155, 231, 166, 0.26);
  --gw-accent-faint: rgba(155, 231, 166, 0.11);
}

.gw-loading {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 42%, rgba(217, 155, 47, 0.2), transparent 28%),
    radial-gradient(circle at 50% 74%, rgba(117, 167, 255, 0.14), transparent 30%),
    #050507;
}

.gw-loading-core {
  width: min(76vw, 310px);
  display: grid;
  gap: 14px;
  text-align: center;
}

.gw-loading-core span {
  color: rgba(247, 231, 193, 0.84);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gw-loading-core strong {
  font-size: clamp(3rem, 16vw, 5rem);
  line-height: 0.9;
}

.gw-loading-core div {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.gw-loading-core i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
  background: linear-gradient(90deg, #f3d28a, #92ccff, #ffffff);
  box-shadow: 0 0 24px rgba(217, 155, 47, 0.54);
  transition: transform 180ms ease;
}

.gw-loading-core p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.gw-chrome {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  width: var(--gw-shell-width);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) 20px 10px;
  pointer-events: none;
}

.gw-chrome img {
  width: 116px;
  height: auto;
  display: block;
}

.gw-hold-cue {
  position: fixed;
  top: calc(max(14px, env(safe-area-inset-top)) + 58px);
  left: 50%;
  z-index: 23;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: calc(var(--gw-shell-width) - 40px);
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(250, 249, 246, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(250, 249, 246, 0.12), rgba(250, 249, 246, 0.035)),
    rgba(7, 7, 10, 0.48);
  color: rgba(250, 249, 246, 0.82);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: none;
  transition: opacity 180ms ease, border-color 180ms ease, background 180ms ease;
}

.gw-hold-cue span {
  position: relative;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gw-accent);
  box-shadow: 0 0 18px var(--gw-accent-soft);
}

.gw-hold-cue span::after {
  content: '';
  position: absolute;
  inset: -7px;
  border: 1px solid var(--gw-accent);
  border-radius: inherit;
  opacity: 0.6;
  animation: gwHoldPulse 1.35s ease-out infinite;
}

.gw-hold-cue strong {
  overflow: hidden;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.gw-hold-cue.is-active {
  border-color: var(--gw-accent);
  background:
    linear-gradient(135deg, var(--gw-accent-faint), rgba(250, 249, 246, 0.05)),
    rgba(7, 7, 10, 0.66);
}

.gw-hold-cue.is-muted:not(.is-active) {
  opacity: 0.54;
}

@keyframes gwHoldPulse {
  to {
    opacity: 0;
    transform: scale(2.4);
  }
}

.gw-slide-indicator {
  position: fixed;
  top: 50%;
  left: calc(50% + min(50vw, 260px) - 30px);
  z-index: 24;
  display: grid;
  gap: 7px;
  place-items: center;
  width: 24px;
  padding: 8px 5px;
  border: 1px solid rgba(250, 249, 246, 0.14);
  border-radius: 999px;
  background: rgba(20, 20, 24, 0.74);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
  transform: translateY(-50%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: auto;
}

.gw-slide-dot {
  width: 7px;
  height: 7px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(250, 249, 246, 0.24);
  cursor: pointer;
  transition: height 190ms ease, background 190ms ease, box-shadow 190ms ease, opacity 190ms ease;
}

.gw-slide-dot.is-complete {
  background: rgba(250, 249, 246, 0.58);
}

.gw-slide-dot.is-active {
  height: 28px;
  background: var(--gw-accent);
  box-shadow: 0 0 18px var(--gw-accent-soft);
}

.gw-slide-dot:focus-visible {
  outline: 2px solid rgba(250, 249, 246, 0.72);
  outline-offset: 3px;
}

.gw-stage {
  position: relative;
  z-index: 8;
  width: var(--gw-shell-width);
  height: 100dvh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.gw-stage::-webkit-scrollbar {
  display: none;
}

.gw-slide {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 74px 20px max(16px, env(safe-area-inset-bottom));
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.gw-media,
.gw-base-media,
.gw-base-media img,
.gw-activation-media,
.gw-activation-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.gw-media {
  z-index: 0;
  overflow: hidden;
  background: #050507;
}

.gw-base-media img,
.gw-activation-media video {
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
}

.gw-base-media img {
  filter: saturate(1.02) contrast(1.05) brightness(0.72);
  transition: filter 240ms ease, transform 240ms ease;
}

.gw.is-holding .gw-base-media img {
  filter: saturate(1.06) contrast(1.06) brightness(0.58);
  transform: scale(1.035);
}

.gw-activation-media {
  position: fixed;
  z-index: 2;
  left: 50%;
  width: var(--gw-shell-width);
  transform: translateX(-50%);
  opacity: 0;
  background: #050507;
  transition: opacity 90ms linear;
}

.gw-activation-media.is-active {
  opacity: 1;
}

.gw-activation-media video {
  opacity: 0;
  filter: saturate(1.05) contrast(1.04);
}

.gw-activation-media video.is-visible {
  opacity: 1;
}

.gw-media::before,
.gw-media::after,
.gw-activation-media::before,
.gw-activation-media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.gw-media::before,
.gw-activation-media::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.62), transparent 20%, transparent 48%, rgba(0, 0, 0, 0.82)),
    radial-gradient(ellipse at 50% 40%, transparent 0 30%, rgba(0, 0, 0, 0.42) 67%, rgba(0, 0, 0, 0.92) 100%);
}

.gw-media::after,
.gw-activation-media::after {
  background:
    radial-gradient(circle at 50% 38%, var(--gw-accent-soft), transparent 19%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.28));
  mix-blend-mode: screen;
  opacity: 0.72;
}

.gw-media-grain {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0.13;
  pointer-events: none;
  background-image:
    linear-gradient(115deg, transparent 0 49%, rgba(255, 255, 255, 0.13) 50%, transparent 51%),
    radial-gradient(circle, rgba(255, 255, 255, 0.17) 0 1px, transparent 1.5px);
  background-size: 140px 140px, 36px 36px;
  mix-blend-mode: soft-light;
}

.gw-media-status {
  position: absolute;
  left: 20px;
  right: 20px;
  top: calc(max(14px, env(safe-area-inset-top)) + 54px);
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 8px;
  color: rgba(250, 249, 246, 0.62);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
}

.gw-media-status strong {
  color: var(--gw-accent);
}

.gw-context {
  position: absolute;
  top: calc(max(14px, env(safe-area-inset-top)) + 52px);
  left: 20px;
  right: 20px;
  z-index: 6;
  display: none;
  justify-content: center;
  gap: 8px;
  color: rgba(250, 249, 246, 0.62);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gw-context strong {
  color: var(--gw-accent);
}

.gw-panel {
  position: relative;
  z-index: 8;
  width: 100%;
  max-height: none;
  overflow: visible;
  padding: 0 0 2px;
  text-shadow: 0 16px 44px rgba(0, 0, 0, 0.72);
  animation: gwIn 360ms var(--ease-quiet, ease) both;
}

@keyframes gwIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--gw-accent);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gw-eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
}

.gw h1 {
  margin: 0;
  max-width: 11.5ch;
  color: var(--ink-50, #faf9f6);
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(2.28rem, 10vw, 3.45rem);
  font-weight: 760;
  line-height: 0.95;
  letter-spacing: 0;
  text-wrap: balance;
}

.gw h1 em {
  color: var(--gw-accent);
  font-style: italic;
}

.gw-panel > p {
  max-width: 30ch;
  margin: 14px 0 0;
  color: rgba(250, 249, 246, 0.76);
  font-size: 15px;
  line-height: 1.42;
}

.gw-options {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.gw-option {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 50px;
  padding: 11px 12px;
  overflow: hidden;
  border: 1px solid rgba(250, 249, 246, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(250, 249, 246, 0.085), rgba(250, 249, 246, 0.025)),
    var(--gw-panel);
  color: var(--ink-50, #faf9f6);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.gw-option::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 18% 50%, var(--gw-accent-faint), transparent 54%);
  transition: opacity 140ms ease;
  pointer-events: none;
}

.gw-option:hover,
.gw-option:focus-visible,
.gw-option:active,
.gw-option.is-selected {
  border-color: var(--gw-accent);
  background:
    linear-gradient(135deg, var(--gw-accent-faint), rgba(250, 249, 246, 0.04)),
    rgba(7, 7, 10, 0.68);
  outline: none;
  transform: translateY(-1px);
}

.gw-option:hover::after,
.gw-option:focus-visible::after,
.gw-option:active::after,
.gw-option.is-selected::after {
  opacity: 1;
}

.gw-option:disabled,
.gw-option[aria-disabled='true'] {
  cursor: wait;
  opacity: 0.72;
}

.gw-option span {
  position: relative;
  z-index: 1;
  color: var(--gw-accent);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 10px;
  font-weight: 900;
}

.gw-option strong {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.24;
}

.gw.is-transitioning .gw-panel {
  pointer-events: none;
}

.gw.is-exiting .gw-activation-media {
  opacity: 1;
}

.gw-exit {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 28px;
  color: #fff;
  text-align: center;
  background: radial-gradient(circle at 50% 42%, var(--gw-accent-soft), transparent 28%), rgba(3, 3, 4, 0.42);
  pointer-events: none;
}

.gw-exit span {
  width: 58px;
  height: 58px;
  border: 1px solid var(--gw-accent);
  border-top-color: transparent;
  border-radius: 50%;
  animation: gwExitSpin 720ms linear infinite;
  box-shadow: 0 0 24px var(--gw-accent-soft);
}

.gw-exit p {
  margin: 0;
  color: rgba(250, 249, 246, 0.82);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes gwExitSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-height: 760px) {
  .gw h1 {
    font-size: clamp(1.92rem, 8.8vw, 2.72rem);
  }

  .gw-panel > p {
    font-size: 14px;
  }

  .gw-options {
    gap: 7px;
    margin-top: 14px;
  }

  .gw-option {
    min-height: 46px;
    padding-top: 9px;
    padding-bottom: 9px;
  }
}

@media (min-width: 720px) {
  .gw-slide {
    padding: 88px 34px max(30px, env(safe-area-inset-bottom));
  }

  .gw-chrome {
    padding-left: 34px;
    padding-right: 34px;
  }

  .gw-chrome img {
    width: 142px;
  }

  .gw h1 {
    font-size: clamp(3.35rem, 6vw, 4.6rem);
  }

  .gw-panel > p {
    font-size: 17px;
  }

  .gw-option {
    min-height: 58px;
    padding: 15px;
  }

  .gw-option strong {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
