:root {
  --yellow: #ffdd00;
  --red: #e30613;
  --black: #111313;
  --panel: rgba(17, 19, 19, 0.94);
  --gray: #c6c6c6;
  --font-display: "Fixture", "Impact", "Arial Black", sans-serif;
  --font-body: "Fixture", "Arial", sans-serif;
}

@font-face {
  font-family: "Fixture";
  src: url("/assets/fonts/Fixture-Regular.woff2") format("woff2"), url("/assets/fonts/Fixture-Regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Fixture";
  src: url("/assets/fonts/Fixture-Medium.woff2") format("woff2"), url("/assets/fonts/Fixture-Medium.woff") format("woff");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Fixture";
  src: url("/assets/fonts/Fixture-ExtraBold.woff2") format("woff2"), url("/assets/fonts/Fixture-ExtraBold.woff") format("woff");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  min-height: 100%;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: #020204;
  color: #fff;
  font-family: var(--font-body);
}

button,
input {
  font: inherit;
}

.fair-sign-link,
.fair-sign-static {
  border: 0;
  padding: 0;
  background: transparent;
  display: block;
}

.fair-sign-link {
  cursor: pointer;
}

.fair-sign-link img,
.fair-sign-static img {
  width: 100%;
  height: auto;
  display: block;
}

.fair-sign-link:hover {
  filter: drop-shadow(0 18px 20px rgba(255, 221, 0, 0.16)) drop-shadow(0 16px 18px rgba(0, 0, 0, 0.34));
}

.screen {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08), transparent 28rem),
    linear-gradient(135deg, #181a1a, #080909 58%, #111313);
}

.login-screen {
  display: grid;
  grid-template-columns: 312px 336px 1fr;
  background: var(--black);
}

.login-map-bg {
  position: absolute;
  inset: 0 0 0 420px;
  width: calc(100% - 420px);
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.92;
  transition:
    inset 900ms cubic-bezier(0.22, 1, 0.36, 1),
    width 900ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 600ms ease,
    filter 900ms ease;
}

.login-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 19, 19, 0) 0 42%, rgba(17, 19, 19, 0.18), rgba(17, 19, 19, 0.68) 100%);
  pointer-events: none;
}

.login-logo-rail {
  z-index: 1;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 36px 68px;
  background-image: url("/assets/backgrounds/fondo-logos-login.jpg");
  background-size: cover;
  background-position: center;
  transition: transform 820ms cubic-bezier(0.76, 0, 0.24, 1), opacity 520ms ease;
}

.login-fair-sign {
  width: 201px;
  height: auto;
  animation: signSwing 5.6s ease-in-out infinite;
  transform-origin: 50% 0;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.34));
}

.login-partners {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.login-partners img:first-child {
  width: 145px;
  height: 145px;
}

.login-partners img:nth-child(2),
.login-partners img:nth-child(3) {
  width: 120px;
  height: auto;
  display: block;
}

.login-panel {
  z-index: 1;
  width: 336px;
  min-height: 100vh;
  align-self: stretch;
  justify-self: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 24px 40px;
  background-image: url("/assets/backgrounds/fondo-form-login.jpg");
  background-size: cover;
  background-position: center;
  transition: transform 820ms cubic-bezier(0.76, 0, 0.24, 1), opacity 520ms ease;
}

.login-loader {
  position: absolute;
  z-index: 3;
  inset: auto 0 64px;
  display: flex;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 380ms ease 720ms;
}

.login-loader span {
  width: min(240px, 46vw);
  height: 4px;
  overflow: hidden;
  background: rgba(255, 221, 0, 0.25);
}

.login-loader span::after {
  content: "";
  display: block;
  width: 42%;
  height: 100%;
  background: var(--yellow);
  animation: loaderSlide 950ms ease-in-out infinite;
}

.login-exiting .login-logo-rail,
.login-exiting .login-panel {
  transform: translateX(-108%);
  opacity: 0;
}

.login-exiting .login-map-bg {
  inset: 0;
  width: 100%;
  opacity: 1;
  filter: brightness(0.82);
}

.login-exiting .login-loader {
  opacity: 1;
}

.brand-card {
  width: 166px;
  min-height: 220px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: #000;
  padding: 20px 14px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 0.98;
  text-transform: uppercase;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.34);
}

.brand-card.small {
  width: 92px;
  min-height: 128px;
  font-size: 16px;
}

h1,
h2,
h3,
.tag,
.btn,
.hotspot,
.offcanvas header strong {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-panel h1 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 0.94;
  max-width: 246px;
}

.login-panel h1 span,
.offcanvas h2,
.evaluation-box strong,
.admin-content h1 {
  color: var(--yellow);
}

label {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
}

input[type="text"],
input[name="dni"],
#dni,
#admin-password {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--gray);
  border-radius: 2px;
  background: rgba(80, 80, 80, 0.75);
  color: #fff;
  padding: 0 16px;
  font-size: 20px;
}

#dni.is-invalid {
  border-color: var(--red);
  background: rgba(237, 12, 28, 0.18);
  box-shadow: 0 0 0 1px rgba(237, 12, 28, 0.62), 0 0 18px rgba(237, 12, 28, 0.22);
}

.field-error {
  min-height: 20px;
  margin: -8px 0 0;
  color: #ff7171;
  font-weight: 700;
}

.login-signup-card {
  display: grid;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(255, 221, 0, 0.74);
  background: linear-gradient(135deg, rgba(255, 221, 0, 0.14), rgba(0, 0, 0, 0.28));
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 221, 0, 0.16);
}

.login-signup-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.login-signup-head img {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.login-signup-card strong,
.login-signup-card span {
  display: block;
}

.login-signup-card strong {
  color: var(--yellow);
  font-size: 15px;
  line-height: 1.05;
  text-transform: uppercase;
}

.login-signup-card span {
  color: #f3f3f3;
  font-size: 13px;
  line-height: 1.28;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.login-signup-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 10px;
  padding: 0 14px;
  background: var(--yellow);
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 15px;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.login-signup-card a:hover,
.login-signup-card a:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 8px 16px rgba(255, 221, 0, 0.24);
}

.btn {
  min-height: 48px;
  border: 0;
  padding: 12px 28px;
  color: #fff;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.btn:not(:disabled):hover,
.btn:not(:disabled):focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-red:not(:disabled):hover,
.btn-red:not(:disabled):focus-visible {
  box-shadow: 0 10px 18px rgba(237, 12, 28, 0.28);
}

.btn-red {
  background: var(--red);
}

.btn-yellow {
  background: var(--yellow);
  color: #000;
}

.btn-disabled,
.btn:disabled {
  background: #777;
  color: #bbb;
  cursor: not-allowed;
}

.btn-outline {
  border: 1px solid var(--yellow);
  color: var(--yellow);
  background: transparent;
}

.map-screen {
  min-height: 100vh;
  background: #060707;
  animation: mapReveal 820ms ease both;
}

.map-screen:before {
    content: "";
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    background: #02020424;
    z-index: 1;
}

.map-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.map-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  padding: 0;
  cursor: default;
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.58)),
    rgba(0, 0, 0, 0.26);
  transition: opacity 420ms ease;
  pointer-events: none;
}

.map-focus-conectividad .map-overlay,
.map-focus-integrales .map-overlay,
.map-focus-obras .map-overlay {
  opacity: 1;
  pointer-events: auto;
}

.top-actions {
  position: fixed;
  top: 28px;
  right: 44px;
  z-index: 6;
  display: flex;
  gap: 18px;
}

.tag {
  min-width: 136px;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  background: var(--yellow);
  color: #000;
  clip-path: polygon(0 0, 88% 0, 100% 24%, 100% 100%, 12% 100%, 0 76%);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.tag img {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.tag-icon {
  width: 22px;
  height: 22px;
}

.profile-tag img {
  width: 33px;
  height: 33px;
}

.admin-tag {
  min-width: 168px;
}

.tag.ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.map-sign {
  position: absolute;
  z-index: 4;
  left: clamp(30px, 4.6vw, 72px);
  top: 0;
  width: clamp(96px, 9vw, 140px);
  height: auto;
  animation: signSwing 6s ease-in-out infinite;
  transform-origin: 50% 0;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.38));
}

