/* ==========================================================
   SCRD - RENDICIÓN DE CUENTAS
   ESTILOS GENERALES
   ========================================================== */

/* ==========================================================
   01. VARIABLES DE DISEÑO
   ========================================================== */

:root {
  --rdc-primary: #56358b;
  --rdc-primary-dark: #402568;
  --rdc-secondary: #009fe3;
  --rdc-accent: #ffca28;

  --rdc-text: #252525;
  --rdc-muted: #595959;
  --rdc-white: #ffffff;
  --rdc-background: #f5f6f8;
  --rdc-border: #e2e5ea;

  --rdc-radius: 14px;
  --rdc-container: 1240px;

  --rdc-shadow:
    0 5px 20px rgba(0, 0, 0, 0.06);
}


/* ==========================================================
   02. BLOQUE CABECERA INSTITUCIONAL
   ========================================================== */

.rdc-cabecera {
  width: 100%;
  max-width: var(--rdc-container);
  margin: 0 auto 40px;

  font-family: inherit;
  color: var(--rdc-text);
}

.rdc-cabecera,
.rdc-cabecera * {
  box-sizing: border-box;
}


/* ==========================================================
   HERO INSTITUCIONAL
   ========================================================== */

.rdc-hero {
  position: relative;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: center;

  gap: 35px;

  padding: 55px 60px;

  background: linear-gradient(
    120deg,
    var(--rdc-primary-dark),
    var(--rdc-primary)
  );

  border-radius: var(--rdc-radius);

  color: var(--rdc-white);

  overflow: hidden;
  isolation: isolate;
}


/* Elemento decorativo */

.rdc-hero::before {
  content: "";

  position: absolute;
  top: -180px;
  right: -120px;

  width: 500px;
  height: 500px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;

  z-index: -1;
  pointer-events: none;
}


/* Contenido */

.rdc-hero__content {
  min-width: 0;
}


/* Texto superior */

.rdc-hero__eyebrow {
  display: block;

  margin-bottom: 18px;

  font-size: 13px;
  font-weight: 700;

  letter-spacing: 1.5px;
  line-height: 1.5;

  text-transform: uppercase;

  color: var(--rdc-white);
}


/* Título principal */

.rdc-hero .rdc-hero__title {
  margin: 0 0 20px;
  padding: 0;

  font-family: inherit;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.1;

  color: var(--rdc-white);
}


/* Línea amarilla */

.rdc-hero__line {
  width: 80px;
  height: 5px;

  margin-bottom: 22px;

  background: var(--rdc-accent);
  border-radius: 10px;
}


/* Descripción */

.rdc-hero .rdc-hero__description {
  max-width: 650px;

  margin: 0;

  font-size: clamp(17px, 2vw, 21px);
  font-weight: 400;
  line-height: 1.5;

  color: var(--rdc-white);
}


/* Ilustración */

.rdc-hero__graphic {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
}

.rdc-hero__graphic svg {
  display: block;

  width: 100%;
  max-width: 240px;
  height: auto;
}


/* ==========================================================
   INTRODUCCIÓN INSTITUCIONAL
   ========================================================== */

.rdc-intro {
  padding: 40px 20px 0;
}


/* Título reutilizable */

.rdc-section-title {
  position: relative;

  margin: 0 0 25px;
  padding: 0 0 15px;

  font-family: inherit;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.25;

  color: var(--rdc-primary);
}

.rdc-section-title::after {
  content: "";

  position: absolute;
  bottom: 0;
  left: 0;

  width: 55px;
  height: 4px;

  background: var(--rdc-accent);
  border-radius: 4px;
}


/* Párrafos */

.rdc-intro > p {
  margin: 0 0 20px;

  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;

  color: var(--rdc-text);

  text-align: left;
}


/* ==========================================================
   PILARES: INFORMACIÓN, DIÁLOGO Y PARTICIPACIÓN
   ========================================================== */

.rdc-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 20px;

  margin: 35px 0;
}

.rdc-pillar {
  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 14px;

  min-height: 140px;
  padding: 25px 15px;

  background: var(--rdc-background);

  border: 1px solid var(--rdc-border);
  border-radius: var(--rdc-radius);

  text-align: center;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.rdc-pillar svg {
  display: block;

  width: 42px;
  height: 42px;

  color: var(--rdc-primary);
}

.rdc-pillar span {
  font-size: 18px;
  font-weight: 700;

  color: var(--rdc-primary);
}

.rdc-pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--rdc-shadow);
}


/* ==========================================================
   INVITACIÓN A EXPLORAR
   ========================================================== */

.rdc-intro__callout {
  padding: 22px 25px;

  background: var(--rdc-background);

  border-left: 5px solid var(--rdc-primary);
  border-radius: 0 10px 10px 0;
}

