/* ==========================================================================
   Magnolias Cusco — Rediseño (header + home + footer)
   Cargar DESPUÉS de custom-styles.css. Todo es override; prefijo .mg- para lo nuevo.
   Paleta: rosa #e68da6 · fucsia #e62168 · verde #7a9b63 · crema #ece6d8 · negro #1d1d1b
   ========================================================================== */
:root {
  --rosa: #e68da6;
  --fucsia: #e62168;
  --fucsia-d: #c41854;
  --verde: #7a9b63;
  --verde-d: #67854f;
  --crema: #ece6d8;
  --crema-2: #f6f2ea;
  --negro: #1d1d1b;
  --gris: #6b6b6b;
  --mg-header-h: 74px;
  --mg-nav-h: 50px;
  --mg-shadow: 0 8px 24px -12px rgba(29, 29, 27, .22);
  --mg-serif: 'Fraunces', Georgia, serif;
}

body {
  color: var(--negro)
}

.mg-serif {
  font-family: var(--mg-serif)
}

/* ====== Fix overflow horizontal (filas Bootstrap fuera de .container) ====== */
.row.page-content {
  margin-left: 0;
  margin-right: 0
}

#footer .row {
  margin-left: 0;
  margin-right: 0
}

/* ====== Ocultar header/nav viejos en todas las páginas (usamos el nuevo) ====== */
#top-header,
header>#header,
#navigation {
  display: none !important;
}

/* ==========================================================================
   HEADER NUEVO
   ========================================================================== */
.mg-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: var(--mg-shadow);
  font-family: 'Hind', system-ui, sans-serif
}

.mg-header a {
  text-decoration: none;
  color: inherit
}

.mg-announce {
  background: linear-gradient(90deg, var(--fucsia), var(--rosa));
  color: #fff;
  font-size: 13.5px;
  overflow: hidden;
  height: 38px;
  transition: height .3s, opacity .25s
}

/* marquee solo en mobile tipo cartel led */
.mg-announce .mg-track {
  display: flex;
  gap: 5rem;
  align-items: center;
  height: 38px;
  font-weight: 500;
  flex-wrap: nowrap;
  justify-content: center;
}

/* En mobile hacemos que sea marquee */
@media (max-width: 767px) {
  .mg-announce .mg-track {
    animation: mg-marquee 30s linear infinite;
    will-change: transform;
    justify-content: flex-start;
    width: max-content;
  }
}

.mg-announce:hover .mg-track {
  animation-play-state: paused
}

.mg-announce .mg-track-group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.mg-announce .mg-track-group>span {
  padding: 0 26px;
  white-space: nowrap;
}

.mg-announce b {
  font-weight: 700
}

@media(prefers-reduced-motion:reduce) {
  .mg-announce .mg-track {
    animation: none;
    justify-content: center;
    width: auto;
    margin: 0 auto
  }
}

.mg-header.mg-shrink .mg-announce {
  height: 0;
  opacity: 0
}

.mg-mainbar {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--mg-header-h);
  transition: height .25;
  justify-content: space-between;
}

/* salvaguarda: un wrapper sin clase no debe romper el flex (logo+buscador) */
.mg-mainbar>div:not([class]) {
  display: contents
}

.mg-brand-search {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.mg-header.mg-shrink .mg-mainbar {
  height: 62px
}

.mg-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto
}

.mg-brand img {
  width: 46px;
  height: 46px;
  display: block;
  transition: width .25s, height .25s
}

.mg-header.mg-shrink .mg-brand img {
  width: 38px;
  height: 38px
}

.mg-search {
  flex: 1 1 auto;
  max-width: 560px;
  position: relative
}

.mg-search input {
  width: 100%;
  height: 46px;
  border: 1.5px solid #ece1e5;
  background: var(--crema-2);
  border-radius: 999px;
  padding: 0 48px 0 20px;
  font-size: 15px;
  outline: none;
  transition: .2s;
  color: var(--negro)
}

.mg-search input::placeholder {
  color: #a79ea2
}

.mg-search input:focus {
  border-color: var(--fucsia);
  background: #fff
}

.mg-search .mg-go {
  position: absolute;
  right: 5px;
  top: 4px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--fucsia);
  color: #fff;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer
}

.mg-search .mg-go:hover {
  background: var(--fucsia-d)
}

.mg-search .mg-go.mic {
  right: 46px;
  background: transparent;
  color: #a79ea2
}

.mg-search .mg-go.mic:hover {
  color: var(--fucsia)
}

.mg-search input {
  padding-right: 84px
}

.mg-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto
}

.mg-act {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 14px;
  transition: background .15s;
  color: var(--negro)
}

.mg-act:hover {
  background: var(--crema-2);
  color: var(--negro)
}

.mg-act .mg-ic {
  width: 22px;
  height: 22px;
  color: var(--negro)
}

.mg-act .mg-lbl .t1 {
  display: block;
  font-size: 11px;
  color: var(--gris);
  line-height: 1.2
}

.mg-act .mg-lbl .t2 {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2
}

.mg-cart-wrap {
  position: relative
}

.mg-badge {
  position: absolute;
  top: -7px;
  right: -8px;
  background: var(--fucsia);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  padding: 0 4px
}

.mg-catnav {
  border-top: 1px solid #f1eef0;
  background: #fff
}

