#equipo {
  background-size: cover;
  color: var(--blanco);
  overflow: hidden;
  --equipo-deco-gap: 24px;
}

#equipo {
  height: 80vh;
  overflow: hidden;
  position: relative;
  background: black;
}

#equipo .oscurecer {
  flex-wrap: nowrap;
}

#equipo .equipo-row {
  width: 100%;
  display: flex;
}

#equipo .equipo-row--top {
  justify-content: flex-start;
  margin-bottom: var(--equipo-deco-gap);
  align-items: center;
  position: relative;
}

#equipo .equipo-row--title {
  justify-content: center;
  margin-bottom: clamp(16px, 4vh, 44px);
}

#equipo .equipo-row--title b {
  font-weight: 400;
}

#equipo .equipo-row--top b {
  font-weight: 400;
}

#equipo .equipo-row--carousel {
  justify-content: center;
}

#equipo .equipo-row--bottom {
  justify-content: flex-end;
  margin-top: var(--equipo-deco-gap);
  margin-bottom: 0;
  padding-bottom: 0;
}

#equipo .equipo-row--top,
#equipo .equipo-row--bottom {
  padding: 0;
}

#equipo .equipo-row--top .titular-positivo {
  margin: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

#equipo .equipo-deco {
  position: static;
  width: clamp(44px, 5.67vw, 90px);
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  transform: none !important;
  z-index: auto !important;
  pointer-events: none;
}

#equipo .equipo-deco img {
  width: 100%;
  height: 100%;
  display: block;
  max-width: 100%;
  object-fit: cover;
}

#equipo .equipo-deco--left img {
  margin-right: auto;
}

#equipo .equipo-deco--right img {
  margin-left: auto;
}

#equipo .equipo-row--top .equipo-deco--left {
  position: static !important;
  margin: 0 !important;
}

/* MARQUEE */
#equipo .eq-marquee {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  padding: 24px 0;
  user-select: none;
  touch-action: pan-y;
}

#equipo .eq-track {
  display: flex;
  gap: 22px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* CARD */
#equipo .eq-card {
  flex: 0 0 auto;
  width: 153px;
  max-width: 153px;
  aspect-ratio: 3/4;
  position: relative !important;
  overflow: hidden !important;
  background: #000;
  border-radius: 0;
  outline: none;
}

/* fallback si algo pisa aspect-ratio */
#equipo .eq-card {
  height: 204px;
}

@supports (aspect-ratio: 3 / 4) {
  #equipo .eq-card {
    height: auto;
    aspect-ratio: 3/4;
  }
}

/* esquinas random */
#equipo .eq-card.corner-tl {
  border-top-left-radius: 44px;
}

#equipo .eq-card.corner-tr {
  border-top-right-radius: 44px;
}

#equipo .eq-card.corner-br {
  border-bottom-right-radius: 44px;
}

#equipo .eq-card.corner-bl {
  border-bottom-left-radius: 44px;
}

/* Imagen + overlay = misma caja */
#equipo .eq-card > .eq-img,
#equipo .eq-card > .fondotext {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

#equipo .eq-img {
  z-index: 1 !important;
  display: block;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

#equipo .fondotext {
  z-index: 5 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffeb3bb0;
  backdrop-filter: blur(5px);
  opacity: 0; /* SIEMPRE oculto por defecto */
  transition: opacity .2s ease;
  pointer-events: none;
}

#equipo .p-name {
  margin: 0;
  padding: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9em;
  color: #000;
}

/* Desktop: hover */
@media (hover:hover) {
  #equipo .eq-card:hover .fondotext {
    opacity: 1;
  }
}

/* Móvil: solo con tap (clase is-active) */
@media (hover:none) {
  #equipo .eq-card.is-active .fondotext {
    opacity: 1;
  }
}

@media (max-width: 690px) {
  #equipo {
    height: 600px !important;
  }

  #equipo .equipo-deco {
    width: clamp(52px, 15.84vw, 96px) !important;
    flex: 0 0 auto;
  }
}

@media (min-width: 1200px) {
  #equipo .eq-card {
    width: 220px;
  }
}

@media (min-width: 1600px) {
  #equipo .eq-card {
    width: 260px;
  }
}
