/* ========================================
   COOPERATIVISMO EN LA EDUCACIÓN — layout de dos columnas (menú de página
   + contenido), patrón 1, mismo molde que institucional / INACOOP en
   línea (ver CLAUDE.md "Patrones de layout de las plantillas custom").

   Todo antepone #inacoop-cooperativismo-educacion (mismo criterio de
   especificidad que el resto de las plantillas custom: un id gana
   cualquier combo de clases de Elementor/hello-biz). Tipografía en rem
   (ver [[feedback_css_units]]).

   Medidas según Figma (archivo "Web-INACOOP", node 736-10222 desktop).
   El node mobile que se pasó era un texto suelto; el sidebar sigue el
   patrón "se oculta" de INACOOP en línea -- confirmar contra el Figma
   mobile real.
   ======================================== */

#inacoop-cooperativismo-educacion {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 3.5rem;
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.5rem 0 5rem;
  align-items: start;
  font-family: Asap, sans-serif;
  color: #1e2939;
}

/* ---- Sidebar ---- */
#inacoop-cooperativismo-educacion .inacoop-ce__nav {
  position: sticky;
  top: 175px;
}

#inacoop-cooperativismo-educacion .inacoop-ce__nav-label {
  margin: 0;
  padding: 0 0.75rem;
  font-family: Asap, sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.0675rem;
  text-transform: uppercase;
  color: #aaa;
}

#inacoop-cooperativismo-educacion .inacoop-ce__nav-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

#inacoop-cooperativismo-educacion .inacoop-ce__nav-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-family: Asap, sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #555;
  text-decoration: none;
}

#inacoop-cooperativismo-educacion .inacoop-ce__nav-link::before {
  content: '';
  flex-shrink: 0;
  width: 4px;
  height: 1.125rem;
  border-radius: 999px;
  background-color: transparent;
}

#inacoop-cooperativismo-educacion .inacoop-ce__nav-link.is-active {
  background-color: #eef6fb;
  font-weight: 600;
  color: #0077a3;
}

#inacoop-cooperativismo-educacion .inacoop-ce__nav-link.is-active::before {
  background-color: #0077a3;
}

/* ---- Contenido ---- */
#inacoop-cooperativismo-educacion .inacoop-ce__content {
  min-width: 0;
  max-width: 780px; /* medida de lectura del Figma; el contenido no ocupa
                       todo el ancho disponible tras el sidebar */
}

#inacoop-cooperativismo-educacion .inacoop-ce__section {
  scroll-margin-top: 1.5rem;
}

#inacoop-cooperativismo-educacion .inacoop-ce__section + .inacoop-ce__section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #f3f4f6;
}

#inacoop-cooperativismo-educacion .inacoop-ce__heading {
  margin: 0;
  font-family: Asap, sans-serif;
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 1.2;
  color: #401e5e;
}

#inacoop-cooperativismo-educacion .inacoop-ce__subheading {
  margin: 0;
  font-family: Asap, sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.5;
  color: #0077a3;
}

#inacoop-cooperativismo-educacion .inacoop-ce__paragraph {
  margin: 1.25rem 0 0;
  font-family: Asap, sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #1e2939;
}

#inacoop-cooperativismo-educacion .inacoop-ce__paragraph + .inacoop-ce__paragraph {
  margin-top: 0.75rem;
}

#inacoop-cooperativismo-educacion .inacoop-ce__subheading + .inacoop-ce__paragraph {
  margin-top: 0.75rem;
}

#inacoop-cooperativismo-educacion .inacoop-ce__paragraph strong {
  font-weight: 600;
}

#inacoop-cooperativismo-educacion .inacoop-ce__block {
  margin-top: 1.25rem;
}

#inacoop-cooperativismo-educacion .inacoop-ce__block + .inacoop-ce__block {
  margin-top: 2rem;
}

/* ---- Fila ícono + texto ---- */
#inacoop-cooperativismo-educacion .inacoop-ce-metarow {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
}

#inacoop-cooperativismo-educacion .inacoop-ce-metarow img {
  display: block;
  flex: 0 0 15px;
  margin-top: 0.25rem;
}

#inacoop-cooperativismo-educacion .inacoop-ce-metarow span {
  font-family: Asap, sans-serif;
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #364153;
}

#inacoop-cooperativismo-educacion .inacoop-ce-metarow strong {
  font-weight: 500;
  color: #401e5e;
}

/* ---- InfoCards (Primaria) ---- */
#inacoop-cooperativismo-educacion .inacoop-ce-infocards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

#inacoop-cooperativismo-educacion .inacoop-ce-infocard {
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

#inacoop-cooperativismo-educacion .inacoop-ce-infocard__eyebrow {
  margin: 0;
  font-family: Asap, sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.5;
  letter-spacing: 0.0234rem;
  text-transform: uppercase;
  color: #401e5e;
}

#inacoop-cooperativismo-educacion .inacoop-ce-infocard__rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* ---- Callouts ---- */
#inacoop-cooperativismo-educacion .inacoop-ce-callout {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
}

#inacoop-cooperativismo-educacion .inacoop-ce-callout--purple {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px solid rgba(64, 30, 94, 0.15);
  background: #f0ebf7;
}

