/**
 * Página "Quiénes Somos" — /sobre-el-icac/quienes-somos
 * Figma node: 22889-72258
 *
 * Tabla de contenidos:
 *  1. Tokens de diseño
 *  2. Hero split (navy + foto)
 *  3. Feature "Quiénes somos"
 *  4. Sección "Nuestra misión" (banner navy)
 *  5. Sección "Historia"
 */

/* ═══════════════════════════════════════════
   1. TOKENS DE DISEÑO
═══════════════════════════════════════════ */
:root {
  --qs-navy: #172554;
  --qs-red: #b91c1c;
  --qs-foreground: #0a0a0a;
  --qs-muted: #525252;
  --qs-white: #ffffff;
  --qs-slate-50: #f8fafc;
  --qs-border: #e5e5e5;
  --qs-radius-lg: 16px;
  --qs-max-w: 1280px;
  --qs-section-py: 96px;
}

/* ═══════════════════════════════════════════
   2. HERO SPLIT
   Figma: 22889:72260 — 454px alto, mitad navy / mitad foto
═══════════════════════════════════════════ */
.qs-hero {
  width: 100%;
  overflow: clip;
}

.qs-hero__inner {
  display: flex;
  min-height: 454px;
}

/* Columna izquierda — fondo navy */
.qs-hero__content {
  flex: 1;
  background-color: var(--qs-navy);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 454px;
}

.qs-hero__text {
  position: relative;
  z-index: 2;
  padding: 0 0 0 127px;
  max-width: 600px;
  color: var(--qs-white);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.qs-hero__title {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--qs-white);
  margin: 0;
}

.qs-hero__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: var(--qs-white);
  margin: 0;
}

/* Decoraciones top-left y bottom-right */
.qs-hero__decor {
  position: absolute;
  z-index: 1;
  opacity: 1;
  pointer-events: none;
}

.qs-hero__decor--tl {
  top: -120px;
  left: 0;
  width: 234px;
  height: 178px;
}

.qs-hero__decor--br {
  bottom: -110px;
  right: 10px;
  width: 234px;
  height: 178px;
}

.qs-hero__decor img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Columna derecha — foto de la sede */
.qs-hero__image {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 454px;
}

.qs-hero__image img,
.qs-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ═══════════════════════════════════════════
   3. FEATURE: QUIÉNES SOMOS
   Figma: 22889:72278 — bg white, py-96, 2 columnas
═══════════════════════════════════════════ */
.qs-feature {
  background-color: var(--qs-white);
  padding: var(--qs-section-py) 0;
  overflow: hidden;
}

.qs-feature__container {
  display: flex;
  gap: 64px;
  align-items: center;
  max-width: var(--qs-max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Columna izq: imagen */
.qs-feature__media {
  flex: 1;
  min-width: 0;
  border-radius: var(--qs-radius-lg);
  overflow: hidden;
  aspect-ratio: 240 / 180;
}

.qs-feature__media img,
.qs-feature__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--qs-radius-lg);
  display: block;
}

/* Columna der: contenido */
.qs-feature__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.qs-feature__tagline {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--qs-red);
}

.qs-feature__heading {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  color: var(--qs-foreground);
  margin: 0;
}

.qs-feature__description {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--qs-muted);
  margin: 0;
}

.qs-feature__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease, background-color 0.15s ease;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  border: none;
}

.btn--primary {
  background-color: var(--qs-red);
  color: #fafafa;
}

.btn--primary:hover {
  opacity: 0.9;
}

.btn--ghost {
  background-color: transparent;
  color: var(--qs-foreground);
  box-shadow: none;
}

.btn--ghost:hover {
  background-color: rgba(0,0,0,0.04);
}

.btn__icon {
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   4. MISIÓN — BANNER NAVY
   Figma: 22889:72279 — bg slate-50, py-96, card navy
═══════════════════════════════════════════ */
.qs-mission {
  background-color: var(--qs-slate-50);
  padding: var(--qs-section-py) 24px;
}

.qs-mission__card {
  display: flex;
  max-width: var(--qs-max-w);
  margin: 0 auto;
  background-color: var(--qs-navy);
  border-radius: var(--qs-radius-lg);
  overflow: hidden;
  min-height: 446px;
  align-items: stretch;
}

/* Izquierda: texto */
.qs-mission__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 40px 40px 40px 40px;
}

.qs-mission__tagline {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #f5f5f5;
  margin: 0;
}

.qs-mission__heading {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  color: #fafafa;
  margin: 0 0 12px;
}

