:root {
  --andes-red: #d71920;
  --andes-red-dark: #b91016;
  --andes-ink: #27282d;
  --andes-muted: #62656d;
  --andes-border: #e2e3e7;
  --andes-blush: #fbeaec;
  --andes-surface: #ffffff;
  --andes-background: #f7f7f8;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  background: var(--andes-background);
  color: var(--andes-ink);
  font-family: Roboto, Arial, sans-serif;
}

.coupon-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: linear-gradient(180deg, #fff 0, #f8f8f9 38%, #fff 100%);
}

.coupon-header {
  position: relative;
  z-index: 2;
  border-bottom: 2px solid var(--andes-red);
  background: var(--andes-surface);
  box-shadow: 0 3px 14px rgba(28, 29, 32, 0.05);
}

.coupon-header__inner {
  display: flex;
  width: min(100% - 48px, 1360px);
  min-height: 126px;
  margin: 0 auto;
  align-items: center;
}

.coupon-header__logo {
  display: block;
  width: min(280px, 42vw);
  height: auto;
}

.coupon-main {
  width: min(100% - 40px, 1300px);
  margin: 0 auto;
  padding: 32px 0 28px;
}

.coupon-card {
  width: min(100%, 710px);
  margin: 0 auto;
  padding: 34px 64px 40px;
  border: 1px solid rgba(32, 33, 36, 0.08);
  border-radius: 18px;
  background: var(--andes-surface);
  box-shadow: 0 10px 34px rgba(36, 38, 44, 0.12);
  text-align: center;
}

.coupon-card__icon,
.contact-item__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--andes-blush);
  color: var(--andes-red);
}

.coupon-card__icon {
  width: 74px;
  height: 74px;
}

.coupon-card__icon .material-icons {
  font-size: 40px;
}

.coupon-card__title {
  margin: 18px 0 10px;
  color: var(--andes-ink);
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 700;
  line-height: 1.14;
}

.coupon-card__title span,
.coupon-card__lead strong,
.payment-section__title span {
  color: var(--andes-red);
}

.coupon-card__rule {
  width: 42px;
  height: 3px;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: var(--andes-red);
}

.coupon-card__lead,
.coupon-card__instruction {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.55;
}

.coupon-card__instruction {
  margin-top: 8px;
  color: var(--andes-muted);
}

.coupon-form {
  margin-top: 26px;
}

.coupon-input,
.coupon-submit {
  position: relative;
  display: flex;
  align-items: center;
}

.coupon-input .material-icons,
.coupon-submit .material-icons {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.coupon-input .material-icons {
  left: 20px;
  color: #8c8f96;
  font-size: 30px;
}

#rut {
  width: 100%;
  min-height: 60px;
  padding: 14px 20px 14px 62px;
  border: 1px solid #cfd1d6;
  border-radius: 9px;
  background: #fff;
  color: var(--andes-ink);
  font: inherit;
  font-size: 1.05rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

#rut::placeholder {
  color: #a3a5ab;
  opacity: 1;
}

#rut:focus {
  border-color: var(--andes-red);
  box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.15);
}

.coupon-submit {
  margin-top: 18px;
}

.coupon-submit .material-icons {
  left: calc(50% - 88px);
  color: #fff;
  font-size: 27px;
}

#buscar {
  width: 100%;
  min-height: 58px;
  padding: 13px 24px 13px 54px;
  border: 2px solid var(--andes-red);
  border-radius: 9px;
  background: var(--andes-red);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 80ms ease;
}

#buscar:hover {
  border-color: var(--andes-red-dark);
  background: var(--andes-red-dark);
}

#buscar:focus-visible {
  outline: 3px solid rgba(215, 25, 32, 0.28);
  outline-offset: 3px;
}

#buscar:active {
  transform: translateY(1px);
}

#buscar:disabled {
  border-color: #b8bbc1;
  background: #b8bbc1;
  cursor: not-allowed;
}

