/* RuniverseHub · SITE-FOOTER-CANONICAL-1.3 · full + compact auth */
.rh-site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  margin-top: clamp(3rem, 6vw, 5.5rem);
  border-top: 1px solid rgba(94, 234, 212, .12);
  background:
    radial-gradient(circle at 8% 0%, rgba(14, 165, 233, .08), transparent 34rem),
    linear-gradient(180deg, #040c15 0%, #020811 100%);
  color: #e7eef6;
  font-family: inherit;
}

.rh-site-footer *,
.rh-site-footer *::before,
.rh-site-footer *::after { box-sizing: border-box; }

.rh-site-footer__glow {
  position: absolute;
  z-index: -1;
  top: -10rem;
  left: 10%;
  width: 28rem;
  height: 18rem;
  border-radius: 50%;
  background: rgba(34, 211, 238, .07);
  filter: blur(80px);
  pointer-events: none;
}

.rh-site-footer__inner,
.rh-site-footer__bottom {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
}

.rh-site-footer__inner {
  display: grid;
  grid-template-columns: minmax(15rem, 1.35fr) minmax(0, 2.65fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.75rem, 5vw, 4.5rem) clamp(2.2rem, 4vw, 3.5rem);
}

.rh-site-footer__identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: .9rem;
}

.rh-site-footer__brand-lockup {
  --rh-v2-brand-mark-size: 2.35rem;
  --rh-v2-brand-mark-radius: .8rem;
  --rh-v2-brand-mark-padding: .14rem;
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  width: fit-content;
  color: #f8fafc;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -.025em;
}

.rh-site-footer__brand-lockup > .rh-v2-brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  width: fit-content;
  color: #f8fafc;
  text-decoration: none;
}

.rh-site-footer__brand-lockup .rh-v2-brand__mark {
  display: grid;
  width: var(--rh-v2-brand-mark-size);
  height: var(--rh-v2-brand-mark-size);
  flex: 0 0 var(--rh-v2-brand-mark-size);
  place-items: center;
  overflow: hidden;
  padding: var(--rh-v2-brand-mark-padding);
  border: 1px solid rgba(103, 232, 249, .18);
  border-radius: var(--rh-v2-brand-mark-radius);
  background: linear-gradient(180deg, rgba(10, 22, 37, .95), rgba(2, 9, 22, .98));
  box-shadow: 0 10px 30px rgba(14, 165, 233, .12), inset 0 0 18px rgba(34, 211, 238, .04);
}

.rh-site-footer__brand-lockup .rh-v2-brand__mark-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: calc(var(--rh-v2-brand-mark-radius) - .14rem);
}

.rh-site-footer__brand-lockup .rh-v2-brand__name {
  display: inline-flex;
  align-items: baseline;
  font-size: clamp(1.08rem, .98rem + .3vw, 1.28rem);
  line-height: 1;
}

.rh-site-footer__brand-lockup .rh-v2-brand__name > span { color: #22d3ee; }

.rh-site-footer__identity p {
  max-width: 31rem;
  margin: 0;
  color: #8fa2b5;
  font-size: .94rem;
  line-height: 1.7;
}

.rh-site-footer__email {
  color: #c8d7e6;
  font-size: .91rem;
  text-decoration: none;
  transition: color .18s ease;
}
.rh-site-footer__email:hover { color: #67e8f9; }

.rh-site-footer__navigation {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.6vw, 2.25rem);
  min-width: 0;
}

.rh-site-footer__group { min-width: 0; }

.rh-site-footer__group strong {
  display: block;
  margin-bottom: .85rem;
  color: #f8fafc;
  font-size: .9rem;
  font-weight: 720;
}

.rh-site-footer__group > div {
  display: grid;
  gap: .64rem;
}

.rh-site-footer__group a {
  width: fit-content;
  max-width: 100%;
  color: #9eb0c0;
  font-size: .86rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}

.rh-site-footer__group a:hover,
.rh-site-footer__group a.is-active {
  color: #67e8f9;
  transform: translateX(2px);
}

.rh-site-footer__bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-block: 1.35rem 1.65rem;
  border-top: 1px solid rgba(148, 163, 184, .11);
  color: #718398;
  font-size: .78rem;
  line-height: 1.55;
}

.rh-site-footer__bottom span:last-child {
  max-width: 44rem;
  text-align: right;
}

@media (max-width: 920px) {
  .rh-site-footer__inner {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .rh-site-footer__identity {
    padding-bottom: 1.4rem;
    border-bottom: 1px solid rgba(148, 163, 184, .1);
  }

  .rh-site-footer__navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
}

@media (max-width: 560px) {
  .rh-site-footer { margin-top: 3.25rem; }

  .rh-site-footer__inner,
  .rh-site-footer__bottom { width: min(100% - 1.5rem, 1180px); }

  .rh-site-footer__inner { padding-block: 2.4rem 2rem; }

  .rh-site-footer__brand-lockup {
    --rh-v2-brand-mark-size: 2.15rem;
  }

  .rh-site-footer__navigation {
    grid-template-columns: 1fr 1fr;
    gap: 1.85rem 1rem;
  }

  .rh-site-footer__group strong { font-size: .84rem; }
  .rh-site-footer__group a { font-size: .82rem; }

  .rh-site-footer__bottom {
    display: grid;
    gap: .55rem;
    padding-block: 1.15rem 1.4rem;
  }

  .rh-site-footer__bottom span:last-child { text-align: left; }
}

@media (max-width: 360px) {
  .rh-site-footer__navigation { grid-template-columns: 1fr; }
}


/* Compact footer · autenticación y superficies de acceso */
.rh-site-footer--compact {
  margin-top: 0;
  border-top-color: rgba(148, 163, 184, .12);
  background: #020811;
}

.rh-site-footer--compact .rh-site-footer__glow,
.rh-site-footer--compact .rh-site-footer__navigation,
.rh-site-footer--compact .rh-site-footer__bottom,
.rh-site-footer--compact .rh-site-footer__identity { display: none; }

.rh-site-footer__compact-inner {
  width: min(100% - 2rem, 1180px);
  min-height: 5rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-block: 1rem;
}

.rh-site-footer--compact .rh-site-footer__brand-lockup {
  --rh-v2-brand-mark-size: 2rem;
  --rh-v2-brand-mark-radius: .72rem;
  --rh-v2-brand-mark-padding: .12rem;
}

.rh-site-footer--compact .rh-site-footer__brand-lockup .rh-v2-brand__name {
  font-size: 1rem;
}

.rh-site-footer__compact-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem 1rem;
  flex-wrap: wrap;
}

.rh-site-footer__compact-nav a,
.rh-site-footer__compact-copy {
  color: #8395a8;
  font-size: .76rem;
  line-height: 1.35;
  text-decoration: none;
}

.rh-site-footer__compact-nav a:hover { color: #67e8f9; }

/* Auth V2 usa grid de dos columnas: el footer queda debajo de ambas. */
.rh-v2-auth-page > .rh-site-footer--compact {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: end;
}

@media (max-width: 767px) {
  .rh-v2-auth-page > .rh-site-footer--compact { grid-row: 3; }
}

@media (max-width: 640px) {
  .rh-site-footer__compact-inner {
    width: min(100% - 1.5rem, 1180px);
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .8rem 1rem;
    padding-block: 1rem 1.15rem;
  }

  .rh-site-footer__compact-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .rh-site-footer__compact-copy {
    text-align: right;
  }
}

/* LEGAL-REGISTRATION-PHASE4-1.0 · acceso visible al canal de revocación */
@media(max-width:760px){}