.floating-map {
  --float-x: -50%;
  --float-y: -50%;
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 53%;
  width: min(86vw, 1310px);
  aspect-ratio: 1310 / 771;
  transform: translate(var(--float-x), var(--float-y));
  animation: icebergFloat 7.5s ease-in-out infinite;
  filter: drop-shadow(0 30px 28px rgba(0, 0, 0, 0.5));
  transition:
    left 560ms cubic-bezier(0.22, 1, 0.36, 1),
    top 560ms cubic-bezier(0.22, 1, 0.36, 1),
    width 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.map-intro-pop .floating-map {
  z-index: 3;
}

.map-intro-pop .map-island,
.map-intro-pop .map-character,
.map-intro-pop .map-loose-layer,
.map-intro-pop .map-car-layer {
  filter: brightness(0.46);
}

.map-intro-pop .map-zone-layer,
.map-intro-pop .image-hotspot {
  filter: drop-shadow(0 0 24px rgba(255, 221, 0, 0.72));
}
.floating-map.is-dragging {
  transition: none;
}

.map-swipe-hint {
  display: none;
}

.map-module-tooltip {
  position: absolute;
  left: 50%;
  bottom: clamp(30px, 3vh, 70px);
  transform: translateX(-50%);
  z-index: 6;
  display: inline-grid;
  grid-template-columns: 46px minmax(0, 318px);
  gap: 12px;
  align-items: center;
  max-width: min(408px, calc(100vw - 40px));
  padding: 0 16px 0 12px;
  border: 1px solid rgba(255, 221, 0, 0.84);
  border-radius: 8px;
  background: rgba(8, 9, 9, 0.88);
  color: var(--yellow);
  text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.36), 0 0 20px rgba(255, 221, 0, 0.2);
  pointer-events: none;
  transition: bottom 550ms cubic-bezier(0.22, 1, 0.36, 1), transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
  animation: mapTooltipFadeIn 500ms ease both;
}

.map-tooltip-intro .map-module-tooltip {
  bottom: 50%;
  transform: translate(-50%, calc(50% + 110px));
}

.tooltip-hand {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 221, 0, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 221, 0, 0.42), 0 0 18px rgba(255, 221, 0, 0.22);
  transform: scale(0.696);
}

.tooltip-hand::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 11px;
  width: 10px;
  height: 22px;
  border: 3px solid var(--yellow);
  border-bottom-width: 7px;
  border-radius: 9px 9px 6px 6px;
  background: rgba(255, 221, 0, 0.18);
  transform: rotate(-18deg);
  transform-origin: 50% 95%;
  animation: tooltipHandTap 1.25s ease-in-out infinite;
}

.tooltip-hand::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 10px;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 221, 0, 0.6);
  border-radius: 50%;
  opacity: 0;
  animation: tooltipTapRing 1.25s ease-in-out infinite;
}

.tooltip-copy {
  display: block;
  font-size: 14px;
  line-height: 1.15;
}

.map-focus-conectividad .map-module-tooltip,
.map-focus-integrales .map-module-tooltip,
.map-focus-obras .map-module-tooltip,
.map-hint-dismissed .map-module-tooltip {
  display: none;
}

.map-focus-conectividad .floating-map {
  left: 50%;
  top: 78%;
  width: min(132vw, 1900px);
  z-index: 3;
}

.map-focus-integrales .floating-map {
  left: 24%;
  top: 88%;
  width: min(132vw, 1900px);
  z-index: 3;
}

.map-focus-obras .floating-map {
  left: -1%;
  top: 76%;
  width: min(132vw, 1900px);
  z-index: 3;
}

.map-focus-conectividad .map-island,
.map-focus-integrales .map-island,
.map-focus-obras .map-island,
.map-focus-conectividad .map-character,
.map-focus-integrales .map-character,
.map-focus-obras .map-character,
.map-focus-conectividad .map-zone-layer,
.map-focus-integrales .map-zone-layer,
.map-focus-obras .map-zone-layer {
  filter: brightness(0.46);
}

.map-focus-conectividad .layer-connect,
.map-focus-integrales .layer-solutions,
.map-focus-obras .layer-works {
  filter: brightness(0.95) drop-shadow(0 0 18px rgba(255, 221, 0, 0.65));
}

.map-focus-conectividad .zone-connect,
.map-focus-integrales .zone-solutions,
.map-focus-obras .zone-works {
  filter: drop-shadow(0 0 24px rgba(255, 221, 0, 0.78));
  transform: scale(1.04);
}

.map-island {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  opacity: 1;
  transition: filter 300ms ease;
}

.map-character {
  position: absolute;
  z-index: 3;
  left: 48%;
  top: 63%;
  width: 1.8%;
  height: auto;
  display: block;
  pointer-events: none;
  transition: filter 300ms ease;
}

.map-loose-layer,
.map-car-layer {
  position: absolute;
  display: block;
  height: auto;
  pointer-events: none;
  user-select: none;
  transition: filter 300ms ease;
}


.map-focus-conectividad .map-loose-layer,
.map-focus-conectividad .map-car-layer,
.map-focus-integrales .map-loose-layer,
.map-focus-integrales .map-car-layer,
.map-focus-obras .map-loose-layer,
.map-focus-obras .map-car-layer {
  filter: brightness(0.46);
}

.map-focus-conectividad .map-antenna,
.map-focus-conectividad .map-cables,
.map-focus-conectividad .map-connect-crew,
.map-focus-obras .map-excavator,
.map-focus-obras .map-worker-board {
  filter: brightness(0.95) drop-shadow(0 0 16px rgba(255, 221, 0, 0.36));
}
.map-loose-layer {
  z-index: 4;
}

