:root {
  --hbc-container-backgorund: linear-gradient(110deg, #17505244 10%, #2f266142);

  --dark-container-border: 0.5px solid #303030;
  --global-container-border: 5px;

}

:root,
[data-theme="dark"] {
  --title-background-up: #000000e1;
  --title-background-down: #000000b4;
}

[data-theme="light"] {
  --title-background-up: #c7c5c5b4;
  --title-background-down: #cac8c870;
}

.header-link {
  color: var(--link-color);
}

.header-link:hover {
  color: var(--link-color-hover);
}

.tag {
  padding: 7px 14px;
  font-size: 13px;
  background-color: var(--tag-background);
  /*background: linear-gradient(120deg, #3800667a, #3800667a);*/
  background-size: 450px 100px;
  color: var(--tag-color);
  border: 1px solid #ffffff25;
  border-radius: 30px;
}

body {
  color: var(--color);
  background-color: var(--background);
  overflow-x: hidden;
  /* Oculta el scroll horizontal */
}

.title {
  height: 200px;
  padding: 0 10px;
  align-content: center;
  text-align: left;
  top: 0;
  left: 0;
}

h1 {
  font-size: 40px;
  font-weight: lighter;
}

.article-body {
  padding: 10px 20px;
}

.article-objective {
  padding: 60px 0;
  display: flex;
}

.article-objective>.text {
  width: 39%;
  padding: 0 12px 0 0;
}

.article-objective>.diagram {
  width: 61%;
}

.tab-content:not(.active) {
  display: block !important;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}

.timeline-tabs-container {
  border-radius: 12px;
  padding: 0 10px;
  margin: 24px 0;
}

.tabs-header {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab-btn {
  background-color: var(--background);
  color: #a0a0a0;
  border: 1px solid #2e2e2e;
  border-radius: 5px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.tab-btn:hover {
  background-color: #242029;
  color: #ffffff;
  border-color: #583578;
}

.tab-btn.active {
  background-color: #261b33;
  color: var(--color);
  border-color: #8b5cf6;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.15);
}

.time-badge {
  background-color: #3b2654;
  color: #d8b4fe;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}






.step-slider-container {
  border-radius: 12px;
  padding: 0;
  margin: 24px 0;
  font-family: inherit;
  color: var(--color);
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.slider-header h3 {
  margin: 0;
  font-size: 16px;
  color: var(--color);
}

.step-counter {
  background-color: #261b33;
  color: #d8b4fe;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #583578;
}

.slide-item {
  display: none;
  animation: fadeSlide 0.3s ease;
}

.slide-item.active {
  display: block;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.media-canvas {
  display: flex;
  gap: 12px;
  border-radius: 6px;
  padding: 16px;
  align-items: center;
  justify-content: center;
  height: auto;
  max-height: 320px;
  position: relative;
  overflow: hidden;
}

.pictures {
  display: flex;
  height: 340px;
  align-items: center;
  align-content: center;
}

.picture {
  margin: 0 20px;
  border-radius: 10px;
}

.media-canvas img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  object-fit: contain;
  max-height: 340px;

  filter: var(--picture-filter);
  transition: filter 0.3s ease;
}

.media-canvas:hover img {
  filter: var(--picture-filter) brightness(1.05);
}


.slider-caption {
  display: flex;
  padding: 24px 0 12px 0;
  justify-content: center;
  text-align: center;
}

.caption-text {
  max-width: 700px;
}

.slider-caption h4 {
  margin: 0 0 8px 0;
  color: #c282ec;
  font-size: 16px;
}

.slider-caption p {
  margin: 0;
  color: #c7ceda;
  font-size: 14px;
  line-height: 1.6;
}

.slider-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}

.slider-btn {
  background-color: #1c1c1c;
  color: #d1d5db;
  border: 1px solid #2e2e2e;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-btn:hover {
  background-color: #261b33;
  color: #fff;
  border-color: #8b5cf6;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 15px;
  height: 4px;
  background-color: #333;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dot.active {
  background-color: #8b5cf6;
  transform: scale(1.2);
}










@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.diagram-box {
  background-color: var(--background);
  border: var(--dark-container-border);
  border-radius: 3px;
  padding: 24px;
  display: flex;
  justify-content: center;
  overflow-x: auto;
}

.diagram-box svg {
  width: 100%;
  max-width: 100%;
  height: auto !important;
  min-width: 300px;
  /* Evita que se encoja a cero */
}

@media screen and (min-width: 1400px) {
  .title {
    margin: 100px 14% 30px 14%;
  }

  .article-body {
    margin: 20px 14% 20px 14%;
  }
}

@media screen and (max-width: 800px) {
  .title {
    padding: 0 10px;
    text-align: center;
  }

}