/* Academia Vicenta · identidad visual 2026. Alcance: cabecera, marca y detalles visuales. */
:root {
  --av-navy: #15214d;
  --av-purple: #6940c9;
  --av-green: #087d52;
  --av-red: #dc3045;
  --av-yellow: #ffce45;
}

/* Asegura marca legible en barra lateral y en dispositivos móviles. */
a.brand.av-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  min-height: 63px;
  max-width: 100%;
  margin-left: 0;
  text-decoration: none;
  white-space: nowrap;
}
a.av-brand .av-brand-icon {
  width: 54px;
  height: 62px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 14px;
  background: #7346c6;
  box-shadow: 0 2px 7px #25124c21, 0 0 0 1px #4b258a16;
  transition: transform .18s ease, box-shadow .18s ease;
}
a.av-brand:hover .av-brand-icon { transform: translateY(-1px); box-shadow: 0 5px 11px #25124c24; }
a.av-brand .av-brand-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #7346c6;
}
a.av-brand .av-brand-wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
a.av-brand .av-brand-wordmark strong {
  margin: 0;
  color: var(--av-navy);
  font-family: 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(19px, 1.65vw, 22px);
  font-weight: 850;
  line-height: 1.03;
  letter-spacing: -.045em;
}
a.av-brand .av-brand-wordmark small {
  margin-top: 5px;
  color: var(--av-purple);
  font-family: 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  font-size: 10px;
  line-height: 1.05;
  letter-spacing: .23em;
  font-weight: 850;
}
a.av-brand:focus-visible { border-radius: 12px; outline-color: var(--av-purple); }

/* Cabecera renovada: contraste suave y franja de identidad. */
.topbar {
  background: linear-gradient(108deg, #ffffff 60%, #fbf8ff 100%);
  border-bottom: 1px solid #e9e3f3;
  box-shadow: 0 2px 8px #25213d08;
}
.sidebar {
  border-right-color: #e9e3f3;
  background: linear-gradient(180deg, #fff 0%, #fff 85%, #faf8ff 100%);
}
/* La marca es el foco de la cabecera; ninguna animación obligatoria. */
@media (max-width: 1080px) and (min-width: 701px) {
  a.av-brand .av-brand-icon { width: 46px; height: 55px; border-radius: 12px; }
  a.av-brand { gap: 8px; min-height: 56px; }
  a.av-brand .av-brand-wordmark strong { font-size: 18px; }
  a.av-brand .av-brand-wordmark small { font-size: 9px; letter-spacing: .18em; }
}
@media (max-width: 700px) {
  a.brand.mobile-brand.av-brand {
    display: inline-flex;
    gap: 8px;
    min-height: 48px;
    margin-left: 0;
  }
  a.mobile-brand.av-brand .av-brand-icon { width: 41px; height: 47px; border-radius: 11px; }
  a.mobile-brand.av-brand .av-brand-wordmark strong { font-size: 18px; }
  a.mobile-brand.av-brand .av-brand-wordmark small { font-size: 9px; margin-top: 4px; letter-spacing: .16em; }
  .topbar { min-height: 64px; }
}
@media (max-width: 360px) {
  a.mobile-brand.av-brand .av-brand-icon { width: 35px; height: 42px; }
  a.mobile-brand.av-brand .av-brand-wordmark strong { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  a.av-brand .av-brand-icon { transition: none; }
}

/* VVBOT oficial también en las devoluciones y al finalizar misiones. */
.feedback-mascot img,
.result-art {
  display: block;
  object-fit: contain;
}
.feedback-mascot img { width: 38px; height: 38px; }

/* VVBOT oficial: versión sin extremidades para cabecera y barra lateral. */
a.av-brand .av-brand-icon {
  background: linear-gradient(145deg, #f8f4ff 0%, #eee5ff 100%);
  border-radius: 16px;
  overflow: hidden;
}
a.av-brand .av-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 3px;
  background: transparent;
  box-sizing: border-box;
}

/* VVBOT completo en el banner: siempre visible de cabeza a pies. */
.home-hero {
  min-height: 310px;
}
.hero-mascot {
  position: absolute;
  top: 14px;
  right: 2%;
  bottom: 14px;
  width: min(39%, 360px);
  height: calc(100% - 28px);
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-mascot::before { inset: 7% 10%; }
.hero-mascot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Más espacio y mejor legibilidad en pantallas medianas. */
@media (max-width: 900px) {
  .home-hero { min-height: 275px; }
  .hero-mascot { right: 1%; width: 38%; }
}

/* En celulares, la mascota se ubica debajo del texto: no se recorta. */
@media (max-width: 600px) {
  .home-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .hero-copy { width: 100%; padding: 22px 20px 8px; }
  .hero-copy h1 { font-size: clamp(33px, 8.1vw, 47px); }
  .hero-copy > p:not(.hero-tag) { max-width: 100%; }
  .hero-mascot {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: min(60%, 220px);
    height: 210px;
    margin: -7px 9px 8px auto;
    transform: none;
  }
  .hero-mascot::before { inset: 7% 8%; }
}
@media (max-width: 360px) {
  .hero-mascot { height: 180px; margin-top: 0; }
  .hero-copy { padding: 18px 16px 5px; }
}
