:root {
  --option-color-1: #ed5565;
  --option-color-2: #fc6e51;
  --option-color-3: #ffce54;
  --option-color-4: #2ecc71;
  --option-color-5: #5d9cec;
  --option-color-6: #ac92ec;
}

/* Scope styles to the valores block to avoid affecting the whole page */
.stacked-cards-section {
  display: flex;
  justify-content: center;
  padding: 24px 0 32px;
  background: #ffffff;
}

.stacked-cards-section .options {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  max-width: 960px;
  width: 100%;
  gap: 10px;
  height: 400px;
}

.stacked-cards-section .option {
  position: relative;
  overflow: hidden;
  min-width: 60px;
  background: var(--optionBackground, var(--defaultBackground, #e6e9ed));
  background-size: auto 120%;
  background-position: center;
  cursor: pointer;
  transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
  border-radius: 30px;
  flex: 1;
}

.stacked-cards-section .option:nth-child(1) { --defaultBackground: var(--option-color-1); }
.stacked-cards-section .option:nth-child(2) { --defaultBackground: var(--option-color-2); }
.stacked-cards-section .option:nth-child(3) { --defaultBackground: var(--option-color-3); }
.stacked-cards-section .option:nth-child(4) { --defaultBackground: var(--option-color-4); }
.stacked-cards-section .option:nth-child(5) { --defaultBackground: var(--option-color-5); }
.stacked-cards-section .option:nth-child(6) { --defaultBackground: var(--option-color-6); }

.stacked-cards-section .option.active {
  flex-grow: 10000;
  max-width: 640px;
  border-radius: 40px;
  background-size: auto 100%;
}

.stacked-cards-section .option:not(.active) {
  flex-grow: 1;
}

.stacked-cards-section .option .shadow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
}



.stacked-cards-section .option .label {
  display: flex;
  position: absolute;
  right: 0;
  bottom: 10px;
  left: 10px;
  height: 40px;
  transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
}

.stacked-cards-section .option.active .label {
  bottom: 20px;
  left: 20px;
}

.stacked-cards-section .label .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  max-width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #5069D9;
  color: var(--defaultBackground);
}

.stacked-cards-section .label .icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.stacked-cards-section .label .info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 10px;
  color: white;
  white-space: pre;
}

.stacked-cards-section .card-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 24px 72px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.5;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  max-height: calc(100% - 70px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.stacked-cards-section .option:not(.active) .card-text {
  display: none;
}

.stacked-cards-section .label .info > div {
  position: relative;
  left: 20px;
  opacity: 0;
  transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95), opacity 0.5s ease-out;
}

.stacked-cards-section .option.active .label .info > div {
  left: 0;
  opacity: 1;
}

.stacked-cards-section .label .info .main {
  font-weight: 700;
  font-size: 1.2rem;
}

.stacked-cards-section .label .info .sub {
  transition-delay: 0.1s;
}

@media (max-width: 1024px) {
  .stacked-cards-section .options {
    height: 360px;
  }
}

@media (max-width: 768px) {
  .stacked-cards-section {
    padding: 16px 0 24px;
  }
  .stacked-cards-section .options {
    width: 100%;
    height: auto;
    align-items: stretch;
  }
  .stacked-cards-section .option {
    min-height: 360px;
  }
  .stacked-cards-section .option.active {
    max-width: 100%;
  }
  .stacked-cards-section .option:nth-child(n+5) {
    display: none;
  }
  .stacked-cards-section .card-text {
    font-size: 0.95rem;
    line-height: 1.45;
    text-align: left;
    align-items: flex-start;
    padding: 16px 16px 88px;
    max-height: none;
  }
  .stacked-cards-section .label {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 540px) {
  .stacked-cards-section .options {
    gap: 8px;
  }
  .stacked-cards-section .option {
    min-height: 320px;
    border-radius: 22px;
  }
  .stacked-cards-section .card-text {
    font-size: 0.9rem;
    padding: 14px 14px 80px;
  }
}