.mg-catnav .mg-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--mg-nav-h);
  display: flex;
  align-items: center;
  gap: 2px
}

.mg-catnav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--mg-nav-h);
  padding: 0 13px;
  font-size: 13px;
  font-weight: 600;
  color: #4a4a4a;
  text-transform: uppercase;
  letter-spacing: .2px;
  white-space: nowrap
}

.mg-catnav a:hover {
  color: var(--fucsia)
}

.mg-catnav a.mg-active {
  color: var(--fucsia)
}

.mg-catnav a.mg-active::after,
.mg-catnav a:not(.mg-featured):hover::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 0;
  height: 3px;
  background: var(--fucsia);
  border-radius: 3px 3px 0 0
}

.mg-catnav a:not(.mg-featured):hover::after {
  background: var(--rosa)
}

.mg-catnav a.mg-active:hover::after {
  background: var(--fucsia)
}

.mg-catnav a.mg-featured {
  background: var(--fucsia);
  color: #fff;
  border-radius: 999px;
  height: 33px;
  padding: 0 15px;
  margin-right: 6px
}

.mg-catnav a.mg-featured:hover {
  background: var(--fucsia-d);
  color: #fff
}

.mg-catnav .mg-spacer {
  flex: 1
}

.mg-catnav .mg-ship {
  color: var(--verde);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: none;
  display: flex;
  align-items: center;
  gap: 7px
}

.mg-catnav .mg-ship svg {
  width: 18px;
  height: 18px
}

.mg-has-drop {
  position: relative;
  display: inline-flex;
  align-items: center
}

.mg-drop {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 40px -16px rgba(29, 29, 27, .3);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: .18s;
  border: 1px solid #f1eef0;
  z-index: 5
}

.mg-has-drop:hover .mg-drop,
.mg-has-drop.mg-open .mg-drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0)
}

.mg-drop a {
  display: flex;
  height: auto;
  padding: 10px 14px;
  border-radius: 10px;
  text-transform: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--negro)
}

.mg-drop a:hover {
  background: var(--crema-2);
  color: var(--fucsia)
}

.mg-drop a::after {
  display: none
}

/* ==========================================================================
   HERO SLIDER (full-width, texto sobre la imagen)
   ========================================================================== */
#home-slick {
  margin: 0
}

#home-slick .banner.banner-1 {
  margin: 0;
  position: relative
}

#home-slick .banner-img-fit {
  width: 100%;
  aspect-ratio: 16/6;
  height: auto;
  min-height: 400px;
  max-height: 780px;
  object-fit: cover;
  object-position: center;
  display: block
}

/* gradiente para legibilidad del texto */
#home-slick .banner.banner-1::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* background: linear-gradient(90deg, rgba(29, 29, 27, .55) 0%, rgba(29, 29, 27, .25) 38%, rgba(29, 29, 27, 0) 70%) */
}

#home-slick .banner-caption {
  position: absolute;
  z-index: 2;
  left: max(24px, calc((100% - 1240px)/2 + 24px));
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  max-width: 560px;
  right: auto
}

/* matar las cajas viejas */
#home-slick .banner h1 {
  background: none !important;
  padding: 0 !important;
  transform: none !important;
  color: #fff;
  font-family: var(--mg-serif);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  text-transform: none;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .35);
  margin: 0 0 14px
}

#home-slick .banner h3 {
  background: none !important;
  padding: 0 !important;
  color: #fff;
  font-weight: 400;
  font-size: clamp(16px, 2vw, 21px);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .4);
  margin: 0 0 26px;
  max-width: 480px
}

#home-slick .banner-caption .primary-btn {
  background: #fff;
  color: var(--fucsia);
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0
}

#home-slick .banner-caption .primary-btn:hover {
  background: var(--fucsia);
  color: #fff
}

/* flechas slick sobre el hero */
#home-slick .slick-prev,
#home-slick .slick-next {
  z-index: 3;
  width: 44px;
  height: 44px
}

#home-slick .slick-prev {
  left: 18px
}

#home-slick .slick-next {
  right: 18px
}

@media(max-width:768px) {

  /* hero mobile: recorte vertical 4:5 con texto abajo */
  #home-slick .banner-img-fit {
    aspect-ratio: 4/5;
    min-height: 0;
    max-height: 560px;
    object-position: center
  }

  #home-slick .banner-caption {
    left: 20px;
    right: 20px;
    top: auto;
    bottom: 26px;
    transform: none;
    text-align: center;
    max-width: none
  }

  #home-slick .banner h1 {
    font-size: clamp(28px, 8vw, 40px)
  }

  #home-slick .banner h3 {
    margin-left: auto;
    margin-right: auto
  }
}

/* ==========================================================================
   FRANJA DE BENEFICIOS
   ========================================================================== */
.mg-benefits {
  background: var(--crema);
  padding: 0;
  overflow: hidden
}

.mg-benefits .mg-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px
}

.mg-benefit {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  flex: 1
}

/* en desktop ocultamos las copias del marquee */
.mg-benefit.mg-dup {
  display: none
}

.mg-benefit .ic {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--fucsia);
  flex: 0 0 auto
}

.mg-benefit .ic svg {
  width: 24px;
  height: 24px
}

.mg-benefit b {
  display: block;
  font-size: 14px;
  color: var(--negro)
}

