/* Packs 3D — listing + fichas. Tokens alineados con el curso. */
:root {
  --dpr-gold: #c4a35a;
  --dpr-gold-soft: #f3ead6;
  --pack-hero-img: clamp(140px, 32vw, 220px);
}

html {
  scroll-padding-top: var(--header-offset);
}

.l-h .wnd-fixed,
.h-w.wnd-fixed {
  padding-top: env(safe-area-inset-top, 0px);
}

.dpr-packs {
  --bg: #f6f4ef;
  --surface: #fff;
  --fg: #141414;
  --muted: #5a5a5a;
  --line: rgba(20, 20, 20, 0.08);
  --line-strong: rgba(20, 20, 20, 0.14);
  --gold: var(--dpr-gold);
  --gold-soft: var(--dpr-gold-soft);
  --ink: #0b0b0b;
  --wa: #128c7e;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20, 20, 20, 0.04), 0 18px 48px rgba(20, 20, 20, 0.06);
  --shadow-sm: 0 1px 2px rgba(20, 20, 20, 0.05);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.packs-redesign .s-basic,
.pack-detail .s-basic,
.packs-redesign .l-m,
.pack-detail .l-m,
.packs-redesign .l-page,
.pack-detail .l-page,
.packs-redesign .l-w,
.pack-detail .l-w,
.packs-redesign .sw,
.pack-detail .sw,
.packs-redesign .s-c,
.pack-detail .s-c {
  background: #f6f4ef !important;
  overflow: visible;
  height: auto;
  min-height: 0;
}

body.packs-redesign .s-hm,
body.pack-detail .s-hm {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.packs-redesign .s-basic .s-c,
body.pack-detail .s-basic .s-c,
body.packs-redesign .s-basic .s-o,
body.pack-detail .s-basic .s-o,
body.packs-redesign .wnd-s-normal .s-c,
body.pack-detail .wnd-s-normal .s-c {
  padding: 0 !important;
  margin: 0 !important;
}

body.packs-redesign,
body.pack-detail {
  background: #111318 !important;
  overflow-x: clip;
}

body.packs-redesign header.l-h,
body.pack-detail header.l-h {
  display: none !important;
}

body.packs-redesign .l-m {
  padding-top: 0 !important;
}

body.pack-detail .l-m {
  padding-top: var(--header-offset);
}

html.dp-site-header body.packs-redesign .l-m {
  padding-top: 0 !important;
}

body.packs-redesign .l-m .s-w,
body.pack-detail .l-m .s-w,
body.packs-redesign .l-m .s-c,
body.pack-detail .l-m .s-c,
body.packs-redesign .l-m .ez,
body.pack-detail .l-m .ez,
body.packs-redesign .l-m .b-html .b-c,
body.pack-detail .l-m .b-html .b-c {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  word-break: normal !important;
}

body.packs-redesign .l-bg,
body.pack-detail .l-bg,
body.packs-redesign .l-m .s-bg,
body.pack-detail .l-m .s-bg,
body.packs-redesign .l-m .s-bg-l,
body.pack-detail .l-m .s-bg-l {
  background: #f6f4ef !important;
  background-color: #f6f4ef !important;
}

.dpr-packs *,
.dpr-packs *::before,
.dpr-packs *::after {
  box-sizing: border-box;
}

.dpr-packs a {
  color: inherit;
  text-decoration: none;
}

.dpr-packs img {
  max-width: 100%;
  height: auto;
  display: block;
}

.dpr-packs .wrap {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 18px clamp(14px, 3vw, 28px) 40px;
}

.dpr-packs .hero {
  padding-top: 4px;
}

.dpr-packs .shop-hero,
.dpr-packs .shop-hero * {
  float: none !important;
  word-break: normal !important;
}

.dpr-packs .shop-hero {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  background: #111;
  color: #f4efe6;
  padding: 0 0 20px;
  border: 0;
  border-bottom: 3px solid var(--gold);
  overflow: visible;
  box-sizing: border-box;
}

.dpr-packs .shop-hero::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--header-offset));
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background: #111;
  border-bottom: 3px solid var(--gold);
  z-index: 0;
  pointer-events: none;
}