.map-cables {
    left: 33.7%;
    top: 40.4%;
    width: 10.5%;
    z-index: 5;
    aspect-ratio: 1075 / 449;
    background-image: url("/assets/map/layers/cable-corriente-spritesheet.png");
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 1300% 100%;
    animation-name: cableCurrentSprite;
    animation-duration: 3.5s;
    animation-timing-function: steps(12);
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.map-connect-crew {
    left: 38.9%;
    top: 35.1%;
    width: 4%;
}

.map-excavator {
    left: 81.5%;
    top: 39.2%;
    width: 8%;
    aspect-ratio: 915 / 614;
    background-image: url("/assets/map/layers/excavadora-spritesheet.png");
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 1300% 100%;
    animation-name: excavatorSpriteMove;
    animation-duration: 4.2s;
    animation-timing-function: steps(12);
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.map-worker-board {
    left: 82.7%;
    top: 45.8%;
    width: 2%;
    aspect-ratio: 800 / 1360;
    background-image: url("/assets/map/layers/trabajador-spritesheet.png");
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 1300% 100%;
    animation-name: workerBoardSprite;
    animation-duration: 2.5s;
    animation-timing-function: steps(12);
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.map-antenna {
    left: 28%;
    top: 34.8%;
    width: 2.8%;
    aspect-ratio: 48 / 96;
    background-image: url("/assets/map/layers/antena-spritesheet.png");
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 1300% 100%;
    animation-name: antennaSpriteSwing;
    animation-duration: 2.5s;
    animation-timing-function: steps(12);
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.map-car-layer {
    z-index: 3;
    left: 20.6%;
    top: 61.0%;
    width: 2.3%;
    aspect-ratio: 512 / 751;
    background-image: url("/assets/map/layers/carro-spritesheet.png");
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 200% 100%;
    animation-name: carSpriteBlink;
    animation-duration: 1.8s;
    animation-timing-function: steps(1);
    animation-iteration-count: infinite;
}

.map-zone-layer {
  position: absolute;
  z-index: 4;
  border: 0;
  padding: 0;
  background: transparent;
  height: auto;
  opacity: 0.95;
  transform: scale(1);
  transform-origin: center;
  transition: filter 300ms ease, opacity 180ms ease, transform 180ms ease;
  cursor: pointer;
}

.map-zone-layer img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.layer-connect {
  left: 30.6%;
  top: 7.5%;
  width: 8.9%;
}

.layer-solutions {
  left: 47.9%;
  top: 3%;
  width: 13.3%;
}

.layer-works {
  left: 68.2%;
  top: 22.5%;
  width: 10.8%;
}

.layer-connect,
.layer-solutions,
.layer-works {
  animation: buildingHintGlow 5.8s ease-in-out infinite;
  animation-delay: 1.2s;
}

.layer-solutions {
  animation-delay: 2.1s;
}

.layer-works {
  animation-delay: 3s;
}

.map-intro-pop .layer-connect,
.map-intro-pop .layer-solutions,
.map-intro-pop .layer-works {
  animation-name: buildingHintGlow, buildingIntroPop;
  animation-duration: 5.8s, 620ms;
  animation-timing-function: ease-in-out, cubic-bezier(0.18, 0.9, 0.24, 1.12);
  animation-iteration-count: infinite, 1;
  animation-fill-mode: none, none;
  animation-delay: 1.2s, 650ms;
}

.map-intro-pop .layer-solutions {
  animation-delay: 2.1s, 900ms;
}

.map-intro-pop .layer-works {
  animation-delay: 3s, 1150ms;
}
.map-focus-none .floating-map:has(.zone-connect:hover) .layer-connect,
.map-focus-none .floating-map:has(.zone-solutions:hover) .layer-solutions,
.map-focus-none .floating-map:has(.zone-works:hover) .layer-works,
.map-focus-none .layer-connect:hover,
.map-focus-none .layer-connect:focus-visible,
.map-focus-none .layer-solutions:hover,
.map-focus-none .layer-solutions:focus-visible,
.map-focus-none .layer-works:hover,
.map-focus-none .layer-works:focus-visible {
  opacity: 1;
  animation: none;
  filter: drop-shadow(0 0 18px rgba(255, 221, 0, 0.65));
  transform: scale(1.04);
}

.map-focus-conectividad .layer-connect,
.map-focus-integrales .layer-solutions,
.map-focus-obras .layer-works {
  opacity: 1;
  animation: none;
  filter: brightness(0.95) drop-shadow(0 0 18px rgba(255, 221, 0, 0.65));
  transform: scale(1.04);
}

.map-focus-conectividad .layer-solutions,
.map-focus-conectividad .layer-works,
.map-focus-integrales .layer-connect,
.map-focus-integrales .layer-works,
.map-focus-obras .layer-connect,
.map-focus-obras .layer-solutions {
  animation: none;
  filter: brightness(0.46);
  transform: scale(1);
  pointer-events: none;
}

.hotspot {
  position: absolute;
  z-index: 5;
  cursor: pointer;
}

.image-hotspot {
  border: 0;
  background: transparent;
  padding: 0;
  width: 16%;
  min-width: 0;
  filter: drop-shadow(0 0 14px rgba(255, 221, 0, 0.28));
  transition: transform 180ms ease, filter 300ms ease;
  animation: hotspotPulse 2.8s ease-in-out infinite;
}

.map-focus-conectividad .image-hotspot,
.map-focus-integrales .image-hotspot,
.map-focus-obras .image-hotspot {
  opacity: 0.42;
  animation: none;
  filter: brightness(0.46);
  transform: scale(1);
  pointer-events: none;
}

.map-focus-conectividad .zone-connect,
.map-focus-integrales .zone-solutions,
.map-focus-obras .zone-works {
  opacity: 1;
}

.map-focus-conectividad .image-hotspot.zone-connect,
.map-focus-integrales .image-hotspot.zone-solutions,
.map-focus-obras .image-hotspot.zone-works {
  filter: drop-shadow(0 0 22px rgba(255, 221, 0, 0.72));
  transform: scale(1.04);
  pointer-events: auto;
}

.map-focus-none .image-hotspot:hover,
.map-focus-none .image-hotspot:focus-visible {
  transform: scale(1.04);
  filter: drop-shadow(0 0 22px rgba(255, 221, 0, 0.72));
}

.image-hotspot img {
  display: block;
  width: 100%;
  height: auto;
}
.zone-connect {
  left: 26.8%;
  top: 10.2%;
}

.zone-solutions {
  left: 46.4%;
  top: -1.8%;
}

.zone-works {
  left: 65.2%;
  top: 13.5%;
}

.offcanvas {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  width: min(100vw, max(650px, 40vw));
  height: 100vh;
  overflow: auto;
  background: var(--panel);
  border-left: 1px solid var(--yellow);
  box-shadow: -30px 0 60px rgba(0, 0, 0, 0.45);
}

.offcanvas header {
  position: sticky;
  top: 0;
  z-index: 21;
  height: 68px;
  background: var(--yellow);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  font-size: 26px;
}

.offcanvas header strong {
  font-weight: 500;
}

.icon-button {
  border: 0;
  background: transparent;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-button img {
  width: 18px;
  height: 18px;
  display: block;
}

.offcanvas-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 56px 42px 34px;
}

.offcanvas h2 {
  margin: 0;
  max-width: 390px;
  font-size: 48px;
  line-height: 1;
}

.offcanvas-title img {
  width: min(72px, 16vw);
  height: auto;
  margin-top: -8px;
  filter: drop-shadow(0 0 16px rgba(0, 161, 255, 0.65)) drop-shadow(0 0 18px rgba(255, 221, 0, 0.34));
}

.course-list {
  display: grid;
  gap: 24px;
  padding: 0 42px 56px;
}

.course-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  border: 1px solid var(--yellow);
  padding: 10px;
  cursor: pointer;
  background: rgba(255, 221, 0, 0);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.course-card:hover,
.course-card:focus-within {
  background: rgba(255, 221, 0, 0.045);
  border-color: #ffe94d;
  box-shadow: 0 0 18px rgba(255, 221, 0, 0.18);
  transform: translateY(-2px);
}

.course-thumb {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.course-thumb > img:first-child {
  width: 100%;
  height: 100%;
  min-height: 112px;
  object-fit: cover;
  display: block;
  filter: brightness(0.86);
  transition: filter 180ms ease, transform 220ms ease;
}

.course-card:hover .course-thumb > img:first-child,
.course-card:focus-within .course-thumb > img:first-child {
  filter: brightness(1);
  transform: scale(1.025);
}

.course-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.45));
  pointer-events: none;
  transition: transform 180ms ease, filter 180ms ease;
}

.course-card:hover .course-play,
.course-card:focus-within .course-play {
  transform: translate(-50%, -50%) scale(1.06);
  filter: drop-shadow(0 0 10px rgba(255, 221, 0, 0.5)) drop-shadow(0 3px 8px rgba(0, 0, 0, 0.45));
}

.course-card h3 {
  margin: 0 0 14px;
  line-height: 1.1;
  font-weight: 400;
}

.course-card p,
.course-card footer,
.meta,
.evaluation-box p,
.exam-wrap p {
  color: #d9d9d9;
}

.course-teacher {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 26px;
}

.course-teacher img {
  width: 100%;
  max-width: 85px;
  max-height: 32px;
  display: inline-block;
  object-fit: contain;
}

.course-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 12px;
}

.course-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.course-status img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.detail-screen,
.exam-screen,
.profile-screen,
.admin-screen,
.certificate-screen {
  overflow: visible;
  padding: 96px 8vw 0;
}

.exam-screen,
.certificate-screen {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08), transparent 28rem),
    linear-gradient(135deg, #181a1a, #080909 58%, #111313);
}

.quiz-decor {
  position: fixed;
  pointer-events: none;
  user-select: none;
}

.quiz-tree-left {
  left: 0;
  bottom: 113px;
  width: 306px;
  z-index: 0;
  opacity: 0.6;
}

.quiz-tree-right {
  right: 0;
  bottom: 86px;
  width: 370px;
  z-index: 0;
  opacity: 0.6;
}

.quiz-satellite {
  left: 0;
  bottom: 58px;
  width: min(252px, 19vw);
  z-index: 2;
}

.quiz-mixer {
  right: 0;
  bottom: 58px;
  width: min(282px, 21vw);
  z-index: 2;
}

