:root{
    --cols: 6;
    --gap: 8px;
    --unit: 90px;
    --space: clamp(16px, 3vw, 28px);
    --radius: 18px;
    --shadow: 0 10px 30px rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.12);
    --text: #fff;
}

/* GRID DEL EQUIPO */
#team-slider{
    display: grid !important;
    grid-template-columns: repeat(var(--cols), minmax(0,1fr));
    grid-auto-rows: var(--row-height, 130px);
    gap: var(--gap);
    grid-auto-flow: dense;
    
}
#team-slider .item{ width:100%; height:100%; }
#team-slider .card-members{
    height:100%;
    border-radius:12px;
    overflow:hidden;
    background: var(--bg, #1e88e5);
    color:#fff;
}
.wrap{
  padding: 2.5rem;
}
.card-members{ cursor: pointer; }
/* .card-members:hover .hero{
    transform: scale(1.1);
} */
.card-members:hover:not(.active){
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 14px 28px rgba(0,0,0,.25), 0 8px 10px rgba(0,0,0,.22);
  z-index: 2;
}
.card-members .hero{
    width:100%;
    height:auto;
    object-fit:cover;
    transition: transform .25s ease, box-shadow .25s ease;
}
/* .card-members .mini{ padding:12px; } */
.board{
    display:grid;
    grid-template-columns: repeat(var(--cols), 1fr);
    grid-auto-rows: var(--unit);
    gap: var(--gap);
    grid-auto-flow: dense;
    width: min(100%, 680px);
    background: rgba(255,255,255,.05);
    padding: var(--gap);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35) inset, 0 8px 30px rgba(0,0,0,.3);
}
.tile{
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    color:white;
    border-radius: 8px;
    user-select:none;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
    transition: transform .15s ease;
}
.tile:hover{ transform: translateY(-2px); }
#team-slider .card-members .mini .tag-col span:first-child{ 
  font-size: 0.8rem;
  line-height: 1.1;
}
#team-slider .card-members .mini .tag-col span:last-child{ font-size: 9px; }
/* VISTA EXPANDIDA */
.card-members .expanded{
    cursor: auto;
    position:fixed; 
    border-radius: 20px;
    width: 95%;
    height: 80%;
    inset: auto 2% 8% auto;
    display:grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(24px,4vw,40px);
    padding: clamp(18px,3vw,28px) clamp(18px,4vw,56px);
    background:
      radial-gradient(1200px 600px at 20% 40%, rgba(255,255,255,.06), transparent 60%),
      linear-gradient(90deg, rgba(0,0,0,.5), rgba(0,0,0,.35)),
      var(--bg);
    transform: none;                /* fijo */
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
    z-index: 50;
}
.card-members.active .expanded {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    overflow: hidden;
}
body.noscroll{ overflow:hidden }
body:has(.card-members.active)::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(6px);
  z-index: 40;
  pointer-events: none;
}
.expanded .col{
    position:relative;
    display:flex; flex-direction:column; justify-content:center;
}
.expanded h1{
    margin:0 0 8px 0;
    font-size: clamp(28px, 4.0vw, 60px);
    line-height: .95;
    letter-spacing:.02em;
    text-transform: uppercase;
    color: #F3F6F4;
}
.expanded h2{
    margin:0 0 16px 0;
    font-size: 27px;
    font-weight:600;
    opacity:.9;
    color: #E6EFEA;
}
.expanded p{
    margin:0 0 20px 0;
    max-width: 56ch;
    line-height:1.55;
    color: #D6E2DD;
}
.cta{
    display:inline-block;
    border:0;
    padding:12px 16px;
    background:#fff;
    color:#111;
    font-weight:700;
    border-radius:10px;
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
    cursor:pointer;
}

