@import url(https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap);
:root {
  --body-bg: #f4f4f5;
  --text-dark: #111111;
  --text-light: #ffffff;
  --border-gray: #d1d5db;

  /* cosmic gradient palette */
  --coral-orange: #f99062;
  --hot-pink: #f274ba;
  --light-purple: #bd85fc;
  --periwinkle-blue: #838cf8;
}

html,
body {
  padding: 0;
  margin: 0;
  background-color: var(--body-bg);
  color: var(--text-dark);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

a {
  color: var(--periwinkle-blue);
  text-decoration: none;
  transition: color 0.2s;
}

.link {
  cursor: pointer;
  color: var(--periwinkle-blue);
  text-decoration: none;
  transition: color 0.2s;
}

h2 {
  font-size: 1.5rem;
}

hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 1.5rem 0;
}

.container {
  width: 100%;
  max-width: 1440px;
  min-height: calc(100vh - 130px);
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  overflow: hidden;
  background-color: white;
}

.container.no-bg {
  background-color: transparent;
}

.container-header {
  width: 100%;
  max-width: 1440px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  overflow: hidden;
}

.header {
  position: relative;
  color: white;
  padding: 0 1.5rem;
  background-color: black;
}

.header #stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.results-container {
  border: #c4d3db 0.5px solid;
  border-radius: 0 6px 6px 6px;
  margin: 0 2.75rem;
  background: #c4d3db 0.5px solid;
  margin-bottom: 45px;
}

.results-container-inner {
  border: #c4d3db 0.5px solid;
  border-radius: 0 6px 6px 6px;
  padding: 0;
  margin: 0 30px 45px 30px;
  background: white;
}

.header-icons a {
  color: white;
}

.header-icons {
  width: 20rem;
}
/* FilterVizualisation */
.selectButton-filterVisualization {
  margin-left: 2.75rem;
  min-width: 44.563rem;
  border-radius: 6px 6px 0 0;
  border: none;
  margin-bottom: -1px;
}

.selectButton-filterVisualization .p-button {
  width: 20rem;
}

.selectButton-filterVisualization .p-button:first-child {
  border-radius: 6px 0 0 0;
}
.selectButton-filterVisualization .p-button:last-child {
  border-radius: 0 6px 0 0;
}

.selectButton-filterVisualization .p-button.p-highlight {
  background-color: #0083ad;
  border-color: #98bacc;
  color: white;
}

.selectButton-filterVisualization .p-highlight {
  color: white;
}

/*filter-price-scatter*/
.filter-price-scatter {
  margin-left: 2.75rem;
  margin-bottom: 0.5rem;
}

/* Filter Visualization Type*/
.filter-visualization-type {
  margin-bottom: 0;
  margin-left: 30px;
  width: 44.413rem;
  border: 0.25px solid var(--border-color);
  border-radius: 6px 6px 0 0;
  border-bottom: none;
}
.filter-visualization-type .p-button {
  width: 22.125rem;
  border: none; /* Cambiar color del borde */
}

.filter-visualization-type .p-button:first-child {
  border-radius: 6px 0 0 0;
}
.filter-visualization-type .p-button:last-child {
  border-radius: 0 6px 0 0;
}

.filter-visualization-type .p-button.p-highlight {
  background-color: #0083ad;
  border-color: #98bacc;
  color: white;
}

/*filter-dataset-type*/
.filter-dataset-type {
  margin: 2.688rem;
  width: fit-content;
  height: 2.688rem;
  border: 0.25px solid #98bacc;
  border-radius: 6px;
  margin-bottom: 0;
  background-color: #f0f4f6;
  padding: 0.25rem;
}
.filter-dataset-type .p-button {
  width: 14.6rem;
  border-radius: 6px;
  border: none;
  background-color: #f0f4f6;
  height: 2.188rem;
}

.filter-dataset-type .p-highlight {
  background-color: #ffff !important;
  color: black !important;
}

.help {
  cursor: help;
}

.help::after {
  content: "?";
  display: inline-block;
  margin-left: 8px;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  background-color: var(--yellow-400);
  color: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: bold;
  border: 1px solid rgba(0, 0, 0, 0.375);
}

.cs-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.875);
}

.cs-icon::before {
  content: "";
}