.exam-sign {
  position: fixed;
  left: clamp(40px, 4.6vw, 72px);
  top: 0;
  width: clamp(92px, 7vw, 122px);
  height: auto;
  z-index: 1;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.38));
}

.detail-screen {
  padding: 106px clamp(22px, 3.5vw, 56px) 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.22)),
    url("/assets/backgrounds/fondo-mapa.jpg") center top / cover no-repeat;
}

.detail-sign {
  position: absolute;
  left: clamp(24px, 3.6vw, 56px);
  top: 0;
  width: clamp(84px, 7vw, 112px);
  height: auto;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.38));
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(230px, 25%) minmax(0, 1fr);
  gap: clamp(32px, 3.6vw, 56px);
  align-items: center;
  width: min(1260px, calc(100vw - clamp(190px, 15vw, 250px)));
  margin-left: clamp(128px, 9vw, 156px);
  margin-right: clamp(34px, 5vw, 80px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--yellow);
  transform: translateX(-3px);
}

.back-arrow {
  display: block;
  width: 11px;
  height: 11px;
  fill: currentColor;
  margin-bottom: -2px;
}

.course-copy h1 {
  font-size: clamp(30px, 2.55vw, 38px);
  line-height: 1.08;
}

.course-copy .meta {
  text-transform: uppercase;
}

.meta-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta-brand img {
  width: 110px;
  height: auto;
  display: inline-block;
}

.module-thumb {
  width: 100%;
}

.video-box {
  position: relative;
  border: 1px solid var(--yellow);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.video-box img,
.course-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72);
}

.course-video {
  display: block;
}

.video-box.watched img,
.video-box.watched .course-video,
.course-video:focus {
  filter: brightness(1);
}

.play-button {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid #000;
  background: var(--yellow);
  color: #000;
  font-size: 32px;
  cursor: pointer;
}

.evaluation-box {
  margin-top: 36px;
  border: 1px solid var(--yellow);
  background: rgba(0, 0, 0, 0.42);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 26px 32px;
}

.evaluation-box.completed {
  border-color: #1cd572;
  background: rgba(0, 62, 28, 0.42);
}

.evaluation-box.completed strong {
  color: #1cd572;
}

.evaluation-box strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}

.evaluation-box strong img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.brand-footer {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  min-height: 0;
  margin: 92px calc(50% - 50vw) 0;
  background: url("/assets/backgrounds/fondo-footer.svg") center top / cover no-repeat;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 115px clamp(34px, 6vw, 92px) 52px;
  font-weight: 700;
  z-index: 30;
}

.footer-logos,
.footer-socials {
  display: inline-flex;
  align-items: center;
}

.footer-logos {
  gap: 24px;
}

.footer-right {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  margin-left: auto;
}

.footer-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.footer-ces {
  height: 72px;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.28));
}

.footer-sodimac {
  height: 34px;
}

.footer-maestro {
  height: 46px;
}

.footer-url {
  color: #000;
  font-size: 18px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.footer-socials {
  gap: 10px;
}

.footer-socials img {
  width: 42px;
  height: 42px;
  display: block;
}

.exam-wrap {
  width: min(820px, 90vw);
  margin: 74px auto 0;
  position: relative;
  z-index: 1;
}

.exam-progress {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 22px;
  margin-bottom: 70px;
}

.exam-close {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.exam-close img {
  width: 100%;
  height: 100%;
  display: block;
  filter: brightness(0) invert(1);
}

.progress-segments {
  display: grid;
  grid-template-columns: repeat(var(--question-count, 1), 1fr);
  gap: 8px;
}

.progress-segments span {
  height: 12px;
  background: rgba(255, 255, 255, 0.48);
  overflow: hidden;
  border-radius: 1px;
}

.progress-segments i {
  display: block;
  height: 100%;
  background: #0077b6;
}

.exam-wrap small {
  display: inline-block;
  background: #555;
  padding: 9px 12px;
  border-radius: 4px;
  font-family: var(--font-display);
  text-transform: uppercase;
}

.exam-wrap h1 {
  max-width: 780px;
  font-size: 30px;
  line-height: 1.12;
}

.exam-wrap > p {
  font-weight: 400;
}

.answers {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.answers label {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  padding: 14px 28px 14px 62px;
  background: var(--yellow);
  text-transform: none;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 36%, 100% 100%, 28px 100%, 0 64%);
  cursor: pointer;
}

.answers label::before {
  content: "";
  position: absolute;
  inset: 1px;
  clip-path: inherit;
  background: rgba(17, 19, 19, 0.92);
  pointer-events: none;
}

.answers label.selected {
  color: #000;
}

.answers label.selected::before {
  background: var(--yellow);
}

.answers label > span {
  position: relative;
  z-index: 1;
  font-weight: 500;
}

.answers label.correct {
  box-shadow: inset 0 0 0 2px rgba(28, 213, 114, 0.7);
}

.answers label.incorrect {
  box-shadow: inset 0 0 0 2px rgba(227, 6, 19, 0.72);
}

.answers input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.answers label i {
  width: 20px;
  height: 20px;
  position: absolute;
  left: 18px;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  border: 2px solid #c9d0dc;
  border-radius: 5px;
  background: #f6f8ff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.answers label.selected i {
  border-color: var(--red);
  background: var(--red);
}

.answers label.selected i::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check-btn {
  margin: 46px 0 0 auto;
  display: block;
}

.exam-feedback {
  width: 100vw;
  margin: 46px calc(50% - 50vw) 0;
  min-height: 112px;
  position: relative;
  z-index: 1;
  border-top: 2px solid currentColor;
  font-family: var(--font-display);
  font-size: 28px;
  text-transform: uppercase;
}

.exam-feedback-inner {
  width: min(820px, 90vw);
  min-height: 112px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.exam-feedback-inner > div {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.exam-feedback img {
  width: 44px;
  height: 44px;
  display: block;
}

.exam-feedback .btn {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
}

.exam-feedback.correct {
  color: #1cd572;
  background: rgba(0, 62, 28, 0.72);
}

.exam-feedback.incorrect {
  color: #ff1f33;
  background: rgba(78, 0, 0, 0.78);
}

.diploma-view {
  width: min(970px, 82vw);
  min-height: 560px;
  margin: 72px auto 0;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(330px, 430px);
  align-items: center;
  gap: clamp(48px, 7vw, 92px);
  position: relative;
  z-index: 1;
}

.diploma-copy h1 {
  margin: 0 0 26px;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 50px);
  line-height: 0.9;
  text-transform: uppercase;
}

.diploma-copy h2 {
  margin: 0 0 28px;
  max-width: 460px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 21px);
  line-height: 1.18;
  text-transform: uppercase;
}

.diploma-copy p {
  max-width: 450px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.45;
}

section.diploma-copy {
    max-width: 398px;
}

.diploma-download {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 300px;
}

.diploma-download img {
  width: 24px;
  height: 24px;
  display: block;
  filter: brightness(0) invert(1);
}

.diploma-preview {
  width: min(460px, 100%);
  display: block;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.42));
}

.admin-content {
  width: min(970px, 70vw);
  margin: 28px auto 0;
  position: relative;
  z-index: 1;
}

.admin-screen:before {
    content: "";
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    background: #02020496;
}

.admin-content h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  text-transform: uppercase;
}

.admin-screen {
  min-height: 100vh;
  overflow: hidden auto;
  padding: 104px clamp(36px, 6vw, 86px) 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.02)),
    url("/assets/backgrounds/fondo-mapa.jpg") center top / contain no-repeat;
}

.admin-sign {
  position: absolute;
  left: clamp(40px, 5vw, 74px);
  top: 0;
  width: min(118px, 9vw);
  z-index: 2;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.36));
  animation: signSwing 5.6s ease-in-out infinite;
  transform-origin: 50% 0;
}

.admin-bg-illustration {
  position: absolute;
  left: 0;
  bottom: 104px;
  width: clamp(360px, 34vw, 540px);
  height: auto;
  pointer-events: none;
  opacity: 0.95;
  z-index: 0;
}