/* REPRODUCTOR DECORATIVO */
.player{
    margin-top:18px;
    display:flex; align-items:center; gap:12px;
    padding:12px 14px;
    border:1px solid rgba(255,255,255,.18); border-radius:12px;
    width:max-content;
    backdrop-filter: blur(2px);
}
.dot{width:12px;height:12px;background:#fff;border-radius:50%}
.bars{display:flex;gap:3px}
.bars i{display:block;width:3px;height:14px;background:#fff;animation: eq 1.4s infinite ease-in-out}
.bars i:nth-child(2){animation-delay:.15s}
.bars i:nth-child(3){animation-delay:.3s}
@keyframes eq{
    0%,100%{transform:scaleY(.3)}
    50%{transform:scaleY(1)}
}

/* IMÁGENES DE LA VISTA EXPANDIDA */
.expanded .hero-big{
    position: absolute;
    right: 6%; bottom: -29px;
    width: min(374px, 60vw);
    filter: drop-shadow(0 40px 40px rgba(0, 0, 0, .45));
    pointer-events: none;
    z-index: 11;
    transition: transform .2s ease;
}
.expanded .hero-big:hover{
  transform: scale(1.5);
}
.expanded .artist{
    position:absolute; inset:auto auto 0 -6%;
    width:min(42vw, 520px);
    opacity:.32;
    mix-blend-mode: screen;
    pointer-events:none;
    user-select:none;
}

/* CERRAR LA VISTA EXPANDIDA */
.close{
    position: absolute; 
    top: 14px;
    right: 14px;
    z-index: 99;
    width:42px; height:42px; 
    border-radius:10px; border:1px solid rgba(255,255,255,.2);
    background:rgba(0,0,0,.25);
    color:#fff; font-size:24px; line-height:0;
    display:grid; place-items:center;
    cursor:pointer; 
    transform: translateY(-8px);
    opacity:0; transition: .2s ease;
}
.card-members.active .close{ opacity:1; transform:none }

.description-title{
    font-size: 18px;
    font-weight: 600;
    color: #F4C95D;
}

/* ESCONDER EL HEADER CUANDO LA CARD ESTE ABIERTA */
body.noscroll .navbar-header { display: none !important; }

/* ICONOS DE REDES SOCIALES */
.social{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
}
.icon { 
    width:24px; height:24px; 
    fill: currentColor; 
    display:block; 
}
.social a[aria-label="Twitter"] { color:#1D9BF0; }
.social a[aria-label="Instagram"] { color:#E1306C; }
.social a { 
    text-decoration:none; 
    transition: transform .15s ease; 
}
.social a:hover { transform: scale(1.4); }

/* BOTONES SIGUIENTE ANTERIOR */
.actionButton{
    /* position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99; */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    width: 42px; height: 42px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #fff; font-size: 56px; line-height: 0;
    display: grid; place-items: center;
    cursor: pointer;
}
/* .actionButton.prev{ left: 25px; }
.actionButton.next{ right: 20px; } */
.actionButton.prev{ left: 0; }
.actionButton.next{ right: 0; }

/* AJUSTES A IMAGEN DEPENDIENDO DEL ANCHO Y ALTO */
#team-slider .item.w2h2 .card-members .hero {
  position: absolute;
  bottom: -150px;
}
#team-slider .item.w2h1 .card-members:not(.hero-big) .hero {
  position: absolute;
  bottom: 45px;
  left: 0;
  transform: translate(50%, 54%);
  width: 50% !important;
}
#team-slider .item.w1h2 .card-members .hero {
  position: absolute;
  height: 90% !important;
  bottom: -10px;
}
#team-slider .item.w1h1 .card-members .hero {
  position: absolute;
  bottom: -105px;
}

/* #team-slider .item.w2h2 .card-members .hero { bottom: -110px; }
#team-slider .item.w1h1 .card-members .hero { bottom: -80px; }
#team-slider .item.w2h1 .card-members:not(.hero-big) .hero { bottom: 10px; }
#team-slider .item.w1h2 .card-members .hero { height: 85% !important; } */

@media (max-width: 810px) {
  #team-slider .item.w1h1 .card-members .hero { 
    bottom: 22px !important;
  }
}
@media (max-width: 860px){
    .card-members .expanded{
      grid-template-columns: 1fr;
      padding-bottom: 100px;
    }
    .expanded .hero-big{ 
      position: fixed;
      inset: auto 10% -17% auto;
      width: auto;
    }
    .expanded .artist{ display:none }
}
@media (min-width: 1024px) {
  #team-slider .item.w2h2 .card-members .hero {
    bottom: -177px !important;
  }
  #team-slider .item.w1h1 .card-members .hero {
    bottom: -121px !important;
  }
  #team-slider .item.w2h1 .card-members .hero {
    bottom: 22px !important;
  }
}
@media (min-width: 1024px) and (max-width: 1279px){
  :root{ --cols: 6; }
  #team-slider{ --row-height: 130px; }
}
@media (min-width: 1280px){
  :root{ --cols: 7; }
  #team-slider{ --row-height: 120px; }
}