/* ================================
   QUIÉNES SOMOS
   Reutiliza el hero parallax de historia.css
   y los tokens de main.css / home.css
================================ */

/* ---- Hero: mismo estilo que historia, distinta imagen ---- */
.history-hero--qs {
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.80), rgba(0,0,0,.46), rgba(0,0,0,.22)),
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.66)),
    url("/img/nosotros/equipo-nosotros.webp");
}

/* ================================
   INTRO — QUIÉNES SOMOS
================================ */

.qs-intro {
  padding: 120px 0;
  background: #fff;
  color: #111;
  overflow: hidden;
}

.qs-intro__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: center;
}

.qs-intro__content h2 {
  margin: 14px 0 26px;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.qs-intro__content h2 span {
  color: var(--red);
}

.qs-intro__content p {
  margin: 0 0 22px;
  color: #666;
  font-size: 1.02rem;
  line-height: 1.9;
}

.qs-intro__content p:last-child {
  margin-bottom: 0;
}

.qs-intro__image {
  position: relative;
}

.qs-intro__image::before {
  content: "";
  position: absolute;
  inset: 20px auto auto 20px;
  width: 100%;
  height: 100%;
  background: var(--red);
  border-radius: 24px;
  z-index: 0;
  opacity: .10;
}

.qs-intro__image img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 24px;
  filter: contrast(1.1) saturate(1.08) brightness(1.02);
  box-shadow: 0 30px 70px rgba(0,0,0,.18);
}

/* ---- Trayectoria / cifras ---- */
.qs-stats {
  margin-top: 80px;
  padding-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  border-top: 1px solid #e6e6e6;
}

.qs-stat {
  position: relative;
  padding: 0 26px;
}

.qs-stat:not(:last-child) {
  border-right: 1px solid #e9e9e9;
}

.qs-stat__icon {
  display: block;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 2.6rem;
}

.qs-stat__num {
  margin-bottom: 10px;
  color: var(--red);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
}

.qs-stat h3 {
  margin: 0 0 6px;
  color: #111;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}

.qs-stat p {
  margin: 0;
  color: #666;
  font-size: .92rem;
}

/* ================================
   MISIÓN & VISIÓN — banda oscura
================================ */

.qs-mv {
  padding: 110px 0;
  background:
    radial-gradient(circle at top left, rgba(211,14,51,.16), transparent 32%),
    linear-gradient(135deg, #101214, #181b1f);
  color: #fff;
  overflow: hidden;
}

.qs-mv__head {
  max-width: 780px;
  margin: 0 auto 56px;
  text-align: center;
}

.qs-mv__head h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.qs-mv__head h2 span {
  color: var(--red);
}

.qs-mv__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.qs-mv__card {
  position: relative;
  padding: 48px 44px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, background .35s ease, box-shadow .35s ease;
}

.qs-mv__card::after {
  content: "";
  position: absolute;
  left: 44px;
  right: 44px;
  bottom: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}

.qs-mv__card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,.07);
  border-color: rgba(211,14,51,.7);
  box-shadow: 0 24px 55px rgba(0,0,0,.34);
}

.qs-mv__card:hover::after {
  transform: scaleX(1);
}

.qs-mv__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(211,14,51,.14);
  color: var(--red);
  font-size: 2rem;
}

.qs-mv__card h3 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.qs-mv__card p {
  margin: 0;
  color: rgba(255,255,255,.74);
  font-size: 1rem;
  line-height: 1.85;
}

/* ================================
   VALORES
================================ */

.qs-values {
  padding: 120px 0;
  background: #fff;
  color: #111;
  overflow: hidden;
}

.qs-values__head {
  max-width: 780px;
  margin: 0 auto 52px;
  text-align: center;
}

.qs-values__head h2 {
  margin: 10px 0 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.qs-values__head h2 span {
  color: var(--red);
}

.qs-values__head p {
  margin: 0 auto;
  max-width: 640px;
  color: #666;
  font-size: 1rem;
  line-height: 1.8;
}

.qs-values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.qs-value {
  padding: 40px 32px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 18px;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.qs-value:hover {
  transform: translateY(-8px);
  border-color: rgba(211,14,51,.25);
  box-shadow: 0 28px 60px rgba(0,0,0,.1);
}

.qs-value__icon {
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(211,14,51,.08);
  color: var(--red);
  font-size: 1.9rem;
}

.qs-value h3 {
  margin: 0 0 12px;
  color: #111;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.qs-value p {
  margin: 0;
  color: #666;
  font-size: .96rem;
  line-height: 1.8;
}

/* ================================
   EQUIPO — banda oscura
================================ */

.qs-team {
  padding: 110px 0;
  background:
    linear-gradient(135deg, #101214, #181b1f);
  color: #fff;
  overflow: hidden;
}

.qs-team__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.qs-team__content h2 {
  margin: 14px 0 24px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.qs-team__content h2 span {
  color: var(--red);
}

.qs-team__content p {
  margin: 0 0 22px;
  color: rgba(255,255,255,.74);
  font-size: 1.02rem;
  line-height: 1.9;
}

.qs-team__list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qs-team__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  line-height: 1.6;
}

.qs-team__list i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--red);
  font-size: 1.4rem;
}

.qs-team__image {
  position: relative;
}

.qs-team__image::before {
  content: "";
  position: absolute;
  inset: auto auto 20px 20px;
  width: 100%;
  height: 100%;
  background: var(--red);
  border-radius: 24px;
  z-index: 0;
  opacity: .14;
}

.qs-team__image img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 24px;
  filter: contrast(1.1) saturate(1.08) brightness(1.02);
  box-shadow: 0 30px 70px rgba(0,0,0,.4);
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 992px) {
  .qs-intro,
  .qs-values,
  .qs-team,
  .qs-mv {
    padding: 90px 0;
  }

  .qs-intro__grid,
  .qs-team__grid,
  .qs-mv__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .qs-stats {
    grid-template-columns: 1fr 1fr;
    gap: 36px 26px;
  }

  .qs-stat {
    padding: 0 14px;
  }

  .qs-stat:nth-child(2n) {
    border-right: 0;
  }

  .qs-values__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* el texto del equipo primero, imagen después */
  .qs-team__image {
    order: -1;
  }
}

@media (max-width: 600px) {
  .qs-stats {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .qs-stat {
    padding: 0 0 26px;
    border-right: 0 !important;
    border-bottom: 1px solid #ececec;
  }

  .qs-stat:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .qs-values__grid {
    grid-template-columns: 1fr;
  }

  .qs-mv__card {
    padding: 38px 28px;
  }

  .qs-mv__card::after {
    left: 28px;
    right: 28px;
  }
}
