
/* ================================================================
   ProfeYa V40 · logo visible dentro de toda la app
   El objetivo es que el usuario "sienta" la marca durante el uso,
   no solamente en el icono del celular o en el login.
   ================================================================ */

.internalBrandV40{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-width:0;
  padding:6px 10px 6px 6px;
  border:1px solid rgba(91,83,211,.12);
  border-radius:16px;
  background:rgba(255,255,255,.82);
  box-shadow:0 9px 22px rgba(35,63,145,.08);
  backdrop-filter:blur(10px);
}
.internalBrandV40>img{
  width:36px;
  height:36px;
  flex:0 0 36px;
  display:block;
  object-fit:cover;
  border-radius:11px;
  box-shadow:0 6px 14px rgba(48,75,185,.17);
}
.internalBrandV40>div{
  min-width:0;
  display:grid;
  line-height:1;
}
.internalBrandV40 strong{
  color:#10194e;
  font-size:15px;
  line-height:1;
  font-weight:950;
  letter-spacing:-.35px;
  white-space:nowrap;
}
.internalBrandV40 strong span{
  background:linear-gradient(90deg,#6340f3,#19c8de);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.internalBrandV40 small{
  margin-top:4px;
  color:#6c7898;
  font-size:8px;
  line-height:1;
  font-weight:750;
  white-space:nowrap;
}

/* Home: the logo becomes part of the hero rather than only the global top bar. */
.heroBrandV40{
  margin-bottom:12px;
}
.appHero .heroBrandV40 .internalBrandV40{
  background:rgba(255,255,255,.15);
  border-color:rgba(255,255,255,.24);
  box-shadow:none;
}
.appHero .heroBrandV40 .internalBrandV40 strong{
  color:#fff;
}
.appHero .heroBrandV40 .internalBrandV40 small{
  color:rgba(255,255,255,.80);
}
.appHero .heroBrandV40 .internalBrandV40>img{
  box-shadow:0 8px 18px rgba(11,39,130,.22);
}

/* Progress */
.viewBrandV40{
  margin-bottom:12px;
}
.progressHero .viewBrandV40 .internalBrandV40{
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.24);
  box-shadow:none;
}
.progressHero .viewBrandV40 .internalBrandV40 strong{color:#fff}
.progressHero .viewBrandV40 .internalBrandV40 small{color:rgba(255,255,255,.78)}

/* Pet */
.petBrandV40{
  margin-bottom:7px;
}
.petBrandV40 .internalBrandV40{
  padding:4px 8px 4px 4px;
  border-radius:13px;
}
.petBrandV40 .internalBrandV40>img{
  width:30px;height:30px;flex-basis:30px;border-radius:9px;
}
.petBrandV40 .internalBrandV40 strong{font-size:13px}
.petBrandV40 .internalBrandV40 small{font-size:7px}

/* Practice header */
.practiceBrandV40{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
}
.practiceBrandV40>img{
  width:42px!important;
  height:42px!important;
  border-radius:13px!important;
  box-shadow:0 8px 18px rgba(48,75,185,.16)!important;
}
.practiceBrandV40>div{
  display:grid;
  line-height:1;
}
.practiceBrandV40 strong{
  font-size:18px!important;
  line-height:1!important;
}
.practiceBrandV40 small{
  margin-top:4px;
  color:#6f7a98;
  font-size:8px;
  font-weight:750;
}

/* Photo AI */
.photoBrandV40{
  margin:0 0 13px;
}
.photoBrandV40 .internalBrandV40{
  background:rgba(255,255,255,.88);
}

/* Exam */
.examBrandV40{
  margin:0 0 14px;
}
.examBrandV40 .internalBrandV40{
  background:linear-gradient(135deg,#f8f5ff,#effbff);
}

/* Bottom navigation: a subtle brand seal centered above the bar.
   It does not add a fifth action. */
.bottomNav{
  position:fixed!important;
}
.bottomBrandMarkV40{
  position:absolute;
  left:50%;
  top:-14px;
  transform:translateX(-50%);
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#fff;
  border:1px solid #e0e6f5;
  box-shadow:0 8px 18px rgba(39,62,133,.12);
  pointer-events:none;
  opacity:.94;
}
.bottomBrandMarkV40 img{
  width:25px;
  height:25px;
  border-radius:8px;
  display:block;
}

/* Dark */
:root[data-theme="dark"] .internalBrandV40{
  background:rgba(17,27,49,.88);
  border-color:#344463;
}
:root[data-theme="dark"] .internalBrandV40 strong{color:#f6f8ff}
:root[data-theme="dark"] .internalBrandV40 small{color:#aeb9d2}
:root[data-theme="dark"] .appHero .heroBrandV40 .internalBrandV40,
:root[data-theme="dark"] .progressHero .viewBrandV40 .internalBrandV40{
  background:rgba(9,18,39,.20);
  border-color:rgba(255,255,255,.16);
}
:root[data-theme="dark"] .practiceBrandV40 small{color:#aeb9d2}
:root[data-theme="dark"] .examBrandV40 .internalBrandV40{
  background:linear-gradient(135deg,#17213d,#111a31);
}
:root[data-theme="dark"] .bottomBrandMarkV40{
  background:#111b33;
  border-color:#334361;
}

/* Desktop */
@media(min-width:850px){
  .heroBrandV40 .internalBrandV40,
  .viewBrandV40 .internalBrandV40{
    transform:scale(.94);
    transform-origin:left center;
  }
  .petBrandV40{
    display:none; /* global header is already visible on large screens */
  }
}

/* Mobile / app WebView */
@media(max-width:720px){
  .topbar .brandBtn>span:last-child small{
    display:block!important;
  }
  .heroBrandV40{
    margin-bottom:10px;
  }
  .heroBrandV40 .internalBrandV40{
    padding:5px 9px 5px 5px;
    border-radius:15px;
  }
  .heroBrandV40 .internalBrandV40>img{
    width:34px;height:34px;flex-basis:34px;
  }

  .viewBrandV40{
    margin-bottom:9px;
  }
  .viewBrandV40 .internalBrandV40{
    padding:5px 8px 5px 5px;
  }
  .viewBrandV40 .internalBrandV40>img{
    width:32px;height:32px;flex-basis:32px;
  }
  .viewBrandV40 .internalBrandV40 strong{font-size:13px}
  .viewBrandV40 .internalBrandV40 small{font-size:7px}

  .petBrandV40{
    display:block;
  }

  .practiceBrandV40>img{
    width:38px!important;height:38px!important;
  }
  .practiceBrandV40 strong{font-size:16px!important}

  .bottomBrandMarkV40{
    width:30px;height:30px;top:-12px;
  }
  .bottomBrandMarkV40 img{
    width:23px;height:23px;
  }
}

/* Very small phones: keep branding, trim subtitle when necessary */
@media(max-width:390px){
  .internalBrandV40 small{
    display:none;
  }
  .internalBrandV40{
    padding-right:8px;
  }
}

.pageBrandSealV40{
  position:fixed;
  left:16px;
  top:16px;
  z-index:70;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:6px 10px 6px 6px;
  border:1px solid #dde5f6;
  border-radius:15px;
  background:rgba(255,255,255,.90);
  box-shadow:0 9px 20px rgba(36,62,139,.10);
  color:#11194f;
  text-decoration:none;
  font-size:12px;
  font-weight:950;
  backdrop-filter:blur(10px);
}
.pageBrandSealV40 img{
  width:30px;height:30px;border-radius:9px;
}
:root[data-theme="dark"] .pageBrandSealV40{
  background:rgba(17,27,49,.92);
  border-color:#344463;
  color:#f7f9ff;
}
@media(max-width:560px){
  .pageBrandSealV40{left:10px;top:10px}
}
