.picto-budget {
  --budget-ink: #151115;
  --budget-muted: #726a71;
  --budget-pink: #e91e63;
  --budget-pink-dark: #c91451;
  --budget-soft: #fff4f8;
  --budget-line: #eadfe4;
  --budget-white: #fff;
  background: #faf8f9;
  color: var(--budget-ink);
  min-height: 70vh;
}

.picto-budget__shell {
  margin: 0 auto;
  max-width: 1040px;
  padding-left: 24px;
  padding-right: 24px;
}

.picto-budget__hero {
  background:
    radial-gradient(circle at 82% 15%, rgba(233, 30, 99, 0.15), transparent 34%),
    linear-gradient(145deg, #151115 0%, #24131b 60%, #381425 100%);
  color: #fff;
  overflow: hidden;
  padding: 72px 0 62px;
  position: relative;
}

.picto-budget__hero::after {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  content: "";
  height: 360px;
  position: absolute;
  right: -100px;
  top: -170px;
  width: 360px;
}

.picto-budget__hero-grid {
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.8fr);
  position: relative;
  z-index: 1;
}

.picto-budget__eyebrow {
  color: var(--budget-pink);
  display: block;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  margin-bottom: 13px;
  text-transform: uppercase;
}

.picto-budget__hero h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0;
  max-width: 700px;
}

.picto-budget__hero p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.65;
  margin: 22px 0 0;
  max-width: 650px;
}

.picto-budget__benefits {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 24px;
}

.picto-budget__benefits li {
  align-items: center;
  color: rgba(255, 255, 255, 0.86);
  display: flex;
  font-size: 14px;
  font-weight: 650;
  gap: 10px;
}

.picto-budget__benefits span {
  align-items: center;
  background: var(--budget-pink);
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 24px;
  height: 24px;
  justify-content: center;
}

.picto-budget__section {
  padding-bottom: 72px;
  padding-top: 52px;
}

.picto-budget__app {
  background: var(--budget-white);
  border: 1px solid var(--budget-line);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(42, 20, 31, 0.09);
  overflow: hidden;
}

.picto-budget--embedded {
  background: transparent;
  min-height: 0;
}

.picto-budget--embedded .picto-budget__app {
  margin: 0 auto;
  max-width: 860px;
}

