/* BAC Inicio v1.3.0-J3 — Equipo filtrado por área. */

.bac-home-team{
  background:var(--paper);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.bac-home-team__header{max-width:54rem}

.bac-home-team__group-media{
  margin:0 0 clamp(2.25rem,5vw,4.5rem);
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--canvas);
  aspect-ratio:16/7;
}

.bac-home-team__group-image,
.bac-home-team__group-media>img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

.bac-home-media-placeholder{
  position:relative;
  display:grid;
  place-content:center;
  gap:.45rem;
  min-height:14rem;
  padding:1.5rem;
  color:var(--muted);
  background:
    linear-gradient(135deg,transparent 49.7%,color-mix(in srgb,var(--line) 70%,transparent) 50%,transparent 50.3%),
    color-mix(in srgb,var(--canvas) 86%,var(--paper));
  text-align:center;
}

.bac-home-media-placeholder::before{
  content:"";
  position:absolute;
  inset:1rem;
  border:1px solid color-mix(in srgb,var(--line) 82%,transparent);
  pointer-events:none;
}

.bac-home-media-placeholder span{
  position:relative;
  z-index:1;
  font-size:.67rem;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--accent);
}

.bac-home-media-placeholder strong{
  position:relative;
  z-index:1;
  max-width:34ch;
  font-family:var(--display);
  font-size:clamp(1.25rem,2vw,1.8rem);
  font-weight:400;
  line-height:1.15;
  color:var(--institutional);
}

.bac-home-team-filter{
  display:grid;
  gap:1rem;
  margin-bottom:clamp(2.4rem,5vw,4.5rem);
}

.bac-home-team-filter__label{
  margin:0;
  max-width:44rem;
  margin-inline:auto;
  font-size:clamp(.94rem,1.35vw,1.08rem);
  font-weight:700;
  letter-spacing:0;
  line-height:1.45;
  text-transform:none;
  text-align:center;
  color:var(--muted);
}

.bac-home-team-results[hidden],
.bac-home-team-panel__header[hidden],
.bac-home-professional[hidden],
.bac-home-team-actions[hidden]{display:none!important}

.bac-home-team-selector{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border-top:1px solid var(--ink);
  border-bottom:1px solid var(--ink);
}

.bac-home-team-selector__button{
  appearance:none;
  min-height:4.8rem;
  padding:1rem 1.1rem;
  border:0;
  border-right:1px solid var(--line);
  background:transparent;
  color:var(--ink);
  cursor:pointer;
  font-size:.92rem;
  font-weight:780;
  line-height:1.25;
  text-align:center;
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}

.bac-home-team-selector__button:last-child{border-right:0}

.bac-home-team-selector__button:hover,
.bac-home-team-selector__button:focus-visible{
  background:color-mix(in srgb,var(--canvas) 72%,var(--paper));
  color:var(--institutional);
}

.bac-home-team-selector__button[aria-pressed="true"]{
  background:var(--institutional);
  color:var(--paper);
  border-color:var(--institutional);
}

.bac-home-team-panels{
  min-height:0;
}

.bac-home-team-panel{
  padding-top:.25rem;
}

.bac-home-team-panel[hidden]{display:none!important}

.bac-home-team-panel__header{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:.2rem;
  margin-bottom:clamp(1.9rem,4vw,3.2rem);
}

.bac-home-team-panel__header .eyebrow{margin-bottom:.35rem}
.bac-home-team-panel__header h3{
  margin:0;
  font-size:clamp(2rem,3.4vw,3.45rem);
}

.bac-home-team-panel__profiles{
  display:grid;
  gap:clamp(1.6rem,3vw,2.5rem);
}

.bac-home-team-panel__profiles[data-profile-count="2"]{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.bac-home-professional{
  min-width:0;
  display:grid;
  grid-template-columns:minmax(14rem,.85fr) minmax(0,1.25fr);
  border-top:1px solid var(--ink);
  border-bottom:1px solid var(--line);
  background:var(--paper);
}

.bac-home-team-panel__profiles[data-profile-count="2"] .bac-home-professional{
  grid-template-columns:1fr;
}

.bac-home-professional__media{
  min-height:23rem;
  background:var(--canvas);
  border-right:1px solid var(--line);
  overflow:hidden;
}

.bac-home-team-panel__profiles[data-profile-count="2"] .bac-home-professional__media{
  min-height:25rem;
  border-right:0;
  border-bottom:1px solid var(--line);
}

.bac-home-professional__image,
.bac-home-professional__media>img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
}

.bac-home-professional__content{
  display:grid;
  align-content:start;
  gap:clamp(1.5rem,3vw,2.35rem);
  padding:clamp(1.6rem,3.8vw,3.25rem);
}

.bac-home-professional__header{
  display:grid;
  gap:.75rem;
  padding-bottom:1.35rem;
  border-bottom:1px solid var(--line);
}

.bac-home-professional__header h4{
  margin:0;
  font-family:var(--display);
  font-size:clamp(1.85rem,3vw,3rem);
  font-weight:400;
  line-height:1.02;
  letter-spacing:-.035em;
}