.profile-screen {
  min-height: 100vh;
  overflow: hidden auto;
  padding: 120px clamp(44px, 6vw, 92px) 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.04)),
    url("/assets/backgrounds/fondo-miperfil.jpg") center top / cover no-repeat;
}

.profile-sign {
  position: absolute;
  z-index: 2;
  left: clamp(40px, 5vw, 74px);
  top: 0;
  width: min(118px, 9vw);
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.36));
  animation: signSwing 5.6s ease-in-out infinite;
  transform-origin: 50% 0;
}

.profile-bg-illustration {
  position: absolute;
  right: 0;
  bottom: 150px;
  width: min(260px, 18vw);
  max-height: 45vh;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
  z-index: 0;
  transform: translateX(18%);
}

.profile-layout {
  width: min(1170px, 86vw);
  min-height: 660px;
  margin: 44px auto 0;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(54px, 6vw, 82px);
  position: relative;
  z-index: 1;
}

.profile-sidebar {
  display: grid;
  align-content: start;
  gap: 30px;
}

.profile-panel {
  position: relative;
  border: 0;
  background: transparent;
}

.profile-panel::before,
.profile-panel::after {
  content: "";
  position: absolute;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  pointer-events: none;
}

.profile-panel::before {
  inset: 0;
  background: rgba(255, 221, 0, 0.72);
}

.profile-panel::after {
  inset: 1px;
  background: #111313;
}

.profile-panel > * {
  position: relative;
  z-index: 1;
}

.profile-user-card {
  min-height: 352px;
  padding: 30px 24px;
}

.profile-user-card ,
.progress-panel {
    text-align: center;
}

.profile-avatar {
  width: 116px;
  display: block;
  margin: 0 auto 24px;
}

.profile-panel h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}

.profile-panel p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.35;
}

.profile-download-all {
  min-width: 178px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition:
    transform 180ms ease,
    filter 180ms ease,
    background-color 180ms ease;
}

.profile-download-all:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 14px rgba(227, 6, 19, 0.22));
}

.profile-download-all img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.progress-panel {
  padding: 28px 24px 20px;
}

.progress-panel h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

.progress-count {
  display: block;
  margin: 0 0 8px;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
}

.progress-panel p {
  margin-bottom: 10px;
  font-size: 13px;
  text-transform: uppercase;
}

.progress-panel > img {
  width: 100%;
  display: block;
  margin-top: 4px;
}

.profile-main {
  min-width: 0;
  padding-top: 12px;
}

.profile-main h1 {
  margin: 0 0 36px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 40px);
  line-height: 0.95;
  text-transform: uppercase;
}

.profile-modules {
  display: grid;
  gap: 24px;
}

.profile-module {
  min-width: 0;
  transform-origin: center;
}

.profile-module-tab {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--yellow);
  padding: 0 28px 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(17, 19, 19, 0.78);
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transform: translateX(0);
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

.profile-module-tab::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -36%;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}

.profile-module-tab:hover {
  transform: translateX(6px);
  filter: drop-shadow(0 10px 16px rgba(255, 221, 0, 0.12));
}

.profile-module-tab:hover::before {
  animation: profileTabSweep 780ms ease;
  opacity: 1;
}

.profile-module.open .profile-module-tab {
  border-color: transparent;
  background: var(--yellow);
  color: #111;
  animation: profileTabNudge 3.8s ease-in-out infinite;
}

.profile-module-tab i {
  width: 13px;
  height: 13px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  flex: 0 0 auto;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-module.open .profile-module-tab i {
  transform: rotate(225deg) translateY(-3px);
}

.profile-course-list {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  transform: translateY(-6px);
  transition:
    max-height 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 260ms ease,
    padding-top 260ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-module.open .profile-course-list {
  max-height: 720px;
  opacity: 1;
  padding-top: 12px;
  transform: translateY(0);
}

.profile-course-row {
  min-height: 80px;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.profile-teacher-logo {
  width: 86px;
  max-height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.25));
}

.profile-course-info {
  min-width: 0;
}

.profile-course-row p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
}

.profile-course-info small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-module-diploma-row {
  border-bottom-color: rgba(255, 221, 0, 0.48);
}
.profile-module-incentive {
  margin: 20px 20px 10px;
  padding: 12px 16px;
  border: 1px dashed rgba(255, 221, 0, 0.46);
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.68);
  background: rgb(24 24 21);
  border-radius: 10px;
}

.profile-module-incentive img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.profile-module-incentive strong,
.profile-module-incentive span {
  display: block;
  font-family: var(--font-display);
  line-height: 1.15;
  text-transform: uppercase;
}

.profile-module-incentive strong {
  color: var(--yellow);
  font-size: 15px;
  font-weight: 800;
}

.profile-module-incentive span {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
}

.profile-module-diploma-mark {
  width: 86px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--yellow);
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
}

.profile-module-diploma-row p {
  color: var(--yellow);
  font-weight: 800;
  text-transform: uppercase;
}

.profile-course-action {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 180ms ease,
    filter 180ms ease,
    color 180ms ease,
    background-color 180ms ease;
}

.profile-course-action.download {
  background: transparent;
  color: var(--yellow);
}

.profile-course-action.download:hover {
  color: #fff;
  transform: translateX(4px);
  filter: drop-shadow(0 0 10px rgba(255, 221, 0, 0.24));
}

.profile-course-action.download img {
  width: 18px;
  height: 18px;
  filter: brightness(0) saturate(100%) invert(81%) sepia(84%) saturate(1877%) hue-rotate(358deg) brightness(102%) contrast(105%);
}

.profile-course-action.start {
  min-height: 42px;
  padding: 0 24px;
  justify-content: center;
  background: var(--red);
  color: #fff;
}

.profile-course-action.start:hover {
  transform: translateY(-2px);
  background: #f20b19;
  filter: drop-shadow(0 10px 14px rgba(227, 6, 19, 0.24));
}

.profile-empty {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
}

.profile-screen .brand-footer {
  position: relative;
  z-index: 1;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.admin-tabs {
  display: flex;
  align-items: baseline;
  gap: 24px;
}

.admin-tabs button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.5;
  cursor: pointer;
  transition:
    color 180ms ease,
    font-size 220ms ease,
    opacity 180ms ease,
    transform 220ms ease;
}

.admin-tabs button.active {
  font-size: 30px;
  opacity: 1;
  transform: translateY(0);
  font-weight: 600;
}

.admin-tabs button:not(.active):hover {
  opacity: 0.78;
  transform: translateY(-1px);
}

.admin-panel {
  animation: adminPanelIn 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-export {
  min-width: 218px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--yellow);
  text-decoration: none;
}