/* Green Checkmark */
.cs-icon.cs-green {
  color: black;
  font-size: 9px;
  background-color: white;
}
.cs-icon.cs-green::before {
  content: "✔";
}

/* Yellow Minus */
.cs-icon.cs-yellow {
  color: black;
  font-size: 13px;
  background-color: white;
}
.cs-icon.cs-yellow::before {
  content: "-";
}

/* Red Exclamation */
.cs-icon.cs-red {
  color: black;
  font-size: 11px;
  font-weight: bold;
  background-color: white;
}
.cs-icon.cs-red::before {
  content: "!";
}

.top-line {
  width: 100%;
  margin: 0 auto;
  height: 8px;
  background: var(--top-line-gradient);
}

.filters-section {
  margin-bottom: 15px 0;
}

.filters-section .filter {
  margin-bottom: 10px;
}

.filters-section .filter label {
  display: block;
  font-size: small;
  font-weight: bold;
  margin-bottom: 5px;
}

.selection-section {
  margin: 15px 0;
}

.insights-section {
  padding: 30px 0;
  margin-left: 2.688rem;
  margin-right: 2.688rem;
}

.insights-section h2,
.insights-section p {
  font-size: 16px;
  margin: 0;
}

.insights-section .small {
  font-size: 14px;
}

.p-card-body .p-card-content {
  padding: 0 !important;
}

.p-card-body {
  padding: 0.5rem 1.25rem;
}

.insights-card {
  width: 18.75rem;
  min-height: 10.25rem;
  height: 10.75rem;
  padding: 0 !important;
  background-color: #f0f4f6;
}

.facility-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  max-height: 3em;
  transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out;
  transition: height 0.5s ease-in-out, opacity 0.3s ease-in-out;
}

.insights-card-market-gap {
  width: 18.75rem;
  min-height: 10.25rem;
  height: 10.75rem;
  padding: 0 !important;
  background-color: #f0f4f6;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, padding 0.3s ease-in-out;
}

.insights-card-market-gap:hover {
  max-height: 15rem; /* Controla la expansión */
  height: auto;
}

.insights-card-market-gap:hover .facility-text {
  -webkit-line-clamp: unset; /* Quita el límite de líneas */
  line-clamp: unset;
  max-height: 50rem; /* Expande gradualmente */
  opacity: 1;
  height: auto;
}

.p-selectbutton .p-button.p-highlight {
  background-color: var(--btn-color);
  border-color: var(--border-color);
}

.ReactModal__Overlay {
  z-index: 10;
}

.filterButton {
  border-radius: 0 6px 0 6px;
  background: white;
}

.filterButton.p-button.p-component:hover {
  transform: none;
  background: #f0f4f6 !important;
  box-shadow: none;
  color: white;
}

.p-button-label {
  font-size: 16px;
  font-weight: 500;
}

.form-container {
  width: 100%;
  max-width: 800px;
  padding: 3.75rem 10.5rem;
  border-radius: 0.375rem;
  border: #c4d3db 0.5px solid;
  box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14),
    0 1px 3px 0 rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  margin: auto;
  margin-bottom: 3.75rem;
  background: #c4d3db 0.5px solid;
  text-align: center;
}

.form-container .p-inputtext {
  width: 20rem;
}

.form-container .p-button {
  align-self: center;
  width: 20rem;
  margin-top: 1.5rem;
}

@keyframes btn-border-top {
  0% {
    right: auto;
    left: 0;
    width: 0%;
  }
  12.5% {
    right: auto;
    left: 0;
    width: 100%;
  }
  12.6% {
    right: 0;
    left: auto;
  }
  50% {
    width: 100%;
  }
  62.5% {
    width: 0%;
  }
  100% {
    right: 0;
    left: auto;
    width: 0%;
  }
}

@keyframes btn-border-bottom {
  0% {
    left: auto;
    right: 0;
    width: 0%;
  }
  12.5% {
    left: auto;
    right: 0;
    width: 100%;
  }
  12.6% {
    left: 0;
    right: auto;
  }
  50% {
    width: 100%;
  }
  62.5% {
    width: 0%;
  }
  100% {
    left: 0;
    right: auto;
    width: 0%;
  }
}

