/* =========================================================
   MG COPYARTE · TIENDA DIGITAL
   Estilos aislados para tienda-digital.html y tienda-producto.html
   ========================================================= */

.mg-store-page {
  --mg-store-blue: #7785ff;
  --mg-store-blue-soft: #bdc2ff;
  --mg-store-orange: #ff7b00;
  --mg-store-green: #25d366;
  --mg-store-radius-xl: 28px;
  --mg-store-radius-lg: 22px;
  --mg-store-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
  min-height: 100vh;
  background:
    radial-gradient(circle at 86% 8%, rgba(119, 133, 255, 0.11), transparent 28rem),
    radial-gradient(circle at 8% 28%, rgba(255, 123, 0, 0.08), transparent 25rem),
    var(--mg-bg);
  color: var(--mg-text);
  overflow-x: hidden;
}

.mg-store-page main {
  position: relative;
}

.mg-store-page .mg-navbar {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mg-store-page .mg-navbar .nav-link {
  white-space: nowrap;
}

.mg-store-page .mg-navbar .nav-link.active {
  color: var(--mg-primary);
}

.mg-store-section {
  padding: 84px 0;
  position: relative;
}

.mg-store-section.is-soft {
  background: color-mix(in srgb, var(--mg-surface-2) 82%, transparent);
  border-top: 1px solid var(--mg-border);
  border-bottom: 1px solid var(--mg-border);
}

.mg-store-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--mg-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mg-store-section-kicker::before {
  content: "";
  width: 30px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mg-primary), var(--mg-store-blue));
}

.mg-store-section-title {
  max-width: 780px;
  margin: 0;
  color: var(--mg-text);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.mg-store-section-lead {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--mg-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Hero */
.mg-store-hero {
  position: relative;
  min-height: 720px;
  padding: 150px 0 92px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--mg-border);
}

.mg-store-hero::before,
.mg-store-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(6px);
}

.mg-store-hero::before {
  width: 520px;
  height: 520px;
  right: -180px;
  top: 70px;
  background: radial-gradient(circle, rgba(119, 133, 255, 0.22), rgba(119, 133, 255, 0));
}

.mg-store-hero::after {
  width: 440px;
  height: 440px;
  left: -220px;
  bottom: -160px;
  background: radial-gradient(circle, rgba(255, 123, 0, 0.16), rgba(255, 123, 0, 0));
}

.mg-store-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
}

.mg-store-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 123, 0, 0.36);
  border-radius: 999px;
  background: rgba(255, 123, 0, 0.11);
  color: #ff9d4b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mg-store-eyebrow i {
  font-size: 0.85rem;
}

.mg-store-hero h1 {
  max-width: 760px;
  margin: 24px 0 20px;
  color: var(--mg-text);
  font-size: clamp(3rem, 6.2vw, 5.35rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.05;
}

.mg-store-gradient-text,
.mg-store-gradient-text:hover {
  display: inline-block;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
  background: linear-gradient(105deg, #ff9a42 4%, #ff7b00 30%, #bdc2ff 68%, #7785ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}

.mg-store-hero-lead {
  max-width: 710px;
  margin: 0;
  color: var(--mg-text);
  opacity: 0.9;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.mg-store-hero-copy {
  max-width: 690px;
  margin: 14px 0 0;
  color: var(--mg-muted);
  line-height: 1.7;
}

.mg-store-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.mg-store-btn {
  min-height: 50px;
  padding: 13px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.mg-store-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.mg-store-btn:active {
  transform: translateY(0);
}

.mg-store-btn-wa {
  border: 1px solid #25d366;
  background: #25d366;
  color: #07140b !important;
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.2);
}

.mg-store-btn-wa:hover {
  color: #07140b !important;
  filter: brightness(1.05);
  box-shadow: 0 18px 38px rgba(37, 211, 102, 0.28);
}

.mg-store-btn-primary {
  border: 1px solid var(--mg-primary);
  background: var(--mg-primary);
  color: #17100a !important;
  box-shadow: 0 14px 32px rgba(255, 123, 0, 0.2);
}

.mg-store-btn-primary:hover {
  color: #17100a !important;
  filter: brightness(1.06);
  box-shadow: 0 18px 38px rgba(255, 123, 0, 0.27);
}

.mg-store-btn-secondary {
  border: 1px solid rgba(189, 194, 255, 0.45);
  background: rgba(119, 133, 255, 0.15);
  color: var(--mg-text) !important;
}

.mg-store-btn-secondary:hover {
  border-color: rgba(189, 194, 255, 0.72);
  background: rgba(119, 133, 255, 0.23);
  color: var(--mg-text) !important;
}

/* Sorteo público */
.mg-store-raffle {
  position: relative;
  padding: 48px 0 0;
  scroll-margin-top: 92px;
}

.mg-store-raffle-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 30px 34px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--mg-primary) 36%, var(--mg-border));
  border-radius: var(--mg-store-radius-xl);
  background:
    radial-gradient(circle at 95% 10%, rgba(119, 133, 255, 0.2), transparent 16rem),
    radial-gradient(circle at 4% 100%, rgba(255, 123, 0, 0.12), transparent 15rem),
    var(--mg-surface);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
}

.mg-store-raffle-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(119, 133, 255, 0.34);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(119, 133, 255, 0.24), rgba(255, 123, 0, 0.12));
  color: var(--mg-primary);
  font-size: 2rem;
}

.mg-store-raffle-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--mg-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mg-store-raffle-copy h2 {
  margin: 0;
  color: var(--mg-text);
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.mg-store-raffle-copy h2 strong {
  color: var(--mg-primary);
  white-space: nowrap;
}

.mg-store-raffle-copy > p:not(.mg-store-raffle-count) {
  margin: 10px 0 0;
  color: var(--mg-muted);
  line-height: 1.55;
}

.mg-store-raffle-rule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--mg-text);
  font-size: 0.92rem;
}

.mg-store-raffle-rule i {
  color: var(--mg-store-orange);
}

