/* CSS Contenido Mecanismos Proteccion */

/* ==========================================================================
   BASE / CONTENEDOR
   ========================================================================== */
[data-view="mecanismos"] {
  width: 100%;
  font-family: var(--crt-font, "Noto Sans", sans-serif);
  color: #000;
}

[data-view="mecanismos"] .crt-derechos__hero-img {
  width: 100%;
  display: block;
}

[data-view="mecanismos"] .crt-seccion {
  padding: 48px 0;
}

[data-view="mecanismos"] .crt-seccion--white {
  background: #FFFFFF;
}

[data-view="mecanismos"] .crt-seccion--gray {
  background: #F4F4F4;
}

/* Contenedor centrado de 1200px */
[data-view="mecanismos"] .crt-seccion__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

/* ==========================================================================
   ENCABEZADO DE SECCIÓN (ícono + título, centrado)
   ========================================================================== */
[data-view="mecanismos"] .crt-seccion__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

[data-view="mecanismos"] .crt-seccion__icono {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-view="mecanismos"] .crt-seccion__icono img,
[data-view="mecanismos"] .crt-seccion__icono svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

[data-view="mecanismos"] .crt-seccion__titulo {
  font-weight: 700;
  font-size: 30px;
  line-height: 130%;
  color: #1A4043;
  margin: 0;
  text-align: center;
}

[data-view="mecanismos"] .crt-seccion__subtitulo {
  max-width: 720px;
  margin: 0 auto 28px;
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  text-align: center;
  color: #000;
}

/* Caption final destacado (teal, centrado, bold) — se usa en las 3 secciones */
[data-view="mecanismos"] .crt-seccion__caption {
  margin: 20px 0 0;
  font-weight: 700;
  font-size: 20px;
  line-height: 136%;
  color: #3B8082;
  text-align: center;
}

/* ==========================================================================
   CÓDIGO DE ÉTICA
   ========================================================================== */
[data-view="mecanismos"] .crt-etica__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

[data-view="mecanismos"] .crt-etica__card {
  width: 100%;
  max-width: 311px;
  min-height: 220px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 24px 16px;
  border: 1px solid #D6D6D6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
}

[data-view="mecanismos"] .crt-etica__card p {
  margin: 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 140%;
  text-align: center;
  color: #434343;
}
/* ==========================================================================
   DEFENSORÍA DE AUDIENCIAS
   ========================================================================== */
[data-view="mecanismos"] .crt-defensoria__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 auto 20px;
  max-width: 1000px;   /* <-- deja espacio a los costados dentro de los 1200px */
  box-sizing: border-box;
}

[data-view="mecanismos"] .crt-defensoria__card {
  box-sizing: border-box;
  width: 100%;
  min-height: 140px;    /* <-- antes 220px, ya no sobra tanto espacio */
  padding: 20px 16px;
  border: 1px solid #D6D6D6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
}

[data-view="mecanismos"] .crt-defensoria__card p {
  margin: 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 140%;
  text-align: left;
  color: #434343;
}

[data-view="mecanismos"] .crt-defensoria__box {
  box-sizing: border-box;
  width: 100%;
  max-width: 1000px;    /* <-- mismo ancho que el grid, alineado */
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid #D6D6D6;
  border-radius: 8px;
  padding: 20px 24px;
}

[data-view="mecanismos"] .crt-defensoria__box p {
  margin: 0 0 10px;
  font-weight: 500;
  font-size: 16px;
  line-height: 140%;
  color: #434343;
}

[data-view="mecanismos"] .crt-defensoria__box ul {
  margin: 0;
  padding-left: 20px;
}

[data-view="mecanismos"] .crt-defensoria__box li {
  font-weight: 500;
  font-size: 16px;
  line-height: 160%;
  color: #434343;
}

/* ==========================================================================
   ATENCIÓN A QUEJAS (pasos)
   ========================================================================== */
[data-view="mecanismos"] .crt-pasos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 10px;
}

[data-view="mecanismos"] .crt-pasos__card {
  position: relative;
  width: 100%;
  max-width: 311px;
  min-height: 202px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 24px 24px 38px 23px;
  border: 1px solid #1B3F42;
  border-radius: 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  background: #fff;
  box-shadow: 0px 4px 6px 0px rgba(0, 0, 0, 0.12);
}

[data-view="mecanismos"] .crt-pasos__badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 43px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #D5E5E5;
  border-radius: 11px;
  font-weight: 700;
  font-size: 18px;
  line-height: 100%;
  color: #1B3F42;
  white-space: nowrap;
}

[data-view="mecanismos"] .crt-pasos__icono {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1B3F42;
  margin-top: 14px;
}

[data-view="mecanismos"] .crt-pasos__icono svg,
[data-view="mecanismos"] .crt-pasos__icono img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

[data-view="mecanismos"] .crt-pasos__texto {
  font-weight: 500;
  font-size: 16px;
  line-height: 130%;
  color: #1B3F42;
  margin: 0;
  text-align: left;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  [data-view="mecanismos"] .crt-etica__grid,
  [data-view="mecanismos"] .crt-defensoria__grid,
  [data-view="mecanismos"] .crt-pasos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  [data-view="mecanismos"] .crt-derechos__hero {
    margin-bottom: 0;
    margin-top: 20px;
  }

  [data-view="mecanismos"] .crt-seccion {
    padding: 28px 0;
  }

  [data-view="mecanismos"] .crt-seccion__inner {
    padding: 0 24px;
  }

  [data-view="mecanismos"] .crt-seccion__titulo {
    font-size: 22px;
    line-height: 130%;
  }

  [data-view="mecanismos"] .crt-seccion__subtitulo {
    font-size: 15px;
  }

  [data-view="mecanismos"] .crt-pasos {
    margin-top: 30px;
    gap: 20px;
  }

  [data-view="mecanismos"] .crt-pasos__card {
    margin-top: 20px;
  }

  [data-view="mecanismos"] .crt-pasos__card:first-child {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  [data-view="mecanismos"] .crt-etica__grid,
  [data-view="mecanismos"] .crt-defensoria__grid,
  [data-view="mecanismos"] .crt-pasos {
    grid-template-columns: 1fr;
  }

  [data-view="mecanismos"] .crt-etica__card,
  [data-view="mecanismos"] .crt-defensoria__card {
    min-height: auto;
    padding: 24px 16px;
  }
}