/* CSS Derechos Audiencia */

.crt-derechos__hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1368 / 465;
  overflow: hidden;
  margin-bottom: 40px;
}

.crt-derechos__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --------------------
          GRID
    ------------------- */
.crt-derechos__grid {
  display: flex;
  flex-direction: column;
}

.crt-derechos__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  column-gap: 40px;
  padding: 40px 32px;
}

.crt-derechos__row--white {
  background: #FFFFFF;
}

.crt-derechos__row--gray {
  background: #F4F4F4;
}

.crt-derechos__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 626px;
}

.crt-derechos__card--center {
  align-items: center;
  text-align: center;
}

/* --------------------------
    Variante Header - Nivel 1 y 2
    ------------------------- */
.crt-derechos__card-header {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.crt-derechos__card--center .crt-derechos__card-header {
  flex-direction: column;
  align-items: center;
}

/* --------------------------
    Variante Split - Nivel 3
    ------------------------- */
.crt-derechos__card--split {
  display: flex;
  flex-direction: row;
  align-items: flex-start; 
  gap: 24px;
}

.crt-derechos__card-title-block {
  display: flex;
  flex-direction: column;
  align-items: center; 
  gap: 30px;
  flex: 0 0 220px;
}

.crt-derechos__card-title-block .crt-derechos__card-title {
  text-align: center;
  margin: 0;
}

.crt-derechos__card--split .crt-derechos__card-desc {
  margin: 0;
  text-align: left;
}

/* --------------------------
    Nivel 4 
    ------------------------- */
.crt-derechos__card--split-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 8px;
  
}

.crt-derechos__card--split-header .crt-derechos__card-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
}

.crt-derechos__card--split-header .crt-derechos__card-title {
  text-align: center;
  flex: 1;
  margin: 0;
}

.crt-derechos__card--split-header .crt-icono {
  flex: 0 0 40px;
}

/* Variante centrada para tarjetas con ícono arriba */
.crt-derechos__card--split-header--centered {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.crt-derechos__card--split-header--centered .crt-derechos__card-header {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-height: 100px;
}

.crt-derechos__card--split-header--centered .crt-derechos__card-title {
  text-align: center;
  margin: 0;
}

.crt-derechos__card-title--centered {
  margin-top: -10px !important;
  margin-bottom: 0;
}

/* --------------------
    Iconos + Imagen
    ------------------- */
.crt-icono {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: 4px;
}

.crt-icono img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* --------------------------
    Contenido + Titulo Cards
    ------------------------- */
.crt-derechos__card-title {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 20px;
  line-height: 140%;
  letter-spacing: normal;
  color: #1A4043;
  margin: 0 0 20px 0;
  margin-top: -4px;
}

.crt-contenido .crt-derechos__card-desc {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  line-height: 135%;
  letter-spacing: normal;
  color: var(--Text-Neutral-On-Neutral-Tertiary, #434343);
  margin: 0;
  text-align: left;
}

/* --------------------
    Linea Divisoria
    ------------------- */
.crt-derechos__divider {
  display: flex;
  align-items: center;
  height: 100%;
}

/* --------------------
    Responsiva 
    ------------------- */
@media (max-width: 768px) {
  .crt-derechos__hero {
    aspect-ratio: auto;
    min-height: 200px;
    margin-bottom: 0;
  }

  .crt-derechos__row {
    grid-template-columns: 1fr;
    row-gap: 32px;
    padding: 24px 24px;
  }

  .crt-derechos__divider {
    display: none;
  }

  .crt-derechos__card--split {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .crt-derechos__card--split .crt-derechos__card-title-block {
    flex: none;
    width: 100%;
    align-items: center;
    gap: 12px;
  }

  .crt-derechos__card--split .crt-derechos__card-title {
    flex: none;
    width: 100%;
    text-align: center;
  }

  .crt-derechos__card--split .crt-derechos__card-desc {
    width: 100%;
    text-align: left;
  }

  .crt-derechos__card--split-header--centered {
    align-items: center;
    text-align: center;
  }

  .crt-derechos__card--split-header--centered .crt-derechos__card-header {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: auto;
  }

  .crt-derechos__card > .crt-derechos__card-header {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }

  .crt-derechos__card > .crt-derechos__card-header .crt-derechos__card-title {
    text-align: center;
    margin: 0;
  }

  .crt-derechos__card--split-header--centered .crt-derechos__card-title {
    text-align: center;
  }

  .crt-derechos__card--split-header--centered .crt-derechos__card-desc {
    text-align: left;
    width: 100%;
  }

  .crt-derechos__grid > .crt-derechos__row:first-child {
    padding-top: 0;
  }

  .crt-derechos__card-title {
    font-size: 22px;
    line-height: 120%;
    margin: 0 0 12px 0;
  }

  .crt-contenido .crt-derechos__card-desc {
    font-size: 17px;
    line-height: 140%;
  }

  .crt-derechos__card-title .salto-desktop {
    display: none;
  }

  .crt-icono {
    width: 32px;
    height: 32px;
  }
}