:root {
  --voucher-petroleum: #253d4d;
  --voucher-petroleum-deep: #172c38;
  --voucher-blue: #236aa1;
  --voucher-ice: #f2f5f5;
  --voucher-line: #dce4e7;
  --voucher-muted: #69757c;
}

.voucher-home-section {
  background-color: var(--voucher-petroleum);
  background-image: url('../../img/bg-beneficios.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: clamp(58px, 7vw, 96px) 0;
}

.voucher-home-container {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding-inline: clamp(18px, 4vw, 64px);
}

.voucher-home-header {
  width: fit-content;
  display: flex;
  justify-content: center;
  gap: clamp(10px, 1.5vw, 18px);
  align-items: center;
  margin: 0 auto clamp(28px, 4vw, 46px);
  padding: 14px clamp(22px, 3vw, 36px);
  color: #fff;
  background: var(--voucher-petroleum);
  border-radius: 999px;
  text-align: center;
}

.voucher-home-kicker,
.voucher-detail-kicker {
  color: var(--voucher-blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.voucher-home-header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.voucher-home-header > .material-symbols-rounded {
  flex: 0 0 auto;
  font-size: clamp(38px, 4vw, 52px);
}

.voucher-home-carousel {
  position: relative;
}

.voucher-home-viewport {
  overflow-x: auto;
  padding: 2px 0 36px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.voucher-home-viewport::-webkit-scrollbar {
  display: none;
}

.voucher-home-grid {
  min-width: 100%;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.voucher-home-carousel.is-overflowing {
  padding-inline: 52px;
}

.voucher-home-carousel.is-overflowing .voucher-home-grid {
  justify-content: flex-start;
}

.voucher-home-arrow {
  position: absolute;
  z-index: 2;
  top: calc(50% - 18px);
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(37, 61, 77, .12);
  border-radius: 50%;
  color: var(--voucher-petroleum);
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 51, 63, .12);
  transform: translateY(-50%);
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.voucher-home-arrow[hidden] {
  display: none;
}

.voucher-home-arrow.is-prev {
  left: 0;
}

.voucher-home-arrow.is-next {
  right: 0;
}

.voucher-home-arrow:hover,
.voucher-home-arrow:focus-visible {
  color: #fff;
  background: var(--voucher-petroleum);
}

.voucher-home-arrow .material-symbols-rounded {
  font-size: 28px;
}

.voucher-home-card {
  flex: 0 0 calc((100% - 36px) / 3);
  min-width: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(37, 61, 77, .09);
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(30, 51, 63, .07);
  scroll-snap-align: start;
}

.voucher-home-card.is-sold-out {
  opacity: .62;
  filter: grayscale(.35);
}

.voucher-company-logo {
  width: 72px;
  height: 72px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--voucher-line);
  border-radius: 50%;
}

.voucher-company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.voucher-home-card-copy {
  min-width: 0;
}

.voucher-home-card-copy h3 {
  margin: 0 0 9px;
  color: var(--voucher-petroleum-deep);
  font-size: clamp(1.04rem, 1.5vw, 1.3rem);
  font-weight: 800;
  line-height: 1.18;
}

.voucher-home-card-copy small {
  display: flex;
  gap: 5px;
  align-items: center;
  color: var(--voucher-muted);
  font-size: .78rem;
  line-height: 1.35;
}

.voucher-home-card-copy small .material-symbols-rounded {
  flex: 0 0 auto;
  font-size: 17px;
}

.voucher-home-card > .voucher-button {
  grid-column: 1 / -1;
  width: 100%;
}

.voucher-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease;
}

.voucher-button.is-primary {
  color: #fff;
  background: var(--voucher-petroleum);
}

.voucher-button.is-primary:hover,
.voucher-button.is-primary:focus-visible {
  color: #fff;
  background: var(--voucher-petroleum-deep);
  transform: translateY(-1px);
}

.voucher-button.is-secondary {
  color: var(--voucher-petroleum);
  background: #fff;
  border-color: var(--voucher-line);
}

.voucher-button.is-sold-out,
.voucher-button:disabled,
.voucher-button[aria-disabled="true"] {
  color: #747d82;
  background: #e7ebed;
  border-color: #e7ebed;
  cursor: not-allowed;
  pointer-events: none;
}

.voucher-access-card {
  max-width: 1040px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 38px);
  color: #fff;
  background: var(--voucher-petroleum);
  border-radius: 26px;
}

.voucher-access-card > .material-symbols-rounded {
  font-size: 48px;
}

.voucher-access-card h3 {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 800;
}

.voucher-access-card p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, .8);
}

