@font-face {
  font-family: "AvenirLight";
  src: url("../fonts/AvenirLTStd-Light.otf") format("opentype");
}

@-webkit-keyframes icon-spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes icon-spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

:root,
[data-theme="default"] {
  --color-primary-darker: hsl(220, 90%, 36%);
  --color-primary-darker-h: 220;
  --color-primary-darker-s: 90%;
  --color-primary-darker-l: 36%;
  --color-primary-dark: hsl(220, 90%, 46%);
  --color-primary-dark-h: 220;
  --color-primary-dark-s: 90%;
  --color-primary-dark-l: 46%;
  --color-primary: hsl(220, 90%, 56%);
  --color-primary-h: 220;
  --color-primary-s: 90%;
  --color-primary-l: 56%;
  --color-primary-light: hsl(220, 90%, 66%);
  --color-primary-light-h: 220;
  --color-primary-light-s: 90%;
  --color-primary-light-l: 66%;
  --color-primary-lighter: hsl(220, 90%, 76%);
  --color-primary-lighter-h: 220;
  --color-primary-lighter-s: 90%;
  --color-primary-lighter-l: 76%;
  --color-accent-darker: hsl(355, 90%, 41%);
  --color-accent-darker-h: 355;
  --color-accent-darker-s: 90%;
  --color-accent-darker-l: 41%;
  --color-accent-dark: hsl(355, 90%, 51%);
  --color-accent-dark-h: 355;
  --color-accent-dark-s: 90%;
  --color-accent-dark-l: 51%;
  --color-accent: hsl(355, 90%, 61%);
  --color-accent-h: 355;
  --color-accent-s: 90%;
  --color-accent-l: 61%;
  --color-accent-light: hsl(355, 90%, 71%);
  --color-accent-light-h: 355;
  --color-accent-light-s: 90%;
  --color-accent-light-l: 71%;
  --color-accent-lighter: hsl(355, 90%, 81%);
  --color-accent-lighter-h: 355;
  --color-accent-lighter-s: 90%;
  --color-accent-lighter-l: 81%;
  --color-black: hsl(240, 8%, 12%);
  --color-black-h: 240;
  --color-black-s: 8%;
  --color-black-l: 12%;
  --color-white: hsl(0, 0%, 100%);
  --color-white-h: 0;
  --color-white-s: 0%;
  --color-white-l: 100%;
  --color-success-darker: hsl(94, 48%, 36%);
  --color-success-darker-h: 94;
  --color-success-darker-s: 48%;
  --color-success-darker-l: 36%;
  --color-success-dark: hsl(94, 48%, 46%);
  --color-success-dark-h: 94;
  --color-success-dark-s: 48%;
  --color-success-dark-l: 46%;
  --color-success: hsl(94, 48%, 56%);
  --color-success-h: 94;
  --color-success-s: 48%;
  --color-success-l: 56%;
  --color-success-light: hsl(94, 48%, 66%);
  --color-success-light-h: 94;
  --color-success-light-s: 48%;
  --color-success-light-l: 66%;
  --color-success-lighter: hsl(94, 48%, 76%);
  --color-success-lighter-h: 94;
  --color-success-lighter-s: 48%;
  --color-success-lighter-l: 76%;
  --color-error-darker: hsl(355, 90%, 41%);
  --color-error-darker-h: 355;
  --color-error-darker-s: 90%;
  --color-error-darker-l: 41%;
  --color-error-dark: hsl(355, 90%, 51%);
  --color-error-dark-h: 355;
  --color-error-dark-s: 90%;
  --color-error-dark-l: 51%;
  --color-error: hsl(355, 90%, 61%);
  --color-error-h: 355;
  --color-error-s: 90%;
  --color-error-l: 61%;
  --color-error-light: hsl(355, 90%, 71%);
  --color-error-light-h: 355;
  --color-error-light-s: 90%;
  --color-error-light-l: 71%;
  --color-error-lighter: hsl(355, 90%, 81%);
  --color-error-lighter-h: 355;
  --color-error-lighter-s: 90%;
  --color-error-lighter-l: 81%;
  --color-warning-darker: hsl(46, 100%, 41%);
  --color-warning-darker-h: 46;
  --color-warning-darker-s: 100%;
  --color-warning-darker-l: 41%;
  --color-warning-dark: hsl(46, 100%, 51%);
  --color-warning-dark-h: 46;
  --color-warning-dark-s: 100%;
  --color-warning-dark-l: 51%;
  --color-warning: hsl(46, 100%, 61%);
  --color-warning-h: 46;
  --color-warning-s: 100%;
  --color-warning-l: 61%;
  --color-warning-light: hsl(46, 100%, 71%);
  --color-warning-light-h: 46;
  --color-warning-light-s: 100%;
  --color-warning-light-l: 71%;
  --color-warning-lighter: hsl(46, 100%, 81%);
  --color-warning-lighter-h: 46;
  --color-warning-lighter-s: 100%;
  --color-warning-lighter-l: 81%;
  --color-bg: hsl(0, 0%, 100%);
  --color-bg-h: 0;
  --color-bg-s: 0%;
  --color-bg-l: 100%;
  --color-contrast-lower: hsl(0, 0%, 95%);
  --color-contrast-lower-h: 0;
  --color-contrast-lower-s: 0%;
  --color-contrast-lower-l: 95%;
  --color-contrast-low: hsl(240, 1%, 83%);
  --color-contrast-low-h: 240;
  --color-contrast-low-s: 1%;
  --color-contrast-low-l: 83%;
  --color-contrast-medium: hsl(240, 1%, 48%);
  --color-contrast-medium-h: 240;
  --color-contrast-medium-s: 1%;
  --color-contrast-medium-l: 48%;
  --color-contrast-high: hsl(240, 4%, 20%);
  --color-contrast-high-h: 240;
  --color-contrast-high-s: 4%;
  --color-contrast-high-l: 20%;
  --color-contrast-higher: hsl(240, 8%, 12%);
  --color-contrast-higher-h: 240;
  --color-contrast-higher-s: 8%;
  --color-contrast-higher-l: 12%;
}