.rdc-intro__callout p {
  margin: 0;

  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;

  color: var(--rdc-text);
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 991px) {

  .rdc-hero {
    grid-template-columns: minmax(0, 1fr) 180px;

    padding: 40px 35px;
    gap: 25px;
  }

  .rdc-intro {
    padding: 30px 10px 0;
  }

  .rdc-pillars {
    gap: 15px;
  }

}


/* ==========================================================
   MÓVIL
   ========================================================== */

@media (max-width: 767px) {

  .rdc-cabecera {
    margin-bottom: 30px;
  }

  .rdc-hero {
    grid-template-columns: 1fr;

    gap: 20px;
    padding: 35px 24px;

    text-align: center;
  }

  .rdc-hero__eyebrow {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .rdc-hero .rdc-hero__title {
    font-size: 34px;
  }

  .rdc-hero__line {
    margin: 0 auto 20px;
  }

  .rdc-hero .rdc-hero__description {
    font-size: 17px;
  }

  .rdc-hero__graphic svg {
    max-width: 135px;
  }

  .rdc-intro {
    padding: 30px 0 0;
  }

  .rdc-intro > p {
    font-size: 16px;
    line-height: 1.7;
  }

  .rdc-pillars {
    gap: 10px;
    margin: 25px 0;
  }

  .rdc-pillar {
    min-height: 110px;
    padding: 15px 8px;
    gap: 10px;
  }

  .rdc-pillar svg {
    width: 30px;
    height: 30px;
  }

  .rdc-pillar span {
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .rdc-intro__callout {
    padding: 18px;
  }

  .rdc-intro__callout p {
    font-size: 16px;
  }

}


/* ==========================================================
   ACCESIBILIDAD
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

  .rdc-pillar {
    transition: none;
  }

  .rdc-pillar:hover {
    transform: none;
  }

}


/* ==========================================================
   SCRD - RENDICIÓN DE CUENTAS
   BLOQUE 02 - NAVEGACIÓN DE MÓDULOS
   VERSIÓN CORREGIDA PARA DRUPAL Y CKEDITOR
   ========================================================== */

#rdc-navegacion {
  width: 100%;
  max-width: var(--rdc-container, 1240px);
  margin: 0 auto 45px;
  padding: 10px 20px 20px;
  color: var(--rdc-text);
}

#rdc-navegacion,
#rdc-navegacion * {
  box-sizing: border-box;
}


/* ENCABEZADO */

#rdc-navegacion .rdc-navegacion__header {
  margin-bottom: 30px;
}

#rdc-navegacion .rdc-navegacion__header > p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--rdc-muted);
}


/* GRID PRINCIPAL */

#rdc-navegacion .rdc-modules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
  width: 100%;
}


/* CONTENEDOR DE CADA TARJETA */

#rdc-navegacion .rdc-modules-grid > .rdc-module-card {
  position: relative;

  display: flex;
  flex-direction: column;

  width: 100%;
  min-width: 0;
  min-height: 290px;

  margin: 0;
  padding: 25px;

  background: var(--rdc-white);

  border: 1px solid var(--rdc-border);
  border-top: 4px solid var(--rdc-primary);
  border-radius: var(--rdc-radius);

  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}


/* ENCABEZADO INTERNO */

#rdc-navegacion .rdc-module-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;
  margin: 0 0 20px;
}


/* ICONOS */

#rdc-navegacion .rdc-module-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  width: 58px;
  height: 58px;

  background: #f0ebf7;
  border-radius: 12px;

  color: var(--rdc-primary);

  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

#rdc-navegacion .rdc-module-card__icon svg {
  display: block;

  width: 30px;
  height: 30px;

  color: inherit;
}


/* NUMERACIÓN */

#rdc-navegacion .rdc-module-card__number {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;

  color: #a59ab6;
}


/* TÍTULO */

#rdc-navegacion .rdc-module-card__title {
  margin: 0 0 12px;
  padding: 0;

  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;

  color: var(--rdc-primary);

  text-align: left;
  overflow-wrap: anywhere;
}

#rdc-navegacion .rdc-module-card__title::before,
#rdc-navegacion .rdc-module-card__title::after {
  content: none;
}


/* DESCRIPCIÓN */

#rdc-navegacion .rdc-module-card__description {
  margin: 0 0 22px;
  padding: 0;

  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;

  color: var(--rdc-muted);
  text-align: left;
}


/* ENLACE DE ACCIÓN */

#rdc-navegacion a.rdc-module-card__action {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  width: 100%;

  margin: auto 0 0;
  padding: 16px 0 0;

  background: transparent;

  border: 0;
  border-top: 1px solid var(--rdc-border);
  border-radius: 0;

  font-size: 15px;
  font-weight: 700;

  color: var(--rdc-primary);
  text-decoration: none;
}


