.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%;
}

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

html.is-states #mora-b .state__grid {
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  align-items: center;
}

html.is-states #mora-b .state__copy {
  max-width: 28rem;
}

html.is-states #mora-b .cine-title {
  font-size: clamp(30px, 3.4vw, 46px);
}

.brand-board {
  position: relative;
  inset: auto;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  pointer-events: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 36px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  background: none;
  filter: none;
  box-shadow: none;
}

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 108px;
  padding: 16px 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: transparent;
  color: inherit;
  text-decoration: none;
  text-align: center;
  pointer-events: auto;
  transition: border-color 200ms ease, background 200ms ease;
}

.brand-card:last-child {
  grid-column: 1 / -1;
  max-width: calc(50% - 6px);
  justify-self: center;
  width: 100%;
}

.brand-card .brand-logo {
  height: 36px;
}

.brand-card__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.brand-card__cat {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.brand-card:hover,
.brand-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.04);
}

.discover--constellation a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  pointer-events: auto;
}

.discover--constellation img {
  width: 100%;
  height: 42px;
  object-fit: contain;
}

.discover--waves svg,
.discover--net svg,
.discover--solid svg {
  width: 100%;
  height: 72%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.discover--waves { color: #ff4d6a; }
.discover--net { color: #7ee7ff; }

.discover--solid svg {
  width: 54%;
  height: 54%;
  stroke: #9ec5ff;
  transform-origin: center;
  animation: piece-turn 9s linear infinite;
}

.discover--tools {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: flex-end;
  padding-bottom: 6px;
}

.discover--tools a {
  pointer-events: auto;
  padding: 6px 10px;
  border: 1px solid rgba(196, 168, 255, 0.75);
  border-radius: 999px;
  color: #efe8ff;
  text-decoration: none;
  font-size: 13px;
}

.discover--soft span {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 194, 210, 0.5), rgba(244, 194, 210, 0));
  animation: soft-float 7s ease-in-out infinite;
}

.discover--soft span:nth-child(1) { width: 90px; height: 90px; left: 10%; bottom: 16%; }
.discover--soft span:nth-child(2) { width: 60px; height: 60px; right: 14%; top: 18%; animation-delay: -2s; }
.discover--soft span:nth-child(3) { width: 42px; height: 42px; left: 44%; top: 10%; animation-delay: -4s; }

html.is-states .state__logo-link { position: relative; z-index: 2; }

@keyframes piece-turn { to { transform: rotate(360deg); } }
@keyframes soft-float { 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  .discover--solid svg,
  .discover--soft span { animation: none; }
}

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;
  background: none;
  filter: none;
  box-shadow: none;
  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%);
  }

  html.is-states #mora-b .state__grid {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 96px 16px 92px;
    gap: 14px;
  }

  html.is-states #mora-b .cine-title {
    font-size: 28px;
  }

  html.is-states #mora-b .state__copy ul {
    margin-bottom: 8px;
  }

  html.is-states #mora-b .brand-board {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  html.is-states #mora-b .brand-card {
    min-height: 72px;
    padding: 8px 6px;
  }

  html.is-states #mora-b .brand-card .brand-logo {
    height: 22px;
  }

  html.is-states #mora-b .brand-card__name {
    font-size: 12px;
  }

  html.is-states #mora-b .brand-card__cat {
    font-size: 9px;
  }

  .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;
  }
}