.admin-export span {
  border: 1px solid currentColor;
  padding: 1px 4px;
  font-size: 10px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stats article {
  border: 1px solid var(--yellow);
  min-height: 160px;
  padding: 20px 16px;
  background: rgba(17, 19, 19, 0.72);
}

.stats span {
  display: block;
  min-height: 52px;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.stats strong {
  display: inline-block;
  margin-top: 18px;
  font-size: 46px;
  font-weight: 400;
  line-height: 1;
}

.stats em {
  display: inline-flex;
  margin-left: 10px;
  padding: 5px 8px;
  border-radius: 2px;
  font-style: normal;
  font-weight: 800;
}

.stats em.up {
  color: #24e070;
  background: rgba(36, 224, 112, 0.12);
}

.stats em.down {
  color: var(--red);
  background: rgba(227, 6, 19, 0.14);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--yellow);
  background: rgba(17, 19, 19, 0.86);
  padding: 14px;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 16px;
}

.admin-pagination button,
.admin-pagination span {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.admin-pagination button {
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.admin-pagination button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: var(--yellow);
  color: #050505;
}

.admin-pagination button.active {
  background: var(--yellow);
  color: #050505;
}

.admin-pagination button:disabled {
  opacity: 0.35;
  cursor: default;
}

.admin-pagination p {
  margin: 0 0 0 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-course-metrics {
  margin-top: 0;
}

.metric-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.metric-summary article,
.course-metric-detail {
  border: 1px solid var(--yellow);
  background: rgba(17, 19, 19, 0.78);
}

.metric-summary article {
  min-height: 132px;
  padding: 20px 18px;
}

.metric-summary span {
  display: block;
  min-height: 44px;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.metric-summary strong {
  display: block;
  margin-top: 18px;
  color: #fff;
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
}

.metric-section {
  margin-top: 28px;
}

.metric-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.metric-section h2 {
  margin: 0;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1;
  text-transform: uppercase;
}

.metric-control {
  display: block;
  width: min(360px, 100%);
  border: 1px solid rgba(255, 221, 0, 0.72);
  padding: 10px 14px;
  background: rgba(17, 19, 19, 0.72);
}

.metric-control span {
  display: block;
  margin-bottom: 8px;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
}

.metric-control select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  text-transform: uppercase;
}

.metric-control option {
  color: #111;
}

.metric-chart {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(255, 221, 0, 0.62);
  padding: 18px;
  background: rgba(17, 19, 19, 0.76);
}

.vertical-chart {
  --chart-height: 170px;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  align-items: stretch;
  min-height: 300px;
}

.vertical-chart article {
  min-width: 0;
  display: grid;
  grid-template-rows: var(--chart-height) 42px 28px;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.chart-column {
  position: relative;
  width: min(54px, 72%);
  height: 100%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.chart-column i {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 3px;
  background: linear-gradient(180deg, var(--yellow), #e30613);
  transition: height 260ms ease;
}

.vertical-chart strong {
  display: -webkit-box;
  align-self: start;
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.1;
  text-transform: uppercase;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.vertical-chart em {
  align-self: end;
  color: var(--yellow);
  font-style: normal;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.vertical-chart em span {
  display: inline-block;
  margin-left: 7px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: middle;
}

.module-chart {
  --chart-height: 154px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 260px;
  margin-bottom: 24px;
}

.module-chart article {
  grid-template-rows: var(--chart-height) 34px 30px 18px;
}

.module-chart .chart-column {
  width: min(70px, 60%);
}

.module-chart p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.course-metric-detail header strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.05;
  text-transform: uppercase;
}

.course-metric-detail header span {
  display: block;
  margin-top: 5px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.course-metric-detail {
  padding: 20px;
}

.course-metric-detail header {
  margin-bottom: 18px;
}

.detail-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.detail-metric-grid div {
  min-height: 96px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 221, 0, 0.3);
}

.detail-metric-grid span {
  display: block;
  min-height: 34px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.detail-metric-grid strong {
  display: block;
  margin-top: 10px;
  color: var(--yellow);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: rgba(17, 19, 19, 0.74);
}

th,
td {
  padding: 13px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}

th {
  background: #5f5f5f;
  font-family: var(--font-display);
  text-transform: uppercase;
}

td {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.admin-view-btn {
  min-width: 120px;
  min-height: 28px;
  border: 0;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease;
}

.admin-view-btn::before {
  content: "◉";
  margin-right: 8px;
  font-size: 11px;
}

.admin-view-btn:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 8px 10px rgba(227, 6, 19, 0.24));
}
.admin-list-tools {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 22px 0 10px;
}

.admin-list-tools label {
  display: grid;
  gap: 7px;
  min-width: min(360px, 100%);
}

.admin-list-tools span,
.admin-list-tools p {
  margin: 0;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
}

.admin-list-tools input {
  height: 38px;
  border: 1px solid rgba(255, 221, 0, 0.72);
  border-radius: 0;
  outline: 0;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.54);
  color: #fff;
  font: 800 14px/1 var(--font-body);
}

.admin-list-tools input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 2px rgba(255, 221, 0, 0.16);
}

.admin-list-tools button {
  height: 38px;
  border: 1px solid rgba(255, 221, 0, 0.58);
  padding: 0 14px;
  background: transparent;
  color: var(--yellow);
  font-family: var(--font-display);
  text-transform: uppercase;
  cursor: pointer;
}

.admin-list-tools p {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.7);
}
.admin-user-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  animation: adminModalFade 180ms ease both;
}

.admin-user-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(3px);
}

.admin-user-detail-shell {
  position: relative;
  z-index: 1;
  width: min(1060px, 100%);
  max-height: min(780px, calc(100vh - 48px));
  overflow: hidden auto;
  scrollbar-width: thin;
  scrollbar-color: var(--yellow) rgba(255, 255, 255, 0.08);
  animation: adminModalIn 240ms ease both;
  border: 1px solid rgba(255, 221, 0, 0.78);
  background: rgba(8, 10, 10, 0.94);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.48);
}

.admin-user-detail-shell::-webkit-scrollbar {
  width: 8px;
}

.admin-user-detail-shell::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}

.admin-user-detail-shell::-webkit-scrollbar-thumb {
  border: 2px solid rgba(8, 10, 10, 0.94);
  background: var(--yellow);
}

.admin-user-detail {
  padding: 20px;
}

.admin-user-detail > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-user-detail > header span,
.admin-user-detail > header p,
.admin-user-module header span,
.admin-user-course span,
.admin-user-course p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.admin-user-detail h2 {
  margin: 4px 0 4px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  line-height: 0.95;
  text-transform: uppercase;
}

.admin-detail-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  background: var(--yellow);
}

.admin-user-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-user-summary article {
  min-height: 84px;
  padding: 14px;
  border: 1px solid rgba(255, 221, 0, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

.admin-user-summary span {
  display: block;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
}

.admin-user-summary strong {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.admin-user-modules {
  display: grid;
  gap: 12px;
}

.admin-user-module {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(0, 0, 0, 0.22);
}

.admin-user-module > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-user-module header strong {
  display: block;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
}

.admin-user-module em {
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-display);
  font-size: 12px;
  font-style: normal;
  text-align: right;
  text-transform: uppercase;
}

.admin-user-module em.available {
  color: var(--yellow);
}

.admin-user-courses {
  display: grid;
}

.admin-user-course {
  display: grid;
  grid-template-columns: 92px minmax(170px, 1fr) 160px 90px 80px 100px;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.admin-user-course:last-child {
  border-bottom: 0;
}

.admin-user-course img {
  max-width: 72px;
  max-height: 28px;
  object-fit: contain;
}

.admin-user-course strong {
  display: block;
  color: #fff;
  font-size: 13px;
  line-height: 1.15;
  text-transform: uppercase;
}

.admin-user-course.passed p:first-of-type {
  color: var(--yellow);
}

@media (max-width: 980px) {
  .admin-user-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-user-course {
    grid-template-columns: 74px minmax(150px, 1fr) 1fr;
  }
}


@keyframes adminModalFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes adminModalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes adminPanelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes icebergFloat {
  0%,
  100% {
    transform: translate(var(--float-x), var(--float-y)) rotate(-0.18deg);
  }

  50% {
    transform: translate(var(--float-x), calc(var(--float-y) - 12px)) rotate(0.18deg);
  }
}


@keyframes excavatorSpriteMove {
  0%, 18% { background-position: 0 0; }
  72% { background-position: 100% 0; }
  100% { background-position: 100% 0; }
}
@keyframes cableCurrentSprite {
  0% { background-position: 0 0; }
  55% { background-position: 100% 0; }
  100% { background-position: 100% 0; }
}
@keyframes workerBoardSprite {
  from { background-position: 0 0; }
  to { background-position: 100% 0; }
}

@keyframes antennaSpriteSwing {
  from { background-position: 0 0; }
  to { background-position: 100% 0; }
}
@keyframes carSpriteBlink {
  0%, 49% { background-position: 0 0; }
  50%, 100% { background-position: 100% 0; }
}
@keyframes mapTooltipFadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes tooltipHandTap {
  0%, 100% {
    transform: rotate(-18deg) translateY(0);
  }

  42% {
    transform: rotate(-18deg) translateY(5px) scale(0.94);
  }
}

@keyframes tooltipTapRing {
  0%, 42% {
    opacity: 0;
    transform: scale(0.62);
  }

  56% {
    opacity: 0.72;
    transform: scale(0.86);
  }

  100% {
    opacity: 0;
    transform: scale(1.32);
  }
}

@keyframes swipeFinger {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(58px);
  }
}

@keyframes swipeHintFade {
  0%,
  100% {
    opacity: 0.42;
  }

  20%,
  75% {
    opacity: 0.92;
  }
}
@keyframes buildingIntroPop {
  0% {
    transform: scale(1);
  }

  48% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(1);
  }
}
@keyframes buildingHintGlow {
  0%, 66%, 100% {
    filter: drop-shadow(0 0 0 rgba(255, 221, 0, 0));
  }

  74%, 84% {
    filter: drop-shadow(0 0 18px rgba(255, 221, 0, 0.42));
  }
}

@keyframes hotspotPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(255, 221, 0, 0.24));
  }

  50% {
    filter: drop-shadow(0 0 22px rgba(255, 221, 0, 0.5));
  }
}

