/* ============================================================
   Ruta Histórica del Cimarronaje del Canal del Dique
   CSS externo para JEP / SharePoint
   ============================================================ */

   .redes-footer,
.socialmedia {
  display: none;
}

.article-content {
  width: 100% !important;
  max-width: 100% !important;
  margin: -300px auto -40px !important
}

.mainHeader {
  position: inherit;
}

.top ul li img{
  max-width: 70%;
  margin: 0 auto;
}



.cim-wrap,
.cim-wrap * {
  box-sizing: border-box;
}



.cim-wrap {
  --cim-green-900: #04160c;
  --cim-green-800: #0a2216;
  --cim-green-700: #163626;
  --cim-gold: #c9922a;
  --cim-text: #222;
  --cim-muted: #666;
  --cim-border: #ddd;
  --cim-bg-soft: #f5f5f5;
  --cim-white: #fff;
  --cim-gap: 14px;
  font-family: 'Fira Sans', sans-serif;
  color: var(--cim-text);
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  line-height: 1.4;
}

.cim-wrap h1,
.cim-wrap h2,
.cim-wrap h3,
.cim-wrap h4,
.cim-wrap h5,
.cim-wrap h6,
.cim-wrap p,
.cim-wrap ul,
.cim-wrap ol,
.cim-wrap li,
.cim-wrap figure,
.cim-wrap blockquote {
  margin: 0;
  padding: 0;
}

.cim-wrap img {
  max-width: 100%;
  display: block;
  border: 0;
}

.cim-wrap button {
  font: inherit;
}

/* HERO */
.cim-hero {
  position: relative;
  width: 100%;
  min-height: 800px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .02)),
    radial-gradient(circle at 18% 30%, rgba(201, 146, 42, .18), transparent 28%),
    linear-gradient(135deg, #10291c 0%, #0a2216 46%, #234836 100%);
    margin-top: 0 !important;
    padding-top: 0 !important;    
}

/* Quita espacios del contenedor SharePoint */
.CanvasZone,
.ControlZone,
.ms-webpart-zone {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Ajusta el wrapper */
.mi-wrapper {
  margin-top: -20px; /* ajusta según lo que veas */
}

.ms-rtestate-field .cim-hero-h1,
.ms-rtestate-field h1.cim-hero-h1 {
  font-size: 50px !important;
  font-weight: 700 !important;
  color: #fff !important;
  line-height: 1.08 !important;
  letter-spacing: -.01em !important;
  margin: 0 !important;
}

.ms-rtestate-field .cim-wrap p.cim-hero-seccion,
.ms-rtestate-field .cim-wrap p.cim-hero-desc {
  margin: 0 !important;
}



.cim-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(4, 22, 12, .92) 0%, rgba(4, 22, 12, .82) 20%, rgba(4, 22, 12, .45) 40%, rgba(4, 22, 12, .18) 50%),
    url('https://www.jep.gov.co/Canal%20del%20Dique/imagenes/mapa-hero.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  transform: scale(1.03);
}

.cim-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(4,22,12,.14) 70%);
}

.cim-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 920px;
  padding: 56px 0 56px 250px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cim-hero-seccion {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,.84);
}

.cim-hero-h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1rem !important;
  color: #fff;
  letter-spacing: -.02em;
}

.cim-hero-badge {
  display: inline-block;
  width: fit-content;
  background: var(--cim-gold);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
}

.cim-hero-desc {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.68;
  color: rgba(255,255,255,.82);
}

/* SECCIONES */
.cim-sobre,
.cim-mapa,
.cim-redes {
  width: 100%;
}

.cim-sobre,
.cim-mapa {
  background: #fff;
  padding: 56px 64px;
}

.cim-redes {
  background: var(--cim-bg-soft);
  padding: 48px 64px 56px;
}

.cim-sobre-title,
.cim-mapa-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--cim-text);
  text-align: center;
  margin-bottom: 18px;
}

.cim-sobre-intro,
.cim-mapa-intro {
  max-width: 860px;
  margin: 0 auto 28px;
  font-size: 15px;
  line-height: 1.72;
  color: #505050;
  text-align: center;
}

