
.unity-popup-link { font: inherit; text-align: left; }
.unity-modal { width: min(96vw, 900px); max-height: 92vh; overflow: auto; }

.unity-list { display: grid; gap: 10px; margin-top: 14px; }
.unity-resource {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
}
.unity-resource-main { min-width: 0; }
.unity-resource-main strong { display: block; color: var(--text); margin-bottom: 4px; }
.unity-resource-main span { display: block; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.unity-resource a { min-width: 112px; }

.unity-badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.unity-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
}
.unity-badge.official {
  border-color: rgba(56,217,150,.3);
  background: var(--green-soft);
  color: var(--green);
}
.unity-badge.vcc {
  border-color: rgba(51,148,255,.35);
  background: var(--blue-soft);
  color: var(--blue);
}
.unity-badge.legacy {
  border-color: rgba(255,180,84,.35);
  background: rgba(255,180,84,.08);
  color: #ffbd6f;
}

.unity-version-box {
  display: grid;
  gap: 7px;
  padding: 16px;
  margin: 14px 0;
  border: 1px solid rgba(56,217,150,.3);
  border-radius: 13px;
  background: var(--green-soft);
}
.unity-version-box strong { font-size: 1.15rem; }
.unity-version-box span { color: var(--muted); line-height: 1.5; }

.unity-warning-box {
  padding: 12px 14px;
  margin-top: 12px;
  border-left: 3px solid #ffb454;
  background: rgba(255,180,84,.08);
  color: var(--muted);
  line-height: 1.55;
}
.unity-warning-box strong { color: var(--text); }

.unity-web-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-top: 14px;
}
.unity-web-card {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
}
.unity-web-card strong { color: var(--text); }
.unity-web-card span { color: var(--muted); line-height: 1.45; font-size: .82rem; }
.unity-web-card .button { margin-top: auto; min-width: 0; }

@media (max-width: 700px) {
  .unity-resource { grid-template-columns: 1fr; }
  .unity-resource a { width: 100%; }
  .unity-web-grid { grid-template-columns: 1fr; }
}

/* v16.2 · Logos de webs de avatares/assets */
.unity-web-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.unity-web-card-head strong { margin: 0; }

.unity-web-logo {
  width: 46px;
  height: 42px;
  flex: 0 0 46px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}

.unity-web-logo-wide {
  width: 72px;
  flex-basis: 72px;
}

/* v17 · herramienta interna ToolHub */
.unity-resource-toolhub {
  border-color: rgba(161, 92, 255, .35);
  background: linear-gradient(135deg, rgba(161,92,255,.08), rgba(51,148,255,.05)), var(--bg-soft);
}

/* v22.6 · Inicio grande, realmente centrado y sin ancho fantasma. */
@media (min-width: 1100px) {
  html,
  body {
    overflow-x: clip;
  }

  body > main > .home-intro-v22 {
    position: relative !important;
    left: 50% !important;
    width: min(1500px, calc(100vw - 72px)) !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: translateX(-50%) !important;
  }

  body > main > .home-intro-v22 > .hero {
    position: relative !important;
    left: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 500px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
    transform-origin: center center !important;
  }

  body > main > .home-intro-v22 > .quick-access {
    width: min(1040px, calc(100% - 80px)) !important;
    max-width: 1040px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 1100px) and (max-height: 850px) {
  body > main > .home-intro-v22 > .hero {
    min-height: 450px !important;
  }
}

/* v22.8 · Aviso de privacidad responsive */
#pdfPrivacyBackdrop {
  overflow-y: auto;
  overscroll-behavior: contain;
}

#pdfPrivacyBackdrop .privacy-gate {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