.mg-benefit span {
  font-size: 12.5px;
  color: var(--gris)
}


/* ==========================================================================
   SECCIONES GENÉRICAS
   ========================================================================== */
.mg-section {
  padding: 60px 0
}

.mg-section .mg-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px
}

.mg-section.cream {
  background: var(--crema)
}

.mg-section.soft {
  background: var(--crema-2)
}

.mg-head {
  text-align: center;
  margin-bottom: 38px
}

.mg-head .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fucsia);
  font-weight: 700;
  margin-bottom: 8px
}

.mg-head h2 {
  font-family: var(--mg-serif);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 38px);
  margin: 0;
  color: var(--negro)
}

.mg-head h2 em {
  font-style: italic;
  color: var(--fucsia)
}

.mg-head p {
  color: var(--gris);
  margin: 10px auto 0;
  max-width: 560px;
  font-size: 16px
}

/* restyle del section-title viejo (Diseños destacados) */
.section .section-title .title {
  font-family: var(--mg-serif);
  font-weight: 600
}

.section .section-title:after,
.section .section-title .title:after {
  background: var(--rosa)
}

/* separador decorativo con isotipo */
.mg-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 640px;
  margin: 8px auto 0;
  padding: 0 24px
}

.mg-divider::before,
.mg-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e3dccd
}

.mg-divider::before {
  background: linear-gradient(90deg, transparent, #e3dccd)
}

.mg-divider::after {
  background: linear-gradient(90deg, #e3dccd, transparent)
}

.mg-divider img {
  width: 30px;
  height: 30px;
  opacity: .95;
  flex: 0 0 auto
}

/* ==========================================================================
   COMPRA POR OCASIÓN (banners existentes, restyle)
   ========================================================================== */
.container-banner .banner.categories-img {
  border-radius: 18px;
  overflow: hidden;
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .35);
  transition: transform .25s, box-shadow .25s
}

.container-banner .banner.categories-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .4)
}

.categories-text-strong {
  display: block;
  font-family: var(--mg-serif);
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15
}

.categories-text-span {
  display: block;
  color: #fff;
  font-size: 15px;
  opacity: .95;
  margin-top: 2px
}

.categories-button.tertiary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  background: #fff;
  color: var(--negro);
  font-family: 'Hind', system-ui, sans-serif;
  font-weight: 700;
  min-width: 158px;
  height: 42px;
  padding: 0 26px;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1.4px;
  line-height: 1;
  text-align: center;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .45);
  transition: background .15s, color .15s, transform .05s
}

.categories-button.tertiary-btn:hover {
  background: var(--fucsia);
  color: #fff;
  opacity: 1
}

.categories-button.tertiary-btn:active {
  transform: translateY(1px)
}

/* ==========================================================================
   TARJETAS DE CONTENIDO (pre / post venta)
   ========================================================================== */
.mg-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px
}

.mg-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px -20px rgba(0, 0, 0, .3);
  transition: transform .25s, box-shadow .25s;
  display: block;
  color: inherit
}

.mg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, .35);
  color: inherit
}

.mg-card .mg-img {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden
}

.mg-card .mg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.mg-card .mg-img.ph {
  background: linear-gradient(155deg, var(--rosa), var(--crema));
  display: grid;
  place-items: center
}

.mg-card .mg-img.ph img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  opacity: .9
}

.mg-card .mg-body {
  padding: 18px
}

.mg-card .mg-body .cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fucsia);
  font-weight: 700
}

.mg-card .mg-body h3 {
  font-family: var(--mg-serif);
  font-weight: 600;
  margin: 6px 0 8px;
  font-size: 18px;
  color: var(--negro)
}

.mg-card .mg-body p {
  color: var(--gris);
  font-size: 14px;
  margin: 0 0 10px;
  line-height: 1.5
}

.mg-card .mg-body .link {
  color: var(--fucsia);
  font-weight: 700;
  font-size: 14px
}

@media(max-width:900px) {
  .mg-cards {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:520px) {
  .mg-cards {
    grid-template-columns: 1fr
  }
}

/* tips post-venta */
.mg-tips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px
}

.mg-tip {
  text-align: center;
  padding: 8px
}

.mg-tip .num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--mg-serif);
  font-size: 22px;
  font-weight: 600;
  margin: 0 auto 14px;
  border: 2px solid rgba(255, 255, 255, .5)
}

.mg-tip h3 {
  color: #fff;
  font-size: 17px;
  margin: 0 0 6px;
  font-weight: 600
}

.mg-tip p {
  color: #eef3e9;
  font-size: 14px;
  margin: 0;
  line-height: 1.5
}

@media(max-width:900px) {
  .mg-tips {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px
  }
}

/* ==========================================================================
   PERSONALIZACIÓN (estilo Colvin: envoltura + tarjeta)
   ========================================================================== */
.mg-perso {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 8px
}

.mg-perso .step {
  background: #fff;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 12px 30px -22px rgba(0, 0, 0, .3);
  text-align: center
}

.mg-perso .step .badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fucsia);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  margin: 0 auto 14px
}

.mg-perso .step h3 {
  font-family: var(--mg-serif);
  font-weight: 600;
  font-size: 19px;
  margin: 0 0 6px
}

.mg-perso .step p {
  color: var(--gris);
  font-size: 14px;
  margin: 0;
  line-height: 1.5
}