.dpr-packs .shop-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--header-offset) + 0.85rem) clamp(14px, 3vw, 24px) 0 !important;
  box-sizing: border-box;
}

.dpr-packs .shop-hero-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 1.25rem 1.5rem;
  align-items: center;
  width: 100%;
}

.dpr-packs .shop-hero-copy {
  min-width: 0;
}

.dpr-packs .shop-kicker {
  display: inline-block;
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold) !important;
}

.dpr-packs .shop-hero h1 {
  color: #fff !important;
  font-size: clamp(1.35rem, 3.2vw, 2.05rem) !important;
  line-height: 1.15 !important;
  margin: 0 0 0.55rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.dpr-packs .shop-hero .lead {
  color: rgba(244, 239, 230, 0.8) !important;
  font-size: clamp(0.9rem, 1.4vw, 1rem) !important;
  line-height: 1.45;
  max-width: 40rem;
  margin: 0 0 0.8rem !important;
}

.dpr-packs .shop-hero .lead strong {
  color: #fff !important;
  font-weight: 800;
}

.dpr-packs .shop-hero .crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  color: rgba(244, 239, 230, 0.55) !important;
  margin: 0 0 8px !important;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
}

.dpr-packs .shop-hero .crumbs a {
  color: rgba(244, 239, 230, 0.85) !important;
  text-decoration: none !important;
}

.dpr-packs .shop-hero .chip {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #f4efe6 !important;
}

.dpr-packs .shop-hero .chip.gold {
  background: var(--gold-soft) !important;
  border-color: rgba(196, 163, 90, 0.55) !important;
  color: #4a3b1c !important;
}

.dpr-packs .shop-hero .meta-row {
  margin: 0 0 0.85rem;
}

.dpr-packs .shop-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dpr-packs .btn-gold {
  background: var(--gold) !important;
  color: #111 !important;
}

.dpr-packs .shop-hero .btn {
  min-height: 44px !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.88rem !important;
  width: auto !important;
  max-width: 100%;
  text-decoration: none !important;
}

.dpr-packs .shop-hero .btn-ghost {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
}

.dpr-packs .shop-hero-media {
  display: block !important;
  position: relative;
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  aspect-ratio: 16 / 10;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  background: #1c1c1c;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.dpr-packs .shop-hero-media img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  max-width: none !important;
  object-fit: cover !important;
  display: block;
}

.dpr-packs .shop-hero-media span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  background: rgba(11, 11, 11, 0.78);
  color: #fff !important;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

.dpr-packs h1,
.dpr-packs h2,
.dpr-packs h3 {
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
  font-weight: 700;
}

.dpr-packs h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin: 0 0 0.45rem;
  font-weight: 800;
}

.dpr-packs h1 .kicker,
.dpr-packs h1 .accent {
  display: inline;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.dpr-packs h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  margin: 0 0 0.85rem;
}

.dpr-packs h3 {
  font-size: 1.02rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.dpr-packs p {
  margin: 0 0 0.85rem;
  color: var(--fg);
}

.dpr-packs .lead {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 1rem;
}

.dpr-packs .muted {
  color: var(--muted);
}

.dpr-packs .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b5a38;
  margin-bottom: 0.7rem;
}

.dpr-packs .eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
}

.dpr-packs .crumbs {
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 600;
  color: #6b6b6b;
  margin-bottom: 10px;
  font-size: 0.78rem;
}

.dpr-packs .crumbs::before {
  display: none;
}

.dpr-packs .crumbs a:hover {
  text-decoration: underline;
}

.dpr-packs .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.1rem;
}

.dpr-packs .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  background: var(--surface);
}