.voucher-access-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.voucher-access-card .voucher-button.is-primary {
  color: var(--voucher-petroleum);
  background: #fff;
}

.voucher-access-card .voucher-button.is-secondary {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, .35);
}

.voucher-access-progress-copy {
  min-width: 0;
}

.voucher-progress {
  height: 8px;
  overflow: hidden;
  margin: 18px 0 7px;
  background: rgba(255, 255, 255, .18);
  border-radius: 999px;
}

.voucher-progress span {
  height: 100%;
  display: block;
  background: #fff;
  border-radius: inherit;
}

.voucher-access-progress-copy small {
  color: rgba(255, 255, 255, .72);
}

.voucher-access-tip {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, .72);
  font-size: .76rem;
  line-height: 1.45;
}

.voucher-access-progress-copy .voucher-access-tip {
  margin-top: 9px;
}

.voucher-detail-page {
  min-height: 100vh;
  background: var(--voucher-ice);
}

.voucher-detail-page .site-header,
.voucher-detail-page .site-header:not(.is-scrolled),
.voucher-detail-page .site-header.is-scrolled {
  background-color: rgba(23, 44, 56, .85);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(12, 28, 37, .18);
}

.voucher-detail-main {
  min-height: 75vh;
  padding: calc(var(--header-height, 88px) + 48px) 18px 80px;
}

.voucher-detail-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.voucher-back-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--voucher-petroleum);
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}

.voucher-back-link .material-symbols-rounded {
  font-size: 20px;
}

.voucher-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: start;
}

.voucher-detail-card.has-sponsor {
  grid-template-columns: minmax(230px, .68fr) minmax(0, 1.35fr);
}

.voucher-detail-card.has-no-sponsor .voucher-detail-sidebar {
  display: none;
}

.voucher-detail-sidebar {
  min-width: 0;
}

.voucher-detail-sponsor {
  width: 100%;
}

.voucher-detail-sponsor-link {
  width: 100%;
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: transparent;
  text-decoration: none;
  transition: transform .25s ease, opacity .25s ease;
}

a.voucher-detail-sponsor-link:hover,
a.voucher-detail-sponsor-link:focus-visible {
  opacity: .94;
  transform: translateY(-3px);
}

.voucher-detail-sponsor-img {
  width: 100%;
  height: auto;
  display: block;
}

.voucher-detail-content {
  min-width: 0;
  padding: clamp(30px, 5vw, 60px);
  background: #fff;
  border: 1px solid rgba(37, 61, 77, .1);
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(30, 51, 63, .1);
}

.voucher-detail-company {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: clamp(28px, 4vw, 40px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--voucher-line);
}

.voucher-detail-company .voucher-company-logo {
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  border: 3px solid #fff;
  box-shadow: 0 9px 26px rgba(30, 51, 63, .12);
}

.voucher-detail-company strong {
  color: var(--voucher-petroleum-deep);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 850;
  letter-spacing: -.025em;
  line-height: 1.12;
}

.voucher-detail-content h1 {
  margin: 7px 0 14px;
  color: var(--voucher-petroleum-deep);
  font-size: clamp(2rem, 4.6vw, 3.45rem);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.voucher-detail-validity {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--voucher-muted);
  font-weight: 650;
}

.voucher-detail-validity .material-symbols-rounded {
  color: var(--voucher-blue);
}

.voucher-availability {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 26px 0 0;
  padding: 14px 16px;
  color: var(--voucher-petroleum);
  background: #edf4f6;
  border-radius: 14px;
  font-weight: 800;
}