.bac-home-professional__role{
  margin:0;
  max-width:48ch;
  color:var(--accent);
  font-size:.83rem;
  font-weight:800;
  line-height:1.45;
}

.bac-home-professional__details{
  display:grid;
  gap:1rem;
}

.bac-home-professional__details p{margin:0;max-width:none}

.bac-home-professional__profession{
  color:var(--institutional);
  font-size:.8rem;
  font-weight:850;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.bac-home-professional__credentials,
.bac-home-professional__training{
  display:grid;
  gap:.5rem;
  margin:0;
  padding:0;
  list-style:none;
  color:var(--muted);
  font-size:.9rem;
  line-height:1.5;
}

.bac-home-professional__credentials li,
.bac-home-professional__training li{
  position:relative;
  padding-left:1rem;
}

.bac-home-professional__credentials li::before,
.bac-home-professional__training li::before{
  content:"";
  position:absolute;
  left:0;
  top:.67em;
  width:.35rem;
  height:1px;
  background:var(--accent);
}

.bac-home-professional__experience{
  padding-top:1rem;
  border-top:1px solid var(--line);
  color:var(--ink);
  font-size:.92rem;
  line-height:1.58;
}

.bac-home-team-actions{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:1rem;
  margin-top:clamp(2.3rem,5vw,4rem);
  padding-top:clamp(1.8rem,3vw,2.6rem);
  border-top:1px solid var(--ink);
}

.bac-home-team-action{
  appearance:none;
  min-height:3.5rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.8rem 1.1rem;
  border:1px solid var(--institutional);
  cursor:pointer;
  font-size:.84rem;
  font-weight:800;
  line-height:1.3;
  text-align:center;
  text-decoration:none;
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}

.bac-home-team-action--primary{
  background:var(--institutional);
  color:var(--paper);
}

.bac-home-team-action--primary:hover,
.bac-home-team-action--primary:focus-visible{
  background:var(--accent);
  border-color:var(--accent);
}

.bac-home-team-action--secondary{
  background:transparent;
  color:var(--institutional);
}

.bac-home-team-action--secondary:hover,
.bac-home-team-action--secondary:focus-visible{
  background:var(--institutional);
  color:var(--paper);
}

.bac-home-team-action--tertiary{
  grid-column:1/-1;
  justify-self:start;
  min-height:44px;
  padding:.4rem 0;
  border:0;
  border-bottom:1px solid currentColor;
  background:transparent;
  color:var(--accent);
}

.bac-home-team-action--tertiary:hover,
.bac-home-team-action--tertiary:focus-visible{color:var(--institutional)}

@media(max-width:1023px){
  .bac-home-team__group-media{aspect-ratio:4/3}
  .bac-home-team-selector{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bac-home-team-selector__button:nth-child(2){border-right:0}
  .bac-home-team-selector__button:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .bac-home-professional,
  .bac-home-team-panel__profiles[data-profile-count="2"] .bac-home-professional{
    grid-template-columns:minmax(12rem,.75fr) minmax(0,1.25fr);
  }
  .bac-home-professional__media,
  .bac-home-team-panel__profiles[data-profile-count="2"] .bac-home-professional__media{
    min-height:22rem;
    border-right:1px solid var(--line);
    border-bottom:0;
  }
  .bac-home-team-panel__profiles[data-profile-count="2"]{grid-template-columns:1fr}
}

@media(max-width:767px){
  .bac-home-team__group-media{
    margin-bottom:2rem;
    aspect-ratio:4/3;
  }
  .bac-home-team-filter{margin-bottom:2.35rem}
  .bac-home-team-selector__button{min-height:4.5rem;padding:.85rem .7rem;font-size:.86rem}
  .bac-home-team-panel__header{margin-bottom:1.7rem}
  .bac-home-professional,
  .bac-home-team-panel__profiles[data-profile-count="2"] .bac-home-professional{
    grid-template-columns:1fr;
  }
  .bac-home-professional__media,
  .bac-home-team-panel__profiles[data-profile-count="2"] .bac-home-professional__media{
    min-height:auto;
    aspect-ratio:4/5;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .bac-home-professional__content{padding:1.45rem 0 1.7rem}
  .bac-home-professional__header h4{font-size:2.15rem}
  .bac-home-team-actions{grid-template-columns:1fr;gap:.85rem}
  .bac-home-team-action{width:100%}
  .bac-home-team-action--tertiary{grid-column:auto;justify-self:stretch}
}

@media(max-width:430px){
  .bac-home-team-selector__button{font-size:.8rem}
  .bac-home-professional__role{font-size:.79rem}
}

@media(prefers-reduced-motion:reduce){
  .bac-home-team-selector__button,
  .bac-home-team-action{transition:none}
}

@media(forced-colors:active){
  .bac-home-team-selector,
  .bac-home-team-selector__button,
  .bac-home-professional,
  .bac-home-professional__media,
  .bac-home-team-actions,
  .bac-home-team-action{border-color:CanvasText}
  .bac-home-team-selector__button[aria-pressed="true"],
  .bac-home-team-action--primary{background:Highlight;color:HighlightText}
}
