.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-cine {
  overflow-x: clip;
  background: #050505;
}

.home-cine .site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  pointer-events: none;
}

.home-cine .nav {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.46);
}

.recorrido__stage {
  --cine-glow: #ffffff;
  position: relative;
  min-height: 100svh;
  background: #000000;
  color: #ffffff;
}

html.is-states {
  scroll-behavior: auto;
}

html.is-states .recorrido {
  height: 100svh;
}

html.is-states .recorrido__stage {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  perspective: 1400px;
  perspective-origin: 50% 42%;
}

.espacio {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
}

.espacio__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.mora-field {
  display: none;
}

.recorrido__wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000000;
}

.recorrido__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(46% 58% at 68% 48%, var(--cine-glow), transparent 72%);
}

.state {
  position: relative;
  min-height: 100svh;
  display: grid;
  color: #ffffff;
}

html.is-states .state {
  position: absolute;
  inset: 0;
  min-height: 0;
  opacity: 0;
  visibility: hidden;
}

html.is-states .state.is-active {
  opacity: 1;
  visibility: visible;
}

.state__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.62) 42%, rgba(0, 0, 0, 0.22) 72%, rgba(0, 0, 0, 0.4) 100%);
}

.state__shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 80% at 78% 48%, var(--cine-glow), transparent 70%);
  opacity: 0.28;
  pointer-events: none;
}

.state__grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
  height: 100%;
  min-width: 0;
  padding: 112px 6vw 148px;
  overflow: hidden;
}

.state__copy {
  min-width: 0;
  max-width: 38rem;
  border-left: 3px solid var(--cine-glow);
  padding-left: 18px;
}

.cine-kicker,
.state h3 {
  margin: 0;
  color: #ffffff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.state h3 {
  margin-top: 18px;
}

.cine-title {
  margin: 8px 0 0;
  color: #ffffff;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 600;
}

.state__copy p,
.state__copy li {
  color: #f4f4f4;
  font-size: 16px;
  line-height: 1.45;
}

.state__copy p {
  margin: 4px 0 0;
}

.state__copy ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.state__copy .btn {
  margin-top: 22px;
}

.state__visual {
  margin: 0;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.state__logo-link {
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
}

html.is-states .state__visual picture {
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: center;
}

html.is-states .state__logo {
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
}

html.is-states .state__visual {
  position: absolute;
  z-index: 3;
  top: 46%;
  right: 8vw;
  width: min(40vw, 480px);
  height: 280px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  pointer-events: none;
}

.state__logo {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  transform-origin: center center;
}

.state[data-brand="mora-corporation"] .state__shade {
  background: linear-gradient(90deg, #000000 0%, rgba(0, 0, 0, 0.94) 34%, rgba(0, 0, 0, 0.35) 58%, transparent 78%);
}

.state[data-brand="mora-corporation"] .state__shade::after {
  opacity: 0;
}

.state[data-brand="mora-corporation"] .state__copy {
  border-left-width: 1px;
  border-left-color: rgba(255, 255, 255, 0.55);
}

.state[data-brand="mora-corporation"] .state__visual,
.state[data-brand="atm-music"] .state__visual,
.state[data-brand="morgar-digital"] .state__visual {
  justify-content: center;
  align-items: center;
}

.state[data-brand="atm-music"] .state__shade,
.state[data-brand="morgar-digital"] .state__shade {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.42) 40%, rgba(0, 0, 0, 0.12) 100%);
}

.state[data-brand="atm-music"] .state__shade::after,
.state[data-brand="morgar-digital"] .state__shade::after,
.state[data-brand="ecomora"] .state__shade::after,
.state[data-brand="3dmora"] .state__shade::after,
.state[data-brand="shaonys-cakes"] .state__shade::after {
  opacity: 0;
}

.state[data-brand="ecomora"] .state__shade,
.state[data-brand="3dmora"] .state__shade,
.state[data-brand="shaonys-cakes"] .state__shade {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.4) 42%, rgba(0, 0, 0, 0.14) 100%);
}

.state-progress {
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
}

.state-progress span {
  display: block;
  height: 100%;
  width: 8.34%;
  background: #ffffff;
}

.catalog {
  padding: 72px 6vw 32px;
}

.catalog h2 {
  margin: 0 0 8px;
  font-size: 32px;
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.catalog article {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 12px;
}

.catalog img {
  width: min(180px, 72%);
  height: 72px;
  object-fit: contain;
  margin-bottom: 12px;
}

.catalog h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.institutional {
  padding: 24px 6vw 88px;
  max-width: 920px;
}

.institutional h2 {
  margin: 0 0 12px;
  font-size: 32px;
}

.institutional p {
  margin: 0 0 14px;
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
}

.home-cine .nav__links {
  flex-wrap: wrap;
}

.state-nav {
  display: none;
}

html.is-states .state-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: grid;
  gap: 8px;
  padding: 28px 6vw calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78) 42%);
}

.state-nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.state-nav button,
.omitir {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  cursor: pointer;
}

.state-nav button[disabled] {
  opacity: 0.4;
  cursor: default;
}

.state-nav__dots button[aria-current="true"] {
  border-color: var(--cine-glow);
  box-shadow: inset 0 0 0 1px var(--cine-glow);
}

.omitir {
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 800px) {
  .state__grid {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    padding: 116px 20px 210px;
  }

  html.is-states .state__grid {
    padding-top: 236px;
  }

  html.is-states .state__visual {
    top: 78px;
    right: auto;
    left: 50%;
    width: min(64vw, 240px);
    height: 112px;
    transform: translateX(-50%);
  }

  .state[data-brand="mora-corporation"] .state__shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, #000000 28%, #000000 100%);
  }

  .state__logo {
    width: 100%;
    height: 100%;
    max-height: none;
  }

  .state-nav button,
  .omitir {
    min-height: 44px;
    padding: 8px 10px;
  }

  .cine-title {
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .state,
  .state__logo,
  .state__copy {
    transition: none;
    animation: none;
  }
}