.mg-store-raffle-count {
  width: fit-content;
  margin: 13px 0 0;
  padding: 7px 11px;
  border: 1px solid rgba(61, 226, 115, 0.28);
  border-radius: 999px;
  background: rgba(61, 226, 115, 0.09);
  color: color-mix(in srgb, var(--mg-text) 86%, #3de273);
  font-size: 0.86rem;
  font-weight: 800;
}

.mg-store-raffle-count[hidden] {
  display: none;
}

.mg-store-raffle-actions {
  min-width: 190px;
  display: grid;
  justify-items: stretch;
  gap: 11px;
  text-align: center;
}

.mg-store-raffle-actions .mg-store-btn {
  width: 100%;
}

.mg-store-raffle-bases {
  color: var(--mg-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mg-store-raffle-bases:hover {
  color: var(--mg-primary);
}

/* Bases públicas del sorteo */
.mg-store-bases-main {
  padding: 138px 0 84px;
}

.mg-store-bases-header {
  max-width: 850px;
  margin: 0 auto 32px;
  text-align: center;
}

.mg-store-bases-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--mg-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.mg-store-bases-back:hover {
  color: var(--mg-primary);
}

.mg-store-bases-header h1 {
  margin: 14px 0 16px;
  color: var(--mg-text);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.mg-store-bases-header > p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--mg-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.mg-store-bases-draft {
  max-width: 900px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 0 auto 24px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 123, 0, 0.38);
  border-radius: 18px;
  background: rgba(255, 123, 0, 0.09);
  color: var(--mg-text);
  font-size: 0.9rem;
  line-height: 1.55;
}

.mg-store-bases-draft i {
  margin-top: 3px;
  color: var(--mg-store-orange);
  font-size: 1.05rem;
}

.mg-store-bases-draft strong {
  display: block;
  margin-bottom: 2px;
}

.mg-store-bases-list {
  max-width: 900px;
  display: grid;
  gap: 14px;
  margin: 0 auto;
}

.mg-store-bases-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-store-radius-lg);
  background: var(--mg-surface);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.mg-store-bases-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(119, 133, 255, 0.14);
  color: var(--mg-primary);
  font-size: 0.76rem;
  font-weight: 800;
}

.mg-store-bases-card h2 {
  margin: 0 0 8px;
  color: var(--mg-text);
  font-size: 1.08rem;
  font-weight: 800;
}

.mg-store-bases-card p,
.mg-store-bases-card li,
.mg-store-bases-card address {
  color: var(--mg-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.mg-store-bases-card p,
.mg-store-bases-card address {
  margin: 0;
}

.mg-store-bases-card ul {
  margin: 0;
  padding-left: 1.15rem;
}

.mg-store-bases-card li + li {
  margin-top: 5px;
}

.mg-store-bases-todo {
  display: block;
  width: fit-content;
  margin-top: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 123, 0, 0.38);
  border-radius: 10px;
  background: rgba(255, 123, 0, 0.09);
  color: var(--mg-text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.mg-store-bases-organizer a {
  color: var(--mg-primary);
  font-weight: 700;
}

.mg-store-bases-footer-actions {
  max-width: 900px;
  display: flex;
  justify-content: center;
  margin: 28px auto 0;
}

.mg-store-hero-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 20px;
  color: var(--mg-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.mg-store-hero-note i {
  margin-top: 3px;
  color: var(--mg-primary);
}

.mg-store-showcase {
  position: relative;
  min-height: 530px;
}

.mg-store-showcase-panel {
  position: absolute;
  inset: 0 20px 10px 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    color-mix(in srgb, var(--mg-surface) 88%, transparent);
  box-shadow: var(--mg-store-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  animation: mg-store-showcase-float 7s ease-in-out infinite;
}

@keyframes mg-store-showcase-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

html.mg-theme-light .mg-store-showcase-panel {
  border-color: rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.mg-store-showcase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mg-store-showcase-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mg-store-showcase-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  padding: 6px;
}

.mg-store-showcase-brand strong,
.mg-store-showcase-brand span {
  display: block;
}

.mg-store-showcase-brand strong {
  color: var(--mg-text);
  font-size: 0.98rem;
}

.mg-store-showcase-brand span {
  margin-top: 2px;
  color: var(--mg-muted);
  font-size: 0.78rem;
}

.mg-store-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #65ef91;
  font-size: 0.76rem;
  font-weight: 800;
}

.mg-store-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3de273;
  box-shadow: 0 0 0 5px rgba(61, 226, 115, 0.12);
  animation: mg-store-live-pulse 2.8s ease-out infinite;
}

@keyframes mg-store-live-pulse {
  0%, 55%, 100% { box-shadow: 0 0 0 5px rgba(61, 226, 115, 0.12); }
  75% { box-shadow: 0 0 0 9px rgba(61, 226, 115, 0); }
}

.mg-store-showcase-cards {
  position: relative;
  height: 300px;
  margin-top: 18px;
}

.mg-store-mini-cover {
  position: absolute;
  width: 58%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.28);
  transition: transform 0.45s cubic-bezier(0.2, 0.75, 0.25, 1), box-shadow 0.45s ease;
}

.mg-store-mini-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mg-store-mini-cover-name {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 7px 9px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(8, 12, 38, 0.78);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.mg-store-mini-cover.one {
  left: 0;
  top: 46px;
  transform: rotate(-6deg);
}

.mg-store-mini-cover.two {
  right: 0;
  top: 2px;
  z-index: 2;
  transform: rotate(5deg);
}

.mg-store-mini-cover.three {
  left: 21%;
  bottom: 4px;
  z-index: 3;
  transform: rotate(-1deg);
}

.mg-store-showcase:hover .mg-store-mini-cover.one {
  transform: translateY(-4px) rotate(-4deg);
}

.mg-store-showcase:hover .mg-store-mini-cover.two {
  transform: translateY(-5px) rotate(3deg);
}

.mg-store-showcase:hover .mg-store-mini-cover.three {
  transform: translateY(-3px) rotate(0deg);
}

.mg-store-showcase-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.mg-store-showcase-stat {
  padding: 13px 10px;
  border: 1px solid var(--mg-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.mg-store-showcase-stat:hover {
  transform: translateY(-2px);
}

.mg-store-showcase-stat:nth-child(1):hover {
  border-color: rgba(119, 133, 255, 0.5);
  background: rgba(119, 133, 255, 0.1);
}

.mg-store-showcase-stat:nth-child(2):hover {
  border-color: rgba(61, 226, 115, 0.48);
  background: rgba(61, 226, 115, 0.09);
}

.mg-store-showcase-stat:nth-child(3):hover {
  border-color: rgba(255, 159, 83, 0.52);
  background: rgba(255, 123, 0, 0.09);
}

.mg-store-showcase-stat strong,
.mg-store-showcase-stat span {
  display: block;
}

.mg-store-showcase-stat strong {
  color: var(--mg-text);
  font-size: 1.05rem;
}

.mg-store-showcase-stat span {
  margin-top: 3px;
  color: var(--mg-muted);
  font-size: 0.72rem;
}

/* WhatsApp channel */
.mg-store-channel {
  margin-top: -42px;
  position: relative;
  z-index: 3;
}

.mg-store-channel-card {
  padding: clamp(25px, 4vw, 42px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border: 1px solid rgba(37, 211, 102, 0.28);
  border-radius: var(--mg-store-radius-xl);
  background:
    linear-gradient(110deg, rgba(37, 211, 102, 0.11), transparent 55%),
    var(--mg-surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.mg-store-channel-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(37, 211, 102, 0.14);
  color: #39df75;
  font-size: 2rem;
  box-shadow: inset 0 0 0 1px rgba(37, 211, 102, 0.25);
}

.mg-store-channel-copy h2 {
  margin: 0;
  color: var(--mg-text);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.mg-store-channel-copy p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--mg-muted);
  line-height: 1.65;
}

.mg-store-channel-actions {
  display: flex;
  gap: 10px;
}

/* Catalog controls */
.mg-store-catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.mg-store-search-wrap {
  position: relative;
  flex: 0 1 430px;
}

.mg-store-search-wrap i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mg-muted);
  pointer-events: none;
  transition: color 0.18s ease, filter 0.18s ease, transform 0.18s ease;
}

.mg-store-search-wrap:focus-within i {
  color: var(--mg-store-blue-soft);
  filter: drop-shadow(0 0 7px rgba(119, 133, 255, 0.55));
  transform: translateY(-50%) scale(1.08);
}

.mg-store-search {
  width: 100%;
  min-height: 54px;
  padding: 13px 18px 13px 48px;
  border: 1px solid color-mix(in srgb, var(--mg-border) 72%, var(--mg-store-blue) 28%);
  border-radius: 16px;
  background: var(--mg-surface-2);
  color: var(--mg-text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.mg-store-search::placeholder {
  color: var(--mg-muted);
}

.mg-store-search:focus {
  border-color: rgba(119, 133, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(119, 133, 255, 0.12);
}

.mg-store-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
}

.mg-store-filter {
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid var(--mg-border);
  border-radius: 999px;
  background: var(--mg-surface);
  color: var(--mg-muted);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.17s ease;
}

.mg-store-filter i {
  font-size: 0.78rem;
  transition: transform 0.18s ease;
}

.mg-store-filter:hover {
  transform: translateY(-2px);
  border-color: rgba(119, 133, 255, 0.4);
  color: var(--mg-text);
}

.mg-store-filter:hover i {
  transform: scale(1.12);
}

.mg-store-filter.active {
  border-color: rgba(119, 133, 255, 0.72);
  background: rgba(119, 133, 255, 0.17);
  color: var(--mg-store-blue-soft);
  box-shadow: inset 0 0 0 1px rgba(189, 194, 255, 0.1);
}

html.mg-theme-light .mg-store-filter.active {
  color: #3442bd;
}

.mg-store-filter.is-free:hover,
.mg-store-filter.is-free.active {
  border-color: rgba(61, 226, 115, 0.66);
  background: rgba(61, 226, 115, 0.13);
  color: #54e887;
  box-shadow: inset 0 0 0 1px rgba(61, 226, 115, 0.08), 0 8px 22px rgba(61, 226, 115, 0.08);
}

.mg-store-filter.is-print:hover,
.mg-store-filter.is-print.active {
  border-color: rgba(255, 159, 83, 0.72);
  background: rgba(255, 123, 0, 0.13);
  color: #ff9f53;
  box-shadow: inset 0 0 0 1px rgba(255, 159, 83, 0.08), 0 8px 22px rgba(255, 123, 0, 0.08);
}

html.mg-theme-light .mg-store-filter.is-free:hover,
html.mg-theme-light .mg-store-filter.is-free.active {
  color: #087b36;
}

html.mg-theme-light .mg-store-filter.is-print:hover,
html.mg-theme-light .mg-store-filter.is-print.active {
  color: #a64400;
}

.mg-store-catalog-meta {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  color: var(--mg-muted);
  font-size: 0.9rem;
}

.mg-store-catalog-meta strong {
  color: var(--mg-text);
}

.mg-store-clear {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mg-store-blue-soft);
  font-weight: 700;
}

html.mg-theme-light .mg-store-clear {
  color: #4352d8;
}

/* Product cards */
.mg-store-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.mg-store-product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-store-radius-lg);
  background: var(--mg-surface);
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mg-store-product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(119, 133, 255, 0.35);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.2);
}

.mg-store-product-card.is-reveal-ready {
  opacity: 0;
  transform: translateY(14px);
}

.mg-store-product-card.is-reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.42s ease var(--mg-card-delay, 0ms),
    transform 0.42s ease var(--mg-card-delay, 0ms),
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.mg-store-product-card.is-reveal-ready.is-visible:hover {
  transform: translateY(-5px);
}

.mg-store-product-media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--mg-surface-2);
}

.mg-store-product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}

