/* =============================================
   EQUIPO PAGE
   ============================================= */

/* ---- active nav ---- */
.nav-link--active {
  color: #01579e !important;
  font-weight: 700 !important;
}

/* ---- HERO ---- */
.eq-hero {
  position: relative;
  min-height: clamp(320px, 45vw, 700px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.eq-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eq-hero__overlay {
  position: absolute;
  inset: 0;
  background-color: #1a1a1a;
  opacity: 0.55;
}

.eq-hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(40px, 6vw, 120px) clamp(20px, 8vw, 160px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  max-width: 1100px;
  width: 100%;
}

.eq-hero__label {
  font-family: "DM Sans", Helvetica;
  font-weight: 600;
  color: #f0eade;
  font-size: clamp(14px, 1.5vw, 24px);
  letter-spacing: 0.1em;
  margin: 0;
}

.eq-hero__title {
  font-family: var(--h-2-font-family);
  font-weight: var(--h-2-font-weight);
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.15;
  color: #fff;
  margin: 0;
}

.eq-hero__subtitle {
  font-family: "DM Serif Display", Helvetica;
  font-weight: 400;
  font-size: clamp(18px, 2.5vw, 32px);
  color: #f0eade;
  margin: 0;
}

/* ---- HISTORIA ---- */
.eq-historia__h2 {
  font-size: clamp(22px, 2.5vw, 34px) !important;
  line-height: 1.25 !important;
}

.eq-historia__inner {
  display: flex;
  gap: clamp(32px, 5vw, 80px);
  align-items: flex-start;
}

.eq-historia__text {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eq-historia__image {
  flex: 0 0 clamp(260px, 40%, 650px);
}

.eq-historia__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 32px;
}

.mt-16 {
  margin-top: 16px;
}

/* ---- ATENCIÓN INTEGRAL ---- */
.eq-atencion__inner {
  display: flex;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  justify-content: center;
  margin-top: 32px;
}

.eq-atencion__image {
  flex: 0 1 min(100%, 1100px);
  width: min(100%, 1100px);
  margin-inline: auto;
}

.eq-atencion__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 32px;
}

.eq-atencion-carousel {
  position: relative;
  overflow: hidden;
}

.eq-atencion-carousel__track {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
  border-radius: 32px;
  overflow: hidden;
}

.eq-atencion-carousel__slide {
  display: none;
  width: 100%;
  height: clamp(220px, 25vw, 360px);
  object-fit: cover;
  border-radius: 24px;
}

.eq-atencion-carousel__slide.is-active {
  display: block;
}

.eq-atencion-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(1, 87, 158, 0.86);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}

.eq-atencion-carousel__btn--prev {
  left: 14px;
}

.eq-atencion-carousel__btn--next {
  right: 14px;
}

.eq-atencion-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.eq-atencion-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

.eq-atencion-carousel__dot.is-active {
  background: #01579e;
}

/* ---- LO QUE NOS DEFINE ---- */
.eq-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid #ccc;
}

.eq-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 24px;
  border-bottom: 1px solid #ccc;
  border-right: 1px solid #ccc;
  text-align: center;
  font-family: var(--subtitulo-font-family);
  font-weight: var(--subtitulo-font-weight);
  font-size: clamp(15px, 1.4vw, 24px);
  line-height: 1.3;
  color: #000;
}

.eq-feature-item:last-child {
  border-right: none;
}

.eq-feature-icon {
  width: clamp(72px, 7vw, 112px);
  height: clamp(72px, 7vw, 112px);
  object-fit: contain;
}

.eq-cta-contact {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.eq-cta-contact__text {
  font-family: var(--h-2-font-family);
  font-weight: var(--h-2-font-weight);
  font-size: clamp(20px, 2.5vw, 40px);
  line-height: 1.25;
  color: #1e1e1e;
  max-width: 840px;
  margin: 0;
}

/* ---- VOLUNTARIADO ---- */
.eq-voluntariado__inner {
  display: flex;
  gap: clamp(32px, 5vw, 80px);
  align-items: flex-start;
}

.eq-voluntariado__text {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eq-voluntariado__image {
  flex: 0 0 clamp(240px, 38%, 620px);
}

.eq-voluntariado__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 32px;
}

/* ---- TRABAJA CON NOSOTROS ---- */
.eq-trabaja {
  position: relative;
  overflow: hidden;
  min-height: clamp(280px, 35vw, 560px);
  display: flex;
  align-items: center;
}

.eq-trabaja__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eq-trabaja__overlay {
  position: absolute;
  inset: 0;
  background-color: #01579e;
  opacity: 0.75;
}

.eq-trabaja__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  padding-block: clamp(48px, 6vw, 100px);
}

.eq-trabaja__title {
  font-family: var(--h-2-font-family);
  font-size: clamp(24px, 3.5vw, 56px);
  font-weight: var(--h-2-font-weight);
  color: #fff;
  margin: 0;
  line-height: 1.15;
}

.eq-trabaja__subtitle {
  font-family: var(--subtitulo-font-family);
  font-size: clamp(15px, 1.8vw, 24px);
  color: #fff;
  margin: 0;
  max-width: 860px;
  line-height: 1.5;
}

/* =============================================
   TABLET  (641px – 1024px)
   ============================================= */
@media (max-width: 1024px) {
  .eq-features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .eq-feature-item:nth-child(2) {
    border-right: none;
  }
  .eq-feature-item:nth-child(3) {
    border-bottom: none;
    border-right: 1px solid #ccc;
  }
  .eq-feature-item:nth-child(4) {
    border-bottom: none;
    border-right: none;
  }

  .eq-historia__inner,
  .eq-atencion__inner,
  .eq-voluntariado__inner {
    flex-direction: column;
  }

  .eq-historia__image,
  .eq-atencion__image,
  .eq-voluntariado__image {
    flex: none;
    width: 100%;
    max-width: 600px;
    align-self: center;
  }

  .eq-cta-contact__text {
    font-size: clamp(18px, 2.5vw, 32px);
  }

  .eq-trabaja__title {
    font-size: clamp(22px, 3vw, 40px);
  }

  .eq-trabaja__subtitle {
    font-size: clamp(14px, 1.6vw, 20px);
  }
}

/* =============================================
   MOBILE  (≤ 640px)
   ============================================= */
@media (max-width: 640px) {
  .eq-features-grid {
    grid-template-columns: 1fr;
    border-top: 1px solid #ccc;
  }

  .eq-feature-item {
    border-right: none !important;
    border-bottom: 1px solid #ccc;
    padding: 28px 16px;
  }

  .eq-feature-item:last-child {
    border-bottom: none;
  }

  .eq-historia__image,
  .eq-atencion__image,
  .eq-voluntariado__image {
    max-width: 100%;
  }

  .eq-atencion-carousel__btn {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .eq-atencion-carousel__btn--prev {
    left: 10px;
  }

  .eq-atencion-carousel__btn--next {
    right: 10px;
  }

  .eq-hero__content {
    padding-inline: 20px;
    padding-block: 40px;
  }

  .eq-hero__title {
    font-size: clamp(28px, 8vw, 48px);
  }

  .eq-cta-contact {
    padding-inline: 16px;
  }

  .eq-cta-contact__text {
    font-size: clamp(18px, 5vw, 28px);
  }

  .eq-trabaja__inner {
    padding-inline: 20px;
  }

  .eq-historia__text,
  .eq-voluntariado__text {
    gap: 12px;
  }
}