#inacoop-cooperativismo-educacion .inacoop-ce-callout--teal {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid rgba(63, 180, 166, 0.2);
  background: #e8f7f6;
}

#inacoop-cooperativismo-educacion .inacoop-ce-callout__icon {
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #3fb4a6;
  margin-top: 0.125rem;
}

#inacoop-cooperativismo-educacion .inacoop-ce-callout__icon img {
  display: block;
  width: 16px;
  height: 16px;
}

#inacoop-cooperativismo-educacion .inacoop-ce-callout__titulo {
  margin: 0;
  font-family: Asap, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #401e5e;
}

#inacoop-cooperativismo-educacion .inacoop-ce-callout__titulo--teal {
  color: #1d6e68;
}

#inacoop-cooperativismo-educacion .inacoop-ce-callout__texto {
  margin: 0.125rem 0 0;
  font-family: Asap, sans-serif;
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #364153;
}

#inacoop-cooperativismo-educacion .inacoop-ce-callout__texto strong {
  font-weight: 600;
}

/* ---- Link externo ---- */
#inacoop-cooperativismo-educacion .inacoop-ce-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
  min-height: 2.75rem;
  font-family: Asap, sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #0077a3;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#inacoop-cooperativismo-educacion .inacoop-ce-link img {
  display: block;
  flex: 0 0 auto;
}

/* ---- Card de curso (UTEC) ---- */
#inacoop-cooperativismo-educacion .inacoop-ce-course {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f9fafb;
}

#inacoop-cooperativismo-educacion .inacoop-ce-course__head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

#inacoop-cooperativismo-educacion .inacoop-ce-course__icon {
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #3fb4a6;
  margin-top: 0.125rem;
}

#inacoop-cooperativismo-educacion .inacoop-ce-course__icon img {
  display: block;
  width: 18px;
  height: 18px;
}

#inacoop-cooperativismo-educacion .inacoop-ce-course__titulo {
  margin: 0;
  font-family: Asap, sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;
  color: #401e5e;
}

#inacoop-cooperativismo-educacion .inacoop-ce-course__meta {
  margin: 0.125rem 0 0;
  font-family: Asap, sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #6a7282;
}

#inacoop-cooperativismo-educacion .inacoop-ce-course__texto {
  margin: 1rem 0 0;
  font-family: Asap, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: #1e2939;
}

#inacoop-cooperativismo-educacion .inacoop-ce-course__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

#inacoop-cooperativismo-educacion .inacoop-ce-fact {
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

#inacoop-cooperativismo-educacion .inacoop-ce-fact__label {
  margin: 0;
  font-family: Asap, sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.01875rem;
  text-transform: uppercase;
  color: #99a1af;
}

#inacoop-cooperativismo-educacion .inacoop-ce-fact__value {
  margin: 0.25rem 0 0;
  font-family: Asap, sans-serif;
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #1e2939;
}

#inacoop-cooperativismo-educacion .inacoop-ce-course__modulos-label {
  margin: 1.25rem 0 0;
  font-family: Asap, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: 0.0219rem;
  text-transform: uppercase;
  color: #401e5e;
}

#inacoop-cooperativismo-educacion .inacoop-ce-course__modulos {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: inacoop-ce-mod;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

#inacoop-cooperativismo-educacion .inacoop-ce-course__modulos li {
  counter-increment: inacoop-ce-mod;
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  font-family: Asap, sans-serif;
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #1e2939;
}

#inacoop-cooperativismo-educacion .inacoop-ce-course__modulos li::before {
  content: counter(inacoop-ce-mod);
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(64, 30, 94, 0.1);
  color: #401e5e;
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 20px;
  text-align: center;
}

#inacoop-cooperativismo-educacion .inacoop-ce-course__nota {
  margin: 0.75rem 0 0;
  font-family: Asap, sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #6a7282;
}

/* ---- Botón (Posgrado) ---- */
#inacoop-cooperativismo-educacion a.inacoop-ce-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  background: #401e5e;
  font-family: Asap, sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #fff;
  text-decoration: none;
}

#inacoop-cooperativismo-educacion a.inacoop-ce-btn:hover,
#inacoop-cooperativismo-educacion a.inacoop-ce-btn:focus-visible {
  background: #33184b;
  color: #fff;
}

#inacoop-cooperativismo-educacion .inacoop-ce-btn img {
  display: block;
  flex: 0 0 auto;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
  #inacoop-cooperativismo-educacion {
    grid-template-columns: 1fr;
  }

  /* Mobile "se oculta" (patrón de INACOOP en línea): el sidebar no se
     colapsa a un botón, directamente no se muestra y el contenido ocupa
     todo el ancho. Confirmar contra el Figma mobile. */
  #inacoop-cooperativismo-educacion .inacoop-ce__nav {
    display: none;
  }

  #inacoop-cooperativismo-educacion .inacoop-ce__content {
    max-width: none;
  }
}

@media (max-width: 767px) {
  #inacoop-cooperativismo-educacion {
    padding: 3rem 1.5rem;
  }

  #inacoop-cooperativismo-educacion .inacoop-ce-infocards,
  #inacoop-cooperativismo-educacion .inacoop-ce-course__facts {
    grid-template-columns: 1fr;
  }
}