.dpr-packs .chip.gold {
  background: var(--gold-soft);
  border-color: rgba(196, 163, 90, 0.45);
  color: #4a3b1c;
}

.dpr-packs .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.15rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  text-align: center;
  text-wrap: balance;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.dpr-packs .btn:hover {
  transform: translateY(-1px);
}

.dpr-packs .btn:active {
  transform: translateY(0);
}

.dpr-packs .btn-ink {
  background: var(--ink);
  color: #fff;
}

.dpr-packs .btn-wa {
  background: var(--wa);
  color: #fff;
}

.dpr-packs .btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.dpr-packs .grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
}

.dpr-packs .section {
  border-top: 1px solid var(--line);
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
}

.dpr-packs .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 2vw, 20px);
  box-shadow: var(--shadow-sm);
}

/* Product grid */
.dpr-packs .packs-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .dpr-packs .packs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .dpr-packs .packs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.dpr-packs .pack-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.25rem;
}

.dpr-packs .pack-filters button {
  min-height: 40px;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: #333;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.dpr-packs .pack-filters button.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.dpr-packs .pack-card.is-filtered-out {
  display: none;
}

.dpr-packs .pack-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  height: 100%;
  border-radius: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dpr-packs .pack-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(196, 163, 90, 0.5);
}

.dpr-packs .pack-preview {
  display: block;
  position: relative;
  background: #111;
}

.dpr-packs .pack-card-media {
  display: block;
  position: relative;
  overflow: hidden;
  background: #111;
}

.dpr-packs .pack-preview:has(.pack-mini) .pack-card-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(8, 8, 8, 0.72));
  pointer-events: none;
}

.dpr-packs .pack-card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 220px;
  object-fit: cover;
}

.dpr-packs .pack-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 6px;
  padding: 0 12px 12px;
  background: #111;
}

.dpr-packs .pack-preview:has(.pack-mini) .pack-mini {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 0;
  background: transparent;
  grid-template-columns: repeat(auto-fit, minmax(58px, 72px));
  justify-content: start;
}

.dpr-packs .pack-mini button {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.78;
  outline: 2px solid transparent;
  outline-offset: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.dpr-packs .pack-mini button:hover,
.dpr-packs .pack-mini button.is-active {
  opacity: 1;
  outline-color: var(--gold);
}

.dpr-packs .pack-mini img {
  width: 100%;
  height: 58px;
  object-fit: cover;
}

.dpr-packs .pack-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  background: var(--gold-soft);
  color: #4a3b1c;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.dpr-packs .pack-card-body {
  padding: clamp(16px, 2.2vw, 22px) clamp(16px, 2.2vw, 22px) 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dpr-packs .pack-card h2,
.dpr-packs .pack-card h3 {
  font-size: 1.22rem;
  margin: 0 0 0.3rem;
}

.dpr-packs .pack-card .scenes {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

.dpr-packs .pack-price {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.95rem;
}

.dpr-packs .pack-price span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.dpr-packs .pack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.dpr-packs .pack-actions .btn {
  flex: 1 1 140px;
  min-height: 46px;
  font-size: 0.9rem;
  padding: 0.7rem 0.95rem;
}

/* Steps / includes */
.dpr-packs .steps,
.dpr-packs .includes {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .dpr-packs .steps,
  .dpr-packs .includes {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dpr-packs .step-num,
.dpr-packs .ico {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  background: var(--gold-soft);
  color: #8a6d2e;
  margin-bottom: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.dpr-packs .ico {
  width: 36px;
  height: 36px;
  padding: 8px;
}

.dpr-packs .card h3 {
  font-size: 0.98rem;
}

.dpr-packs .card p:last-child {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.dpr-packs .check-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
}

.dpr-packs .check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0.55rem 0;
  font-size: 0.95rem;
}

.dpr-packs .check-list svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--gold);
}

/* FAQ */
.dpr-packs details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  background: #fbfaf7;
  overflow: hidden;
}

.dpr-packs details + details {
  margin-top: 8px;
}

.dpr-packs summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  line-height: 1.35;
  min-height: 44px;
}