.picto-budget__embedded-head {
  background:
    radial-gradient(circle at 84% 0%, rgba(233, 30, 99, 0.26), transparent 38%),
    linear-gradient(135deg, #0d0a0c, #26121b);
  color: #fff;
  padding: 28px 34px;
  text-align: center;
}

.picto-budget__embedded-head span {
  color: #ff4f8b;
  display: block;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.picto-budget__embedded-head strong {
  display: block;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.picto-budget__embedded-head p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  margin: 8px 0 0;
}

.picto-budget__progress {
  background: #fffafb;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 25px 34px 21px;
}

.picto-budget__progress li {
  align-items: center;
  color: #aaa0a6;
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
  text-align: center;
}

.picto-budget__progress li:not(:last-child)::after {
  background: #eadfe4;
  content: "";
  height: 2px;
  left: calc(50% + 21px);
  position: absolute;
  top: 16px;
  width: calc(100% - 42px);
}

.picto-budget__progress li.is-done:not(:last-child)::after {
  background: #68c88b;
}

.picto-budget__progress li > span {
  align-items: center;
  background: #eee8eb;
  border-radius: 50%;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  position: relative;
  width: 34px;
  z-index: 1;
}

.picto-budget__progress li.is-active {
  color: var(--budget-pink);
}

.picto-budget__progress li.is-active > span {
  background: var(--budget-pink);
  box-shadow: 0 0 0 5px rgba(233, 30, 99, 0.13);
  color: #fff;
}

.picto-budget__progress li.is-done {
  color: #348657;
}

.picto-budget__progress li.is-done > span {
  background: #dff5e7;
  color: #26804a;
}

.picto-budget__progress small {
  font-size: 11px;
  font-weight: 700;
}

.picto-budget__panel {
  min-height: 420px;
  padding: 42px 48px 30px;
}

.picto-budget__heading {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 820;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0;
  outline: none;
}

.picto-budget__subheading {
  color: var(--budget-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 9px 0 27px;
}

.picto-budget__grid {
  display: grid;
  gap: 14px;
}

.picto-budget__grid--products,
.picto-budget__grid--quantities {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.picto-budget__grid--sides {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.picto-budget__choice {
  align-items: center;
  appearance: none;
  background: #fff;
  border: 1.5px solid var(--budget-line);
  border-radius: 18px;
  color: var(--budget-ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font: inherit;
  gap: 8px;
  justify-content: center;
  min-height: 156px;
  padding: 20px 14px;
  text-align: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  width: 100%;
}

.picto-budget__choice:hover {
  border-color: var(--budget-pink);
  box-shadow: 0 13px 28px rgba(53, 28, 40, 0.08);
  transform: translateY(-2px);
}

.picto-budget__choice:focus-visible,
.picto-budget button:focus-visible,
.picto-budget a:focus-visible {
  outline: 3px solid rgba(233, 30, 99, 0.28);
  outline-offset: 3px;
}

.picto-budget__choice.is-selected {
  background: var(--budget-soft);
  border-color: var(--budget-pink);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.picto-budget__product-icon {
  align-items: center;
  background: linear-gradient(145deg, #fff, #fff1f6);
  border: 1px solid #f3d5e1;
  border-radius: 12px;
  color: var(--budget-pink);
  display: flex;
  font-size: 13px;
  font-weight: 850;
  height: 70px;
  justify-content: center;
  letter-spacing: -0.02em;
  width: 52px;
}

.picto-budget__product-icon--tarjeta {
  height: 52px;
  width: 78px;
}

.picto-budget__product-icon--flyerDL {
  height: 76px;
  width: 38px;
}

.picto-budget__product-icon--tripticoA4 {
  background: linear-gradient(90deg, #fff1f6 33%, #fff 33%, #fff 66%, #f8f5f6 66%);
  height: 68px;
  width: 92px;
}

.picto-budget__choice-name {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.picto-budget__choice-meta {
  color: var(--budget-muted);
  font-size: 12px;
}

.picto-budget__side-icon {
  color: var(--budget-pink);
  font-size: 42px;
  line-height: 1;
}

.picto-budget__qty {
  font-size: 24px;
  font-weight: 850;
  line-height: 1;
}

.picto-budget__price {
  color: var(--budget-pink);
  font-size: 17px;
  font-weight: 850;
}

.picto-budget__unit-price {
  color: var(--budget-muted);
  font-size: 11px;
}

.picto-budget__summary-head {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.picto-budget__total {
  text-align: right;
}

.picto-budget__total strong {
  color: var(--budget-pink);
  display: block;
  font-size: clamp(29px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
}

.picto-budget__total span {
  color: var(--budget-muted);
  display: block;
  font-size: 11px;
  margin-top: 6px;
}

.picto-budget__items {
  display: grid;
  gap: 11px;
}

.picto-budget__item {
  align-items: center;
  background: #fffafb;
  border: 1px solid var(--budget-line);
  border-radius: 16px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 17px 18px;
}

.picto-budget__item h3 {
  font-size: 15px;
  font-weight: 820;
  margin: 0 0 4px;
}

.picto-budget__item p {
  color: var(--budget-muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

.picto-budget__item-price {
  color: var(--budget-pink);
  font-size: 17px;
  font-weight: 850;
  white-space: nowrap;
}

.picto-budget__item-actions {
  display: flex;
  gap: 6px;
}

.picto-budget__item-action {
  align-items: center;
  background: #fff;
  border: 1px solid var(--budget-line);
  border-radius: 999px;
  color: #5f565c;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  gap: 5px;
  min-height: 36px;
  padding: 7px 11px;
}

.picto-budget__item-action:hover {
  border-color: var(--budget-pink);
  color: var(--budget-pink);
}

.picto-budget__item-action--remove:hover {
  background: #fff2f3;
  border-color: #d92c3a;
  color: #b81f2c;
}

.picto-budget__breakdown {
  border-top: 1px solid var(--budget-line);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
  padding-top: 18px;
}

.picto-budget__breakdown div {
  color: var(--budget-muted);
  font-size: 12px;
}

.picto-budget__breakdown strong {
  color: var(--budget-ink);
  display: block;
  font-size: 15px;
  margin-top: 3px;
}

.picto-budget__actions {
  display: grid;
  gap: 11px;
  grid-template-columns: 1fr 1.25fr;
  margin-top: 26px;
}

.picto-budget__button {
  align-items: center;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  gap: 8px;
  justify-content: center;
  min-height: 52px;
  padding: 13px 18px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.picto-budget__button:hover {
  transform: translateY(-1px);
}

.picto-budget__button--primary {
  background: linear-gradient(135deg, #161116, #2d1721 58%, #8f1742);
  box-shadow: 0 12px 28px rgba(35, 17, 26, 0.2);
  color: #fff;
}

.picto-budget__button--primary:hover {
  box-shadow: 0 15px 34px rgba(233, 30, 99, 0.24);
  color: #fff;
}

.picto-budget__button--secondary {
  background: var(--budget-soft);
  border: 1px solid #f3c5d7;
  color: var(--budget-pink-dark);
}

.picto-budget__button--ghost {
  background: transparent;
  border: 1px solid var(--budget-line);
  color: var(--budget-pink-dark);
  min-height: 42px;
}

.picto-budget__summary-note {
  color: var(--budget-muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 14px 0 0;
  text-align: center;
}

.picto-budget__clear {
  background: none;
  border: 0;
  color: #8c747e;
  cursor: pointer;
  display: block;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  margin: 14px auto 0;
  padding: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.picto-budget__nav {
  border-top: 1px solid var(--budget-line);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 18px 48px 26px;
}

.picto-budget__nav[hidden] {
  display: none;
}

.picto-budget__help {
  align-items: center;
  background: #fff;
  border: 1px solid var(--budget-line);
  border-radius: 24px;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 76px;
  padding-bottom: 34px;
  padding-top: 34px;
}

.picto-budget__help h2 {
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 820;
  letter-spacing: -0.03em;
  margin: 0;
}

.picto-budget__help p {
  color: var(--budget-muted);
  line-height: 1.6;
  margin: 10px 0 0;
  max-width: 640px;
}

.picto-budget__help-link {
  color: var(--budget-pink);
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.picto-budget__toast {
  align-items: center;
  background: #191519;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  bottom: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  color: #fff;
  display: flex;
  gap: 20px;
  left: 50%;
  max-width: calc(100% - 32px);
  padding: 13px 16px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 9999;
}

.picto-budget__toast[hidden] {
  display: none;
}

.picto-budget__toast button {
  background: none;
  border: 0;
  color: #ff77a7;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  padding: 4px;
}

.picto-budget__loading,
.picto-budget__notice {
  color: var(--budget-muted);
  padding: 60px 10px;
  text-align: center;
}

@media (max-width: 780px) {
  .picto-budget__hero {
    padding: 56px 0 48px;
  }

  .picto-budget__hero-grid {
    gap: 30px;
    grid-template-columns: 1fr;
  }

  .picto-budget__benefits {
    grid-template-columns: repeat(3, 1fr);
  }

  .picto-budget__benefits li {
    align-items: flex-start;
    flex-direction: column;
  }

  .picto-budget__panel {
    padding: 34px 28px 24px;
  }

  .picto-budget__grid--products,
  .picto-budget__grid--quantities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .picto-budget__item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .picto-budget__item-actions {
    grid-column: 1 / -1;
  }

  .picto-budget__item-action {
    justify-content: center;
    width: 100%;
  }

  .picto-budget__help {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .picto-budget__shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .picto-budget__hero p {
    font-size: 15px;
  }

  .picto-budget__benefits {
    gap: 10px;
    grid-template-columns: 1fr;
    padding: 19px;
  }

  .picto-budget__benefits li {
    align-items: center;
    flex-direction: row;
  }

  .picto-budget__section {
    padding-bottom: 52px;
    padding-top: 28px;
  }

  .picto-budget__app {
    border-radius: 20px;
  }

  .picto-budget__embedded-head {
    padding: 24px 18px;
  }

  .picto-budget__embedded-head strong {
    font-size: 23px;
  }

  .picto-budget__progress {
    padding: 21px 13px 17px;
  }

  .picto-budget__progress small {
    font-size: 9px;
  }

  .picto-budget__progress li > span {
    height: 30px;
    width: 30px;
  }

  .picto-budget__progress li:not(:last-child)::after {
    left: calc(50% + 18px);
    top: 14px;
    width: calc(100% - 36px);
  }

  .picto-budget__panel {
    min-height: 360px;
    padding: 28px 17px 21px;
  }

  .picto-budget__grid--products,
  .picto-budget__grid--quantities,
  .picto-budget__grid--sides {
    grid-template-columns: 1fr 1fr;
  }

  .picto-budget__choice {
    min-height: 144px;
    padding: 16px 8px;
  }

  .picto-budget__summary-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .picto-budget__total {
    text-align: left;
  }

  .picto-budget__item {
    gap: 12px;
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .picto-budget__item-price,
  .picto-budget__item-actions {
    grid-column: 1;
  }

  .picto-budget__breakdown {
    grid-template-columns: 1fr;
  }

  .picto-budget__actions {
    grid-template-columns: 1fr;
  }

  .picto-budget__nav {
    padding: 16px 17px 22px;
  }

  .picto-budget__help {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    margin-bottom: 52px;
    padding-bottom: 29px;
    padding-top: 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .picto-budget *,
  .picto-budget *::before,
  .picto-budget *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