@media(max-width:768px) {
  .mg-perso {
    grid-template-columns: 1fr
  }
}

/* ==========================================================================
   FOOTER rediseñado (contraste alto)
   ========================================================================== */
#footer.page-footer.section-grey {
  background: var(--negro) !important;
  color: #e8e3df;
  padding-top: 54px
}

#footer .footer-logo .logo>img {
  width: 64px;
  height: 64px
}

#footer .footer-header {
  color: #fff;
  font-family: var(--mg-serif);
  font-weight: 600;
  font-size: 17px;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 16px
}

#footer .footer .list-links li>a {
  color: #bdb6b0;
  font-size: 14px;
  transition: color .15s
}

#footer .footer .list-links li>a:hover {
  color: var(--rosa)
}

#footer .footer-social {
  margin-top: 2rem;
}

#footer .footer-social>li>a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: inline-grid;
  place-items: center;
  color: #fff;
  transition: background .2s
}

#footer .footer-social>li>a:hover {
  background: var(--fucsia)
}

#footer hr {
  border-color: rgba(255, 255, 255, .12)
}

#footer .footer-copyright {
  color: #8f8881;
  text-transform: none
}

#footer .footer-copyright a {
  color: var(--rosa)
}

.mg-foot-tagline {
  color: #bdb6b0;
  font-size: 13.5px;
  text-align: center;
  margin: 15px 0 0;
  line-height: 1.5
}

.mg-pay {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap
}

.mg-pay span {
  background: rgba(255, 255, 255, .08);
  color: #cfc9c3;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  letter-spacing: .5px
}

/* ====== HEADER responsive ====== */
@media(max-width:900px) {

  /* header mobile: una sola fila adaptable -> logo + buscador (crece) + iconos */
  .mg-mainbar {
    flex-wrap: nowrap;
    height: auto;
    padding: 12px 16px;
    gap: 12px
  }

  .mg-header.mg-shrink .mg-mainbar {
    height: auto
  }

  .mg-brand-search {
    flex: 1 1 auto;
    min-width: 0;
    gap: 12px
  }

  .mg-brand {
    flex: 0 0 auto
  }

  .mg-brand img {
    width: 40px;
    height: 40px
  }

  .mg-header.mg-shrink .mg-brand img {
    width: 36px;
    height: 36px
  }

  .mg-actions {
    flex: 0 0 auto;
    margin-left: 0
  }

  .mg-act .mg-lbl {
    display: none
  }

  .mg-act {
    padding: 8px
  }

  .mg-search {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none
  }

  .mg-search input {
    height: 42px
  }

  /* nav scrollable sin barra fea */
  .mg-catnav .mg-inner {
    overflow-x: auto;
    gap: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 12px;
    overflow-y: hidden;
  }

  .mg-catnav .mg-inner::-webkit-scrollbar {
    display: none
  }

  .mg-catnav .mg-spacer,
  .mg-catnav .mg-ship {
    display: none
  }

  .mg-catnav a {
    padding: 0 12px;
    font-size: 12.5px
  }

  .mg-drop a {
    font-size: 18px;
    padding: 0.5rem;
  }

  .mg-announce .mg-track-group>span {
    font-size: 12.5px;
    padding: 0 18px
  }
}

/* ==========================================================================
   CHECKOUT + CARRITO + CUENTA (rediseño compra)
   ========================================================================== */

/* ---- Header simplificado de checkout ---- */
.mg-header--checkout .mg-mainbar {
  justify-content: center;
  height: 72px
}

.mg-header--checkout .mg-brand img {
  width: 48px;
  height: 48px
}

/* ---- Botones: acción principal SIEMPRE fucsia (nunca negro) ---- */
.primary-btn,
.checkout-container .primary-btn,
.cart-buttons .order-submit,
.payment-method-btn {
  background-color: var(--fucsia) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  text-transform: none !important;
  font-weight: 700;
  transition: background-color .15s, transform .05s;
}

.primary-btn:hover,
.checkout-container .primary-btn:hover,
.cart-buttons .order-submit:hover,
.payment-method-btn:hover {
  background-color: var(--fucsia-d) !important;
  color: #fff !important;
}

.primary-btn:active {
  transform: translateY(1px)
}

/* botón secundario fantasma (continuar comprando) */
.continue-shopping {
  color: var(--gris);
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 11px 16px;
  display: block;
  text-align: center;
  border: 1.5px solid #e7e0e3;
  margin-top: 10px
}

.continue-shopping:hover {
  color: var(--fucsia);
  border-color: var(--fucsia)
}

/* ---- Carrito lateral ---- */
.cart-sidebar {
  box-shadow: -10px 0 40px -12px rgba(29, 29, 27, .25);
  font-family: 'Hind', system-ui, sans-serif
}

.cart-sidebar-header {
  background: #fff;
  border-bottom: 1px solid #f1eef0;
  padding: 18px 22px
}

.cart-sidebar-header h3 {
  font-family: var(--mg-serif);
  font-weight: 600;
  color: var(--negro);
  font-size: 20px
}

.close-cart {
  color: var(--gris)
}

.close-cart:hover {
  color: var(--fucsia)
}

.cart-item {
  border: 1px solid #f1eef0;
  border-radius: 14px;
  box-shadow: none
}

.cart-item-image img {
  border-radius: 10px
}