.qs-mission__body,
.qs-mission__body p,
.qs-mission__body strong,
.qs-mission__body b,
.qs-mission__body span,
.qs-mission__content,
.qs-mission__content * {
  font-family: 'Inter', sans-serif;
  color: #ffffff !important;
}

.qs-mission__body strong,
.qs-mission__content strong {
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* Derecha: decoración de ondas */
.qs-mission__decor {
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.qs-mission__wave {
  position: absolute;
  object-fit: contain;
}

.qs-mission__wave--1,
.qs-mission__wave--2,
.qs-mission__wave--3,
.qs-mission__wave--4 {
  z-index: 2;
}

.qs-mission__wave--5,
.qs-mission__wave--6,
.qs-mission__wave--7,
.qs-mission__wave--8 {
  z-index: 1;
}

.qs-mission__wave--1 {
  right: 322px;
  top: -77px;
  width: 227px;
  height: 441px;
}

.qs-mission__wave--2 {
  right: 202px;
  top: -78px;
  width: 231px;
  height: 443px;
}

.qs-mission__wave--3 {
  right: 81px;
  top: -78px;
  width: 231px;
  height: 443px;
}

.qs-mission__wave--4 {
  right: -35px;
  top: -77px;
  width: 227px;
  height: 441px;
}

/* Second layer: outline SVGs (offset ~37px down from first group) */
.qs-mission__wave--5 {
  right: 311px;
  top: -41px;
  width: 227px;
  height: 441px;
}

.qs-mission__wave--6 {
  right: 191px;
  top: -43px;
  width: 231px;
  height: 443px;
}

.qs-mission__wave--7 {
  right: 71px;
  top: -43px;
  width: 231px;
  height: 443px;
}

.qs-mission__wave--8 {
  right: -45px;
  top: -41px;
  width: 227px;
  height: 441px;
}

/* ═══════════════════════════════════════════
   5. HISTORIA
   Figma: 23048:46518 — bg white, py-64
═══════════════════════════════════════════ */
.qs-history {
  background-color: var(--qs-white);
  padding: 64px 24px;
}

.qs-history__inner {
  max-width: var(--qs-max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Cabecera */
.qs-history__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 891px;
}

.qs-history__tagline {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--qs-red);
  margin: 0;
}

.qs-history__heading {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  color: var(--qs-foreground);
  margin: 0;
}

.qs-history__heading-highlight {
  color: var(--qs-red);
}

.qs-history__intro {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--qs-muted);
  margin: 0;
}

/* Lista de bloques */
.qs-history__list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Cada bloque: foto izquierda + texto derecha */
.qs-history__item {
  display: flex;
  gap: 64px;
  align-items: center;
}

.qs-history__item-media {
  width: 522px;
  flex-shrink: 0;
  border-radius: var(--qs-radius-lg);
  overflow: hidden;
}

.qs-history__item-media img,
.qs-history__item-img {
  width: 100%;
  height: 294px;
  object-fit: cover;
  border-radius: var(--qs-radius-lg);
  display: block;
}

.qs-history__item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qs-history__item-title {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  color: var(--qs-foreground);
  margin: 0;
}

.qs-history__item-desc {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--qs-muted);
  margin: 0;
}

/* Separador entre bloques */
.qs-history__separator {
  height: 1px;
  background-color: #e5e5e5;
  width: 100%;
  border: none;
  margin: 0;
  padding: 0;
}

.qs-history__separator img {
  display: none;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .qs-hero__text {
    padding: 48px 48px 48px 48px;
  }

  .qs-feature__container {
    gap: 40px;
  }

  .qs-history__item {
    gap: 40px;
  }

  .qs-history__item-media {
    width: 380px;
  }

  .qs-history__item-title {
    font-size: 28px;
    line-height: 36px;
  }
}

@media (max-width: 768px) {
  .qs-hero__inner {
    flex-direction: column;
  }

  .qs-hero__text {
    padding: 48px 24px;
  }

  .qs-hero__image {
    min-height: 280px;
  }

  .qs-feature__container {
    flex-direction: column;
    gap: 32px;
  }

  .qs-feature__media {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .qs-mission__card {
    flex-direction: column;
  }

  .qs-mission__decor {
    min-height: 200px;
  }

  .qs-history__item {
    flex-direction: column;
    gap: 24px;
  }

  .qs-history__item-media {
    width: 100%;
  }

  .qs-history__item-title {
    font-size: 24px;
    line-height: 32px;
  }

  .qs-feature__heading,
  .qs-mission__heading,
  .qs-history__heading {
    font-size: 28px;
    line-height: 36px;
  }
}