.mg-store-product-card:hover .mg-store-product-media img {
  transform: none;
}

.mg-store-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.mg-store-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mg-store-product-meta .mg-store-type-badge {
  flex: 0 0 auto;
}

.mg-store-type-badge.is-digital {
  border-color: rgba(189, 194, 255, 0.55);
  background: rgba(31, 42, 120, 0.88);
  color: #e9eaff;
}

.mg-store-type-badge.is-free {
  border-color: rgba(61, 226, 115, 0.55);
  background: rgba(0, 105, 45, 0.9);
  color: #d9ffe4;
}

.mg-store-type-badge.is-print {
  border-color: rgba(255, 159, 86, 0.55);
  background: rgba(122, 50, 4, 0.9);
  color: #fff0e6;
}

.mg-store-product-body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.mg-store-product-category {
  color: var(--mg-primary);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.mg-store-product-body h3 {
  margin: 9px 0 0;
  color: var(--mg-text);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.mg-store-product-body h3 a {
  color: inherit;
  text-decoration: none;
}

.mg-store-product-body h3 a:hover {
  color: var(--mg-store-blue-soft);
}

.mg-store-product-summary {
  margin: 11px 0 0;
  color: var(--mg-text);
  opacity: 0.84;
  font-size: 0.86rem;
  line-height: 1.52;
}

.mg-store-product-delivery {
  margin: 12px 0 0;
  color: var(--mg-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.mg-store-product-footer {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.mg-store-price-label,
.mg-store-product-price {
  display: block;
}

.mg-store-price-label {
  margin-bottom: 2px;
  color: var(--mg-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.mg-store-product-price {
  color: var(--mg-text);
  font-size: 1.22rem;
  font-weight: 800;
}

.mg-store-format-label {
  color: var(--mg-muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-align: right;
}

.mg-store-product-actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.mg-store-product-actions .btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
}

.mg-store-product-primary.is-digital {
  border-color: var(--mg-store-blue-soft);
  background: var(--mg-store-blue-soft);
  color: #071064;
}

.mg-store-product-primary.is-free {
  border-color: #3de273;
  background: #3de273;
  color: #003915;
}

.mg-store-product-primary.is-print {
  border-color: #ffad7a;
  background: #ffad7a;
  color: #522300;
}

.mg-store-product-primary:hover {
  filter: brightness(1.05);
  color: inherit;
}

.mg-store-product-detail {
  border: 1px solid var(--mg-border);
  background: var(--mg-surface-2);
  color: var(--mg-text);
}

.mg-store-product-detail:hover {
  border-color: rgba(189, 194, 255, 0.42);
  background: color-mix(in srgb, var(--mg-surface-2) 75%, var(--mg-store-blue) 25%);
  color: var(--mg-text);
}

.mg-store-empty {
  padding: 60px 24px;
  border: 1px dashed var(--mg-border);
  border-radius: var(--mg-store-radius-lg);
  background: var(--mg-surface);
  text-align: center;
}

.mg-store-empty[hidden] {
  display: none;
}

.mg-store-empty i {
  color: var(--mg-store-blue-soft);
  font-size: 2rem;
}

.mg-store-empty h3 {
  margin: 16px 0 7px;
  color: var(--mg-text);
  font-size: 1.35rem;
  font-weight: 800;
}

.mg-store-empty p {
  margin: 0;
  color: var(--mg-muted);
}

.mg-store-api-state {
  grid-column: 1 / -1;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px;
  text-align: center;
  border: 1px dashed var(--mg-border);
  border-radius: 22px;
  color: var(--mg-muted);
  background: var(--mg-surface);
}

.mg-store-api-state i {
  font-size: 32px;
  color: var(--mg-primary);
}

.mg-store-api-state strong {
  color: var(--mg-text);
  font-size: 1.1rem;
}

.mg-store-api-state.is-error i {
  color: #ef4444;
}

/* Process */
.mg-store-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 34px;
}

.mg-store-step {
  position: relative;
  padding: 28px;
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-store-radius-lg);
  background: var(--mg-surface);
  overflow: hidden;
}

.mg-store-step-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(119, 133, 255, 0.14);
  color: var(--mg-store-blue-soft);
  font-size: 1rem;
  font-weight: 800;
}

.mg-store-step h3 {
  margin: 22px 0 9px;
  color: var(--mg-text);
  font-size: 1.25rem;
  font-weight: 800;
}

.mg-store-step p {
  margin: 0;
  color: var(--mg-muted);
  line-height: 1.65;
}

.mg-store-v1-note {
  margin: 22px 0 0;
  padding: 15px 18px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid rgba(255, 123, 0, 0.22);
  border-radius: 15px;
  background: rgba(255, 123, 0, 0.07);
  color: var(--mg-muted);
  font-size: 0.9rem;
}

.mg-store-v1-note i {
  margin-top: 3px;
  color: var(--mg-primary);
}

/* Strong print CTA */
.mg-store-print-cta {
  position: relative;
  padding: clamp(32px, 6vw, 62px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  border: 1px solid rgba(255, 123, 0, 0.3);
  border-radius: 32px;
  background:
    radial-gradient(circle at 95% 10%, rgba(255, 123, 0, 0.19), transparent 20rem),
    radial-gradient(circle at 10% 100%, rgba(119, 133, 255, 0.13), transparent 24rem),
    var(--mg-surface);
  box-shadow: var(--mg-store-shadow);
  overflow: hidden;
}

.mg-store-print-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 24px;
  background: rgba(255, 123, 0, 0.13);
  color: #ff9f53;
  font-size: 2rem;
}

.mg-store-print-cta h2 {
  margin: 0;
  color: var(--mg-text);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.mg-store-print-cta p {
  max-width: 790px;
  margin: 14px 0 0;
  color: var(--mg-muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

/* Free section */
.mg-store-free-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

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

.mg-store-product-card.is-compact .mg-store-product-delivery,
.mg-store-product-card.is-compact .mg-store-format-label {
  display: none;
}

/* Final custom CTA */
.mg-store-custom-cta {
  padding: clamp(30px, 5vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-store-radius-xl);
  background: var(--mg-surface);
}

.mg-store-custom-cta.is-unified {
  grid-template-columns: auto minmax(0, 1fr) auto;
  border-color: rgba(255, 123, 0, 0.28);
  background:
    radial-gradient(circle at 95% 10%, rgba(255, 123, 0, 0.13), transparent 20rem),
    var(--mg-surface);
}

.mg-store-custom-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 123, 0, 0.13);
  color: #ff9f53;
  font-size: 1.55rem;
}

.mg-store-custom-copy {
  min-width: 0;
}

#consulta.mg-store-section {
  padding: 48px 0;
}

.mg-store-custom-cta h2 {
  margin: 0;
  color: var(--mg-text);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.mg-store-custom-cta p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--mg-muted);
  line-height: 1.65;
}

/* Compact channel invitation (single appearance) */
.mg-store-channel-compact {
  padding: 34px 0 46px;
}

.mg-store-channel-compact-inner {
  min-height: 76px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 20px;
  background: rgba(37, 211, 102, 0.07);
  color: var(--mg-muted);
}

.mg-store-channel-compact-inner > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mg-store-channel-compact-inner i {
  color: #39df75;
  font-size: 1.45rem;
}

.mg-store-channel-compact-inner strong {
  color: var(--mg-text);
}

.mg-store-channel-compact-inner a {
  flex: 0 0 auto;
  color: #39df75;
  font-weight: 800;
  text-decoration: none;
}

/* Floating WhatsApp */
.mg-store-floating-wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1035;
  width: 58px;
  height: 58px;
  display: none;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: #25d366;
  color: #07140b !important;
  font-size: 1.55rem;
  box-shadow: 0 16px 35px rgba(37, 211, 102, 0.35);
}

/* Product detail */
.mg-store-detail-main {
  padding: 132px 0 80px;
}

.mg-store-breadcrumb {
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--mg-muted);
  font-size: 0.86rem;
}

.mg-store-breadcrumb a {
  color: var(--mg-muted);
  text-decoration: none;
}

.mg-store-breadcrumb a:hover {
  color: var(--mg-primary);
}

.mg-store-breadcrumb i {
  font-size: 0.65rem;
}

.mg-store-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: start;
}