.dpr-packs summary::-webkit-details-marker {
  display: none;
}

.dpr-packs summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  flex-shrink: 0;
  border-right: 1.5px solid #888;
  border-bottom: 1.5px solid #888;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.dpr-packs details[open] summary::after {
  transform: rotate(225deg);
  margin-top: 6px;
}

.dpr-packs .faq-body {
  padding: 0 1rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Custom 3D CTA */
.dpr-packs .custom-cta {
  background: linear-gradient(180deg, #fbf8f1, #fff);
  border: 1px solid rgba(196, 163, 90, 0.4);
  border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 2rem);
  display: grid;
  gap: 1rem;
}

@media (min-width: 860px) {
  .dpr-packs .custom-cta {
    grid-template-columns: 1.4fr auto;
    align-items: center;
  }
}

.dpr-packs .custom-cta h2 {
  margin-bottom: 0.45rem;
}

.dpr-packs .custom-cta .price-tag {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.4rem 0 0.6rem;
}

.dpr-packs .custom-cta .btn {
  width: 100%;
}

@media (min-width: 860px) {
  .dpr-packs .custom-cta .btn {
    width: auto;
    min-width: 240px;
  }
}

/* Product detail layout */
.dpr-packs .layout {
  display: grid;
  gap: clamp(18px, 2.4vw, 32px);
}

.dpr-packs .layout > * {
  min-width: 0;
}

@media (min-width: 960px) {
  .dpr-packs .layout {
    grid-template-columns: minmax(0, 1.35fr) 380px;
    align-items: start;
  }

  .dpr-packs .aside {
    position: sticky;
    top: calc(var(--header-offset) + 12px);
  }
}

.dpr-packs .hero-media {
  margin: 0.4rem 0 1.1rem;
}

.dpr-packs .hero-main {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
  cursor: zoom-in;
  position: relative;
}

.dpr-packs .hero-main img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.dpr-packs .thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 2px 4px;
  -webkit-overflow-scrolling: touch;
}

.dpr-packs .thumbs img {
  flex: 0 0 auto;
  width: 132px;
  max-width: 42vw;
  height: 82px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  scroll-snap-align: start;
  cursor: pointer;
  opacity: 0.88;
}

