:root {
   --coah26-text: #424242;
   --coah26-pink: #f778a6;
   --coah26-bg: #f9ccdc;
   --coah26-district: #ff92b9;
   --coah26-morena: #800000;
   --coah26-pan: #063890;
   --coah26-pri: #009035;
   --coah26-mc: #ff8300;
   --coah26-otros: #8b4699;
   --coah26-scroll-width: 960px;
   --coah26-district-height: 89px;
}

* {
   box-sizing: border-box;
}

body {
   margin: 0;
   background: #ffffff;
   color: var(--coah26-text);
   font-family: Arial, Helvetica, sans-serif;
}

.demo-wrap {
   width: 100%;
   overflow-x: hidden;
   background: #ffffff;
}

.coah26 {
   position: relative;
   min-width: 1180px;
   max-width: 1280px;
   margin: 0 auto;
   overflow: hidden;
   background: #ffffff;
   border-bottom: 4px solid #242424;
}

.coah26__corner {
   position: absolute;
   z-index: 4;
   pointer-events: none;
}

.coah26__corner--right {
   top: -21px;
   right: -75px;
   width: 192px;
   transform: rotate(0deg);
}

.coah26__corner img {
   display: block;
   width: 100%;
}

.coah26__header {
   position: elative;
   display: flex;
   align-items: center;
   justify-content: center;
   height: 74px;
   padding-top: 8px;
}

.coah26__title {
   display: flex;
   align-items: center;
   gap: 12px;
   color: var(--coah26-text);
   font-size: 34px;
   font-weight: 700;
   letter-spacing: 7px;
   line-height: 1;
   white-space: nowrap;
}

.coah26__title strong {
   color: var(--coah26-pink);
   font-weight: 800;
}

.coah26__box {
   width: 62px;
   margin-left: 18px;
   transform: rotate(-8deg);
}

.coah26__content {
   position: relative;
   display: grid;
   grid-template-columns: 78px 1fr 118px;
   grid-template-rows: var(--coah26-district-height) auto;
   gap: 0 20px;
   padding: 0 20px 14px 20px;
}

.coah26__content::before {
   content: '';
   position: absolute;
   left: 0;
   right: 0;
   top: var(--coah26-district-height);
   bottom: 0;
   z-index: 0;
   background: var(--coah26-bg);
}

.coah26__scroll,
.coah26__parties,
.coah26__links {
   position: relative;
   z-index: 1;
}

.coah26__scroll {
   grid-column: 2;
   grid-row: 1 / span 2;
   width: 100%;
   overflow-x: auto;
   overflow-y: hidden;
   -webkit-overflow-scrolling: touch;
}

.coah26__scroll::-webkit-scrollbar {
   height: 6px;
}

.coah26__scroll::-webkit-scrollbar-thumb {
   background: rgba(66, 66, 66, .35);
   border-radius: 10px;
}

.coah26__scroll::-webkit-scrollbar-track {
   background: transparent;
}

.coah26__districts {
   display: grid;
   grid-template-columns: repeat(6, 1fr);
   gap: 0;
   width: 100%;
   min-width: var(--coah26-scroll-width);
   height: var(--coah26-district-height);
   padding: 0 0 13px 0;
}

.coah26__district-item {
   position: relative;
   display: flex;
   align-items: center;
   justify-content: center;
   min-height: 76px;
   padding: 0;
   border: 0;
   background: transparent;
   appearance: none;
}

.coah26__district-item:not(:last-child)::after {
   content: '';
   position: absolute;
   right: -1px;
   top: 19px;
   width: 4px;
   height: 52px;
   border-radius: 10px;
   background: var(--coah26-text);
}

.coah26__district-item img {
   display: block;
   width: 156px;
   max-height: 80px;
   object-fit: contain;
   transform: scale(1.72);
   transform-origin: center center;
}

.coah26__parties {
   grid-column: 1;
   grid-row: 2;
   display: grid;
   grid-template-rows: 36px 36px 36px 36px 22px;
   gap: 5px;
   align-content: start;
   margin-top: 31px;
}

