/* TOP SAFETY — EQUIPO V21: 5 COLUMNAS, EXPANSIÓN LATERAL EN HOVER.
   Solo modifica #equipo.ts-team-v21; no afecta los otros efectos del sitio. */
#equipo.ts-team-v21 {
  background: #121316;
  color: #fff;
  padding: 110px 0 116px;
}
#equipo.ts-team-v21 .team-intro { margin-bottom: 38px; }
#equipo.ts-team-v21 .team-intro p { max-width: 690px; }
#equipo.ts-team-v21 .ts21-gallery {
  display: flex !important;
  flex-wrap: nowrap !important;
  grid-template-columns: none !important;
  align-items: stretch;
  gap: 9px;
  height: clamp(410px, 39vw, 520px);
  min-height: 0 !important;
  overflow: visible;
  isolation: isolate;
}
#equipo.ts-team-v21 .ts21-card,
#equipo.ts-team-v21 .ts21-card:nth-child(4),
#equipo.ts-team-v21 .ts21-card:nth-child(5) {
  display: block;
  position: relative;
  box-sizing: border-box;
  flex: 1 1 0% !important;
  width: 0 !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none;
  grid-column: auto !important;
  justify-self: auto !important;
  overflow: hidden;
  border-radius: 3px;
  outline-offset: -3px;
  background: #23242a;
  cursor: default;
  border: 1px solid rgba(255,255,255,.06);
  opacity: 1;
  transition: flex-grow .85s cubic-bezier(.18,.78,.22,1),
              box-shadow .55s ease, border-color .55s ease,
              opacity .7s ease, transform .7s cubic-bezier(.18,.78,.22,1);
}
#equipo.ts-team-v21 .ts21-card:focus-visible {
  outline: 2px solid #fc3444;
  border-color: rgba(255,60,77,.55);
}
#equipo.ts-team-v21 .ts21-card img {
  width: 100%; height: 100%; max-width:none;
  position: absolute; inset:0;
  object-fit:cover;
  object-position: var(--ts21-image-position,50% 28%);
  filter: brightness(.81) saturate(.86);
  transform: scale(1.01);
  transition: transform 1s cubic-bezier(.18,.78,.22,1), filter .8s ease;
}
#equipo.ts-team-v21 .ts21-card::after {
  content:"";
  position:absolute; inset:0; z-index:0;
  background:linear-gradient(180deg, transparent 25%, rgba(7,8,12,.08) 50%, rgba(5,6,10,.97) 100%);
  pointer-events:none;
}
#equipo.ts-team-v21 .ts21-content {
  position:absolute;z-index:2;
  left:15px;right:12px;bottom:20px;
  padding:0;margin:0;transform:none !important;
  transition:left .6s ease,bottom .6s ease;
}
#equipo.ts-team-v21 .ts21-index {
  color:#f4d2d3;
  letter-spacing:1.1px;
  font-size:9px;
  font-weight:750;
  line-height:1.3;
  white-space:nowrap;
  display:block;
  margin-bottom:10px;
}
#equipo.ts-team-v21 .ts21-content h3 {
  display:block;
  font-size:clamp(15px,1.25vw,21px);
  font-weight:800;
  line-height:1.16;
  letter-spacing:-.35px;
  text-transform:uppercase;
  color:white;
  margin:0 0 8px;
  overflow-wrap:normal;
  text-wrap:balance;
  max-width:100%;
  text-shadow:0 2px 15px #0009;
}
#equipo.ts-team-v21 .ts21-content h3::before {
  content:"";display:block;height:3px;width:24px;background:#f10c21;
  margin:0 0 12px;transition:width .55s ease;
}
#equipo.ts-team-v21 .ts21-content p,
#equipo.ts-team-v21 .ts21-card:hover .ts21-content p,
#equipo.ts-team-v21 .ts21-card:focus-visible .ts21-content p {
  display:block;
  max-height:none;
  opacity:1;
  visibility:visible;
  overflow:visible;
  font-size:clamp(11px,.95vw,13px);
  color:#e6e3e5;
  font-weight:450;
  letter-spacing:.05px;
  line-height:1.4;
  margin:0;
  transform:none;
  text-shadow:0 1px 10px #000b;
}
#equipo.ts-team-v21 .ts21-swipe-hint {display:none;}
#equipo.ts-team-v21 .ts21-gallery .ts21-card:hover,
#equipo.ts-team-v21 .ts21-gallery .ts21-card:focus-visible {
  flex-grow: 2.1 !important;
  border-color:rgba(236,24,44,.45);
  box-shadow:0 18px 46px #0008;
  z-index:2;
}
@media (hover:hover) and (pointer:fine) {
  #equipo.ts-team-v21 .ts21-gallery:hover .ts21-card:not(:hover):not(:focus-visible) img {
    filter:brightness(.60) saturate(.72);
  }
  #equipo.ts-team-v21 .ts21-gallery .ts21-card:hover img {
    transform:scale(1.055);
    filter:brightness(1) saturate(.98);
  }
  #equipo.ts-team-v21 .ts21-gallery .ts21-card:hover .ts21-content h3::before {width:52px;}
}
#equipo.ts-team-v21 .ts21-card:focus-visible img {filter:brightness(1) saturate(.98);transform:scale(1.055)}
#equipo.ts-team-v21 .ts21-note {margin-top:30px}
/* Entradas discretas; si el navegador desactiva JS las imágenes siguen visibles. */
#equipo.ts-team-v21.ts21-motion-ready .ts21-card:not(.ts21-is-visible) {
  opacity: .12;
  transform:translateY(18px);
}
#equipo.ts-team-v21.ts21-motion-ready .ts21-card.ts21-is-visible {
  opacity:1;
  transform:translateY(0);
  transition-delay:calc(var(--ts21-order,0)*60ms);
}
/* En tablet y móvil, carrusel desplazable con tarjetas legibles */
@media (max-width: 1020px) {
  #equipo.ts-team-v21 {padding:80px 0 82px;overflow:hidden;}
  #equipo.ts-team-v21 .ts21-gallery {
    height:460px;
    overflow-x:auto;overflow-y:hidden;
    scroll-snap-type:x mandatory;
    scroll-padding-inline:4px;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
    scrollbar-color:#a7192b transparent;
    padding-bottom:7px;
  }
  #equipo.ts-team-v21 .ts21-card,
  #equipo.ts-team-v21 .ts21-card:nth-child(4),
  #equipo.ts-team-v21 .ts21-card:nth-child(5),
  #equipo.ts-team-v21 .ts21-gallery .ts21-card:hover,
  #equipo.ts-team-v21 .ts21-gallery .ts21-card:focus-visible {
    flex:0 0 min(42vw,300px) !important;
    width:min(42vw,300px) !important;
    height:100% !important;
    scroll-snap-align:start;
    transform:none !important;
  }
  #equipo.ts-team-v21 .ts21-gallery .ts21-card img,
  #equipo.ts-team-v21 .ts21-gallery .ts21-card:hover img {
    transform:scale(1.01);
    filter:brightness(.87) saturate(.91);
  }
  #equipo.ts-team-v21 .ts21-content h3 {font-size:18px;}
  #equipo.ts-team-v21 .ts21-content p {font-size:12px;}
  #equipo.ts-team-v21 .ts21-swipe-hint {
    display:flex;justify-content:flex-end;align-items:center;gap:8px;
    margin:12px 0 0;color:#e9c0c4;font-size:10px;font-weight:700;
    letter-spacing:1.3px;
  }
  #equipo.ts-team-v21 .ts21-hint-arrow{font-size:22px;font-weight:400;color:#fc3445;line-height:1;}
}
@media (max-width: 620px) {
  #equipo.ts-team-v21 {padding:67px 0 72px;}
  #equipo.ts-team-v21 .team-intro {margin-bottom:27px;}
  #equipo.ts-team-v21 .team-intro h2 {font-size:clamp(30px,8vw,40px);}
  #equipo.ts-team-v21 .ts21-gallery {height:430px;gap:10px;}
  #equipo.ts-team-v21 .ts21-card,
  #equipo.ts-team-v21 .ts21-card:nth-child(4),
  #equipo.ts-team-v21 .ts21-card:nth-child(5),
  #equipo.ts-team-v21 .ts21-gallery .ts21-card:hover,
  #equipo.ts-team-v21 .ts21-gallery .ts21-card:focus-visible {
    flex-basis: 78vw !important;
    width:78vw !important;
    max-width:360px;
  }
  #equipo.ts-team-v21 .ts21-content {left:21px;right:20px;bottom:25px;}
  #equipo.ts-team-v21 .ts21-content h3 {font-size:23px;}
  #equipo.ts-team-v21 .ts21-content p {font-size:14px;}
  #equipo.ts-team-v21 .ts21-index {font-size:10px;}
  #equipo.ts-team-v21 .ts21-card img {filter:brightness(.9)}
  #equipo.ts-team-v21 .team-note{font-size:12px;line-height:1.5;}
}
@media (prefers-reduced-motion:reduce) {
  #equipo.ts-team-v21 *,#equipo.ts-team-v21 *::before,#equipo.ts-team-v21 *::after {
    animation-duration:.01ms !important;transition-duration:.01ms !important;
  }
  #equipo.ts-team-v21.ts21-motion-ready .ts21-card {opacity:1 !important;transform:none !important;}
}

/* TOP SAFETY - EQUIPO BLANCO Y NEGRO A COLOR */

/* Efecto para computadoras con cursor */
@media (hover: hover) and (pointer: fine) {

  /* Todas las fotos comienzan en blanco y negro */
  #equipo.ts-team-v21 .ts21-card img {
    filter: grayscale(100%) brightness(.85);
    transition:
      filter .8s ease,
      transform 1s cubic-bezier(.18,.78,.22,1);
  }

  /* Las fotos no seleccionadas siguen en gris */
  #equipo.ts-team-v21 .ts21-gallery:hover
  .ts21-card:not(:hover):not(:focus-visible) img {
    filter: grayscale(100%) brightness(.60);
  }

  /* La foto seleccionada recupera su color */
  #equipo.ts-team-v21 .ts21-gallery
  .ts21-card:hover img,
  #equipo.ts-team-v21 .ts21-card:focus-visible img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.055);
  }
}