@supports (--css: variables) {
  @media (min-width: 64rem) {
    :root {
      --space-unit: 1.25em;
    }
  }
}

:root {
  --radius: 0.25em;
}

:root {
  --font-primary: sans-serif;
  --text-base-size: 1em;
  --text-scale-ratio: 1.2;
  --text-xs: calc(1em / var(--text-scale-ratio) / var(--text-scale-ratio));
  --text-sm: calc(var(--text-xs) * var(--text-scale-ratio));
  --text-md: calc(
    var(--text-sm) * var(--text-scale-ratio) * var(--text-scale-ratio)
  );
  --text-lg: calc(var(--text-md) * var(--text-scale-ratio));
  --text-xl: calc(var(--text-lg) * var(--text-scale-ratio));
  --text-xxl: calc(var(--text-xl) * var(--text-scale-ratio));
  --text-xxxl: calc(var(--text-xxl) * var(--text-scale-ratio));
  --body-line-height: 1.4;
  --heading-line-height: 1.2;
  --font-primary-capital-letter: 1;
}

@supports (--css: variables) {
  @media (min-width: 64rem) {
    :root {
      --text-base-size: 1.25em;
      --text-scale-ratio: 1.25;
    }
  }
}

:root {
  --cd-color-1: hsl(0, 0%, 22%);
  --cd-color-1-h: 0;
  --cd-color-1-s: 0%;
  --cd-color-1-l: 22%;
  --cd-color-2: hsl(74, 93%, 32%);
  --cd-color-2-h: 74;
  --cd-color-2-s: 93%;
  --cd-color-2-l: 32%;
  --cd-color-3: hsl(0, 0%, 97%);
  --cd-color-3-h: 0;
  --cd-color-3-s: 0%;
  --cd-color-3-l: 97%;
  --font-primary: "Fira Sans", sans-serif;
  --font-secondary: "Arial", serif;
}

.js {
  display: block;
  width: 90%;
  position: relative;
  top: 2rem;
  left: 60px;
}

/*.js .textoNuevo span.titulo {
    position: absolute;
    top: -160px;
    left: 129px;
}*/

/*.js .textoNuevo span.subtitulo {
    position: absolute;
    top: -130px;
    left: 129px;
}*/

.js .cd-h-timeline__container ol,
.js .cd-h-timeline__events ol,
.js .cd-h-timeline__container ul {
  list-style: none;
}

.js .cd-h-timeline__container ol li {
  margin: 0;
  padding: 10px;
  border: 10px;
}

.js .cd-h-timeline {
  opacity: 0;
  transition: opacity 0.2s;
}

.js .cd-h-timeline--loaded {
  opacity: 1;
}