.mg-store-detail-media {
  position: sticky;
  top: 104px;
}

.mg-store-detail-image-wrap {
  position: relative;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--mg-border);
  border-radius: 30px;
  background: var(--mg-surface);
  overflow: hidden;
  box-shadow: var(--mg-store-shadow);
}

.mg-store-detail-image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.mg-store-detail-image-wrap .mg-store-type-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  min-height: 27px;
  padding: 6px 10px;
  background: rgba(31, 42, 120, 0.83);
  color: #fff;
  font-size: 0.68rem;
  backdrop-filter: blur(4px);
}

.mg-store-detail-mini-note {
  margin-top: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--mg-border);
  border-radius: 15px;
  background: var(--mg-surface);
  color: var(--mg-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.mg-store-detail-mini-note i {
  margin-top: 3px;
  color: var(--mg-primary);
}

.mg-store-detail-copy {
  padding-top: 8px;
}

.mg-store-detail-category {
  color: var(--mg-primary);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mg-store-detail-copy h1 {
  margin: 13px 0 16px;
  color: var(--mg-text);
  font-size: clamp(2.55rem, 5vw, 4.35rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.mg-store-detail-summary {
  margin: 0;
  color: var(--mg-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.mg-store-detail-price-row {
  margin: 27px 0 0;
  padding: 20px 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--mg-border);
  border-bottom: 1px solid var(--mg-border);
}

.mg-store-detail-price-row small,
.mg-store-detail-price-row strong {
  display: block;
}

.mg-store-detail-price-row small {
  color: var(--mg-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.mg-store-detail-price-row strong {
  margin-top: 3px;
  color: var(--mg-text);
  font-size: 2rem;
  font-weight: 800;
}

.mg-store-detail-delivery {
  max-width: 270px;
  color: var(--mg-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: right;
}

.mg-store-detail-notice {
  margin-top: 20px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(119, 133, 255, 0.27);
  border-radius: 15px;
  background: rgba(119, 133, 255, 0.08);
  color: var(--mg-text);
  font-size: 0.88rem;
  line-height: 1.5;
}

.mg-store-detail-notice i {
  margin-top: 3px;
  color: var(--mg-store-blue-soft);
}

.mg-store-detail-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.mg-store-detail-actions .mg-store-product-primary,
.mg-store-detail-actions .mg-store-btn-secondary {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 15px;
  font-weight: 800;
}

.mg-store-detail-description {
  margin-top: 32px;
}

.mg-store-detail-description h2,
.mg-store-detail-includes h2 {
  margin: 0 0 12px;
  color: var(--mg-text);
  font-size: 1.25rem;
  font-weight: 800;
}

.mg-store-detail-description p {
  margin: 0;
  color: var(--mg-muted);
  line-height: 1.75;
}

.mg-store-detail-includes {
  margin-top: 27px;
}

.mg-store-detail-includes ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
  list-style: none;
}

.mg-store-detail-includes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--mg-text);
  line-height: 1.55;
}

.mg-store-detail-includes li i {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(61, 226, 115, 0.11);
  color: #3de273;
  font-size: 0.7rem;
}

.mg-store-affiliate {
  margin-top: 30px;
  padding: 18px 20px;
  border: 1px solid var(--mg-border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--mg-surface-2) 72%, transparent);
}

.mg-store-affiliate[hidden] {
  display: none;
}

.mg-store-affiliate h2 {
  margin: 0;
  color: var(--mg-text);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
}

.mg-store-affiliate p {
  margin: 7px 0 13px;
  color: var(--mg-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.mg-store-affiliate-link {
  min-height: 40px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(119, 133, 255, 0.38);
  border-radius: 12px;
  background: transparent;
  color: var(--mg-store-blue) !important;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.mg-store-affiliate-link:hover,
.mg-store-affiliate-link:focus-visible {
  border-color: rgba(119, 133, 255, 0.65);
  background: rgba(119, 133, 255, 0.09);
  color: var(--mg-text) !important;
  text-decoration: none;
}

html.mg-theme-dark .mg-store-affiliate-link {
  color: var(--mg-store-blue-soft) !important;
}

.mg-store-detail-meta {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mg-store-detail-meta-item {
  padding: 15px;
  border: 1px solid var(--mg-border);
  border-radius: 15px;
  background: var(--mg-surface);
}

.mg-store-detail-meta-item small,
.mg-store-detail-meta-item span {
  display: block;
}

.mg-store-detail-meta-item small {
  color: var(--mg-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.mg-store-detail-meta-item span {
  margin-top: 5px;
  color: var(--mg-text);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.45;
}

.mg-store-detail-print {
  margin-top: 54px;
  padding: clamp(28px, 5vw, 46px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  border: 1px solid rgba(255, 123, 0, 0.26);
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(255, 123, 0, 0.11), transparent 60%),
    var(--mg-surface);
}

.mg-store-detail-print[hidden] {
  display: none;
}

.mg-store-detail-print h2 {
  margin: 0;
  color: var(--mg-text);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.mg-store-detail-print p {
  margin: 10px 0 0;
  color: var(--mg-muted);
  line-height: 1.65;
}

.mg-store-print-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mg-store-print-options span {
  padding: 7px 11px;
  border: 1px solid var(--mg-border);
  border-radius: 999px;
  background: var(--mg-surface-2);
  color: var(--mg-text);
  font-size: 0.77rem;
  font-weight: 700;
}

.mg-store-related {
  margin-top: 78px;
}

.mg-store-related h2 {
  margin: 0 0 24px;
  color: var(--mg-text);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.mg-store-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mg-store-related-card {
  position: relative;
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  min-height: 118px;
  border: 1px solid var(--mg-border);
  border-radius: 18px;
  background: var(--mg-surface);
  color: var(--mg-text) !important;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.mg-store-related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(119, 133, 255, 0.4);
  text-decoration: none;
}

.mg-store-related-card img {
  width: 152px;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--mg-surface-2);
}

.mg-store-related-card .mg-store-type-badge {
  flex: 0 0 auto;
  min-height: 22px;
  padding: 4px 7px;
  font-size: 0.58rem;
}

.mg-store-related-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mg-store-related-card > div {
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mg-store-related-card small,
.mg-store-related-card strong,
.mg-store-related-card > div > span {
  display: block;
}

.mg-store-related-card small {
  color: var(--mg-primary);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mg-store-related-card strong {
  margin-top: 5px;
  font-size: 0.91rem;
  line-height: 1.35;
}

.mg-store-related-card > div > span {
  margin-top: 7px;
  color: var(--mg-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.mg-store-detail-error {
  padding: 80px 24px;
  border: 1px solid var(--mg-border);
  border-radius: 28px;
  background: var(--mg-surface);
  text-align: center;
}

.mg-store-detail-error[hidden] {
  display: none;
}

.mg-store-detail-error i {
  color: var(--mg-primary);
  font-size: 2.4rem;
}

.mg-store-detail-error h1 {
  margin: 18px 0 10px;
  color: var(--mg-text);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
}

.mg-store-detail-error p {
  max-width: 560px;
  margin: 0 auto 24px;
  color: var(--mg-muted);
}

/* Footer small integration */
.mg-store-page .mg-footer {
  background: var(--mg-surface);
  border-top: 1px solid var(--mg-border);
}

/* Responsive */
@media (max-width: 1299px) {
  .mg-store-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1199px) {
  .mg-store-hero-grid {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 48px;
  }

  .mg-store-showcase {
    min-height: 490px;
  }

  .mg-store-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .mg-store-section {
    padding: 68px 0;
  }

  .mg-store-hero {
    min-height: auto;
    padding: 128px 0 84px;
  }

  .mg-store-hero-grid,
  .mg-store-detail-grid {
    grid-template-columns: 1fr;
  }

  .mg-store-showcase {
    width: min(100%, 620px);
    min-height: 520px;
    margin: 0 auto;
  }

  .mg-store-raffle-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .mg-store-raffle-actions {
    grid-column: 2;
    min-width: 0;
    grid-template-columns: minmax(170px, 220px) auto;
    align-items: center;
    justify-content: start;
    text-align: left;
  }

  .mg-store-channel-card {
    grid-template-columns: auto 1fr;
  }

  .mg-store-channel-actions {
    grid-column: 1 / -1;
    padding-left: 96px;
  }

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

  .mg-store-detail-media {
    position: static;
  }

  .mg-store-detail-image-wrap {
    max-width: 760px;
    margin: 0 auto;
  }

  .mg-store-detail-copy {
    padding-top: 0;
  }
}

@media (max-width: 767px) {
  .mg-store-section {
    padding: 56px 0;
  }

  .mg-store-hero {
    padding: 96px 0 38px;
  }

  .mg-store-hero h1 {
    margin: 16px 0 14px;
    font-size: clamp(2.45rem, 13vw, 3.6rem);
  }

  .mg-store-hero-lead {
    font-size: 1.02rem;
    line-height: 1.5;
  }

  .mg-store-hero-copy {
    margin-top: 10px;
    line-height: 1.55;
  }

  .mg-store-hero-actions {
    display: flex;
    flex-wrap: nowrap;
    margin-top: 22px;
  }

  .mg-store-hero-actions .mg-store-btn {
    min-width: 0;
    padding: 12px 16px;
  }

  .mg-store-showcase {
    display: none;
  }

  .mg-store-raffle {
    padding-top: 28px;
  }

  .mg-store-raffle-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 20px;
  }

  .mg-store-raffle-icon {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    font-size: 1.55rem;
  }

  .mg-store-raffle-copy h2 {
    font-size: clamp(1.55rem, 8vw, 2.05rem);
  }

  .mg-store-raffle-rule {
    align-items: flex-start;
  }

  .mg-store-raffle-count {
    border-radius: 14px;
    line-height: 1.4;
  }

  .mg-store-raffle-actions {
    grid-column: auto;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .mg-store-bases-main {
    padding: 104px 0 58px;
  }

  .mg-store-bases-header {
    margin-bottom: 24px;
    text-align: left;
  }

  .mg-store-bases-header h1 {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  .mg-store-bases-draft {
    padding: 14px;
  }

  .mg-store-bases-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 19px 17px;
  }

  .mg-store-bases-number {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .mg-store-bases-footer-actions .mg-store-btn {
    width: 100%;
  }

  .mg-store-showcase-panel {
    inset: 0;
    padding: 18px;
  }

  .mg-store-showcase-cards {
    height: 270px;
  }

  .mg-store-channel {
    margin-top: -28px;
  }

  .mg-store-channel-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .mg-store-channel-icon {
    margin: 0 auto;
  }

  .mg-store-channel-actions {
    grid-column: auto;
    padding-left: 0;
  }

  .mg-store-catalog-head,
  .mg-store-free-head {
    display: grid;
    align-items: start;
  }

  #recursos.mg-store-section {
    padding-top: 40px;
  }

  .mg-store-search-wrap {
    width: 100%;
    max-width: none;
  }

  .mg-store-filters {
    margin-right: calc(var(--bs-gutter-x) * -0.5);
    padding-top: 4px;
    padding-bottom: 4px;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }

  .mg-store-filter {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .mg-store-product-grid,
  .mg-store-free-grid,
  .mg-store-steps {
    grid-template-columns: 1fr;
  }

  .mg-store-product-card {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }

  .mg-store-product-media {
    aspect-ratio: 3 / 2;
  }

  .mg-store-product-media img {
    object-fit: contain;
  }

  .mg-store-product-actions .mg-store-product-primary {
    width: 100%;
  }

  .mg-store-print-cta,
  .mg-store-custom-cta,
  .mg-store-detail-print {
    grid-template-columns: 1fr;
  }

  .mg-store-custom-cta.is-unified {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .mg-store-custom-cta.is-unified .mg-store-btn {
    grid-column: 1 / -1;
  }

  .mg-store-print-cta .mg-store-btn,
  .mg-store-custom-cta .mg-store-btn,
  .mg-store-detail-print .mg-store-btn {
    width: 100%;
  }

  .mg-store-detail-main {
    padding: 108px 0 60px;
  }

  .mg-store-detail-copy h1 {
    font-size: clamp(2.35rem, 12vw, 3.55rem);
  }

  .mg-store-floating-wa {
    display: grid;
  }

  .mg-store-channel-compact {
    padding: 28px 0 32px;
  }

  #consulta.mg-store-section {
    padding: 34px 0;
  }

  .mg-store-channel-compact-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (hover: none), (pointer: coarse) {
  .mg-store-filter:hover {
    transform: none;
  }
}

@media (max-width: 575px) {
  .mg-store-detail-image-wrap .mg-store-type-badge {
    top: 10px;
    right: 10px;
    min-height: 24px;
    padding: 5px 8px;
    font-size: 0.62rem;
  }

  .mg-store-affiliate {
    padding: 16px;
  }

  .mg-store-affiliate-link {
    width: 100%;
  }

  .mg-store-section {
    padding: 42px 0;
  }

  #consulta.mg-store-section {
    padding: 28px 0;
  }

  .mg-store-eyebrow,
  .mg-store-hero-note {
    display: none;
  }

  .mg-store-hero {
    padding-top: 86px;
    padding-bottom: 26px;
  }

  .mg-store-hero-copy {
    display: none;
  }

  .mg-store-hero-actions {
    gap: 8px;
  }

  .mg-store-hero-actions .mg-store-btn {
    min-height: 44px;
    font-size: 0.78rem;
  }

  .mg-store-channel-link i {
    display: none;
  }

  .mg-store-catalog-head {
    gap: 18px;
    margin-bottom: 18px;
  }

  .mg-store-section-title {
    font-size: 1.75rem;
  }

  .mg-store-section-lead {
    margin-top: 10px;
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .mg-store-filters {
    margin-bottom: 14px;
  }

  .mg-store-catalog-meta {
    margin-bottom: 14px;
  }

  .mg-store-product-grid {
    gap: 12px;
  }

  .mg-store-product-card {
    border-radius: 17px;
  }

  .mg-store-product-meta .mg-store-type-badge {
    min-height: 23px;
    max-width: 100px;
    padding: 5px 7px;
    font-size: 0.58rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mg-store-product-body {
    min-width: 0;
    padding: 13px;
  }

  .mg-store-product-body h3 {
    margin-top: 5px;
    font-size: 0.95rem;
  }

  .mg-store-product-summary {
    margin-top: 7px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .mg-store-product-delivery,
  .mg-store-format-label,
  .mg-store-price-label,
  .mg-store-product-detail {
    display: none !important;
  }

  .mg-store-product-footer {
    padding-top: 9px;
  }

  .mg-store-product-price {
    font-size: 1rem;
  }

  .mg-store-product-actions {
    margin-top: 9px;
  }

  .mg-store-product-actions .btn {
    min-height: 36px;
    padding: 7px 8px;
    font-size: 0.7rem;
  }

  .mg-store-product-actions .btn i {
    display: none;
  }

  .mg-store-print-cta,
  .mg-store-custom-cta {
    padding: 24px 20px;
  }

  .mg-store-custom-cta.is-unified {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .mg-store-custom-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 1.3rem;
  }

  .mg-store-print-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    border-radius: 17px;
    font-size: 1.4rem;
  }

  .mg-store-print-cta h2,
  .mg-store-custom-cta h2 {
    font-size: 1.65rem;
  }

  .mg-store-print-cta p,
  .mg-store-custom-cta p {
    margin-top: 9px;
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .mg-store-channel-compact-inner {
    padding: 16px 18px;
    font-size: 0.85rem;
  }

  .mg-store-showcase {
    min-height: 390px;
  }

  .mg-store-showcase-panel {
    border-radius: 26px;
  }

  .mg-store-showcase-brand span,
  .mg-store-live {
    display: none;
  }

  .mg-store-showcase-cards {
    height: 230px;
    margin-top: 18px;
  }

  .mg-store-mini-cover {
    width: 62%;
    border-radius: 18px;
  }

  .mg-store-showcase-footer {
    gap: 6px;
  }

  .mg-store-showcase-stat {
    padding: 10px 5px;
  }

  .mg-store-showcase-stat strong {
    font-size: 0.9rem;
  }

  .mg-store-showcase-stat span {
    font-size: 0.62rem;
  }

  .mg-store-channel-card,
  .mg-store-step,
  .mg-store-print-cta,
  .mg-store-custom-cta,
  .mg-store-detail-print {
    border-radius: 22px;
  }

  .mg-store-catalog-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .mg-store-product-body {
    padding: 13px;
  }

  .mg-store-detail-price-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .mg-store-detail-delivery {
    max-width: none;
    text-align: left;
  }

  .mg-store-detail-meta {
    grid-template-columns: 1fr;
  }

  .mg-store-related-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .mg-store-related-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mg-store-product-card.is-reveal-ready {
    opacity: 1;
    transform: none;
  }

  .mg-store-page *,
  .mg-store-page *::before,
  .mg-store-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Checkout y confirmación de compra */
.mg-store-checkout-modal .modal-content {
  color: var(--mg-text);
  background: var(--mg-surface);
  border: 1px solid var(--mg-border);
  border-radius: 24px;
  box-shadow: var(--mg-store-shadow);
}

.mg-store-checkout-modal .modal-header {
  align-items: flex-start;
  padding: 24px 24px 16px;
  border-bottom-color: var(--mg-border);
}

.mg-store-checkout-modal .modal-body { padding: 22px 24px 24px; }
.mg-store-checkout-modal .modal-title { margin-top: 3px; color: var(--mg-text); font-size: 1.55rem; font-weight: 800; }
.mg-store-checkout-modal .btn-close { filter: var(--mg-close-filter, invert(1)); }
html.mg-theme-light .mg-store-checkout-modal .btn-close { --mg-close-filter: none; }

.mg-store-checkout-kicker,
.mg-store-confirm-kicker {
  color: var(--mg-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mg-store-checkout-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--mg-border);
  border-radius: 16px;
  background: var(--mg-surface-2);
}

.mg-store-checkout-product div { display: grid; gap: 3px; min-width: 0; }
.mg-store-checkout-product small { color: var(--mg-muted); font-size: 0.72rem; }
.mg-store-checkout-product strong { overflow-wrap: anywhere; color: var(--mg-text); }
.mg-store-checkout-product > span { flex: 0 0 auto; color: var(--mg-primary); font-weight: 800; }
.mg-store-checkout-modal .form-label { color: var(--mg-text); font-weight: 700; }
.mg-store-checkout-modal .form-control {
  min-height: 48px;
  color: var(--mg-text);
  background: var(--mg-surface-2);
  border-color: var(--mg-border);
}
.mg-store-checkout-modal .form-control:focus { border-color: var(--mg-primary); box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--mg-primary) 20%, transparent); }
.mg-store-checkout-adult { margin: 20px 0; color: var(--mg-text); }
.mg-store-checkout-adult .form-check-input:checked { background-color: var(--mg-primary); border-color: var(--mg-primary); }
.mg-store-checkout-error { margin: 14px 0; padding: 13px 15px; color: #ffb7b7; background: rgba(220, 53, 69, 0.13); border: 1px solid rgba(220, 53, 69, 0.35); border-radius: 12px; font-size: 0.86rem; line-height: 1.55; }
.mg-store-checkout-error.is-ambiguous { color: #ffe2ad; background: rgba(255, 166, 0, 0.12); border-color: rgba(255, 166, 0, 0.35); }
html.mg-theme-light .mg-store-checkout-error { color: #8d1724; }
html.mg-theme-light .mg-store-checkout-error.is-ambiguous { color: #744900; }
.mg-store-checkout-submit,
.mg-store-confirm-primary {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--mg-primary), var(--mg-store-orange));
  border: 0;
  border-radius: 14px;
  font-weight: 800;
}
.mg-store-checkout-submit:hover,
.mg-store-confirm-primary:hover { color: #fff; transform: translateY(-1px); }
.mg-store-checkout-submit:disabled { opacity: 0.65; }
.mg-store-checkout-privacy { margin: 13px 0 0; color: var(--mg-muted); font-size: 0.72rem; line-height: 1.5; text-align: center; }

.mg-store-confirm-main {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 130px 0 64px;
}

.mg-store-confirm-card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 52px);
  text-align: center;
  background: color-mix(in srgb, var(--mg-surface) 94%, transparent);
  border: 1px solid var(--mg-border);
  border-radius: 28px;
  box-shadow: var(--mg-store-shadow);
}

.mg-store-confirm-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 22px;
  font-size: 1.8rem;
}
.mg-store-confirm-icon.is-waiting,
.mg-store-confirm-icon.is-processing { color: #ffc067; background: rgba(255, 166, 0, 0.13); border: 1px solid rgba(255, 166, 0, 0.32); }
.mg-store-confirm-icon.is-paid { color: #63e594; background: rgba(37, 211, 102, 0.13); border: 1px solid rgba(37, 211, 102, 0.32); }
.mg-store-confirm-icon.is-failed { color: #ff8d98; background: rgba(220, 53, 69, 0.13); border: 1px solid rgba(220, 53, 69, 0.32); }
.mg-store-confirm-card h1 { margin: 8px 0 12px; color: var(--mg-text); font-size: clamp(1.8rem, 5vw, 2.7rem); font-weight: 800; letter-spacing: -0.04em; }
.mg-store-confirm-message { max-width: 580px; margin: 0 auto; color: var(--mg-muted); line-height: 1.7; }
.mg-store-confirm-spinner { margin-top: 18px; color: var(--mg-primary); font-size: 1.3rem; }
.mg-store-confirm-order { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 10px; margin-top: 28px; text-align: left; }
.mg-store-confirm-order > div { min-width: 0; padding: 14px; background: var(--mg-surface-2); border: 1px solid var(--mg-border); border-radius: 14px; }
.mg-store-confirm-order small { display: block; margin-bottom: 4px; color: var(--mg-muted); font-size: 0.68rem; text-transform: uppercase; }
.mg-store-confirm-order strong { display: block; overflow-wrap: anywhere; color: var(--mg-text); font-size: 0.88rem; }
.mg-store-confirm-raffle { margin-top: 20px; padding: 18px; background: rgba(119, 133, 255, 0.11); border: 1px solid rgba(119, 133, 255, 0.32); border-radius: 16px; }
.mg-store-confirm-raffle span,
.mg-store-confirm-raffle small { display: block; color: var(--mg-muted); }
.mg-store-confirm-raffle strong { display: block; margin: 7px 0; color: var(--mg-text); font-size: 1.8rem; letter-spacing: 0.08em; }
.mg-store-confirm-download { margin-top: 22px; }
.mg-store-download-progress {
  margin-top: 14px;
  padding: 14px;
  color: var(--mg-text);
  background: var(--mg-surface-2);
  border: 1px solid var(--mg-border);
  border-radius: 14px;
  text-align: left;
}
.mg-store-download-progress strong,
.mg-store-download-progress small { display: block; }
.mg-store-download-progress small { color: var(--mg-muted); font-size: 0.78rem; line-height: 1.5; }
.mg-store-download-progress-track {
  height: 7px;
  margin: 10px 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--mg-border) 65%, transparent);
  border-radius: 999px;
}
.mg-store-download-progress-track span {
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, var(--mg-primary), var(--mg-store-orange));
  border-radius: inherit;
  animation: mg-store-download-indeterminate 1.25s ease-in-out infinite;
}
.mg-store-download-progress.is-waiting-retry .mg-store-download-progress-track { display: none; }
@keyframes mg-store-download-indeterminate {
  from { transform: translateX(-110%); }
  to { transform: translateX(245%); }
}
.mg-store-confirm-regenerate { margin-top: 13px; padding: 14px; color: var(--mg-muted); background: var(--mg-surface-2); border: 1px solid var(--mg-border); border-radius: 14px; }
.mg-store-confirm-regenerate p { margin: 0 0 10px; font-size: 0.82rem; line-height: 1.5; }
.mg-store-confirm-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.mg-store-confirm-secondary,
.mg-store-confirm-store-link,
.mg-store-confirm-whatsapp { color: var(--mg-text); background: var(--mg-surface-2); border: 1px solid var(--mg-border); border-radius: 12px; font-weight: 700; }
.mg-store-confirm-secondary:hover,
.mg-store-confirm-store-link:hover { color: var(--mg-primary); border-color: var(--mg-primary); }
.mg-store-confirm-whatsapp { color: #fff; background: #1eaf55; border-color: #1eaf55; }
.mg-store-confirm-whatsapp:hover { color: #fff; background: #168d44; }
.mg-store-confirm-note { margin: 22px 0 0; color: var(--mg-muted); font-size: 0.72rem; line-height: 1.55; }

@media (max-width: 575px) {
  .mg-store-checkout-modal .modal-content { border: 0; border-radius: 0; }
  .mg-store-checkout-modal .modal-header { padding: 20px 18px 14px; }
  .mg-store-checkout-modal .modal-body { padding: 18px; }
  .mg-store-checkout-product { align-items: flex-start; flex-direction: column; gap: 8px; }
  .mg-store-confirm-main { padding: 112px 0 30px; }
  .mg-store-confirm-card { padding: 24px 16px; border-radius: 20px; }
  .mg-store-confirm-order { grid-template-columns: 1fr; }
  .mg-store-confirm-actions { flex-direction: column; }
  .mg-store-confirm-actions .btn { width: 100%; }
  .mg-store-confirm-store-link { padding: 8px 10px; font-size: 0.7rem; }
}
