:root {
  --eci-red: #990000;
  --eci-black: #020202;
  --eci-white: #ffffff;
  --eci-font: "Titillium Web", "Open Sans", system-ui, sans-serif;
}

.campus-hero {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  font-family: var(--eci-font);
  color: var(--eci-white);
}

.campus-hero--standalone {
  min-height: 100vh;
}

.campus-hero__header,
.campus-hero__toolbar {
  padding: 0.75rem 0;
  border-bottom: 3px solid var(--eci-red);
}

.campus-hero__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.campus-hero__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eci-red);
}

.campus-hero__title {
  margin: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.65rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--eci-white);
}

.campus-hero__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 566;
  background: var(--eci-black);
  overflow: hidden;
}

.campus-hero__base,
.campus-hero__loop {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.campus-hero__base {
  z-index: 0;
}

.campus-hero__loop {
  z-index: 1;
}

.campus-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.campus-hero__frame {
  fill: none;
  stroke: var(--eci-red);
  stroke-width: 2;
  stroke-dasharray: 8 6;
  opacity: 0.55;
  pointer-events: none;
}

.campus-hotspot {
  pointer-events: auto;
  cursor: pointer;
  outline: none;
}

.campus-hotspot__hit {
  fill: transparent;
  stroke: none;
}

.campus-hotspot__pulse {
  fill: var(--eci-red);
  opacity: 0.85;
  transform-origin: center;
  animation: campus-pulse 2.2s ease-out infinite;
}

.campus-hotspot__core {
  fill: var(--eci-white);
  stroke: var(--eci-red);
  stroke-width: 2;
}

.campus-hotspot:focus-visible .campus-hotspot__core {
  stroke: var(--eci-white);
  stroke-width: 3;
}

.campus-hotspot.is-active .campus-hotspot__pulse,
.campus-hotspot:hover .campus-hotspot__pulse {
  animation-duration: 1.4s;
}

.campus-hotspot__label {
  font-size: 11px;
  font-weight: 700;
  fill: var(--eci-white);
  paint-order: stroke;
  stroke: var(--eci-black);
  stroke-width: 3px;
  pointer-events: none;
}

@keyframes campus-pulse {
  0% {
    r: 6;
    opacity: 0.9;
  }
  70% {
    r: 22;
    opacity: 0;
  }
  100% {
    r: 22;
    opacity: 0;
  }
}

.campus-hero__panel {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  max-width: 28rem;
  padding: 0.85rem 1rem;
  background: rgba(2, 2, 2, 0.88);
  border-left: 4px solid var(--eci-red);
  border-radius: 4px;
  pointer-events: auto;
}

.campus-hero__panel[hidden] {
  display: none;
}

.campus-hero__panel-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--eci-red);
}

.campus-hero__panel-title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--eci-white);
}

.campus-hero__panel-proof {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--eci-white);
}

.campus-hero__footer {
  padding: 0.65rem 0 0;
  font-size: 0.7rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(153, 0, 0, 0.45);
  margin-top: 0.65rem;
}

.btn-explorar {
  flex-shrink: 0;
  padding: 0.55rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--eci-white);
  background: var(--eci-red);
  border: 2px solid var(--eci-red);
  border-radius: 4px;
  cursor: pointer;
}

.btn-explorar:hover,
.btn-explorar:focus-visible {
  background: #7a0000;
  border-color: #7a0000;
  outline: 2px solid var(--eci-white);
  outline-offset: 2px;
}

.modal-explorar {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-explorar[hidden] {
  display: none;
}

.modal-explorar__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 2, 2, 0.82);
}

.modal-explorar__panel {
  position: relative;
  width: min(960px, 100%);
  max-height: min(85vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--eci-black);
  border: 3px solid var(--eci-red);
  border-radius: 6px;
  overflow: hidden;
}

.modal-explorar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(153, 0, 0, 0.5);
}

.modal-explorar__head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--eci-white);
}

.modal-explorar__close {
  padding: 0.25rem 0.6rem;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--eci-white);
  background: transparent;
  border: none;
  cursor: pointer;
}

.modal-explorar__close:hover,
.modal-explorar__close:focus-visible {
  color: var(--eci-red);
  outline: 2px solid var(--eci-red);
}

.modal-explorar__body {
  flex: 1;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.modal-explorar__body iframe {
  flex: 1;
  width: 100%;
  min-height: 360px;
  border: 0;
  background: #111;
}

.modal-explorar__fallback {
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  border-top: 1px solid rgba(153, 0, 0, 0.35);
}

.modal-explorar__fallback a {
  color: #ffcccc;
}

@media (max-width: 640px) {
  .campus-hero__panel {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
  }

  .campus-hotspot__label {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .campus-hotspot__pulse {
    animation: none;
    opacity: 0.35;
  }

  .campus-hero__loop {
    display: none;
  }
}