.js .cd-h-timeline__container {
  position: relative;
  height: 420px;
  width: 88.5%;
}

.js .cd-h-timeline__dates {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.js .cd-h-timeline__dates::after,
.js .cd-h-timeline__dates::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  height: 100%;
  width: 20px bottom;
}

.js .cd-h-timeline__dates::before {
  left: 0;
  background: linear-gradient(to right, hsl(0, 0%, 97%), hsla(0, 0%, 97%, 0));
  background: linear-gradient(
    to right,
    var(--cd-color-3),
    hsla(var(--cd-color-3-h), var(--cd-color-3-s), var(--cd-color-3-l), 0)
  );
}

.js .cd-h-timeline__dates::after {
  right: 0;
  background: linear-gradient(to left, hsl(0, 0%, 97%), hsla(0, 0%, 97%, 0));
  background: linear-gradient(
    to left,
    var(--cd-color-3),
    hsla(var(--cd-color-3-h), var(--cd-color-3-s), var(--cd-color-3-l), 0)
  );
}

.js .cd-h-timeline__line {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 80px;
  height: 2px;
  background-color: hsl(0, 0%, 87.3%);
  background-color: hsl(
    var(--cd-color-3-h),
    var(--cd-color-3-s),
    calc(var(--cd-color-3-l) * 0.9)
  );
  transition: -webkit-transform 0.4s;
  transition: transform 0.4s;
  transition: transform 0.4s, -webkit-transform 0.4s;
  margin: 0;
  padding: 10px;
  border: 10px;
}

.js .cd-h-timeline__filling-line {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: #dfdfdf;
  -webkit-transform: scaleX(0);
  -ms-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transform-origin: left center;
  -ms-transform-origin: left center;
  transform-origin: left center;
  transition: -webkit-transform 0.3s;
  transition: transform 0.3s;
  transition: transform 0.3s, -webkit-transform 0.3s;
}

.js .cd-h-timeline__date {
  position: absolute;
  bottom: 0;
  z-index: 2;
  text-align: center;
  font-size: 0.8em;
  padding-bottom: 0.75em;
  padding-bottom: var(--space-sm);
  color: hsl(0, 0%, 22%);
  color: var(--cd-color-1);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  text-decoration: none;
  margin: 0;
  padding: 10px;
  border: 10px;
}

.js .cd-h-timeline__date span {
  position: absolute;
  top: 63px;
  left: 10px;
  font-size: 40px;
  font-weight: bold;
  color: #0a3a69;
  font-family: Arial;
  margin: 0;
  padding: 10px;
  border: 10px;
}

.js .cd-h-timeline__date p {
  position: absolute;
  top: 25px;
  left: 9px;
  font-size: 14px;
  padding-top: 140px;
  padding-left: 10px;
  padding-bottom: 10px;
  border-left: 3px solid #b10404;
  text-align: left;
  width: 200px;
  line-height: 1.5;
  color: rgba(120, 120, 120, 1);
  font-family: "AvenirLight";
}

.js .cd-h-timeline__date::after {
  content: "";
  position: absolute;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  bottom: -7px;
  height: 35px;
  width: 35px;
  border-radius: 50%;
  border-width: 4px;
  border-style: solid;
  border-color: #b10404;
  background-color: hsl(0, 0%, 97%);
  background-color: var(--cd-color-3);
  transition: background-color 0.3s, border-color 0.3s;
}

.js .cd-h-timeline__date:hover::after {
  background-color: #b10404;
  border-color: #b10404;
}

@media (min-width: 64rem) {
  .js .cd-h-timeline__date {
    font-size: 0.7em;
  }
}

@media only screen and (min-width: 21px) and (max-width: 820px) {
  .js {
    width: 100%;
    position: relative;
    top: 125px;
    left: 0px;
    padding: 25px 0;
    height: auto;
  }
  .js .cd-h-timeline__dates {
    margin: 0px;
  }
  .js .cd-h-timeline__dates span {
    font-size: 2.7rem;
  }
  .js .cd-h-timeline__dates p {
    font-size: 0.8rem;
    top: 10px;
  }
  .js .cd-h-timeline--loaded {
    margin-top: -15px;
  }
  .js .cd-h-timeline__container {
    width: 100%;
  }
}

.js .cd-h-timeline__date--selected {
  pointer-events: none;
}

.js .cd-h-timeline__date--selected::after {
  background-color: #b10404;
  border-color: #b10404;
}