.cart-item-title {
  font-weight: 700;
  color: var(--negro)
}

.cart-item-price {
  color: var(--fucsia);
  font-weight: 700
}

.quantity-controls {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid #e7e0e3;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px
}

.quantity-controls .quantity-btn {
  background: #faf7f3;
  border: 0;
  width: 30px;
  height: 30px;
  color: var(--negro);
  cursor: pointer
}

.quantity-controls .quantity-btn:hover {
  background: var(--crema);
  color: var(--fucsia)
}

.quantity-controls .quantity-input {
  width: 40px;
  height: 30px;
  border: 0;
  text-align: center;
  outline: none;
  -moz-appearance: textfield
}

.quantity-controls .quantity-input::-webkit-outer-spin-button,
.quantity-controls .quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0
}

.remove-item {
  color: #c3b9bd
}

.remove-item:hover {
  color: var(--fucsia)
}

/* línea de descuento: chip verde legible */
.cart-discount {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #eef6ea;
  border: 1px solid #d6e8cd;
  color: var(--verde-d) !important;
  border-radius: 12px;
  padding: 10px 14px;
  margin: 14px 0 0;
  font-weight: 600;
  font-size: 14px
}

.cart-discount[style*="display:none"],
.cart-discount[style*="display: none"] {
  display: none !important
}

.cart-discount .fa-tag {
  color: var(--verde)
}

.cart-discount-amount {
  font-weight: 700;
  white-space: nowrap
}

.cart-delivery-cost,
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 2px
}

.cart-delivery-cost {
  color: var(--gris);
  border-top: 1px solid #f1eef0;
  margin-top: 12px
}

.cart-total {
  border-top: 1px solid #f1eef0;
  font-size: 18px;
  font-weight: 800
}

.cart-total .cart-total-amount {
  color: var(--fucsia)
}

.cart-buttons {
  padding-top: 8px
}

/* resumen del pedido (columna en checkout) */
.cart-summary {
  padding-left: 24px
}

.cart-summary .cart-summary-header h3 {
  font-family: var(--mg-serif);
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 14px
}

.cart-summary .cart-summary-content {
  background: #fff;
  border: 1px solid #f1eef0;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 30px -22px rgba(0, 0, 0, .3)
}

/* ---- Stepper ---- */
.checkout-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 34px 20px
}

.checkout-stepper {
  margin-bottom: 34px
}

.stepper-number {
  box-shadow: 0 0 0 4px #fff
}

.stepper-item.active .stepper-number {
  background: var(--fucsia)
}

.stepper-item.active .stepper-label {
  color: var(--fucsia);
  font-weight: 700
}

.stepper-item.completed .stepper-number {
  background: var(--rosa);
  color: #fff
}

.stepper-item.completed .stepper-label {
  color: var(--negro)
}

.stepper-item.completed .stepper-label a {
  color: var(--negro)
}

.stepper-item.completed .stepper-line {
  background: var(--rosa)
}

.stepper-label a:hover {
  color: var(--fucsia)
}

/* ---- Cuenta: Mis compras ---- */
.mg-account {
  max-width: 1000px;
  margin: 0 auto;
  padding: 46px 20px
}

.mg-account-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  gap: 16px;
  flex-wrap: wrap
}

.mg-account-head h1 {
  font-family: var(--mg-serif);
  font-weight: 600;
  color: var(--negro);
  font-size: 34px;
  margin: 0
}

.mg-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #e7e0e3;
  color: var(--gris);
  background: #fff;
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none
}

.mg-logout:hover {
  border-color: var(--fucsia);
  color: var(--fucsia)
}

.order-card {
  border: 1px solid #f1eef0 !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 30px -22px rgba(0, 0, 0, .25) !important;
  filter: none !important;
  margin: 0 0 20px !important;
  overflow: hidden;
  background: #fff
}

.order-card .order-header {
  border-bottom: 1px solid #f1eef0;
  padding: 16px 22px
}

.order-card .order-header .order-title {
  font-family: var(--mg-serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--negro)
}

.order-card .order-content {
  padding: 20px 22px
}

.order-card .order-description {
  color: #4a4a4a;
  font-size: 14px;
  margin: 0 0 6px
}

.order-card img {
  border-radius: 10px
}

.order-card hr {
  border-color: #f1eef0
}

/* chips de estado */
.order-state.label {
  display: inline-block;
  padding: 5px 12px !important;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff
}

.order-state.label-warning {
  background: #e8a13a
}

.order-state.label-info {
  background: #3a8fe8
}

.order-state.label-success {
  background: var(--verde)
}

.order-state.label-danger {
  background: #d9534f
}

/* botones de la tarjeta de orden */
.order-card .btn-info {
  background: #fff !important;
  border: 1.5px solid #e7e0e3 !important;
  color: var(--negro) !important;
  border-radius: 999px !important;
  font-weight: 600;
  padding: 9px 18px
}

.order-card .btn-info:hover {
  border-color: var(--fucsia) !important;
  color: var(--fucsia) !important
}

.order-card .btn-success {
  background: var(--verde) !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 700;
  color: #fff !important
}

.mg-order-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center
}

/* ---- Detalle de orden ---- */
.mg-orderdetail {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 20px
}

.mg-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gris);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 14px
}

.mg-back:hover {
  color: var(--fucsia)
}

.mg-od-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px
}

