/**
 * AXIONS — Logo lockup (marca protagonista, sin recortes)
 */
.axions-brand-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

/* Navbar landing pública */
.axions-brand-logo--nav {
  height: auto;
  max-height: clamp(2.5rem, 9vw, 3.5rem);
  width: auto;
  max-width: min(300px, 70vw);
}

/* Sidebar Core — lockup blanco, escala por ancho sin recortar */
.axions-brand-logo--sidebar {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 2.75rem;
  object-position: left center;
}

/* Login / registro / recuperar */
.axions-brand-logo--auth {
  height: auto;
  max-height: clamp(3rem, 12vw, 4.75rem);
  width: auto;
  max-width: min(400px, 92vw);
  margin-inline: auto;
}

/* Cabecera portal cliente */
.axions-brand-logo--portal {
  height: auto;
  max-height: clamp(2.25rem, 7vw, 3rem);
  width: auto;
  max-width: min(260px, 56vw);
}

/* Hero landing — presencia máxima */
.axions-brand-logo--hero {
  height: auto;
  max-height: clamp(3.25rem, 16vw, 5.5rem);
  width: auto;
  max-width: min(480px, 90vw);
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

.dashboard-theme .boutique-sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  padding: 1.15rem 1.05rem 1.2rem;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(184, 155, 106, 0.28) 18%,
      rgba(184, 155, 106, 0.1) 72%,
      transparent 100%
    )
    1;
  flex-shrink: 0;
  background:
    radial-gradient(120% 90% at 12% 40%, rgba(184, 155, 106, 0.07), transparent 55%),
    var(--bg-sidebar, var(--ax-void, #0b1220));
  overflow: visible;
}

.dashboard-theme .boutique-sidebar__brand-link,
.dashboard-theme .ax-core-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  line-height: 1;
  overflow: visible;
  max-width: 100%;
  width: 100%;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.dashboard-theme .ax-core-brand:hover,
.dashboard-theme .boutique-sidebar__brand-link:hover {
  opacity: 0.92;
}

.dashboard-theme .ax-core-brand__mark {
  display: block;
  flex: 0 0 auto;
  /* Proporción real del PNG (no 1:1): A + rabillo enteros */
  width: auto;
  height: 3.7rem;
  max-width: none;
  max-height: 3.7rem;
  aspect-ratio: 476 / 640;
  object-fit: contain;
  object-position: center center;
  overflow: visible;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), filter 0.28s ease;
  filter:
    drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 18px rgba(184, 155, 106, 0.12));
}

.dashboard-theme .ax-core-brand:hover .ax-core-brand__mark,
.dashboard-theme .boutique-sidebar__brand-link:hover .ax-core-brand__mark {
  transform: translateY(-1px) scale(1.02);
  filter:
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 22px rgba(184, 155, 106, 0.18));
}

.dashboard-theme .ax-core-brand__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
  padding-top: 0.1rem;
}

.dashboard-theme .ax-core-brand__word {
  display: block;
  width: auto;
  text-align: left;
  font-family: var(--ax-font-sans, "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: var(--ax-brand-text, #e8d5a3);
  -webkit-text-fill-color: var(--ax-brand-text, #e8d5a3);
}

.dashboard-theme .ax-core-brand__sub,
.dashboard-theme .boutique-sidebar__sub {
  display: block;
  width: auto;
  text-align: left;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ax-logo-chrome, #c5c3bf) 72%, transparent);
  padding-left: 0;
  padding-top: 0.28rem;
  border-top: 1px solid rgba(184, 155, 106, 0.22);
}

/* Tamaño/centrado: portal-auth.css (A con rabillo). No forzar display:block aquí. */
.portal-auth-brand {
  text-align: center;
  line-height: 0;
}

.ax-public-hero__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
  .axions-brand-logo--nav {
    max-height: clamp(2rem, 10vw, 2.75rem);
    max-width: min(220px, 66vw);
  }

  .axions-brand-logo--hero {
    max-height: clamp(2.75rem, 18vw, 4rem);
    margin-bottom: 1.25rem;
  }

  .dashboard-theme .boutique-sidebar__brand {
    min-height: 0;
    padding: 0.85rem 0.75rem;
  }

  .dashboard-theme .ax-core-brand__mark {
    width: auto;
    height: 3.35rem;
    max-width: none;
    max-height: 3.35rem;
  }

  .dashboard-theme .ax-core-brand__word {
    font-size: 0.72rem;
  }

  .axions-brand-logo--sidebar {
    max-height: 2.1rem;
  }
}