.js .cd-h-timeline__date--older-event::after {
  background-color: #b10404;
  border-color: #b10404;
}

.js .cd-h-timeline__navigation {
  position: absolute;
  z-index: 1;
  top: 10%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  height: 38px;
  width: 38px;
  border-radius: 50%;
  /* border-width: 2px;
    border-style: solid;
    border-color: #dadada;
    transition: border-color 0.3s;*/
}

.js .cd-h-timeline__navigation::after {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  top: 50%;
  left: 50%;
  -webkit-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  background: url("../images/cd-arrow.svg") no-repeat 0 0;
}

.js .cd-h-timeline__navigation:hover {
  border-color: #e61616;
}

.js .cd-h-timeline__navigation--prev {
  left: 0;
  -webkit-transform: translateY(-50%) rotate(180deg);
  -ms-transform: translateY(-50%) rotate(180deg);
  transform: translateY(-50%) rotate(180deg);
}

.js .cd-h-timeline__navigation--next {
  right: 0;
}

.js .cd-h-timeline__navigation--inactive {
  cursor: not-allowed;
}

.js .cd-h-timeline__navigation--inactive::after {
  background-position: 0 -16px;
}

.js .cd-h-timeline__navigation--inactive:hover {
  border-color: hsl(0, 0%, 87.3%);
  border-color: hsl(
    var(--cd-color-3-h),
    var(--cd-color-3-s),
    calc(var(--cd-color-3-l) * 0.9)
  );
}

.js .cd-h-timeline__events {
  position: relative;
  width: 100%;
  overflow: hidden;
  transition: height 0.4s;
}

.js .cd-h-timeline__event {
  position: absolute;
  z-index: 1;
  width: 100%;
  left: 0;
  top: 0;
  -webkit-transform: translateX(-100%);
  -ms-transform: translateX(-100%);
  transform: translateX(-100%);
  padding: 1px 5%;
  opacity: 0;
  -webkit-animation-duration: 0.4s;
  animation-duration: 0.4s;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
}

.js .cd-h-timeline__event--selected {
  position: relative;
  z-index: 2;
  opacity: 1;
  -webkit-transform: translateX(0);
  -ms-transform: translateX(0);
  transform: translateX(0);
}

.js .cd-h-timeline__event--enter-right,
.js .cd-h-timeline__event--leave-right {
  -webkit-animation-name: cd-enter-right;
  animation-name: cd-enter-right;
}

.js .cd-h-timeline__event--enter-left,
.js .cd-h-timeline__event--leave-left {
  -webkit-animation-name: cd-enter-left;
  animation-name: cd-enter-left;
}

.js .cd-h-timeline__event--leave-right,
.js .cd-h-timeline__event--leave-left {
  animation-direction: reverse;
}

.js .cd-h-timeline__event-content {
  max-width: 800px;
}

.js .cd-h-timeline__event-title {
  color: hsl(0, 0%, 22%);
  color: var(--cd-color-1);
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 2.48832em;
  font-size: var(--text-xxxl);
}

.js .cd-h-timeline__event-date {
  display: inline-block;
  margin: 0.5em auto;
  margin: var(--space-xs) auto;
  -webkit-transform: skewX(-15deg);
  -moz-transform: skewX(-15deg);
  -ms-transform: skewX(-15deg);
  -o-transform: skewX(-15deg);
  transform: skewX(-15deg);
  background: red;
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  letter-spacing: 3px;
  margin-left: 20px;
}

@-webkit-keyframes cd-enter-right {
  0% {
    opacity: 0;
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateX(0%);
    transform: translateX(0%);
  }
}

@keyframes cd-enter-right {
  0% {
    opacity: 0;
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateX(0%);
    transform: translateX(0%);
  }
}

@-webkit-keyframes cd-enter-left {
  0% {
    opacity: 0;
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateX(0%);
    transform: translateX(0%);
  }
}

@keyframes cd-enter-left {
  0% {
    opacity: 0;
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateX(0%);
    transform: translateX(0%);
  }
}

#slidehistorias span.titulo {
  position: absolute;
  top: 60%;
  left: 17%;
  color: #ffffff;
  font-size: 3.3rem;
}

#slidehistorias span.subtitulo {
  position: absolute;
  background: #e61616;
  top: 68%;
  left: 17.3%;
  color: #ffffff;
  font-size: 3.2rem;
  padding: 0 10px;
  transform: skewX(-15deg);
}