.mg-od-head h1 {
  font-family: var(--mg-serif);
  font-weight: 600;
  font-size: 30px;
  margin: 0;
  color: var(--negro)
}

.mg-od-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
  align-items: start
}

@media(max-width:820px) {
  .mg-od-grid {
    grid-template-columns: 1fr
  }
}

.mg-panel {
  background: #fff;
  border: 1px solid #f1eef0;
  border-radius: 16px;
  box-shadow: 0 12px 30px -24px rgba(0, 0, 0, .25);
  padding: 20px 22px;
  margin-bottom: 22px
}

.mg-panel h2 {
  font-family: var(--mg-serif);
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 14px;
  color: var(--negro)
}

.mg-od-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f4f1f2
}

.mg-od-item:last-child {
  border-bottom: 0
}

.mg-od-item img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto
}

.mg-od-item .nm {
  font-weight: 700;
  color: var(--negro)
}

.mg-od-item .cmp {
  color: var(--gris);
  font-size: 13px;
  margin-top: 2px
}

.mg-od-item .pr {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
  font-weight: 700
}

.mg-od-item .qty {
  color: var(--gris);
  font-size: 13px;
  font-weight: 500
}

.mg-sum {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: #4a4a4a
}

.mg-sum.disc {
  color: var(--verde-d);
  font-weight: 600
}

.mg-sum.total {
  border-top: 1px solid #f1eef0;
  margin-top: 6px;
  padding-top: 14px;
  font-size: 19px;
  font-weight: 800;
  color: var(--negro)
}

.mg-sum.total b {
  color: var(--fucsia)
}

.mg-kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 14px;
  border-bottom: 1px solid #f7f4f5
}

.mg-kv:last-child {
  border-bottom: 0
}

.mg-kv .k {
  color: var(--gris)
}

.mg-kv .v {
  color: var(--negro);
  font-weight: 600;
  text-align: right
}

.mg-dedi {
  background: var(--crema-2);
  border-radius: 12px;
  padding: 14px;
  font-style: italic;
  color: #4a4a4a
}

/* ---- Ajustes checkout-layout (confirmación full-width y centrada) ---- */
.checkout-layout .container {
  max-width: 1100px !important;
  margin: 0 auto;
  width: 100%
}

.checkout-layout #header {
  display: none !important
}

/* ==========================================================================
   AJUSTES varios (carrusel complementos, beneficios mobile, tarjetas producto)
   ========================================================================== */

/* ---- Carrusel de complementos: fade SOLO hacia donde se puede scrollear ---- */
.complements-carousel-wrapper {
  -webkit-mask-image: none;
  mask-image: none
}

.complements-carousel.can-scroll-right:not(.can-scroll-left) .complements-carousel-wrapper {
  -webkit-mask-image: linear-gradient(to right, #000 82%, transparent 100%);
  mask-image: linear-gradient(to right, #000 82%, transparent 100%)
}

.complements-carousel.can-scroll-left:not(.can-scroll-right) .complements-carousel-wrapper {
  -webkit-mask-image: linear-gradient(to left, #000 82%, transparent 100%);
  mask-image: linear-gradient(to left, #000 82%, transparent 100%)
}

.complements-carousel.can-scroll-left.can-scroll-right .complements-carousel-wrapper {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%)
}

/* ---- Tarjetas de producto ---- */
.product.product-single {
  position: relative;
  background: #fff;
  border: 1px solid #f1eef0;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease
}

.mg-product-link {
  display: block;
  color: inherit;
  text-decoration: none
}

.mg-product-link:hover {
  color: inherit;
  text-decoration: none
}

.product.product-single .product-thumb {
  position: relative;
  overflow: hidden;
  background: var(--crema-2)
}

.product.product-single .product-thumb>img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  border: 0;
  border-radius: 0;
  transition: transform .45s ease
}

/* quitar overlay blanco y botón "Ver producto" */
.product.product-single .product-thumb:after {
  display: none !important
}

.product.product-single .quick-view {
  display: none !important
}

/* hover: la tarjeta se "levanta" con sombra + leve zoom de la imagen */
.product.product-single:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 24px -22px rgba(29, 29, 27, .5);
  border-color: transparent
}

.product.product-single:hover .product-thumb>img {
  transform: scale(1.07)
}

/* cuerpo con paddings generosos */
.product.product-single .product-body {
  padding: 16px 18px 20px;
  text-align: left;
  background-color: var(--crema-2)
}

/* rótulo de categoría (estilo preview) */
.product.product-single .product-cat {
  display: block;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--fucsia);
  margin: 0 0 7px
}

.product.product-single .product-name {
  margin: 0 0 10px;
  font-family: var(--mg-serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  color: var(--negro);
  transition: color .15s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.product.product-single .product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--fucsia);
  line-height: 1
}

.product.product-single .product-old-price {
  font-size: 13px;
  font-weight: 500;
  color: #b4abae;
  text-decoration: line-through
}

/* CTA siempre visible: aporta color y acción */
.product.product-single .product-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--negro);
  transition: gap .15s, color .15s
}

.product.product-single .product-cta i {
  color: var(--fucsia);
  transition: transform .15s
}

.product.product-single:hover .product-cta {
  color: var(--fucsia)
}

.product.product-single:hover .product-cta i {
  transform: translateX(4px)
}

