/* MW TEAM VISUAL V1 */

/* Hero */
body.mw-team-visual .hero-reserva.academy-hero {
  margin-top: 0 !important;
  min-height: 440px;
  padding: 90px 0 75px !important;
  display: flex;
  align-items: center;
  background:
    linear-gradient(
      90deg,
      rgba(7,23,42,.94) 0%,
      rgba(7,23,42,.78) 34%,
      rgba(7,23,42,.22) 76%,
      rgba(7,23,42,.12) 100%
    ),
    url('/img/team-visual/team-hero.webp')
    center / cover no-repeat !important;
}

body.mw-team-visual .academy-hero > .container,
body.mw-team-visual .academy-hero .academy-hero-content {
  text-align: left !important;
}

body.mw-team-visual .academy-hero .academy-hero-content {
  width: min(100%, 680px);
  margin-left: 0;
  margin-right: auto;
}

body.mw-team-visual .academy-hero h1 {
  width: 100%;
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(2rem,3.5vw,3.25rem);
  font-weight: 800;
  line-height: 1.16;
  text-shadow: 0 2px 12px rgba(0,0,0,.28);
}

body.mw-team-visual .academy-hero .academy-hero-copy {
  width: min(100%,610px);
  margin: 0 0 28px !important;
  color: #f1f5f9;
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0,0,0,.32);
}

body.mw-team-visual .academy-hero .cta-button {
  border-radius: 11px;
}

/* Categorías */
.mw-team-types {
  padding: 60px 0;
  background: #f8fafc;
}

.mw-team-types-heading {
  max-width: 780px;
  margin: 0 auto 30px;
  text-align: center;
}

.mw-team-types-heading span {
  color: #527092;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.mw-team-types-heading h2 {
  margin: 12px 0;
  color: #17263c;
  font-size: clamp(25px,3vw,39px);
  font-weight: 800;
}

.mw-team-types-heading p {
  color: #64748b;
  line-height: 1.6;
}

.mw-team-types-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 18px;
}

.mw-team-types-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(15,23,42,.05);
}

.mw-team-types-card img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.mw-team-types-card > div {
  padding: 20px;
}

.mw-team-types-card h3 {
  margin-bottom: 10px;
  color: #17263c;
  font-size: 17px;
  font-weight: 750;
}

.mw-team-types-card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

/* CTA fotográfico */
.mw-team-types-bottom {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  column-gap: 28px;
  row-gap: 8px;
  margin-top: 28px;
  padding: 30px 32px;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(8,24,43,.96),
      rgba(8,24,43,.80) 42%,
      rgba(8,24,43,.28) 100%
    ),
    url('/img/team-visual/team-cta.webp')
    center / cover no-repeat;
}

.mw-team-types-bottom h3 {
  grid-column: 1;
  margin: 0;
  color: #fff;
  font-size: clamp(19px,2vw,25px);
  font-weight: 800;
}

.mw-team-types-bottom p {
  grid-column: 1;
  margin: 0;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.55;
}

.mw-team-types-cta {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 10px;
  background: rgba(8,24,43,.6);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 700;
}

.mw-team-types-cta:hover {
  background: #087da8;
  color: #fff;
}

.mw-team-types-cta:focus-visible {
  outline: 3px solid #facc15;
  outline-offset: 3px;
}

@media (max-width:991.98px) {
  .mw-team-types-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width:767.98px) {
  body.mw-team-visual .hero-reserva.academy-hero {
    min-height: 450px;
    padding: 70px 0 60px !important;
    background-position: center, 62% center !important;
  }

  .mw-team-types-bottom {
    grid-template-columns: 1fr;
    padding: 25px 20px;
    gap: 12px;
  }

  .mw-team-types-bottom h3,
  .mw-team-types-bottom p,
  .mw-team-types-cta {
    grid-column: 1;
    grid-row: auto;
  }

  .mw-team-types-cta {
    justify-self: stretch;
    margin-top: 8px;
  }
}

@media (max-width:575.98px) {
  .mw-team-types {
    padding: 42px 0;
  }

  .mw-team-types-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.mw-team-visual .academy-hero h1 {
    font-size: clamp(1.8rem,8vw,2.45rem);
  }
}
