:root {
  --blue-950: #041b4d;
  --blue-900: #082867;
  --blue-800: #0b3c83;
  --blue-700: #155a97;
  --orange: #f39a3a;
  --orange-dark: #a84f00;
  --green: #087a3d;
  --green-hover: #056331;
  --ink: #10254b;
  --muted: #526078;
  --surface: #ffffff;
  --page: #f4f7fb;
  --shadow: 0 6px 16px rgb(4 27 77 / 12%);
  --focus: #ffb34f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 0 30%, rgb(21 90 151 / 10%), transparent 24rem),
    radial-gradient(circle at 100% 50%, rgb(243 154 58 / 11%), transparent 25rem),
    var(--page);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  z-index: 70;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue-950);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:where(a, button):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

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

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 7px max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid rgb(255 255 255 / 16%);
  color: white;
  background: rgb(4 27 77 / 94%);
  box-shadow: 0 8px 25px rgb(4 27 77 / 18%);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-frame {
  position: relative;
  display: inline-block;
  overflow: hidden;
  aspect-ratio: 4488 / 3377;
  background: #fff;
}

.logo-frame img {
  position: absolute;
  top: -27.98%;
  left: -9.38%;
  display: block;
  width: 116.98%;
  height: 155.46%;
  max-width: none;
}

.logo-frame--header {
  width: 62px;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 5px 16px rgb(0 0 0 / 18%);
}

.logo-frame--header img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-frame--footer {
  width: 110px;
  flex: 0 0 auto;
  aspect-ratio: 1;
  border-radius: 50%;
}

.logo-frame--footer img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.topbar__whatsapp {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 0.875rem;
  font-weight: 800;
  text-decoration: none;
}

.topbar__actions {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
}

.topbar__site {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 999px;
  color: #fff;
  background: rgb(255 255 255 / 8%);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  text-decoration: none;
}

.topbar__whatsapp span {
  color: white;
  font-size: 1.15rem;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--blue-950);
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
}

.intro {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 24px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--orange-dark);
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.intro h1 {
  max-width: 760px;
  margin: 0 auto 12px;
  color: var(--blue-900);
  font-size: clamp(1.7rem, 6vw, 3.25rem);
  line-height: 1.05;
  text-wrap: balance;
}