@media (max-height: 950px) {
  #pdfPrivacyBackdrop { padding: 12px; }
  #pdfPrivacyBackdrop .privacy-gate {
    max-height: calc(100dvh - 24px);
    padding: 24px;
  }
  #pdfPrivacyBackdrop .privacy-gate h2 {
    margin: 7px 0 10px;
    font-size: 1.75rem;
  }
  #pdfPrivacyBackdrop .privacy-notice {
    margin: 14px 0;
    padding: 14px;
  }
  #pdfPrivacyBackdrop .privacy-details {
    gap: 6px;
    margin: 12px 0;
  }
  #pdfPrivacyBackdrop .privacy-details > div {
    gap: 12px;
    padding-top: 8px;
  }
  #pdfPrivacyBackdrop .privacy-warning {
    padding: 10px 12px;
    line-height: 1.45;
  }
  #pdfPrivacyBackdrop .privacy-check {
    padding: 11px 12px;
    line-height: 1.4;
  }
  #pdfPrivacyBackdrop .privacy-actions { margin-top: 12px; }
}

@media (max-height: 760px) {
  #pdfPrivacyBackdrop {
    place-items: start center;
    padding: 8px;
  }
  #pdfPrivacyBackdrop .privacy-gate {
    width: min(680px, calc(100vw - 16px));
    max-height: calc(100dvh - 16px);
    padding: 18px 20px;
  }
  #pdfPrivacyBackdrop .privacy-gate .eyebrow { font-size: .7rem; }
  #pdfPrivacyBackdrop .privacy-gate h2 { font-size: 1.55rem; }
}

/* v22.9 · Inicio adaptado a la altura real disponible en pantallas 1080p. */
@media (min-width: 1100px) and (max-height: 980px) {
  body > main > .home-intro-v22 {
    min-height: calc(100svh - 76px) !important;
    align-content: center !important;
    gap: 18px !important;
    padding-top: 12px !important;
    padding-bottom: 18px !important;
  }

  body > main > .home-intro-v22 > .hero {
    min-height: 390px !important;
    padding: 42px clamp(40px, 4vw, 72px) 28px !important;
    gap: 42px !important;
  }

  body > main > .home-intro-v22 > .hero .hero-motion-title {
    max-width: 680px !important;
    font-size: clamp(3.8rem, 4.7vw, 4.8rem) !important;
    line-height: .98 !important;
    margin-top: 12px !important;
    margin-bottom: 14px !important;
  }

  body > main > .home-intro-v22 > .hero .hero-content > p {
    max-width: 690px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-size: .96rem !important;
    line-height: 1.55 !important;
  }

  body > main > .home-intro-v22 > .hero .hero-actions { margin-top: 18px !important; }
  body > main > .home-intro-v22 > .hero .hero-panel {
    gap: 10px !important;
    padding: 15px !important;
  }
  body > main > .home-intro-v22 > .hero .hero-stat { padding: 13px 15px !important; }
  body > main > .home-intro-v22 > .hero .hero-stat strong {
    margin-bottom: 3px !important;
    font-size: 1.5rem !important;
  }
  body > main > .home-intro-v22 > .hero .hero-stat span { font-size: .82rem !important; }
  body > main > .home-intro-v22 > .quick-access .section-heading { margin-bottom: 12px !important; }
  body > main > .home-intro-v22 > .quick-access .section-heading h2 {
    margin-top: 5px !important;
    margin-bottom: 0 !important;
    font-size: 2.15rem !important;
  }
  body > main > .home-intro-v22 > .quick-access .quick-grid { gap: 12px !important; }
  body > main > .home-intro-v22 > .quick-access .quick-card {
    min-height: 70px !important;
    padding: 13px 15px !important;
  }
  body > main > .home-intro-v22 > .quick-access .quick-card h3 { font-size: .95rem !important; }
  body > main > .home-intro-v22 > .quick-access .quick-card p {
    margin-top: 3px !important;
    font-size: .76rem !important;
    line-height: 1.35 !important;
  }
}

@media (min-width: 1100px) and (max-height: 820px) {
  body > main > .home-intro-v22 {
    gap: 12px !important;
    padding-top: 8px !important;
    padding-bottom: 12px !important;
  }
  body > main > .home-intro-v22 > .hero {
    min-height: 350px !important;
    padding-top: 30px !important;
    padding-bottom: 22px !important;
  }
  body > main > .home-intro-v22 > .hero .hero-motion-title {
    font-size: clamp(3.35rem, 4.2vw, 4.25rem) !important;
  }
}

/* v23.0 · Admin v2 */
.footer .copyright::after {
  content: "Versión 23.0";
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  opacity: .78;
}