.coah26__party {
   display: flex;
   align-items: end;
   justify-content: end;
   gap: 3px;
}

.coah26__party--coalition img {
   width: 35px;
   max-height: 34px;
}

.coah26__party--single img {
   width: 38px;
   max-height: 36px;
}

.coah26__party--pri img,
.coah26__party--otros img {
   width: 34px;
}

.coah26__results {
   display: grid;
   grid-template-columns: repeat(6, minmax(132px, 1fr));
   gap: 31px;
   width: 100%;
   min-width: var(--coah26-scroll-width);
   min-height: 232px;
   padding: 31px 0 14px 0;
}

.coah26__column {
   display: grid;
   grid-template-rows: 36px 36px 36px 36px 22px;
   gap: 5px;
   align-content: start;
}

.coah26__bar-row {
   position: relative;
   display: block;
   align-items: center;
}

.coah26__bar-track {
   position: relative;
   z-index: 1;
   height: 36px;
   overflow: hidden;
   border-radius: 2px;
   background: rgba(255, 255, 255, .72);
}

.coah26__bar-row--otros .coah26__bar-track {
   height: 22px;
}

.coah26__bar {
   display: block;
   width: 0;
   height: 100%;
   min-width: 24px;
   border-radius: 2px;
   transition: width .45s ease;
}

.coah26__percent {
   position: absolute;
   top: 50%;
   right: 8px;
   z-index: 2;
   color: var(--coah26-text);
   font-size: 16px;
   font-weight: 800;
   line-height: 1;
   text-align: right;
   white-space: nowrap;
   transform: translateY(-50%);
}

.coah26__links {
   grid-column: 3;
   grid-row: 2;
   display: grid;
   grid-template-rows: 65px 65px 65px;
   gap: 8px;
   align-content: start;
   top: 16px;
}

.coah26__link-card {
   position: relative;
   display: flex;
   align-items: center;
   justify-content: center;
   min-height: 54px;
   padding: 4px 8px;
   border-radius: 4px;
   text-decoration: none;
}

/*
.coah26__link-card::before {
   content: '';
   position: absolute;
   left: 50%;
   top: -25px;
   z-index: -1;
   width: 0;
   height: 0;
   transform: translateX(-50%);
   border-right: 28px solid transparent;
   border-bottom: 28px solid #303030;
   border-left: 28px solid transparent;
}
*/

.coah26__link-card img {
   display: block;
   max-height: 110px;
   object-fit: contain;
}

.coah26.is-loading .coah26__results::before {
   content: 'Cargando resultados...';
   color: var(--coah26-text);
   font-weight: 700;
}

.coah26.has-error .coah26__results::before {
   content: 'No se pudo cargar el JSON.';
   color: var(--coah26-morena);
   font-weight: 700;
}

@media (max-width: 1180px) {
   .coah26 {
      min-width: 100%;
      max-width: 100%;
      margin: 0;
      transform-origin: top left;
   }

   .coah26__districts,
   .coah26__results {
      width: var(--coah26-scroll-width);
      min-width: var(--coah26-scroll-width);
   }

}

/* Otro plus */

.ajustados {
   max-height: 59px!important;
   position: relative;
   top: 4px;
}

@media (max-width: 768px) {
   .coah26__content {
      padding: 0!important;
      gap: 0 10px!important;
   }

   .coah26__content {
      grid-template-columns: 78px 1fr 95px!important;
   }

   .coah26__link-card {
      width: 100px!important;
   }

   .coah26__title {
      display: block;
      text-align: center;
      letter-spacing: 4px;
      font-size: 23px;
   }

   .coah26__title span {
      display: block;
   }

   .coah26__title strong {
      display: block;
      margin-top: 4px;
      /*font-size: 32px;*/
   }

   .coah26__box {
      position: absolute;
      right: 13px;
      top: 81px;
      width: 71px;
      margin: 0;
      transform: translateY(-50%) rotate(-8deg);
      z-index: 6;
   }

   .coah26__corner--right {
      width: 140px;
      right: -45px;
      top: 0;
   }
}
