.coaches-page {
  background: var(--bg);
}

.mp-coaches-hero {
  position: relative;
  overflow: hidden;
  padding: 0 0 4rem;
}

.mp-coaches-hero .fondo-scroll {
  height: 100%;
  min-height: 630px;
}

.mp-coaches-hero__content {
  position: relative;
  z-index: 2;
  padding: 3rem 0 2rem;
}

.mp-coaches-title {
  font-size: clamp(2.6rem, 6vw, 3rem);
  font-weight: 300;
  margin: 0 0 0.4rem;
  color: #fff;
  text-align: center;
}

.mp-coaches-subtitle {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 300;
  color: var(--amarillo);
  margin: 0 0 2.7rem;
  text-align: center;
}

.mp-coaches-panel {
  position: relative;
  z-index: 1;
  background: rgba(8, 10, 14, 0.72);
  color: #fff;
  border-radius: 26px;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mp-coaches-panel__titles {
  text-align: center;
}

.mp-coaches-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 2rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(12, 15, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.mp-coaches-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(15, 18, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  width: min(240px, 100%);
  margin-left: auto;
}

.mp-coaches-search input {
  border: none;
  background: transparent;
  color: #fff;
  width: 100%;
  font-size: 0.95rem;
  outline: none;
}

.mp-coaches-search input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.mp-coaches-search__btn {
  border: none;
  background: transparent;
  color: var(--amarillo);
  font-size: 1rem;
  padding: 0.2rem 0.4rem;
  cursor: pointer;
}

.mp-coaches-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  flex: 1 1 auto;
}

.mp-coaches-filter {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.mp-coaches-filter:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.mp-coaches-filter.is-active {
  background: var(--amarillo);
  color: #0c0f14;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(254, 236, 2, 0.2);
}

.mp-coaches-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
}

.mp-coach-card {
  background: rgba(18, 23, 33, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
  will-change: transform, opacity;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mp-coach-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.mp-coach-card__link:hover {
  color: inherit;
}

.mp-coach-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  border-color: var(--amarillo);
}

.mp-coach-card.is-hidden {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
}

.mp-coach-card__media {
  position: relative;
  flex: 1;
  min-height: 480px;
  overflow: hidden;
  padding-top: 18px;
  box-sizing: border-box;
}

.mp-coach-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 20, 36, 0.05) 0%, rgba(11, 20, 36, 0.25) 55%, rgba(11, 20, 36, 0.92) 100%);
  z-index: 1;
}

.mp-coach-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.mp-coach-card__overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 2;
  text-align: center;
  align-items: center;
}

.mp-coach-card__name {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  color: #FFF;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  margin-bottom: .6rem;
}

.mp-coach-card__meta {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.modalidad {
  background-color: var(--amarillo);
  padding: 0.1em .8em;
  border-radius: 1000px;
  color: #000;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.mp-coaches-empty {
  margin-top: 2.5rem;
  padding: 2rem;
  text-align: center;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  background: rgba(15, 18, 28, 0.6);
}

@media (max-width: 1199.98px) {
  .mp-coaches-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .mp-coaches-toolbar {
    border-radius: 23px;
  }

  .mp-coaches-search {
    margin-left: 0;
  }

  .mp-coaches-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .mp-coaches-toolbar {
    justify-content: center;
    align-items: stretch;
  }

  .mp-coaches-filters {
    width: 100%;
    justify-content: center;
  }

  .mp-coaches-search {
    width: 100%;
    max-width: 320px;
    margin-left: 0;
    align-self: center;
  }
}

@media (max-width: 575.98px) {
  .mp-coaches-hero__content {
    padding: 2.4rem 0 1.8rem;
    padding-top: 0;
  }

  .mp-coaches-panel {
    border-radius: 0;
  }

  .mp-coaches-search {
    padding: 0.5rem 0.75rem;
  }

  .mp-coaches-grid {
    grid-template-columns: 1fr;
  }

  .mp-coach-card__media {
    min-height: 390px;
  }
}