@keyframes signSwing {
  0%,
  100% {
    transform: rotate(-1.2deg);
  }

  50% {
    transform: rotate(1.2deg);
  }
}

@keyframes loaderSlide {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(260%);
  }
}

@keyframes mapReveal {
  0% {
    opacity: 0;
    filter: brightness(0.8);
    transform: scale(1.015);
  }

  100% {
    opacity: 1;
    filter: brightness(1);
    transform: scale(1);
  }
}

@keyframes profileTabSweep {
  0% {
    transform: translateX(0) skewX(-18deg);
  }

  100% {
    transform: translateX(440%) skewX(-18deg);
  }
}

@keyframes profileTabNudge {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(3px);
  }
}

@keyframes profileCoursesReveal {
  0% {
    opacity: 0;
    transform: translateY(-6px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .login-screen {
    display: grid;
    grid-template-columns: 116px 1fr;
    min-height: 100vh;
    padding: 0;
  }

  .login-map-bg {
    inset: 0 0 0 116px;
    width: calc(100% - 116px);
  }

  .login-exiting .login-map-bg {
    inset: 0;
    width: 100%;
  }

  .login-logo-rail {
    padding: 0 14px 40px;
  }

  .login-fair-sign {
    width: 88px;
  }

  .login-partners {
    gap: 10px;
  }

  .login-partners img:first-child {
    width: 74px;
    height: 74px;
  }

  .login-partners img:nth-child(2),
  .login-partners img:nth-child(3) {
    width: 74px;
  }

  .login-panel {
    width: min(336px, calc(100vw - 116px));
    padding: 24px 20px;
  }

  .top-actions {
    top: 18px;
    left: auto;
    right: 16px;
    justify-content: flex-end;
    gap: 8px;
    transform: none;
  }

  .tag {
    min-width: 96px;
    min-height: 48px;
    padding: 0 18px;
    font-size: 15px;
  }

  .admin-tag {
    min-width: 124px;
  }

  .map-sign {
    left: 18px;
    top: 0;
    width: 82px;
  }

  .floating-map {
    width: 242vw;
    top: 56%;
    left: 76%;
    touch-action: pan-y;
    cursor: grab;
  }

  
.map-intro-pop .floating-map {
  z-index: 3;
}

.map-intro-pop .map-island,
.map-intro-pop .map-character,
.map-intro-pop .map-loose-layer,
.map-intro-pop .map-car-layer {
  filter: brightness(0.46);
}

.map-intro-pop .map-zone-layer,
.map-intro-pop .image-hotspot {
  filter: drop-shadow(0 0 24px rgba(255, 221, 0, 0.72));
}
.floating-map.is-dragging {
    cursor: grabbing;
  }

  .map-focus-conectividad .floating-map,
  .map-focus-integrales .floating-map,
  .map-focus-obras .floating-map {
    touch-action: auto;
    cursor: default;
  }

  .map-module-tooltip {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    max-width: min(330px, calc(100vw - 36px));
    padding: 10px 12px 10px 10px;
  }

  .tooltip-hand {
    width: 40px;
    height: 40px;
  }

  .tooltip-hand::before {
    left: 15px;
    top: 9px;
    width: 9px;
    height: 20px;
  }

  .tooltip-hand::after {
    left: 9px;
    top: 8px;
  }

  .tooltip-copy {
    font-size: 12px;
  }

  .map-swipe-hint {
    position: absolute;
    left: 50%;
    bottom: 114px;
    z-index: 5;
    display: block;
    width: 112px;
    height: 42px;
    pointer-events: none;
    transform: translateX(-50%);
    opacity: 0.92;
    animation: swipeHintFade 4.2s ease-in-out infinite;
  }

  .map-focus-conectividad .map-swipe-hint,
  .map-focus-integrales .map-swipe-hint,
  .map-focus-obras .map-swipe-hint,
  .map-hint-dismissed .map-swipe-hint {
    display: none;
  }

  .swipe-track {
    position: absolute;
    left: 4px;
    right: 4px;
    top: 19px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 221, 0, 0.9), transparent);
  }

  .swipe-finger {
    position: absolute;
    left: 18px;
    top: 4px;
    width: 18px;
    height: 28px;
    border: 2px solid var(--yellow);
    border-radius: 10px 10px 8px 8px;
    background: rgba(0, 0, 0, 0.58);
    box-shadow: 0 0 12px rgba(255, 221, 0, 0.35);
    animation: swipeFinger 1.55s ease-in-out infinite;
  }

  .swipe-finger::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 5px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--yellow);
    transform: translateX(-50%);
  }

  .image-hotspot {
    width: 16%;
    font-size: 14px;
  }

  .offcanvas h2 {
    font-size: 28px;
  }
  
  .offcanvas-title img {
      width: min(60px, 11vw);
  }

  .course-card,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    width: auto;
    margin: 0;
  }

  .detail-sign {
    position: relative;
    left: auto;
    top: auto;
    display: block;
    width: 92px;
    margin-bottom: 20px;
  }

  .detail-screen,
  .exam-screen,
  .profile-screen,
  .admin-screen,
  .certificate-screen {
    padding: 90px 20px 0;
  }

  .admin-content {
    width: auto;
    margin-top: 146px;
  }

  .admin-sign {
    left: 20px;
    width: 94px;
  }

  .admin-bg-illustration {
    display: none;
  }

  .profile-screen {
    padding-top: 96px;
  }

  .profile-sign {
    left: 20px;
    width: 86px;
  }

  .profile-bg-illustration {
    display: none;
  }

  .profile-layout {
    width: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 34px;
  }

  .profile-sidebar {
    grid-template-columns: 1fr;
  }

  .profile-main h1 {
    font-size: 42px;
    margin-bottom: 24px;
  }

  .profile-module-tab {
    min-height: 46px;
    padding: 0 18px;
    font-size: 20px;
  }

  .profile-course-row {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 0;
  }

  .profile-course-action {
    grid-column: 2;
    justify-content: flex-start;
  }

  .evaluation-box,
  .admin-head,
  .center-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-tabs {
    flex-wrap: wrap;
    gap: 12px 18px;
    justify-content: center;
  }

  .admin-tabs button {
    font-size: 24px;
  }

  .admin-tabs button.active {
    font-size: 34px;
  }

  .brand-footer {
    height: auto;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 70px;
    padding: 84px 18px 28px;
  }

  .footer-logos {
    gap: 14px;
  }

  .footer-ces {
    height: 58px;
  }

  .footer-sodimac {
    height: 26px;
  }

  .footer-maestro {
    height: 34px;
  }

  .footer-url {
    text-align: center;
    font-size: 14px;
  }

  .footer-right {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-left: 0;
  }

  .footer-socials img {
    width: 34px;
    height: 34px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .metric-summary,
  .detail-metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .vertical-chart,
  .module-chart {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    --chart-height: 130px;
  }

  .metric-control {
    width: 100%;
  }

}