@keyframes btn-border-span-left {
  0% {
    top: auto;
    bottom: 0;
    height: 0%;
  }
  12.5% {
    top: auto;
    bottom: 0;
    height: 100%;
  }
  12.6% {
    top: 0;
    bottom: auto;
  }
  50% {
    height: 100%;
  }
  62.5% {
    height: 0%;
  }
  100% {
    top: 0;
    bottom: auto;
    height: 0%;
  }
}

@keyframes btn-border-span-right {
  0% {
    bottom: auto;
    top: 0;
    height: 0%;
  }
  12.5% {
    bottom: auto;
    top: 0;
    height: 100%;
  }
  12.6% {
    bottom: 0;
    top: auto;
  }
  50% {
    height: 100%;
  }
  62.5% {
    height: 0%;
  }
  100% {
    bottom: 0;
    top: auto;
    height: 0%;
  }
}

.p-button-loading {
  border: none;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.09);
}

.p-button-loading::before,
.p-button-loading::after,
.p-button-loading span::before,
.p-button-loading span::after {
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  background: #002e6d;
  content: "";
  opacity: 1;
  position: absolute;
  transition: opacity 1s ease;
}

.p-button-loading::before,
.p-button-loading::after {
  height: 2px;
  width: 0%;
}

.p-button-loading::before {
  right: 0;
  top: 0;
  animation-name: btn-border-top;
  animation-duration: 1s;
}

.p-button-loading::after {
  bottom: 0;
  left: 0;
  animation-name: btn-border-bottom;
  animation-delay: 0.2s;
  animation-duration: 1s;
}

.p-button-loading span::before,
.p-button-loading span::after {
  height: 0%;
  width: 2px;
}

.p-button-loading span::before {
  left: 0;
  top: 0;
  animation-name: btn-border-span-left;
  animation-delay: 0.3s;
  animation-duration: 1s;
}

.p-button-loading span::after {
  bottom: 0;
  right: 0;
  animation-name: btn-border-span-right;
  animation-delay: 0.1s;
  animation-duration: 1s;
}

.filter-dropdown .p-dropdown-label {
  font-size: 1rem;
  font-weight: normal;
  color: black;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.4;
  z-index: 50;
  pointer-events: none;
}

@layer primereact {
  .p-component {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
      sans-serif;
  }

  .p-button.p-component {
    background: linear-gradient(135deg, var(--hot-pink), var(--light-purple));
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    color: white;
  }

  .p-button.p-component.p-disabled {
    background: none;
    border: #c4d3db 0.5px solid;
    color: black;
  }

  .p-button.p-component:hover {
    background: linear-gradient(
      135deg,
      var(--hot-pink),
      var(--light-purple)
    ) !important;
    border: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(189, 133, 252, 0.4);
  }

  .p-togglebutton .p-button.p-component {
    background: var(--gray-400) !important;
  }
  .p-togglebutton.p-highlight .p-button.p-component {
    background: var(--green-500) !important;
  }

  .p-selectbutton .p-button {
    color: black;
    border: 1px solid var(--border-color);
    background: none;
  }

  .p-selectbutton .p-button.p-component:hover {
    background: #f0f4f6 !important;
    border: 1px solid var(--border-color);
    transform: none;
    box-shadow: none;
  }

  .p-selectbutton .p-button.p-highlight {
    background: var(--btn-color);
    color: white;
  }

  .p-selectbutton .p-button.p-highlight:hover {
    background: var(--btn-color) !important;
    color: white !important;
  }

  .p-button:active {
    transform: translateY(0);
  }

  .p-dropdown:not(.p-disabled).p-focus,
  .p-dropdown:not(.p-disabled):hover {
    outline: none;
    border-color: var(--light-purple) !important;
    box-shadow: 0 0 0 3px rgba(189, 133, 252, 0.1);
  }

  .p-selectbutton .p-button.p-highlight {
    background-color: var(--btn-color);
    border-color: var(--border-color);
  }

  .visualize-btn.p-button:hover {
    background-color: #003b8d !important;
    border-color: #003b8d !important;
    color: white;
  }
}

.ag-theme-alpine {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --ag-font-family: inherit;
}

#visualization-container {
  position: relative;
  overflow: hidden;
}