/* VIDEO */
.cim-video-frame {
  max-width: 960px;
  margin: 0 auto;
  background: #111;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.12);
}

.cim-video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  border: 0;
}

/* MAPA */
.cim-mapa-figure {
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--cim-border);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0,0,0,.08);
}

.cim-mapa-figure img {
  width: 100%;
  height: auto;
}

.cim-mapa-caption {
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cim-muted);
  background: #fafafa;
  border-top: 1px solid #ececec;
}

/* TÍTULOS DE BLOQUE */
.cim-bloque-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  flex-wrap: wrap;
}

.cim-bloque-line {
  width: 20px;
  height: 2px;
  background: var(--cim-text);
  flex-shrink: 0;
}

.cim-bloque-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--cim-text);
}

.cim-bloque-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cim-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  background: #222;
}

.cim-tag-ig { background: #c13584; }
.cim-tag-tw { background: #14171a; display: none;}
.cim-tag-fb { background: #1877f2; }

/* CARRUSEL */
.cim-carousel {
  position: relative;
  margin-bottom: 8px;
}

.cim-viewport {
  width: 100%;
  overflow: hidden;
}

.cim-track {
  display: flex;
  align-items: stretch;
  gap: var(--cim-gap);
  transition: transform .38s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.cim-card,
.cim-post {
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--cim-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,.04);
}

.cim-card {
  display: flex;
  flex-direction: column;
}

.cim-card-img,
.cim-post-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  text-align: center;
  background: linear-gradient(135deg, #d7ddd9 0%, #eef1ef 100%);
  color: #6b6b6b;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--cim-border);
}

.cim-card-img {
  height: 120px;
}

.cim-card-body {
  flex: 1;
  padding: 12px;
}

.cim-card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--cim-text);
  margin-bottom: 4px;
}

.cim-card-sub {
  font-size: 12px;
  line-height: 1.55;
  color: #777;
}

.cim-post-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
}

.cim-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #bbb;
  background: #ccc;
  color: #666;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cim-handle {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

/* CONTROLES */
.cim-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 40px;
}

.cim-arrow {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bbb;
  border-radius: 50%;
  background: #fff;
  color: #444;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: background .15s ease, opacity .2s ease, transform .15s ease;
}

.cim-arrow:hover:not(:disabled) {
  background: #efefef;
  transform: translateY(-1px);
}

.cim-arrow:disabled {
  opacity: .3;
  cursor: default;
}

.cim-dots {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.cim-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  border: 1px solid #bbb;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.cim-dot:hover {
  transform: scale(1.08);
}

.cim-dot.cim-on {
  background: #333;
  border-color: #333;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .cim-hero {
    min-height: 480px;
  }

  .cim-hero-content {
    max-width: 100%;
    padding: 42px 32px;
  }

  .cim-hero-h1 {
    font-size: 38px;
  }

  .cim-sobre,
  .cim-mapa,
  .cim-redes {
    padding-left: 32px;
    padding-right: 32px;
  }

  .cim-video-frame iframe {
    min-height: 280px;
  }
}

@media (max-width: 600px) {
  .cim-hero {
    min-height: 440px;
  }

  .cim-hero-bg {
    background-position: center center;
  }

  .cim-hero-content {
    padding: 32px 20px;
  }

  .cim-hero-h1 {
    font-size: 29px;
  }

  .cim-hero-badge {
    font-size: 12px;
  }

  .cim-hero-desc,
  .cim-sobre-intro,
  .cim-mapa-intro {
    font-size: 16px;
  }

  .cim-sobre,
  .cim-mapa,
  .cim-redes {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cim-sobre,
  .cim-mapa {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .cim-redes {
    padding-top: 28px;
    padding-bottom: 36px;
  }

  .cim-sobre-title,
  .cim-mapa-title {
    font-size: 20px;
  }

  .cim-video-frame {
    border-radius: 14px;
  }

  .cim-video-frame iframe {
    min-height: 220px;
  }

  .cim-controls {
    margin-bottom: 28px;
  }
}