.coupon-results {
  width: min(100%, 1100px);
  margin: 28px auto 0;
  padding: 28px;
  border: 1px solid var(--andes-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(36, 38, 44, 0.07);
}

.coupon-results__title {
  margin: 0 0 20px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.coupon-results .row {
  justify-content: center;
}

.coupon-results .col-3 {
  min-width: 250px;
}

.coupon-results .btn-primary {
  border-color: var(--andes-red);
  background: var(--andes-red);
  box-shadow: none;
}

.payment-section {
  margin: 26px auto 0;
}

.payment-section__title {
  margin: 0 0 16px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 400;
}

.payment-section__title span {
  font-weight: 700;
}

.payment-grid {
  display: grid;
  width: min(100%, 920px);
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.payment-card {
  display: flex;
  min-height: 112px;
  padding: 20px 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--andes-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(34, 36, 40, 0.07);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.payment-card:hover {
  border-color: rgba(215, 25, 32, 0.45);
  box-shadow: 0 7px 18px rgba(34, 36, 40, 0.11);
  transform: translateY(-2px);
}

.payment-card:focus-visible {
  outline: 3px solid rgba(215, 25, 32, 0.3);
  outline-offset: 3px;
}

.payment-card img {
  display: block;
  max-width: 100%;
  max-height: 62px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.contact-section {
  display: grid;
  margin: 26px auto 0;
  padding: 24px 28px;
  border: 1px solid var(--andes-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(34, 36, 40, 0.06);
  grid-template-columns: 0.9fr 1.15fr 1.25fr;
}

.contact-item {
  display: flex;
  min-width: 0;
  padding: 0 28px;
  align-items: center;
  gap: 18px;
}

.contact-item + .contact-item {
  border-left: 1px solid var(--andes-border);
}

.contact-item__icon {
  width: 58px;
  height: 58px;
}

.contact-item__icon .material-icons {
  font-size: 30px;
}

.contact-item__content {
  min-width: 0;
}

.contact-item h2 {
  margin: 0 0 5px;
  font-size: 1rem;
  font-weight: 500;
}

.contact-item a,
.contact-item address {
  display: block;
  margin: 0;
  color: var(--andes-red);
  font-size: 0.96rem;
  font-style: normal;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact-item a:hover {
  color: var(--andes-red-dark);
  text-decoration: underline;
}

.coupon-footer {
  margin-top: auto;
  padding: 22px 20px;
  background: #2c2e33;
  color: #fff;
  text-align: center;
}

.coupon-footer p {
  margin: 0;
  font-size: 0.96rem;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 900px) {
  .coupon-header__inner {
    min-height: 100px;
  }

  .coupon-card {
    padding: 32px 44px 36px;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-item {
    padding: 18px 8px;
  }

  .contact-item + .contact-item {
    border-top: 1px solid var(--andes-border);
    border-left: 0;
  }
}

@media (max-width: 680px) {
  .coupon-header__inner {
    width: min(100% - 32px, 1360px);
    min-height: 84px;
    justify-content: center;
  }

  .coupon-header__logo {
    width: min(230px, 68vw);
  }

  .coupon-main {
    width: min(100% - 28px, 1300px);
    padding-top: 22px;
  }

  .coupon-card {
    padding: 28px 20px 30px;
    border-radius: 14px;
  }

  .coupon-card__icon {
    width: 64px;
    height: 64px;
  }

  .coupon-card__icon .material-icons {
    font-size: 34px;
  }

  .coupon-card__title {
    font-size: 1.9rem;
  }

  .coupon-card__lead,
  .coupon-card__instruction {
    font-size: 0.98rem;
  }

  .payment-grid {
    width: min(100%, 340px);
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .payment-card {
    min-height: 92px;
  }

  .contact-section {
    padding: 8px 20px;
  }

  .contact-item {
    align-items: flex-start;
  }

  .contact-item__icon {
    width: 50px;
    height: 50px;
  }

  .coupon-results {
    padding: 22px 16px;
  }

  .coupon-results .col-3 {
    min-width: 100%;
  }
}

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