/* etiqueta de descuento: pill fucsia de marca */
.product.product-single .product-label {
  top: 12px;
  right: 12px
}

.product.product-single .product-label>span.sale {
  background: var(--fucsia) !important;
  color: #fff !important;
  border-radius: 999px !important;
  opacity: 1 !important;
  padding: 5px 12px;
  font-weight: 700;
  font-size: 12.5px;
  box-shadow: 0 6px 16px -6px rgba(230, 33, 104, .7)
}

/* ---- Beneficios en mobile: marquee automático (mismo look que desktop) ---- */
@keyframes mg-marquee {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

@media(max-width:768px) {
  .mg-benefits .mg-inner {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content;
    max-width: none;
    gap: 0;
    padding: 18px 0;
    animation: mg-marquee 16s linear infinite;
    will-change: transform
  }

  .mg-benefits:hover .mg-inner {
    animation-play-state: paused
  }

  .mg-benefit {
    flex: 0 0 auto;
    margin-right: 40px;
    justify-content: flex-start
  }

  .mg-benefit.mg-dup {
    display: flex
  }
}

@media(prefers-reduced-motion:reduce) {
  .mg-benefits .mg-inner {
    animation: none
  }
}

/* ============ Acciones de pedido (paleta) ============ */
/* Principal: fucsia. Secundaria: blanco con borde fucsia. */
.btn-fucsia-action {
  background: var(--fucsia) !important;
  color: #fff !important;
  border: 1.5px solid var(--fucsia) !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  padding: 10px 20px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background-color .15s, transform .05s;
}

.btn-fucsia-action:hover {
  background: var(--fucsia-d) !important;
  border-color: var(--fucsia-d) !important;
  color: #fff !important
}

.btn-fucsia-action:active {
  transform: translateY(1px)
}

.btn-fucsia-action:disabled {
  opacity: .65;
  cursor: default
}

.btn-white-action {
  background: #fff !important;
  color: var(--fucsia) !important;
  border: 1.5px solid var(--fucsia) !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  padding: 10px 20px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background-color .15s, color .15s;
}

.btn-white-action:hover {
  background: var(--fucsia) !important;
  color: #fff !important
}

/* Acciones al final del checkout (pantalla de confirmación) */
.checkout-final-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 26px 0 6px;
}

/* ============ Mensajes flash ============ */
.mg-flash {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 12px;
  padding: 13px 16px;
  margin: 0 0 18px;
  font-weight: 600;
  font-size: 14.5px;
}

.mg-flash i {
  font-size: 17px
}

.mg-flash--ok {
  background: #e8f6ec;
  color: #1e8e3e;
  border: 1px solid #bfe6c9
}

.mg-flash--err {
  background: #fdeaea;
  color: #c0392b;
  border: 1px solid #f3c2bd
}

/* ==========================================================================
   GUÍAS (contenido por ocasión) — v2: fotos + fondos blanco/crema/verde
   ========================================================================== */
.mg-illu {
  display: block;
  width: 100%;
  height: auto
}

/* ---- HUB ---- */
.mg-guides-hub {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px
}

.mg-guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 36px
}

@media(max-width:760px) {
  .mg-guides-grid {
    grid-template-columns: 1fr
  }
}

.mg-guide-card {
  display: block;
  background: #fff;
  border: 1px solid #f1eef0;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .25s, box-shadow .25s
}

.mg-guide-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 46px -24px rgba(29, 29, 27, .45);
  color: inherit
}

.mg-guide-card .ph {
  aspect-ratio: 16/9;
  overflow: hidden
}

.mg-guide-card .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s
}

.mg-guide-card:hover .ph img {
  transform: scale(1.05)
}

.mg-guide-card .bd {
  padding: 20px 24px 24px
}

.mg-guide-card .bd .ey {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--fucsia)
}

.mg-guide-card .bd h3 {
  font-family: var(--mg-serif);
  font-weight: 600;
  font-size: 22px;
  margin: 6px 0 8px;
  color: var(--negro)
}

.mg-guide-card .bd p {
  color: var(--gris);
  font-size: 14.5px;
  margin: 0 0 12px;
  line-height: 1.5
}

.mg-guide-card .bd .lnk {
  font-weight: 700;
  color: var(--fucsia);
  font-size: 14px
}

/* ---- DETALLE ---- */
/* bandas de color: blanco / crema / verde (en ese orden, se repiten) */
.mg-gsec {
  padding: 60px 0
}

.mg-gsec .in {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px
}

.mg-gsec.bg-white {
  background: #fff
}

.mg-gsec.bg-cream {
  background: var(--crema)
}

.mg-gsec.bg-green {
  background: var(--verde)
}

.mg-gsec h2 {
  font-family: var(--mg-serif);
  font-weight: 600;
  font-size: 28px;
  margin: 0 0 6px;
  color: var(--negro)
}

.mg-gsec .sub {
  color: var(--gris);
  margin: 0 0 28px
}

.mg-gsec.bg-green h2 {
  color: #fff
}

.mg-gsec.bg-green .sub {
  color: #eef3e9
}

/* hero */
.mg-ghero {
  padding-top: 30px
}

.mg-ghero .back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gris);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 22px
}

.mg-ghero .back:hover {
  color: var(--fucsia)
}

.mg-ghero .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center
}