/* PERMITIR CLIC EN TODA LA TARJETA */

#rdc-navegacion a.rdc-module-card__action::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--rdc-radius);
}


/* FLECHA */

#rdc-navegacion .rdc-module-card__action > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  width: 32px;
  height: 32px;

  background: #f0ebf7;
  border-radius: 50%;

  font-size: 21px;
  line-height: 1;

  transition:
    transform 0.25s ease,
    background-color 0.25s ease;
}


/* HOVER */

@media (hover: hover) {

  #rdc-navegacion .rdc-module-card:hover {
    transform: translateY(-5px);

    border-color: var(--rdc-primary);

    box-shadow:
      0 10px 25px rgba(86, 53, 139, 0.13);
  }

  #rdc-navegacion .rdc-module-card:hover
  .rdc-module-card__icon {
    background: var(--rdc-primary);
    color: var(--rdc-white);
  }

  #rdc-navegacion .rdc-module-card:hover
  .rdc-module-card__action > span {
    background: var(--rdc-accent);
    transform: translateX(3px);
  }

}


/* TARJETA ACTIVA */

#rdc-navegacion .rdc-module-card.is-active {
  background: var(--rdc-primary);

  border-color: var(--rdc-primary);
  border-top-color: var(--rdc-accent);
}

#rdc-navegacion .rdc-module-card.is-active
.rdc-module-card__title,

#rdc-navegacion .rdc-module-card.is-active
.rdc-module-card__description,

#rdc-navegacion .rdc-module-card.is-active
.rdc-module-card__number,

#rdc-navegacion .rdc-module-card.is-active
.rdc-module-card__action {
  color: var(--rdc-white);
}

#rdc-navegacion .rdc-module-card.is-active
.rdc-module-card__icon {
  background: var(--rdc-white);
  color: var(--rdc-primary);
}

#rdc-navegacion .rdc-module-card.is-active
.rdc-module-card__action {
  border-top-color: rgba(255, 255, 255, 0.3);
}

#rdc-navegacion .rdc-module-card.is-active
.rdc-module-card__action > span {
  background: var(--rdc-accent);
  color: var(--rdc-primary-dark);
}


/* TARJETA 07 - ANCHO COMPLETO */

#rdc-navegacion .rdc-modules-grid >
.rdc-module-card--wide {
  grid-column: 1 / -1;

  display: grid;

  grid-template-columns:
    125px minmax(0, 1fr) 210px;

  align-items: center;

  gap: 25px;

  min-height: 150px;
}

#rdc-navegacion .rdc-module-card--wide
.rdc-module-card__header {
  margin: 0;
}

#rdc-navegacion .rdc-module-card--wide
.rdc-module-card__description {
  margin: 0;
}

#rdc-navegacion .rdc-module-card--wide
.rdc-module-card__action {
  margin: 0;
  padding: 0;
  border: 0;
}


/* ACCESIBILIDAD */

#rdc-navegacion .rdc-module-card:focus-within {
  outline: 3px solid var(--rdc-primary-dark);
  outline-offset: 4px;
}


/* ANCLAS */

#rdc-programacion,
#rdc-estrategia,
#rdc-consulta,
#rdc-informes,
#rdc-memorias,
#rdc-evaluacion,
#rdc-herramientas {
  scroll-margin-top: 110px;
}


/* TABLET */

@media (max-width: 991px) {

  #rdc-navegacion {
    padding: 10px 10px 20px;
  }

  #rdc-navegacion .rdc-modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  #rdc-navegacion .rdc-modules-grid >
  .rdc-module-card {
    padding: 22px;
  }

  #rdc-navegacion .rdc-modules-grid >
  .rdc-module-card--wide {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  #rdc-navegacion .rdc-module-card--wide
  .rdc-module-card__action {
    grid-column: 2;
  }

}


/* MÓVIL */

@media (max-width: 767px) {

  #rdc-navegacion {
    padding: 5px 0 15px;
    margin-bottom: 30px;
  }

  #rdc-navegacion .rdc-modules-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  #rdc-navegacion .rdc-modules-grid >
  .rdc-module-card {
    padding: 22px;
    min-height: auto;
  }

  #rdc-navegacion .rdc-module-card__title {
    font-size: 19px;
  }

  #rdc-navegacion .rdc-module-card__icon {
    width: 50px;
    height: 50px;
  }

  #rdc-navegacion .rdc-module-card__icon svg {
    width: 27px;
    height: 27px;
  }

  #rdc-navegacion .rdc-module-card__number {
    font-size: 26px;
  }

  #rdc-navegacion .rdc-modules-grid >
  .rdc-module-card--wide {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  #rdc-navegacion .rdc-module-card--wide
  .rdc-module-card__header {
    margin-bottom: 20px;
  }

  #rdc-navegacion .rdc-module-card--wide
  .rdc-module-card__description {
    margin-bottom: 22px;
  }

  #rdc-navegacion .rdc-module-card--wide
  .rdc-module-card__action {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--rdc-border);
  }

}