.voucher-availability.is-low {
  color: #754700;
  background: #fff3d6;
}

.voucher-availability.is-sold-out,
.voucher-availability.is-expired {
  color: #656d72;
  background: #eceff0;
}

.voucher-rules {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--voucher-line);
}

.voucher-rules h2 {
  margin: 0 0 12px;
  color: var(--voucher-petroleum-deep);
  font-size: 1.18rem;
  font-weight: 850;
}

.voucher-rules-content {
  color: #4d585e;
  line-height: 1.7;
  white-space: pre-line;
}

.voucher-action-panel {
  margin-top: 30px;
}

.voucher-action-feedback {
  min-height: 24px;
  margin: 0 0 10px;
  color: var(--voucher-muted);
  font-size: .9rem;
}

.voucher-action-feedback.is-error {
  color: #9c2f2f;
}

.voucher-redeem-button {
  width: 100%;
  min-height: 52px;
  border: 0;
}

.voucher-wallet-link {
  width: 100%;
  margin-top: 10px;
}

.voucher-wallet-link .material-symbols-rounded {
  margin-right: 5px;
  font-size: 19px;
}

.voucher-login-detail,
.voucher-locked-detail {
  margin-top: 26px;
  padding: 22px;
  background: var(--voucher-ice);
  border-radius: 18px;
}

.voucher-login-detail h2,
.voucher-locked-detail h2 {
  margin: 0 0 7px;
  color: var(--voucher-petroleum-deep);
  font-size: 1.15rem;
  font-weight: 850;
}

.voucher-login-detail p,
.voucher-locked-detail p {
  margin: 0 0 16px;
  color: var(--voucher-muted);
}

.voucher-detail-tip {
  display: block;
  color: var(--voucher-muted);
  font-size: .76rem;
  line-height: 1.45;
}

.voucher-detail-tip + .voucher-access-actions,
.voucher-detail-tip + .voucher-button {
  margin-top: 16px;
}

@media (max-width: 1050px) {
  .voucher-home-card {
    flex-basis: calc((100% - 18px) / 2);
  }
}

@media (max-width: 760px) {
  .voucher-home-header {
    gap: 9px;
  }

  .voucher-home-header h2 {
    font-size: clamp(1.45rem, 7vw, 2.5rem);
  }

  .voucher-home-carousel.is-overflowing {
    padding-inline: 0;
  }

  .voucher-home-card {
    flex-basis: 100%;
  }

  .voucher-home-arrow {
    display: none;
  }

  .voucher-access-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .voucher-access-card > .material-symbols-rounded {
    margin: 0 auto;
  }

  .voucher-access-card p {
    margin-inline: auto;
  }

  .voucher-detail-main {
    padding-top: calc(var(--header-height-scrolled, 68px) + 30px);
  }

  .voucher-detail-card {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .voucher-detail-sidebar {
    order: 2;
  }

  .voucher-detail-sponsor {
    width: min(360px, 100%);
    margin-inline: auto;
  }

  .voucher-detail-content {
    order: 1;
    border-radius: 24px;
  }
}

@media (max-width: 480px) {
  .voucher-home-header {
    max-width: 100%;
    padding: 12px 16px;
  }

  .voucher-home-header h2 {
    font-size: clamp(1.15rem, 6vw, 1.55rem);
  }

  .voucher-home-header > .material-symbols-rounded {
    font-size: 30px;
  }

  .voucher-home-card {
    grid-template-columns: 60px minmax(0, 1fr);
    padding: 18px;
  }

  .voucher-company-logo {
    width: 60px;
    height: 60px;
  }

  .voucher-access-actions,
  .voucher-access-card > .voucher-button {
    width: 100%;
  }

  .voucher-detail-main {
    padding-inline: 12px;
  }

  .voucher-detail-content {
    padding: 28px 20px 32px;
  }

  .voucher-detail-company {
    gap: 14px;
    margin-bottom: 26px;
    padding-bottom: 20px;
  }

  .voucher-detail-company .voucher-company-logo {
    width: 66px;
    height: 66px;
  }
}