@media(max-width:820px) {
  .mg-ghero .grid {
    grid-template-columns: 1fr;
    gap: 26px
  }
}

.mg-ghero .ey {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--fucsia)
}

.mg-ghero h1 {
  font-family: var(--mg-serif);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 46px);
  margin: 10px 0 16px;
  color: var(--negro);
  line-height: 1.08
}

.mg-ghero p {
  color: #4a4a4a;
  font-size: 18px;
  line-height: 1.6;
  margin: 0
}

.mg-ghero .photo {
  aspect-ratio: 4/3;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 50px -26px rgba(0, 0, 0, .4)
}

.mg-ghero .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

/* flores + significado */
.mg-flowers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px
}

@media(max-width:620px) {
  .mg-flowers {
    grid-template-columns: 1fr
  }
}

.mg-flower {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #f1eef0;
  border-radius: 14px;
  padding: 18px 20px
}

.mg-flower .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--fucsia);
  margin-top: 7px;
  flex: 0 0 auto
}

.mg-flower b {
  display: block;
  color: var(--negro);
  font-size: 16px;
  margin-bottom: 3px;
  font-family: var(--mg-serif);
  font-weight: 600
}

.mg-flower span {
  color: var(--gris);
  font-size: 14.5px;
  line-height: 1.5
}

/* mensajes (sobre verde) */
.mg-msgs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

@media(max-width:760px) {
  .mg-msgs {
    grid-template-columns: 1fr
  }
}

.mg-msg {
  background: #fff;
  border-radius: 16px;
  padding: 24px
}

.mg-msg .q {
  font-family: var(--mg-serif);
  font-size: 42px;
  line-height: .6;
  color: var(--rosa)
}

.mg-msg p {
  font-family: var(--mg-serif);
  font-style: italic;
  color: var(--negro);
  font-size: 16px;
  line-height: 1.5;
  margin: 10px 0 0
}

/* productos reales */
.mg-gproducts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px
}

@media(max-width:900px) {
  .mg-gproducts {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:520px) {
  .mg-gproducts {
    grid-template-columns: 1fr
  }
}

/* consejo */
.mg-tip-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #efe7d4;
  border-left: 4px solid var(--fucsia);
  border-radius: 0 14px 14px 0;
  padding: 22px 24px
}

.mg-tip-box .ic {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fde4ec;
  color: var(--fucsia);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 17px
}

.mg-tip-box h3 {
  font-family: var(--mg-serif);
  font-weight: 600;
  font-size: 19px;
  margin: 0 0 4px
}

.mg-tip-box p {
  color: #4a4a4a;
  font-size: 15px;
  line-height: 1.55;
  margin: 0
}

/* CTA */
.mg-gcta {
  text-align: center
}

.mg-gcta .btn-shop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fucsia);
  color: #fff;
  font-weight: 700;
  padding: 15px 34px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  transition: background .15s
}

.mg-gcta .btn-shop:hover {
  background: var(--fucsia-d);
  color: #fff
}

/* otras guías (sobre verde) */
.mg-guide-others {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

@media(max-width:760px) {
  .mg-guide-others {
    grid-template-columns: 1fr
  }
}

.mg-mini-guide {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s
}

.mg-mini-guide:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -20px rgba(0, 0, 0, .4);
  color: inherit
}

.mg-mini-guide .mini-ph {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 auto
}

.mg-mini-guide .mini-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.mg-mini-guide b {
  display: block;
  font-size: 15px;
  color: var(--negro);
  font-family: var(--mg-serif);
  font-weight: 600
}

.mg-mini-guide span {
  font-size: 12.5px;
  color: var(--fucsia);
  font-weight: 600
}

/* ==========================================================================
   LISTADO DE PRODUCTOS — grid parejo (evita el stagger del grid flotante)
   ========================================================================== */
.mg-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

.mg-products-grid .product.product-single {
  margin-bottom: 0;
  height: 100%
}

@media(max-width:992px) {
  .mg-products-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media(max-width:768px) {
  .mg-products-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:480px) {
  .mg-products-grid {
    grid-template-columns: 1fr
  }
}

/* ---- Cards en grilla: imagen de fondo que llena toda la card; el recuadro
       crema del texto va ENCIMA, pintándose siempre desde abajo. Así el
       encuadre de la imagen no deja huecos. ---- */
.mg-products-grid .product.product-single,
.mg-gproducts .product.product-single {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 380px;
}

.mg-products-grid .mg-product-link,
.mg-gproducts .mg-product-link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

/* la imagen ocupa TODA la card, detrás del texto */
.mg-products-grid .product.product-single .product-thumb,
.mg-gproducts .product.product-single .product-thumb {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mg-products-grid .product.product-single .product-thumb>img,
.mg-gproducts .product.product-single .product-thumb>img {
  height: 71%;
  object-fit: cover;
  aspect-ratio: auto;
}

/* la etiqueta de descuento por encima de la imagen */
.mg-products-grid .product.product-single .product-label,
.mg-gproducts .product.product-single .product-label {
  z-index: 2
}

/* el recuadro de texto: pegado abajo, opaco, sobre la imagen */
.mg-products-grid .product.product-single .product-body,
.mg-gproducts .product.product-single .product-body {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

@media(max-width:480px) {

  .mg-products-grid .product.product-single,
  .mg-gproducts .product.product-single {
    min-height: 420px
  }
}