.intro > p:last-child {
  max-width: 640px;
  margin: 0 auto;
  padding-inline: 32px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.catalog {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 12px 0 56px;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: 18px;
}

.product-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:has(.product-card__details:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.product-card__details {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.product-card__details:focus-visible {
  outline: none;
}

.product-card__badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--orange-dark);
  box-shadow: 0 6px 16px rgb(216 124 29 / 30%);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  pointer-events: none;
  text-transform: uppercase;
}

.product-card__image {
  display: grid;
  height: 250px;
  min-height: 250px;
  overflow: hidden;
  place-items: center;
  padding: 18px 18px 8px;
  background:
    linear-gradient(145deg, rgb(248 251 255 / 90%), #fff),
    #fff;
}

.product-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 220ms ease;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
  border-top: 1px solid #edf1f7;
}

.product-card__brand {
  margin: 0 0 5px;
  color: var(--orange-dark);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0;
  color: var(--blue-900);
  font-size: 1.15rem;
  line-height: 1.18;
  text-wrap: balance;
}

.product-card__summary {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.price-block {
  margin-top: auto;
}

.price-label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price-main {
  display: block;
  color: var(--blue-700);
  font-size: 2.05rem;
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-cash {
  display: flex;
  gap: 5px;
  align-items: baseline;
  margin-top: 8px;
  color: var(--orange-dark);
  font-weight: 900;
}

.price-cash strong {
  font-size: 1.3rem;
}

.price-block--dual {
  padding: 0;
  color: var(--blue-700);
  background: transparent;
  text-align: center;
}

.price-block--dual .price-label {
  margin-bottom: 1px;
  color: var(--muted);
}

.price-block--dual .price-main {
  color: var(--blue-700);
  font-size: 1.82rem;
}

.full-price {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.full-price strong {
  color: var(--blue-900);
}

.dual-price__divider {
  width: 76%;
  height: 1px;
  margin: 5px auto 4px;
  background: var(--blue-700);
}

.dual-price__cash {
  display: grid;
  gap: 1px;
  justify-items: center;
}

.dual-price__cash .price-main {
  font-size: 1.88rem;
}

.dual-price__note {
  color: var(--orange-dark);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.25;
}

.buy-button {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 16px;
  padding: 0 16px;
  border-radius: 13px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 4px 8px rgb(8 122 61 / 24%);
  font-size: 0.94rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.buy-button::before {
  content: "✓";
  display: grid;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 0.72rem;
}

.buy-button:active {
  transform: scale(0.98);
}

.conditions {
  padding: 48px max(20px, calc((100% - 1120px) / 2));
  color: white;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-700));
}

.conditions h2 {
  margin: 0 0 22px;
  font-size: clamp(1.5rem, 5vw, 2.3rem);
  text-align: center;
}

.conditions__grid {
  display: grid;
  gap: 12px;
}

.conditions article {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 16px;
  background: rgb(255 255 255 / 8%);
}

.conditions article > span {
  display: grid;
  width: 52px;
  min-width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-950);
  background: var(--orange);
  font-size: 1rem;
  font-weight: 950;
}

.conditions h3 {
  margin: 0 0 3px;
  font-size: 1rem;
}

.conditions article p {
  margin: 0;
  color: rgb(255 255 255 / 88%);
  font-size: 0.9rem;
  line-height: 1.4;
}

.conditions__fineprint {
  margin: 22px auto 0;
  color: rgb(255 255 255 / 82%);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}

footer {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 100px;
  color: var(--blue-900);
  background: #fff;
}

footer strong {
  font-size: 0.95rem;
}

footer p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.floating-whatsapp {
  position: fixed;
  z-index: 18;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 5px 12px rgb(4 27 77 / 28%);
}

.floating-whatsapp svg {
  width: 32px;
  fill: #fff;
}

.modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 52px;
  background: rgb(4 18 45 / 72%);
  backdrop-filter: blur(5px);
}

.modal-backdrop[hidden] {
  display: none;
}

.product-modal {
  position: relative;
  width: 100%;
  max-height: calc(100dvh - 48px);
  overflow: auto;
  border-radius: 16px 16px 0 0;
  background: #fff;
  box-shadow: 0 -18px 60px rgb(0 0 0 / 32%);
  animation: modal-up 220ms ease both;
}

@keyframes modal-up {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
}

.modal-close {
  position: sticky;
  z-index: 2;
  top: 12px;
  float: right;
  display: grid;
  width: 44px;
  height: 44px;
  margin: 12px 12px -56px 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--blue-900);
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 5px 18px rgb(4 27 77 / 18%);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.modal-image-wrap {
  display: grid;
  height: 270px;
  clear: both;
  place-items: center;
  padding: 26px;
  background: linear-gradient(145deg, #f3f7fd, #fff);
}

.modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-content {
  padding: 24px 22px max(26px, env(safe-area-inset-bottom));
}

.modal-brand {
  margin: 0 0 4px;
  color: var(--orange-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-content h2 {
  margin: 0 0 14px;
  color: var(--blue-900);
  font-size: clamp(1.55rem, 7vw, 2.2rem);
  line-height: 1.08;
}

.modal-price .price-main {
  font-size: 2.25rem;
}

.modal-price .price-block--dual {
  max-width: 360px;
  text-align: left;
}

.modal-price .price-block--dual .price-main {
  font-size: 2.25rem;
}

.modal-price .dual-price__cash .price-main {
  font-size: 2.4rem;
}

.modal-price .dual-price__cash {
  justify-items: start;
}

.modal-price .dual-price__divider {
  width: 100%;
  margin-inline: 0;
}

.modal-description {
  margin: 20px 0 14px;
  color: #44516b;
  line-height: 1.6;
  text-wrap: pretty;
}

.modal-highlights {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.modal-highlights li {
  position: relative;
  padding-left: 24px;
  color: #44516b;
  font-size: 0.91rem;
  line-height: 1.4;
}

.modal-highlights li::before {
  position: absolute;
  left: 0;
  content: "✓";
  color: var(--green);
  font-weight: 950;
}

.source-link {
  display: inline-flex;
  margin: 0 0 4px;
  color: var(--blue-700);
  font-size: 0.875rem;
  font-weight: 800;
}

.source-link[hidden] {
  display: none;
}

.buy-button--large {
  position: sticky;
  bottom: 0;
  width: 100%;
  min-height: 56px;
  margin-top: 18px;
  font-size: 1rem;
}

@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgb(4 27 77 / 16%);
  }

  .product-card:hover .product-card__image img {
    transform: scale(1.035);
  }

  .buy-button:hover,
  .topbar__whatsapp:hover {
    background: var(--green-hover);
  }

  .topbar__site:hover {
    background: rgb(255 255 255 / 18%);
  }
}

@media (max-width: 459px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar__actions {
    width: min(216px, calc(100% - 76px));
    flex-direction: column;
  }

  .topbar__site,
  .topbar__whatsapp {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }
}

@media (min-width: 500px) {
  .topbar {
    padding-inline: 28px;
  }

  .topbar__whatsapp {
    padding-inline: 20px;
    font-size: 0.9rem;
  }

  .topbar__site {
    padding-inline: 18px;
    font-size: 0.86rem;
  }

  .intro > p:last-child {
    padding-inline: 0;
  }

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

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

  footer {
    padding-bottom: 34px;
  }
}

@media (min-width: 920px) {
  .logo-frame--header {
    width: 72px;
  }

  .conditions__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .product-card__image {
    height: 270px;
    min-height: 270px;
  }

  .modal-backdrop {
    align-items: center;
    padding: 32px;
  }

  .product-modal {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
    width: min(900px, 100%);
    max-height: min(720px, calc(100dvh - 64px));
    border-radius: 16px;
    animation-name: modal-in;
  }

  @keyframes modal-in {
    from {
      transform: translateY(16px) scale(0.98);
      opacity: 0;
    }
  }

  .modal-image-wrap {
    height: 100%;
    min-height: 580px;
    padding: 52px;
    border-radius: 16px 0 0 16px;
  }

  .modal-content {
    align-self: center;
    padding: 48px 44px;
  }

  .modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    margin: 0;
  }
}

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