/* =========================================================
   CONTEXT HERO DESKTOP BASE
   Hero compartido para single y archive
========================================================= */

@media (min-width: 801px){
  .bm-context-hero{
    display: block;
    width: 100%;
    margin: 10px 0 14px;
    box-sizing: border-box;
  }

  .bm-context-hero__panel{
    position: relative;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
  }

  .bm-context-hero__panel::before{
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: min(54%, 46rem);
    z-index: 0;
    background: var(--bm-context-hero-media, var(--bm-service-cover)) var(--bm-context-hero-media-position, center center) / var(--bm-context-hero-media-size, cover) no-repeat;
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 68%, rgba(0,0,0,.88) 82%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 68%, rgba(0,0,0,.88) 82%, rgba(0,0,0,0) 100%);
    pointer-events: none;
  }

  .bm-context-hero__panel::after{
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      linear-gradient(90deg, rgba(7,23,53,.28) 0%, rgba(7,23,53,.18) 38%, rgba(7,23,53,.46) 68%, rgba(7,23,53,.82) 100%),
      radial-gradient(circle at 84% 16%, rgba(255,160,59,.16), transparent 24%),
      radial-gradient(circle at 78% 72%, rgba(255,123,19,.08), transparent 20%),
      radial-gradient(circle at 18% 84%, rgba(45,139,255,.12), transparent 22%);
    pointer-events: none;
  }

  .bm-context-hero__panel > *{
    position: relative;
    z-index: 2;
    min-width: 0;
  }

  .bm-context-hero__eyebrow,
  .bm-context-hero__meta,
  .bm-context-hero__actions-head{
    min-width: 0;
  }

  .bm-context-hero__title{
    margin: 0;
    color: #fff;
  }

  .bm-question-emphasis{
    color: #ff8f1f;
    font-weight: 900;
  }

  .bm-context-hero__breadcrumbs{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: rgba(255,255,255,.84);
    font-size: .8rem;
    overflow-wrap: anywhere;
  }

  .bm-context-hero__breadcrumbs a{
    color: rgba(255,255,255,.88);
    text-decoration: none;
  }

  .bm-context-hero__breadcrumbs strong{
    color: #fff;
  }

  .bm-context-hero__crumb-sep{
    color: rgba(255,165,74,.72);
  }

  .bm-context-hero__summary{
    margin: 0;
    color: rgba(236,244,255,.88);
  }

  .bm-context-hero__chip{
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .bm-context-hero__chip strong,
  .bm-context-hero__chip span,
  .bm-context-hero__chip small{
    display: block;
  }

  .bm-context-hero__action{
    box-sizing: border-box;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .bm-context-hero--archive .bm-archive-hero__panel{
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
    gap: 12px;
    padding: 12px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,.18);
    background:
      radial-gradient(circle at top right, rgba(255,211,109,.22), transparent 30%),
      linear-gradient(126deg, rgba(7,31,82,.95), rgba(18,74,176,.88) 55%, rgba(255,123,19,.76)),
      var(--bm-context-hero-media, var(--bm-service-cover)) var(--bm-context-hero-media-position, center center) / var(--bm-context-hero-media-size, cover) no-repeat;
    box-shadow: 0 24px 42px rgba(5,15,35,.28), inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .bm-context-hero--archive .bm-archive-hero__main{
    display: grid;
    gap: 14px;
    min-height: 100%;
    padding-right: 0;
  }

  .bm-context-hero--archive .bm-archive-hero__title-row{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .bm-context-hero--archive .bm-archive-hero__icon{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 88px;
  }

  .bm-context-hero--archive .bm-archive-hero__icon img{
    display: block;
    width: min(124px, 100%);
    height: auto;
    filter:
      drop-shadow(0 16px 32px rgba(0,0,0,.22))
      drop-shadow(0 0 18px rgba(0,120,255,.65))
      drop-shadow(0 0 42px rgba(0,120,255,.45));
  }

  .bm-context-hero--archive .bm-archive-hero__copy{
    display: grid;
    gap: 10px;
  }

  .bm-context-hero--archive .bm-archive-hero__copy h1{
    margin: 0;
    color: #fff;
    font-size: clamp(1.46rem, 1.9vw, 2.08rem);
    line-height: 1.02;
    letter-spacing: -.03em;
  }

  .bm-context-hero--archive .bm-archive-hero__copy p{
    margin: 0;
    color: rgba(236,244,255,.88);
    font-size: .95rem;
    line-height: 1.35;
  }

  .bm-context-hero--archive .bm-archive-hero__stats{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .bm-context-hero--archive .bm-archive-hero__stats span{
    display: grid;
    gap: 2px;
    align-content: center;
    min-height: 44px;
    padding: 7px 10px;
    border-radius: 14px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05)),
      rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  }

  .bm-context-hero--archive .bm-archive-hero__stats strong{
    color: #fff;
    font-size: .86rem;
    line-height: 1.1;
  }

  .bm-context-hero--archive .bm-archive-hero__stats small{
    color: rgba(233,241,255,.76);
    font-size: .65rem;
    line-height: 1.18;
  }

  .bm-context-hero--archive .bm-consultas-hero__cta{
    display: grid;
    gap: 8px;
    align-self: stretch;
    padding: 10px 10px 10px;
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.05)),
      rgba(8,31,79,.22);
    border: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 18px 28px rgba(5,15,35,.18), inset 0 1px 0 rgba(255,255,255,.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .bm-context-hero--archive .bm-consultas-hero__actions{
    display: grid;
    gap: 8px;
  }

  .bm-context-hero--archive .bm-consultas-hero__button,
  .bm-context-hero--archive .bm-consultas-hero__link{
    width: 100%;
    max-width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 13px;
    font-size: .77rem;
    font-weight: 800;
  }

  .bm-context-hero--archive .bm-archive-hero__mascot{
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
  }

  .bm-context-hero--archive .bm-archive-hero__mascot img{
    width: min(170px, 100%);
    height: auto;
    filter: drop-shadow(0 18px 24px rgba(7,21,52,.28));
  }

  .bm-context-hero--compact .bm-archive-hero__panel{
    grid-template-columns: minmax(0, 1.08fr) minmax(250px, .76fr);
    gap: 10px;
    padding: 10px;
    border-radius: 24px;
  }

  .bm-context-hero--compact .bm-archive-hero__main{
    gap: 10px;
  }

  .bm-context-hero--compact .bm-archive-hero__title-row{
    gap: 8px;
  }

  .bm-context-hero--compact .bm-archive-hero__icon{
    min-height: 72px;
  }

  .bm-context-hero--compact .bm-archive-hero__icon img{
    width: min(112px, 100%);
  }

  .bm-context-hero--compact .bm-archive-hero__copy{
    gap: 8px;
  }

  .bm-context-hero--compact .bm-archive-hero__copy h1{
    font-size: clamp(1.24rem, 1.65vw, 1.9rem);
  }

  .bm-context-hero--compact .bm-archive-hero__copy p{
    font-size: .88rem;
    line-height: 1.3;
  }

  .bm-context-hero--compact .bm-archive-hero__stats{
    gap: 6px;
  }

  .bm-context-hero--compact .bm-archive-hero__stats span{
    min-height: 40px;
    padding: 6px 8px;
    border-radius: 12px;
  }

  .bm-context-hero--compact .bm-archive-hero__stats strong{
    font-size: .8rem;
  }

  .bm-context-hero--compact .bm-archive-hero__stats small{
    font-size: .62rem;
  }

  .bm-context-hero--compact .bm-archive-quick-filters{
    align-self: center;
    padding: 8px;
    border-radius: 14px;
  }

  .bm-context-hero--compact .bm-archive-quick-filters__grid{
    gap: 6px;
    margin-top: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bm-context-hero--compact .bm-archive-quick-filters__grid--compact{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bm-context-hero--compact .bm-archive-field select,
  .bm-context-hero--compact .bm-archive-order select,
  .bm-context-hero--compact .bm-archive-sidebar__field input{
    min-height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: .78rem;
  }

  .bm-context-hero--compact .bm-archive-quick-filters__submit{
    min-height: 34px;
    border-radius: 10px;
    font-size: .74rem;
  }

  .bm-context-hero--compact .bm-consultas-hero__cta{
    gap: 6px;
    padding: 8px;
    border-radius: 18px;
  }

  .bm-context-hero--compact .bm-consultas-hero__actions{
    gap: 6px;
  }

  .bm-context-hero--compact .bm-consultas-hero__button,
  .bm-context-hero--compact .bm-consultas-hero__link{
    min-height: 34px;
    padding: 7px 8px;
    border-radius: 11px;
    font-size: .74rem;
  }

  .bm-context-hero--compact .bm-context-hero__actions-title{
    font-size: .98rem;
  }

  .bm-context-hero--compact .bm-archive-hero__mascot{
    align-items: flex-end;
  }

  .bm-context-hero--compact .bm-archive-hero__mascot img{
    width: min(150px, 100%);
  }

  .bm-context-hero--compact.bm-context-hero--question .bm-question-hero__shell{
    grid-template-columns: clamp(150px, 13vw, 190px) minmax(0, 1fr) clamp(144px, 12vw, 172px);
    gap: 8px;
    padding: 8px 10px 7px;
    border-radius: 24px;
  }

  .bm-context-hero--compact.bm-context-hero--question .bm-question-hero__shell::before{
    width: min(52%, 42rem);
  }

  .bm-context-hero--compact.bm-context-hero--question .bm-question-hero__main{
    gap: 6px;
    padding: 2px 0 0 12px;
  }

  .bm-context-hero--compact.bm-context-hero--question .bm-question-hero__main::before{
    top: 8px;
    bottom: 10px;
    width: 2px;
  }

  .bm-context-hero--compact.bm-context-hero--question .bm-question-hero__toolbar{
    gap: 6px 8px;
  }

  .bm-context-hero--compact.bm-context-hero--question .bm-question-hero__headline{
    gap: 6px;
  }

  .bm-context-hero--compact.bm-context-hero--question .bm-question-hero__headline h1{
    font-size: clamp(1.46rem, 1.9vw, 1.98rem);
  }

  .bm-context-hero--compact.bm-context-hero--question .bm-question-hero__headline .bm-service-hero__summary{
    font-size: .88rem;
    line-height: 1.28;
  }

  .bm-context-hero--compact.bm-context-hero--question .bm-question-hero__meta{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .bm-context-hero--compact.bm-context-hero--question .bm-question-hero__meta .bm-service-chip{
    min-height: 36px;
    padding: 6px 8px;
    border-radius: 12px;
  }

  .bm-context-hero--compact.bm-context-hero--question .bm-question-hero__actions{
    width: clamp(146px, 11vw, 170px);
    padding: 8px;
    gap: 5px;
    border-radius: 18px;
  }

  .bm-context-hero--compact.bm-context-hero--question .bm-question-hero__actions-head{
    gap: 3px;
  }

  .bm-context-hero--compact.bm-context-hero--question .bm-question-hero__actions-head h2{
    font-size: .9rem;
  }

  .bm-context-hero--compact.bm-context-hero--question .bm-question-hero__actions-head p{
    font-size: .72rem;
    line-height: 1.22;
  }

  .bm-context-hero--compact.bm-context-hero--question .bm-question-hero__actions .bm-service-hero__action{
    min-height: 32px;
    padding: 7px 8px;
    font-size: .72rem;
  }

  .bm-context-hero--compact.bm-context-hero--question .bm-question-hero__mascot{
    width: clamp(242px, 18vw, 330px);
    bottom: clamp(-12px, -.6vw, -8px);
  }

  .bm-context-hero--archive .bm-archive-hero__panel{
    display: grid;
    grid-template-columns: minmax(156px, .34fr) minmax(0, 1.84fr) minmax(154px, .42fr);
    gap: 12px;
    align-items: stretch;
    padding: 10px;
    border-radius: 26px;
    background:
      radial-gradient(circle at 16% 18%, rgba(255,211,109,.18), transparent 26%),
      radial-gradient(circle at 86% 18%, rgba(255,160,59,.18), transparent 22%),
      linear-gradient(126deg, rgba(6,23,60,.96), rgba(9,37,88,.92) 54%, rgba(255,123,19,.72));
  }

  .bm-context-hero--archive .bm-archive-hero__main{
    display: contents;
    min-width: 0;
  }

  .bm-context-hero--archive .bm-archive-hero__stage{
    display: contents;
  }

  .bm-context-hero--archive .bm-archive-hero__left{
    display:grid;
    gap: 10px;
    min-width: 0;
    align-content: start;
  }

  .bm-context-hero--archive .bm-archive-hero__mascot-stage{
    position: relative;
    min-height: clamp(188px, 15vw, 224px);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    background:
      radial-gradient(circle at 18% 24%, rgba(255,255,255,.12), transparent 22%),
      radial-gradient(circle at 72% 78%, rgba(255,123,19,.1), transparent 24%),
      linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.02)),
      rgba(8,31,78,.34);
    box-shadow: 0 18px 34px rgba(5, 15, 35, .2), inset 0 1px 0 rgba(255,255,255,.09);
    isolation: isolate;
  }

  .bm-context-hero--archive .bm-archive-hero__mascot-stage::after{
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, rgba(6,23,60,.06) 0%, rgba(6,23,60,.02) 40%, rgba(6,23,60,.16) 100%),
      linear-gradient(180deg, rgba(255,255,255,.03), transparent 38%);
    pointer-events: none;
    z-index: 2;
  }

  .bm-context-hero--archive .bm-archive-hero__mascot{
    position: absolute;
    inset: 0 auto 0 0;
    display: block;
    width: auto;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: left bottom;
    transform: translateX(-10px);
    pointer-events: none;
    z-index: 3;
    filter: drop-shadow(0 18px 24px rgba(7,21,52,.3));
  }

  .bm-context-hero--archive .bm-archive-hero__icon{
    position: absolute;
    inset: 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    background:
      radial-gradient(circle at 18% 24%, rgba(255,255,255,.12), transparent 22%),
      radial-gradient(circle at 72% 78%, rgba(255,123,19,.1), transparent 24%),
      linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.02)),
      rgba(8,31,78,.34);
    box-shadow: 0 18px 34px rgba(5, 15, 35, .2), inset 0 1px 0 rgba(255,255,255,.09);
    isolation: isolate;
  }

  .bm-context-hero--archive .bm-archive-hero__icon::before{
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bm-context-hero-media, var(--bm-service-cover)) var(--bm-context-hero-media-position, left center) / var(--bm-context-hero-media-size, contain) no-repeat;
    filter:
      drop-shadow(0 18px 30px rgba(0,0,0,.2))
      drop-shadow(0 0 18px rgba(0,120,255,.5));
    transform: scale(1.03);
    transform-origin: left center;
    pointer-events: none;
    z-index: 1;
  }

  .bm-context-hero--archive .bm-archive-hero__icon::after{
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, rgba(6,23,60,.05) 0%, rgba(6,23,60,.02) 40%, rgba(6,23,60,.18) 100%),
      linear-gradient(180deg, rgba(255,255,255,.03), transparent 38%);
    pointer-events: none;
    z-index: 2;
  }

  .bm-context-hero--archive .bm-archive-hero__copy{
    position: relative;
    display:flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    min-height: 100%;
    padding: 8px 0 8px clamp(112px, 11vw, 164px);
    overflow: hidden;
  }

  .bm-context-hero--archive .bm-archive-hero__copy::before{
    content: "";
    position: absolute;
    inset: -10px auto -10px -6px;
    width: clamp(220px, 22vw, 340px);
    background: var(--bm-context-hero-media, var(--bm-service-cover)) var(--bm-context-hero-media-position, left center) / var(--bm-context-hero-media-size, contain) no-repeat;
    filter:
      drop-shadow(0 18px 30px rgba(0,0,0,.2))
      drop-shadow(0 0 18px rgba(0,120,255,.5));
    transform: scale(1.06);
    transform-origin: left center;
    pointer-events: none;
    z-index: 0;
    opacity: .92;
  }

  .bm-context-hero--archive .bm-archive-hero__copy > *{
    position: relative;
    z-index: 1;
  }

  .bm-context-hero--archive .bm-archive-hero__lead{
    display:grid;
    gap: 8px;
    align-content: start;
    min-width: 0;
  }

  .bm-context-hero--archive .bm-archive-hero__copy h1{
    margin: 0;
    color: #fff;
    font-size: clamp(1.48rem, 2.05vw, 2.16rem);
    line-height: 1.02;
    letter-spacing: -.03em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .bm-context-hero--archive .bm-archive-hero__copy p{
    margin: 0;
    color: rgba(236,244,255,.88);
    font-size: .95rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .bm-context-hero--archive .bm-archive-hero__stats{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: auto;
  }

  .bm-context-hero--archive .bm-archive-hero__stats span{
    display: grid;
    gap: 2px;
    align-content: center;
    min-height: 44px;
    padding: 7px 10px;
    border-radius: 14px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05)),
      rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  }

  .bm-context-hero--archive .bm-archive-hero__stats strong{
    color: #fff;
    font-size: .86rem;
    line-height: 1.1;
  }

  .bm-context-hero--archive .bm-archive-hero__stats small{
    color: rgba(233,241,255,.76);
    font-size: .65rem;
    line-height: 1.18;
  }

  .bm-context-hero--archive .bm-consultas-hero__cta{
    display: grid;
    gap: 8px;
    align-self: stretch;
    padding: 10px 10px 10px;
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.05)),
      rgba(8,31,79,.22);
    border: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 18px 28px rgba(5,15,35,.18), inset 0 1px 0 rgba(255,255,255,.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .bm-context-hero--archive .bm-consultas-hero__actions{
    display: grid;
    gap: 8px;
  }

  .bm-context-hero--archive .bm-consultas-hero__button,
  .bm-context-hero--archive .bm-consultas-hero__link{
    width: 100%;
    max-width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 13px;
    font-size: .77rem;
    font-weight: 800;
  }

  .bm-context-hero--compact .bm-archive-hero__panel{
    padding: 8px;
    border-radius: 24px;
  }

  .bm-context-hero--compact .bm-archive-hero__stage{
    display: contents;
  }

  .bm-context-hero--compact .bm-archive-hero__mascot-stage{
    min-height: clamp(172px, 14vw, 204px);
    border-radius: 22px;
  }

  .bm-context-hero--compact .bm-archive-hero__copy{
    gap: 8px;
    padding: 6px 0 6px clamp(96px, 9.5vw, 140px);
  }

  .bm-context-hero--compact .bm-archive-hero__copy h1{
    font-size: clamp(1.34rem, 1.76vw, 2rem);
  }

  .bm-context-hero--compact .bm-archive-hero__copy p{
    font-size: .88rem;
    line-height: 1.3;
  }

  .bm-context-hero--compact .bm-archive-hero__stats{
    gap: 6px;
  }

  .bm-context-hero--compact .bm-archive-hero__stats span{
    min-height: 40px;
    padding: 6px 8px;
    border-radius: 12px;
  }

  .bm-context-hero--compact .bm-archive-hero__stats strong{
    font-size: .8rem;
  }

  .bm-context-hero--compact .bm-archive-hero__stats small{
    font-size: .62rem;
  }

  .bm-context-hero--compact .bm-archive-hero__mascot{
    transform: translateX(-8px);
  }

  .bm-context-hero--compact .bm-archive-hero__copy::before{
    inset: -8px auto -8px -4px;
    width: clamp(190px, 20vw, 310px);
  }

  .bm-context-hero--compact .bm-consultas-hero__cta{
    gap: 6px;
    padding: 8px;
    border-radius: 18px;
  }

  .bm-context-hero--compact .bm-consultas-hero__actions{
    gap: 6px;
  }

  .bm-context-hero--compact .bm-consultas-hero__button,
  .bm-context-hero--compact .bm-consultas-hero__link{
    min-height: 34px;
    padding: 7px 8px;
    border-radius: 11px;
    font-size: .74rem;
  }
}
