#page-edificio {
  background: var(--h-dark);
  overflow: hidden;
}
.eb-video-full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.eb-intro {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: var(--h-dark);
  transition: opacity 0.45s ease;
}
.eb-intro.hidden {
  opacity: 0;
  pointer-events: none;
}
.eb-viewer {
  position: absolute;
  inset: 0;
  opacity: 0;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 0.3s ease;
  touch-action: none;
  overscroll-behavior: none;
}
.eb-viewer.visible {
  opacity: 1;
}
.eb-viewer.eb-zoomed {
  cursor: grab;
  touch-action: none;
}
.eb-viewer.eb-grabbing {
  cursor: grabbing;
}
.eb-slides {
  position: absolute;
  inset: 0;
}
.eb-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.eb-slide.active {
  opacity: 1;
}
.eb-transition {
  position: absolute;
  inset: 0;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.eb-transition.playing {
  opacity: 1;
  pointer-events: all;
}
.eb-poly-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
.eb-poly {
  fill: url(#ebPolyGrad);
  stroke: url(#ebPolyStrokeGrad);
  stroke-width: 4;
  opacity: 0;
  filter: blur(2.5px);
  transition:
    fill 0.25s ease,
    stroke 0.25s ease,
    opacity 0.25s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.eb-poly.active {
  fill: url(#ebPolyGradHover);
  stroke: url(#ebPolyStrokeGradHover);
  stroke-width: 4;
  opacity: 1;
}
.eb-poly:active {
  fill: rgba(59, 130, 246, 0.15);
  stroke: rgba(59, 130, 246, 0.8);
  stroke-width: 4;
  opacity: 1;
}
@media (hover: hover) {
  .eb-poly:hover {
    fill: url(#ebPolyGradHover);
    stroke: url(#ebPolyStrokeGradHover);
    stroke-width: 4;
    opacity: 1;
  }
}
.eb-hex-group {
  opacity: 1;
  pointer-events: none;
}
.eb-hex-shape {
  fill: rgba(140, 140, 140, 0);
  stroke: none;
  transition: fill 0.25s ease;
}
.eb-hex-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 5;
}
.eb-hex-dot {
  fill: var(--accent);
}
.eb-hex-pulse {
  fill: none;
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 4;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: ebHexPulse 1.9s ease-out infinite;
}
@keyframes ebHexPulse {
  0% {
    transform: scale(0.75);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .eb-hex-pulse {
    animation: none;
    opacity: 0;
  }
}
.eb-poly-layer.eb-hex-active .eb-hex-shape {
  fill: rgba(60, 60, 60, 0.58);
}
.eb-poly-layer.eb-no-pulse .eb-poly,
.eb-poly-layer.eb-no-pulse .eb-hex-group {
  display: none;
}
.eb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--ui-btn-size);
  height: var(--ui-btn-size);
  border-radius: 50%;
  background: #13403e;
  color: #fff;
  border: 1.5px solid #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, transform 0.15s ease;
}
.eb-nav svg {
  width: 24px;
  height: 24px;
}
.eb-nav:active {
  background: #0d2e2c;
  transform: translateY(-50%) scale(0.94);
}
.eb-nav:disabled {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
}
@media (hover: hover) {
  .eb-nav:hover {
    background: #185450;
  }
}
.eb-nav-prev,
.eb-nav-next {
  background: var(--accent-contrast);
  color: var(--accent-contrast-ink);
}
.eb-nav-prev {
  left: var(--ui-btn-edge);
}
.eb-nav-next {
  right: var(--ui-btn-edge);
}
.eb-nav-prev:active,
.eb-nav-next:active {
  background: var(--accent-contrast);
}
@media (hover: hover) {
  .eb-nav-prev:hover,
  .eb-nav-next:hover {
    background: var(--accent-contrast-hover);
  }
}
.eb-top-pills {
  position: fixed;
  top: var(--ui-btn-top);
  right: calc(var(--ui-btn-edge) + (var(--ui-btn-size) + var(--ui-btn-gap)) * 2);
  z-index: 3300;
  display: flex;
  align-items: center;
  gap: var(--ui-btn-gap);
}
.eb-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  height: var(--ui-btn-size);
  padding: 0 13px;
  border-radius: 999px;
  background: var(--accent-contrast);
  border: none;
  color: var(--accent-contrast-ink);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, transform 0.15s ease;
}
.eb-pill svg {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
}
.eb-pill:active {
  transform: scale(0.96);
}
@media (hover: hover) {
  .eb-pill:hover {
    background: var(--accent-contrast-hover);
  }
}
@media (orientation: portrait) and (max-width: 600px) {
  .eb-pill {
    width: var(--ui-btn-size);
    padding: 0;
    gap: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .eb-pill span {
    display: none;
  }
  .eb-pill svg {
    width: 21px;
    height: 21px;
  }
}
.eb-zoom {
  position: absolute;
  left: var(--ui-btn-edge);
  bottom: 20px;
  z-index: 7;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eb-zoom-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--ui-btn-size);
  height: var(--ui-btn-size);
  border-radius: 50%;
  border: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    opacity 0.15s ease;
}
.eb-zoom-btn svg {
  width: 24px;
  height: 24px;
}
.eb-zoom-in {
  background: var(--accent);
  color: var(--on-accent);
}
.eb-zoom-out {
  background: var(--accent-contrast);
  color: var(--accent-contrast-ink);
}
.eb-zoom-btn:active {
  transform: scale(0.94);
}
.eb-zoom-reset {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--ui-btn-size);
  height: var(--ui-btn-size);
  border-radius: 50%;
  background: var(--accent-contrast);
  border: none;
  color: var(--accent-contrast-ink);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    background 0.15s ease;
}
.eb-zoom-reset svg {
  width: 24px;
  height: 24px;
}
.eb-zoom.eb-has-zoom .eb-zoom-reset {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.eb-zoom.eb-has-zoom .eb-zoom-reset:active {
  transform: scale(0.94);
}
@media (hover: hover) {
  .eb-zoom-reset:hover {
    background: var(--accent-contrast-hover);
  }
}
.eb-zoom-btn:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}
@media (hover: hover) {
  .eb-zoom-in:hover {
    background: var(--accent-strong);
  }
  .eb-zoom-out:hover {
    background: var(--accent-contrast-hover);
  }
}
.eb-slides,
.eb-poly-layer {
  transform-origin: center center;
  transition: transform 0.25s ease;
}
.eb-zoom-hud {
  position: absolute;
  right: 14px;
  bottom: 20px;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.eb-zoom-hud.show {
  opacity: 1;
  transform: translateY(0);
}
.eb-zoom-hud.show ~ .section-wa {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}
.eb-zoom-map {
  position: relative;
  width: 132px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.eb-zoom-map-rect {
  position: absolute;
  border: 2px solid var(--accent);
  border-radius: 4px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35);
}
.eb-zoom-readout {
  background: rgba(20, 28, 30, 0.82);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}
@keyframes ebZoomPop {
  0% {
    transform: scale(0.84);
  }
  55% {
    transform: scale(1.07);
  }
  100% {
    transform: scale(1);
  }
}
.eb-zoom-readout.pop {
  animation: ebZoomPop 0.28s ease;
}
@media (prefers-reduced-motion: reduce) {
  .eb-zoom-readout.pop {
    animation: none;
  }
}
.eb-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  display: flex;
  gap: 6px;
}
.eb-counter-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transition:
    background 0.2s ease,
    width 0.2s ease,
    border-radius 0.2s ease,
    box-shadow 0.2s ease;
}
.eb-counter-dot.active {
  width: 18px;
  border-radius: 3px;
  background: #13403e;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.9);
}
.eb-scrollbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: 9px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.16);
  z-index: 7;
  opacity: 0;
  pointer-events: none;
  touch-action: none;
  transition: opacity 0.25s ease;
}
.eb-scrollbar.show {
  opacity: 1;
  pointer-events: auto;
}
.eb-scroll-thumb {
  position: absolute;
  top: 50%;
  height: 14px;
  min-width: 30px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(120, 120, 120, 0.85);
  cursor: grab;
  -webkit-tap-highlight-color: transparent;
}
.eb-scrollbar.dragging .eb-scroll-thumb {
  cursor: grabbing;
}
#ebViewer .eb-transition.playing ~ .eb-scrollbar {
  opacity: 0;
  pointer-events: none;
}
@keyframes ebCardSpring {
  0% {
    opacity: 0;
    transform: scale(0.82) translateY(-6px);
  }
  60% {
    opacity: 1;
    transform: scale(1.03) translateY(2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.eb-card {
  position: absolute;
  z-index: 3600;
  width: min(230px, 78vw);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  transform-origin: top center;
  animation: ebCardSpring 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.eb-card[hidden] {
  display: none;
}
.eb-card-grabber {
  display: none;
}
@media (max-width: 899px), (max-height: 500px) {
  .eb-card {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-width: none;
    border-radius: 20px 20px 0 0;
    transform-origin: bottom center;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.26);
    animation: ebCardSheetUp 0.95s ease both;
  }
  .eb-card-grabber {
    display: block;
    width: 100%;
    padding: 10px 0 0;
    background: none;
    border: none;
    cursor: pointer;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
  }
  .eb-card-grabber::before {
    content: "";
    display: block;
    width: 44px;
    height: 5px;
    margin: 0 auto;
    border-radius: 99px;
    background: #cdd2cf;
  }
  .eb-card .eb-card-body {
    padding: 12px 20px calc(22px + env(safe-area-inset-bottom, 0px));
    gap: 15px;
  }
  .eb-card .eb-card-label {
    font-size: 1.06rem;
  }
  .eb-card .eb-card-btn {
    padding: 13px 0;
    font-size: 0.82rem;
  }
}
@keyframes ebCardSheetUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.eb-card-body {
  padding: 14px 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.eb-card-top {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
}
.eb-card-label {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eb-card-btn {
  display: block;
  width: 100%;
  padding: 10px 0;
  border-radius: 99px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.eb-card-btn:active {
  background: var(--accent-strong);
}
@media (hover: hover) {
  .eb-card-btn:hover {
    background: var(--accent-strong);
  }
}
#page-edificio::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0) 40%);
  z-index: 3;
  pointer-events: none;
}
@media (max-width: 480px) {
  .eb-nav {
    width: 36px;
    height: 36px;
  }
  .eb-nav-prev {
    left: 10px;
  }
  .eb-nav-next {
    right: 10px;
  }
  .eb-zoom {
    left: 10px;
    bottom: 16px;
  }
  .eb-zoom-btn {
    width: 40px;
    height: 40px;
  }
  .eb-zoom-reset {
    width: 40px;
    height: 40px;
  }
  .eb-zoom-hud {
    right: 10px;
    bottom: 16px;
  }
  .eb-zoom-map {
    width: 104px;
  }
  .eb-zoom-readout {
    font-size: 0.8rem;
    padding: 5px 12px;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .eb-zoom {
    flex-direction: row-reverse;
    align-items: center;
    gap: 8px;
  }
  .eb-zoom-reset {
    top: auto;
    bottom: 0;
    left: calc(100% + 8px);
    transform: translateX(-8px) scale(0.9);
  }
  .eb-zoom.eb-has-zoom .eb-zoom-reset {
    transform: translateX(0) scale(1);
  }
}
@keyframes ebEnterTop {
  from {
    opacity: 0;
    translate: 0 -12px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes ebEnterLeft {
  from {
    opacity: 0;
    translate: -16px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes ebEnterRight {
  from {
    opacity: 0;
    translate: 16px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes ebEnterBottom {
  from {
    opacity: 0;
    translate: 0 14px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
#page-edificio.eb-enter .fs-btn,
#page-edificio.eb-enter .qr-btn,
#page-edificio.eb-enter .eb-top-pills {
  animation: ebEnterTop 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.05s both;
}
#page-edificio.eb-enter .eb-nav-prev {
  animation: ebEnterLeft 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
}
#page-edificio.eb-enter .eb-nav-next {
  animation: ebEnterRight 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
}
#page-edificio.eb-enter .eb-counter {
  animation: ebEnterBottom 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.32s both;
}
#page-edificio.eb-enter .eb-zoom {
  animation: ebEnterBottom 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s both;
}
#page-edificio.eb-enter .section-wa {
  animation: ebEnterBottom 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.48s both;
}
