/* Modelo 3D principal del módulo HANGAR. */

.hangar-structure {
  position: relative;
  width: 100%;
  height: clamp(520px, 72vh, 820px);
  margin: 26px 0 40px;
  overflow: hidden;
  border: 1px solid rgba(100, 209, 243, .62);
  background: radial-gradient(circle at 50% 42%, #09293a 0%, #03131e 64%, #01080e 100%);
  box-shadow: 0 0 50px rgba(44, 186, 238, .18);
}

.hangar-structure__model, .hangar-structure model-viewer {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
}

.hangar-structure__title {
  position: absolute;
  z-index: 2;
  top: clamp(16px, 2.5vw, 30px);
  left: clamp(16px, 2.5vw, 30px);
  max-width: calc(100% - 32px);
  pointer-events: none;
}

.hangar-structure__title p, .hangar-structure__hint {
  margin: 0;
  color: #75d5f6;
  font-family: Tektur, sans-serif;
  font-size: .68rem;
  letter-spacing: .12em;
}

.hangar-structure__title h2 {
  margin: 7px 0 0;
  color: #f2fbff;
  font-family: Tektur, sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.6rem);
}

.hangar-cycle {
  position: absolute;
  z-index: 3;
  top: clamp(16px, 2.5vw, 30px);
  right: clamp(16px, 2.5vw, 30px);
  display: flex;
  max-width: min(340px, 42%);
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.hangar-cycle__button {
  padding: 11px 14px;
  border: 1px solid #e8b34b;
  background: rgba(24, 31, 35, .9);
  color: #ffd46f;
  font-family: Tektur, sans-serif;
  font-size: .68rem;
  letter-spacing: .08em;
  cursor: pointer;
}

.hangar-cycle__button:hover, .hangar-cycle__button:focus-visible {
  background: rgba(113, 77, 13, .92);
  color: #fff4c9;
  outline: none;
}

.hangar-cycle__button:disabled {
  cursor: wait;
  opacity: .48;
}

.hangar-cycle__status {
  min-height: 1.3em;
  margin: 0;
  color: #ffd46f;
  font-family: Tektur, sans-serif;
  font-size: .62rem;
  letter-spacing: .08em;
  text-align: right;
}

.hangar-cycle[hidden] {
  display: none;
}

.hangar-selector {
  position: absolute;
  z-index: 3;
  top: clamp(92px, 8vw, 108px);
  left: clamp(16px, 2.5vw, 30px);
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(117, 213, 246, .55);
  background: rgba(2, 13, 21, .8);
}

.hangar-selector__button {
  padding: 9px 12px;
  border: 0;
  border-right: 1px solid rgba(117, 213, 246, .35);
  background: transparent;
  color: #8ab5c5;
  font-family: Tektur, sans-serif;
  font-size: .6rem;
  letter-spacing: .08em;
  cursor: pointer;
}

.hangar-selector__button:last-child {
  border-right: 0;
}

.hangar-selector__button:hover, .hangar-selector__button:focus-visible {
  color: #fff;
  outline: none;
}

.hangar-selector__button.is-active {
  background: rgba(22, 117, 148, .72);
  color: #fff;
}

.hangar-structure__hint {
  position: absolute;
  z-index: 2;
  bottom: clamp(14px, 2vw, 24px);
  left: 50%;
  padding: 8px 12px;
  background: rgba(2, 13, 21, .7);
  color: #b3d9e8;
  text-align: center;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 575.98px) {
  .hangar-structure {
    width: calc(100% + 24px);
    height: min(72vh, 680px);
    min-height: 480px;
    margin-right: -12px;
    margin-left: -12px;
    border-right: 0;
    border-left: 0;
  }
}

@media (max-width: 575.98px) {
  .hangar-structure__title {
    top: 16px;
    left: 16px;
  }
}

@media (max-width: 575.98px) {
  .hangar-cycle {
    top: 84px;
    right: 16px;
    left: 16px;
    max-width: none;
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .hangar-selector {
    top: 160px;
    right: 16px;
    left: 16px;
  }
}

@media (max-width: 575.98px) {
  .hangar-selector__button {
    flex: 1;
    padding: 8px 6px;
    font-size: .52rem;
  }
}

@media (max-width: 575.98px) {
  .hangar-cycle__button {
    padding: 9px 11px;
    font-size: .58rem;
  }
}

@media (max-width: 575.98px) {
  .hangar-cycle__status {
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .hangar-structure__hint {
    width: max-content;
    max-width: calc(100% - 32px);
    font-size: .55rem;
    white-space: normal;
  }
}

