/* Estilos especificos para la pagina +Datos +Transparencia */

.text-outline-blue {
  color: transparent !important;
  -webkit-text-stroke: 1.5px #1822B6 !important;
  text-stroke: 1.5px #1822B6 !important;
}

.text-outline-pink {
  color: transparent !important;
  -webkit-text-stroke: 1.5px #FB4F80 !important;
  text-stroke: 1.5px #FB4F80 !important;
}

.scrollbar-none::-webkit-scrollbar {
  display: none;
}

.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.component-tab {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 0%;
  cursor: pointer;
  user-select: none;
  font-family: 'Raleway', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.component-tab-line {
  display: block;
  line-height: 1.05;
}

.component-tab-line-label {
  font-size: 0.62rem;
}

.component-tab-line-number {
  margin-top: 0.15rem;
  font-size: 0.9rem;
}

.component-tab-desktop {
  display: none;
}

.component-tab.active {
  background-color: #ffffff !important;
  color: #1822B6 !important;
  box-shadow: inset 4px 0 0 0 #FB4F80;
}

.component-tab:not(.active) {
  background-color: #f9fafb !important;
  color: #9ca3af !important;
}

.component-tab:not(.active):hover {
  background-color: #f3f4f6 !important;
  color: #4b5563 !important;
}

#impact-component-container {
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

#impact-component-card {
  box-sizing: border-box;
  width: 100%;
  min-height: 350px;
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  overflow: hidden;
  isolation: isolate;
}

.impact-component-image-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: none;
  transition: opacity 0.55s ease;
}

.impact-component-image-layer.is-visible {
  opacity: 1;
}

.impact-component-overlay {
  background: linear-gradient(90deg, rgba(24, 34, 182, 0.72) 0%, rgba(24, 34, 182, 0.56) 48%, rgba(251, 79, 128, 0.22) 100%);
}

#impact-component-tabs {
  display: flex;
  flex-direction: row;
  width: 100%;
}

#impact-metrics-details {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 2.5rem;
  align-items: start;
}

#impact-allies-panel,
#impact-objective-metrics-panel {
  grid-column: auto !important;
  min-width: 0;
}

#impact-objective-metrics-panel {
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  order: 1;
}

#impact-allies-panel {
  order: 2;
}

#impact-carousel-wrapper {
  width: 100%;
  overflow: hidden;
}

#impact-metrics-list {
  display: flex !important;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
}

#impact-metrics-list > div {
  flex: 0 0 260px !important;
  max-width: 260px !important;
}

.phase-btn {
  transition: all 0.3s ease;
  font-family: 'Lato', sans-serif;
  cursor: pointer;
}

.phase-btn.active {
  background-color: #1822B6 !important;
  color: #ffffff !important;
}

.phase-btn:not(.active) {
  background-color: transparent !important;
  color: #1822B6 !important;
}

.phase-btn:not(.active):hover {
  background-color: #f3f4f6 !important;
}

@media (max-width: 767px) {
  #impact-component-tabs {
    flex-wrap: nowrap;
  }

  .component-tab {
    min-width: 0;
    padding: 0.85rem 0.35rem;
    font-size: 0.68rem;
    letter-spacing: 0.02em;
  }

  .component-tab.active {
    box-shadow: inset 0 -4px 0 0 #FB4F80;
  }
}

@media (min-width: 768px) {
  .component-tab {
    flex-direction: row;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .component-tab-line {
    display: none;
  }

  .component-tab-desktop {
    display: inline;
  }

  #impact-component-container {
    flex-direction: row;
  }

  #impact-component-card {
    width: 75%;
    min-height: 375px;
    padding: 3rem;
  }

  #impact-component-tabs {
    flex-direction: column;
    width: 25%;
  }

  #impact-metrics-list > div {
    flex-basis: 280px !important;
    max-width: 280px !important;
  }

  #impact-metrics-details {
    grid-template-columns: minmax(250px, 32%) minmax(0, 1fr) !important;
    gap: 2rem;
  }

  #impact-allies-panel {
    order: 1;
    border-right: 1px solid #f3f4f6;
    padding-right: 1.75rem;
  }

  #impact-objective-metrics-panel {
    order: 2;
    padding-left: 0;
  }
}

@media (min-width: 1024px) {
  #impact-metrics-details {
    grid-template-columns: minmax(280px, 4fr) minmax(0, 8fr) !important;
  }

  #impact-allies-panel {
    border-right: 1px solid #f3f4f6;
    padding-right: 2rem;
  }
}