.dpr-packs .thumbs img:hover,
.dpr-packs .thumbs img.is-active,
.dpr-packs .scene-grid button.is-active {
  opacity: 1;
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.dpr-packs .scene-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

@media (min-width: 640px) {
  .dpr-packs .scene-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.dpr-packs .scene-grid button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
  position: relative;
  border: 1px solid var(--line);
}

.dpr-packs .scene-grid img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.dpr-packs .scene-grid span {
  display: block;
  padding: 0.45rem 0.6rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: #fff;
  color: var(--ink);
}

.dpr-packs .zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(11, 11, 11, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  pointer-events: none;
}

.dpr-packs .pricing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.dpr-packs .pricing-card .price {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0.2rem 0 0.15rem;
}

.dpr-packs .pricing-card .price small {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.dpr-packs .pricing-card .btn {
  width: 100%;
  margin-top: 10px;
}

.dpr-packs .related {
  display: grid;
  gap: 10px;
}

@media (min-width: 720px) {
  .dpr-packs .related {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dpr-packs .related a {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 650;
}

.dpr-packs .related a img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.dpr-packs .related a .rel-copy {
  padding: 12px 14px 14px;
}

.dpr-packs .related a span {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 4px;
}

.dpr-packs .related a:hover {
  border-color: rgba(196, 163, 90, 0.5);
}

/* Lightbox */
.pack-lb {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(10, 10, 10, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pack-lb.is-open {
  display: flex;
}

.pack-lb img {
  max-width: min(96vw, 1400px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.pack-lb button {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 1.4rem;
  cursor: pointer;
}

.pack-lb .lb-close {
  top: 16px;
  right: 16px;
}

.pack-lb .lb-prev,
.pack-lb .lb-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.7rem;
}

.pack-lb .lb-prev {
  left: 12px;
}

.pack-lb .lb-next {
  right: 12px;
}

/* Mobile bar */
@media (max-width: 959px) {
  .dpr-packs .aside {
    display: none;
  }

  .dpr-packs #buy-mobile {
    margin: 18px 0 8px;
    width: 100%;
    display: block;
  }

  .dpr-packs .layout {
    grid-template-columns: 1fr;
  }

  .dpr-packs .cta-mobile {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.06);
  }

  .dpr-packs .cta-row {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .dpr-packs .cta-mobile .btn {
    flex: 1;
    width: 100%;
  }

  .dpr-packs .cta-mobile .mini {
    font-size: 0.75rem;
    color: #555;
    margin-top: 6px;
    text-align: center;
  }

  .dpr-packs.is-detail {
    padding-bottom: 92px;
  }

  .whatsapp-float {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 900px) {
  .dpr-packs .shop-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 0.9rem;
  }

  .dpr-packs .shop-hero-media {
    max-width: none;
    margin: 0;
  }
}

@media (max-width: 768px) {
  .dpr-packs {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .dpr-packs .hero {
    padding-top: 4px;
  }

  .dpr-packs .shop-hero {
    padding-bottom: 16px;
  }

  .dpr-packs .shop-hero-inner {
    padding-top: calc(var(--header-offset) + 0.7rem) !important;
  }

  .dpr-packs .shop-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 0.9rem;
  }

  .dpr-packs .shop-hero-media {
    max-width: none;
    margin: 0;
    aspect-ratio: 16 / 9;
  }

  .dpr-packs .shop-hero-cta .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .dpr-packs .hero-main img {
    max-height: min(48vh, 380px);
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
  }

  .dpr-packs .pack-card-media img {
    max-height: none;
    min-height: 200px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
  }

  .dpr-packs .pack-preview:has(.pack-mini) .pack-card-media::after {
    display: none;
  }

  .dpr-packs .pack-preview:has(.pack-mini) .pack-mini {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 8px 10px 10px;
    background: #111;
    grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  }

  .dpr-packs .pack-mini img {
    height: 52px;
  }

  .dpr-packs .scene-grid img,
  .dpr-packs .related a img {
    height: 88px;
  }

  .dpr-packs .pack-actions .btn,
  .dpr-packs .custom-cta .btn {
    width: 100%;
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) and (max-height: 740px) {
  :root {
    --pack-hero-img: clamp(90px, 22vw, 160px);
  }

  .dpr-packs h1 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .dpr-packs .shop-hero h1 {
    font-size: clamp(1.25rem, 6vw, 1.6rem) !important;
  }

  .dpr-packs .shop-hero-media {
    aspect-ratio: 16 / 8;
  }

  .dpr-packs .lead {
    font-size: 0.95rem;
  }
}

@media (max-width: 380px) {
  .dpr-packs .chip {
    font-size: 0.72rem;
    padding: 0.3rem 0.55rem;
    letter-spacing: -0.01em;
  }

  .dpr-packs .pack-actions {
    gap: 6px;
  }
}

@media (min-width: 960px) {
  .dpr-packs .cta-mobile {
    display: none;
  }
}

/* Hide leftover Webnode shop chrome when overlay is present */
body.packs-redesign .s-hc,
body.packs-redesign .b-e-g,
body.packs-redesign .ez-c > .b-text,
body.packs-redesign .ez-c > .b-html:not(.packs-html) {
  display: none !important;
}

body.pack-detail .b-e-d,
body.pack-detail .s-ed .ez:not(.packs-keep) {
  display: none !important;
}