/* Mobile exam: keep navigation, answers and feedback in separate readable areas. */
@media (max-width: 700px) {
  .exam-screen { padding: 150px 16px 0; }
  .exam-screen .exam-sign { position: absolute; left: 16px; top: 0; width: 64px; }
  .exam-screen .top-actions { position: absolute; top: 18px; left: 96px; right: 16px; gap: 8px; }
  .exam-screen .tag { min-width: 0; min-height: 44px; padding: 0 10px; gap: 6px; font-size: 13px; }
  .exam-screen .profile-tag img { width: 28px; height: 28px; }
  .exam-screen .quiz-decor { display: none; }
  .exam-screen .exam-wrap { width: 100%; margin: 0 auto; }
  .exam-screen .exam-progress { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; margin-bottom: 24px; }
  .exam-screen .exam-close { width: 44px; height: 44px; padding: 10px; }
  .exam-screen .progress-segments { gap: 6px; }
  .exam-screen .progress-segments span { height: 8px; }
  .exam-screen .exam-wrap h1 { font-size: 24px; line-height: 1.2; margin: 20px 0 16px; overflow-wrap: anywhere; }
  .exam-screen .exam-wrap > p { font-size: 15px; line-height: 1.5; }
  .exam-screen .answers { gap: 12px; margin-top: 16px; }
  .exam-screen .answers label { min-height: 64px; padding: 16px 22px 16px 50px; font-size: 16px; line-height: 1.4; }
  .exam-screen .answers label > span { min-width: 0; overflow-wrap: anywhere; }
  .exam-screen .answers label i { left: 16px; }
  .exam-screen .exam-feedback { width: calc(100% + 32px); margin: 28px -16px 0; min-height: 0; }
  .exam-screen .exam-feedback-inner { width: 100%; min-height: 0; padding: 20px 16px; flex-direction: column; align-items: stretch; gap: 18px; }
  .exam-screen .exam-feedback-inner > div { font-size: 24px; gap: 12px; }
  .exam-screen .exam-feedback img { width: 36px; height: 36px; }
  .exam-screen .exam-feedback .btn, .exam-screen .check-btn { width: 100%; min-height: 48px; }
  .exam-screen .brand-footer { margin-top: 40px; }
}
/* Evaluation loading uses the same screen while its saved attempt is fetched. */
.exam-screen.exam-loading {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 160px 24px;
}
.exam-loading-status { display: grid; justify-items: center; gap: 24px; text-align: center; }
.exam-loading-status p { margin: 0; font-family: var(--font-display); font-size: clamp(20px, 4vw, 26px); }
.exam-loading-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(255, 224, 0, 0.18);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: exam-loading-spin 0.8s linear infinite;
}
@keyframes exam-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .exam-loading-spinner { animation: none; } }

@media (max-width: 860px) {
  .detail-screen { padding-top: 0; }
  .detail-screen .top-actions [data-view="map"],
  .detail-screen .module-thumb { display: none; }
}
.diploma-back-map { display: none; }

@media (max-width: 860px) {
  .certificate-screen { padding: 180px 24px 0; overflow: hidden; position: relative; }
  .certificate-screen .top-actions [data-view="map"] { display: none; }
  .certificate-screen .exam-sign { position: absolute; top: 0; left: 24px; width: 76px; }
  .certificate-screen .diploma-view {
    width: 100%; max-width: 440px; min-height: 0; margin: 24px auto 0;
    grid-template-columns: minmax(0, 1fr); gap: 0;
  }
  .certificate-screen .diploma-copy { max-width: none; }
  .certificate-screen .diploma-copy h1 { font-size: clamp(32px, 9vw, 42px); line-height: 1; margin-bottom: 20px; }
  .certificate-screen .diploma-copy h2 { font-size: 20px; margin-bottom: 24px; }
  .certificate-screen .diploma-copy p { margin-bottom: 28px; }
  .certificate-screen .diploma-preview { display: none; }
  .certificate-screen .diploma-download,
  .certificate-screen .diploma-back-map { width: 100%; min-width: 0; justify-content: center; }
  .certificate-screen .diploma-back-map {
    display: flex; margin-top: 12px; color: var(--yellow);
    background: transparent; border: 1px solid var(--yellow);
  }
  .certificate-screen .quiz-decor { position: absolute; }
  .certificate-screen .quiz-tree-left { width: 105px; left: -20px; top: 220px; bottom: auto; opacity: 0.24; }
  .certificate-screen .quiz-tree-right { width: 125px; right: -25px; top: 150px; bottom: auto; opacity: 0.24; }
  .certificate-screen .quiz-satellite { width: 48px; left: 16px; bottom: 230px; }
  .certificate-screen .quiz-mixer { width: 80px; right: 8px; bottom: 230px; }
  .certificate-screen .brand-footer { margin-top: 125px; }
}
.profile-mobile-logout, .profile-mobile-diplomas { display: none; }
@media (max-width: 860px) {
  .profile-screen { padding-top: 154px; }
  .profile-screen .profile-sign { width: 64px; left: 16px; }
  .profile-screen .top-actions [data-action="logout"] { display: none; }
  .profile-screen .top-actions .tag { min-width: 0; padding: 0 12px; font-size: 14px; }
  .profile-screen .profile-layout { margin-top: 16px; gap: 24px; }
  .profile-screen .profile-sidebar { gap: 16px; }
  .profile-screen .profile-user-card {
    min-height: 0; padding: 20px; text-align: left;
    display: grid; grid-template-columns: 62px minmax(0, 1fr); column-gap: 14px;
  }
  .profile-screen .profile-avatar { width: 62px; margin: 0; grid-row: 1 / 3; align-self: center; }
  .profile-screen .profile-user-card h2 { grid-column: 2; margin: 0; font-size: 20px; line-height: 1.15; overflow-wrap: anywhere; }
  .profile-screen .profile-mobile-logout {
    display: block; grid-column: 2; justify-self: start; min-height: 36px;
    background: none; border: 0; color: #ffdd00; padding: 6px 0; font: inherit;
    font-size: 14px; cursor: pointer; text-transform: uppercase; font-weight: 500;
  }
  .profile-screen .profile-mobile-diplomas { display: block; grid-column: 1 / -1; margin: 20px 0 8px; font-size: 20px; }
  .profile-screen .profile-user-card p { grid-column: 1 / -1; font-size: 15px; margin-bottom: 14px; }
  .profile-screen .profile-download-all { grid-column: 1 / -1; width: 100%; }
  .profile-screen .progress-panel { padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) 86px; column-gap: 14px; text-align: left; align-items: center; }
  .profile-screen .progress-panel h2 { font-size: 18px; line-height: 1.1; margin-bottom: 8px; }
  .profile-screen .progress-count { font-size: 32px; margin: 0; }
  .profile-screen .progress-panel > img { grid-column: 2; grid-row: 1 / 3; width: 86px; margin: 0; }
  .profile-screen .profile-main { padding-top: 0; }
  .profile-screen .profile-main h1 { font-size: 30px; margin-bottom: 18px; }
}
#admin-password-field:not([hidden]) { display: grid; gap: 12px; }
@media (max-width: 860px) {
  .login-screen { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .login-screen .login-map-bg { inset: 0; width: 100%; opacity: 0.25; }
  .login-screen .login-logo-rail {
    min-height: 0; padding: 0 24px 46px;
    background-image: linear-gradient(rgba(0,0,0,.2), rgba(0,0,0,.45)), url('/assets/backgrounds/fondo-logos-login.jpg');
    border-bottom: 1px solid rgba(255,221,0,.25);
  }
  .login-screen .login-fair-sign { width: 104px; }
  .login-screen .login-partners { flex-direction: row; margin-top: 32px; gap: 20px; }
  .login-screen .login-partners img:first-child { width: 64px; height: 64px; }
  .login-screen .login-partners img:nth-child(2),
  .login-screen .login-partners img:nth-child(3) { width: 85px; }
  .login-screen .login-panel {
    width: 100%; min-height: 0; padding: 28px max(24px, calc((100vw - 420px) / 2)) 36px;
    justify-content: flex-start; gap: 16px;
    background-image: linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.4)), url('/assets/backgrounds/fondo-form-login.jpg');
  }
  .login-screen .login-panel h1 { max-width: none; font-size: clamp(28px, 8vw, 38px); margin: 0 0 10px; line-height: 1.05; text-align: center; }
  .login-screen .login-panel .field-error:empty { display: none; }
  .login-screen .login-panel .btn { margin-top: 8px; }
}
@media (max-width: 860px) { .login-screen .login-panel label { text-align: center; } }