/* MOVIMIENTO REDUCIDO */

@media (prefers-reduced-motion: reduce) {

  #rdc-navegacion .rdc-module-card,
  #rdc-navegacion .rdc-module-card__icon,
  #rdc-navegacion .rdc-module-card__action > span {
    transition: none;
  }

  #rdc-navegacion .rdc-module-card:hover,
  #rdc-navegacion .rdc-module-card:hover
  .rdc-module-card__action > span {
    transform: none;
  }

}


/* ==========================================================
   SCRD - RENDICIÓN DE CUENTAS
   03. ESTILOS GENERALES DE MÓDULOS DESPLEGABLES
   ========================================================== */

.rdc-panel {
  width: 100%;
  max-width: var(--rdc-container, 1240px);

  margin: 0 auto 35px;

  background: var(--rdc-white);
  border: 1px solid var(--rdc-border);
  border-radius: var(--rdc-radius);

  box-shadow: var(--rdc-shadow);

  overflow: hidden;
  scroll-margin-top: 110px;

  color: var(--rdc-text);
}

.rdc-panel,
.rdc-panel * {
  box-sizing: border-box;
}


/* OCULTAR MÓDULOS MEDIANTE JAVASCRIPT */

.rdc-panel[hidden] {
  display: none !important;
}


/* ==========================================================
   CABECERA REUTILIZABLE
   ========================================================== */

.rdc-panel .rdc-panel__header {
  display: flex;
  align-items: center;

  gap: 22px;
  padding: 30px 35px;

  background: linear-gradient(
    120deg,
    var(--rdc-primary-dark),
    var(--rdc-primary)
  );

  border-bottom: 4px solid var(--rdc-accent);

  color: var(--rdc-white);
}


/* ICONO */

.rdc-panel .rdc-panel__icon {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  width: 65px;
  height: 65px;

  background: rgba(255, 255, 255, 0.14);
  border-radius: 14px;

  color: var(--rdc-white);
}

.rdc-panel__icon svg {
  display: block;
  width: 35px;
  height: 35px;
}


/* ENCABEZADO */

.rdc-panel__heading {
  flex: 1;
  min-width: 0;
}

.rdc-panel .rdc-panel__eyebrow {
  display: block;

  margin: 0 0 8px;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.5;

  text-transform: uppercase;
  color: var(--rdc-white);
}

.rdc-panel .rdc-panel__title {
  margin: 0;
  padding: 0;

  font-family: inherit;
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.3;

  text-align: left;
  color: var(--rdc-white);
}

.rdc-panel .rdc-panel__title::before,
.rdc-panel .rdc-panel__title::after {
  content: none;
}


/* CONTENIDO */

.rdc-panel .rdc-panel__content {
  padding: 35px;
}

.rdc-panel .rdc-panel__intro {
  margin: 0 0 30px;

  font-size: 17px;
  line-height: 1.75;

  color: var(--rdc-text);
  text-align: left;
}


/* ==========================================================
   NOTA INFORMATIVA REUTILIZABLE
   ========================================================== */

.rdc-panel .rdc-panel__note {
  display: flex;
  align-items: flex-start;

  gap: 14px;

  margin-top: 25px;
  padding: 18px 20px;

  background: var(--rdc-background);
  border-left: 4px solid var(--rdc-primary);
  border-radius: 0 10px 10px 0;
}

.rdc-panel__note svg {
  flex-shrink: 0;

  width: 23px;
  height: 23px;

  color: var(--rdc-primary);
}

.rdc-panel .rdc-panel__note p {
  margin: 0;

  font-size: 15px;
  line-height: 1.6;

  color: var(--rdc-muted);
}


/* ==========================================================
   RESPONSIVE GENERAL DE MÓDULOS
   ========================================================== */

@media (max-width: 767px) {

  .rdc-panel {
    margin-bottom: 25px;
  }

  .rdc-panel .rdc-panel__header {
    padding: 22px 18px;
    gap: 14px;
  }

  .rdc-panel .rdc-panel__icon {
    width: 48px;
    height: 48px;
  }

  .rdc-panel__icon svg {
    width: 27px;
    height: 27px;
  }

  .rdc-panel .rdc-panel__eyebrow {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .rdc-panel .rdc-panel__title {
    font-size: 22px;
  }

  .rdc-panel .rdc-panel__content {
    padding: 20px 15px;
  }

  .rdc-panel .rdc-panel__intro {
    font-size: 16px;
    margin-bottom: 22px;
  }

}