/* =============================================================
   GRUPO M&G — Estilos del sitio
   ============================================================= */
:root {
  --mg-orange: #FF7A1A;
  --mg-orange-light: #FF9A4D;
  --mg-bg: #0a0a0a;
  --mg-bg-soft: #141414;
  --mg-text-dim: #b8b8b8;
}

* , *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

button, a, .mg-product-card, .mg-simple-card, .mg-select, .mg-fav, .mg-index-card {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 24px; }

body {
  margin: 0;
  background: #ffffff;
  color: #171717;
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 860px) {
  body { padding-bottom: 0; }
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* Contenido centrado con ancho máximo en pantallas anchas de escritorio
   (en mobile no hace nada, ya que el viewport es más angosto que 1440px) */
.mg-header,
.mg-slider,
.mg-features,
.mg-about-top,
.mg-about-grid,
.mg-index-top,
.mg-index-grid,
.mg-cat-top,
.mg-products,
.mg-process-header,
.mg-process-columns {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- HERO WRAP ---------- */
.mg-hero-wrap {
  background: #000000;
  color: #fff;
  padding: 28px clamp(20px, 5vw, 64px) 0;
  overflow: hidden;
  position: relative;
}

/* ---------- HEADER ---------- */
.mg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
}
.mg-logo { display: flex; align-items: center; gap: 12px; }
.mg-logo-mark { width: auto; height: 44px; flex-shrink: 0; object-fit: contain; }
.mg-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.mg-logo-title { font-weight: 800; font-size: 19px; letter-spacing: .3px; }
.mg-logo-sub { font-size: 9px; letter-spacing: 1.5px; color: var(--mg-orange); font-weight: 600; }

.mg-header-actions { display: flex; align-items: center; gap: 14px; }
.mg-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mg-orange); color: #fff;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 14px;
  text-decoration: none; white-space: nowrap; border: none; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.mg-cta-btn:hover { background: var(--mg-orange-light); transform: translateY(-1px); }

.mg-menu-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 6px; background: none; border: none;
}
.mg-menu-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }

/* ---------- SLIDER ---------- */
.mg-slider { position: relative; padding-bottom: 40px; }
.mg-slides-track { position: relative; min-height: 460px; }

.mg-slide {
  display: none; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px;
  animation: mgFade .5s ease;
}
.mg-slide.is-active { display: grid; }
@keyframes mgFade { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: translateY(0);} }

.mg-eyebrow { display: block; width: 60px; height: 3px; background: var(--mg-orange); border-radius: 3px; margin-bottom: 18px; }
.mg-slide-copy h1 {
  font-size: clamp(38px, 4.4vw, 54px); font-weight: 800; line-height: 1.05;
  margin: 0 0 18px; letter-spacing: -.5px; text-transform: uppercase;
}
.mg-slide-copy .mg-accent { color: var(--mg-orange); }
.mg-slide-copy p { color: var(--mg-text-dim); font-size: 17px; max-width: 420px; margin: 0 0 30px; line-height: 1.5; }

.mg-cta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--mg-orange); color: #fff;
  padding: 15px 28px; border-radius: 10px; font-weight: 600; font-size: 15px;
  text-decoration: none; transition: background .2s ease, gap .2s ease;
}
.mg-cta-primary:hover { background: var(--mg-orange-light); gap: 14px; }

.mg-slide-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 520px; }
.mg-glow-ring {
  position: absolute; width: 750px; height: 560px; border-radius: 50%;
  border: 2px solid var(--mg-orange); opacity: .55; filter: blur(1px);
  box-shadow: 0 0 60px 6px rgba(255,122,26,.35);
}
.mg-visual-pedestal {
  position: relative; width: 680px; height: 490px; background: #1b1b1b;
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.mg-visual-pedestal img { width: 100%; height: 100%; object-fit: cover; }
.mg-placeholder-icon { width: 140px; height: 140px; }

.mg-arrow {
  position: absolute; top: 44%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.08); color: #fff; font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 5;
  transition: background .2s ease;
}
.mg-arrow:hover { background: rgba(255,255,255,.18); }
.mg-arrow-prev { left: -6px; }
.mg-arrow-next { right: -6px; }

.mg-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.mg-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,.25); cursor: pointer; padding: 0; transition: all .25s ease; }
.mg-dot.is-active { width: 40px; border-radius: 8px; background: var(--mg-orange); }

/* ---------- FEATURES ---------- */
.mg-features {
  background: var(--mg-bg-soft); border-radius: 18px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  padding: 34px 36px; margin-bottom: 40px;
}
.mg-feature { display: flex; align-items: flex-start; gap: 14px; }
.mg-feature svg { width: 34px; height: 34px; flex-shrink: 0; margin-top: 2px; }
.mg-feature h3 { font-size: 14px; font-weight: 700; margin: 0 0 6px; letter-spacing: .3px; }
.mg-feature p { font-size: 13px; color: var(--mg-text-dim); margin: 0; line-height: 1.4; }

/* ---------- CONTACT BAR (oculto en desktop) ---------- */
.mg-contact-bar { display: none; }

/* =============================================================
   MOBILE
   ============================================================= */
@media (max-width: 860px) {
  .mg-hero-wrap { padding: 20px 20px 0; }

  .mg-menu-toggle { display: flex; }
  .mg-cta-btn { padding: 10px 18px; font-size: 13px; }

  .mg-slide { grid-template-columns: 1fr; text-align: left; gap: 20px; }
  .mg-slides-track { min-height: unset; }
  .mg-slide-copy p { max-width: 100%; }
  .mg-slide-copy h1 { font-size: 34px; }
  .mg-slide-visual { order: 2; min-height: 340px; }
  .mg-visual-pedestal { width: 100%; max-width: 520px; height: 320px; }
  .mg-glow-ring { width: 300px; height: 300px; }

  .mg-arrow-prev { left: -4px; }
  .mg-arrow-next { right: -4px; }

  .mg-features { grid-template-columns: 1fr 1fr; padding: 22px 18px; gap: 22px 16px; margin-bottom: 30px; border-radius: 16px; }
  .mg-feature svg { width: 28px; height: 28px; }
  .mg-feature h3 { font-size: 12.5px; }
  .mg-feature p { font-size: 12px; }

  .mg-contact-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--mg-bg-soft); border-radius: 16px 16px 0 0;
    padding: 14px 8px calc(10px + env(safe-area-inset-bottom)); margin: 0;
    text-align: center; z-index: 60;
    box-shadow: 0 -10px 26px -6px rgba(0,0,0,.5);
    transform: translateY(0);
    transition: transform .35s ease;
  }
  .mg-contact-bar.is-hidden { transform: translateY(100%); }
  .mg-contact-bar a { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-size: 11px; font-weight: 600; }
  .mg-contact-bar svg { width: 20px; height: 20px; color: var(--mg-orange); }
  .mg-contact-btn-plain {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    background: none; border: none; color: #fff; font-family: inherit;
    text-decoration: none; font-size: 11px; font-weight: 600; cursor: pointer; padding: 0;
  }
  .mg-contact-btn-plain svg { width: 20px; height: 20px; color: var(--mg-orange); }
}

@media (max-width: 420px) {
  .mg-slide-copy h1 { font-size: 28px; }
  .mg-features { grid-template-columns: 1fr 1fr; }
}

/* =============================================================
   QUIÉNES SOMOS
   ============================================================= */
.mg-about {
  background: #000000;
  color: #fff;
  padding: 70px clamp(20px, 5vw, 64px) 90px;
  position: relative;
  overflow: hidden;
}

.mg-about-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 70px;
}

.mg-about-title {
  font-size: clamp(46px, 6vw, 72px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .95;
  margin: 0 0 18px;
  letter-spacing: -1px;
}
.mg-about-title .mg-accent { color: var(--mg-orange); }

.mg-about-copy p {
  color: var(--mg-text-dim);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}
.mg-about-copy p strong { color: var(--mg-orange); font-weight: 700; }

.mg-about-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 300px; }
.mg-dot-grid { position: absolute; top: -10px; right: 6%; width: 90px; height: 90px; opacity: .9; }
.mg-diagonal-line {
  position: absolute; top: -10px; right: 22%; width: 2px; height: 160px;
  background: linear-gradient(180deg, var(--mg-orange), transparent);
  transform: rotate(20deg);
  box-shadow: 0 0 12px 1px rgba(255,122,26,.5);
}

.mg-about-collage { width: 100%; display: flex; justify-content: center; }
.mg-collage-table {
  position: relative;
  background: var(--mg-bg-soft);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  height: 300px;
}
.mg-collage-table img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-collage-mug { width: 90px; height: 82px; }
.mg-collage-book { width: 62px; height: 92px; }
.mg-collage-card { width: 70px; height: 42px; }
.mg-collage-card-2 { margin-left: -30px; }

/* ---------- Grid Presentación / Misión / Visión ---------- */
.mg-about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.mg-about-item { display: flex; gap: 20px; align-items: flex-start; }
.mg-hexagon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  background: var(--mg-orange);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; align-items: center; justify-content: center;
}
.mg-hexagon svg { width: 26px; height: 26px; }
.mg-about-item-text h3 {
  font-size: 16px; font-weight: 700; margin: 0 0 10px; letter-spacing: .3px;
  position: relative; padding-bottom: 8px;
}
.mg-about-item-text h3::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--mg-orange);
}
.mg-about-item-text p { color: var(--mg-text-dim); font-size: 13.5px; line-height: 1.4; margin: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .mg-about { padding: 40px 20px 44px; }
  .mg-about-top { grid-template-columns: 1fr; gap: 22px; margin-bottom: 34px; }
  .mg-about-title { font-size: 40px; margin-bottom: 12px; }
  .mg-dot-grid { top: -4px; right: 0; width: 70px; height: 70px; }
  .mg-diagonal-line { display: none; }
  .mg-collage-table { width: 100%; height: 220px; }
  .mg-collage-mug { width: 66px; height: 60px; }
  .mg-collage-book { width: 46px; height: 68px; }
  .mg-collage-card { width: 50px; height: 30px; }

  .mg-about-grid { grid-template-columns: 1fr; gap: 0; }
  .mg-about-item {
    padding: 16px 0;
    border-top: 1px solid rgba(255,122,26,.35);
    gap: 14px;
  }
  .mg-about-item:first-child { border-top: none; padding-top: 0; }
  .mg-hexagon { width: 46px; height: 46px; }
  .mg-hexagon svg { width: 22px; height: 22px; }
  .mg-about-item-text { border-left: 2px solid var(--mg-orange); padding-left: 14px; }
  .mg-about-item-text h3 { font-size: 14.5px; margin-bottom: 5px; }
  .mg-about-item-text h3::after { display: none; }
  .mg-about-item-text p { font-size: 12.5px; line-height: 1.3; }
}

/* =============================================================
   ÍNDICE
   ============================================================= */
.mg-index {
  background: #000000;
  color: #fff;
  padding: 20px clamp(20px, 5vw, 64px) 90px;
  position: relative;
  overflow: hidden;
}

.mg-index-top {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  align-items: center;
  gap: 30px;
  margin-bottom: 50px;
}
.mg-dot-grid-tr { top: -6px; right: 4%; }
.mg-index-diagonal {
  position: absolute; top: -14px; left: 40%; width: 220px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--mg-orange));
  transform: rotate(-12deg);
  box-shadow: 0 0 10px 1px rgba(255,122,26,.45);
}

.mg-index-title {
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 16px;
  letter-spacing: -1px;
  line-height: .95;
}
.mg-index-copy p { color: var(--mg-text-dim); font-size: 16px; line-height: 1.5; margin: 0; }
.mg-index-copy p strong { color: var(--mg-orange); font-weight: 700; }

.mg-index-visual { display: flex; justify-content: center; }
.mg-collage-table-wide { width: 100%; max-width: 800px; height: 300px; box-shadow: none; }
.mg-collage-bottle { width: 40px; height: 96px; }
.mg-collage-cap { width: 70px; height: 46px; }

/* ---------- Cards ---------- */
.mg-index-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.mg-index-card {
  position: relative;
  border: 1.5px solid var(--mg-orange);
  border-radius: 16px;
  padding: 34px 18px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  background: rgba(255,122,26,.03);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.mg-index-card:hover {
  background: rgba(255,122,26,.12);
  border-color: var(--mg-orange-light);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px -8px rgba(255,122,26,.55), 0 0 0 1px var(--mg-orange-light);
}
.mg-index-card:hover svg { stroke: var(--mg-orange-light); }
.mg-index-card svg {
  width: 56px; height: 56px; margin-bottom: 24px;
  fill: none; stroke: var(--mg-orange); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.mg-index-card span {
  color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: .2px; line-height: 1.35;
  position: relative; padding-top: 12px;
}
.mg-index-card span::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 2px; background: var(--mg-orange);
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .mg-index { padding: 10px 20px 60px; }
  .mg-index-top { grid-template-columns: 1fr; gap: 20px; margin-bottom: 34px; }
  .mg-index-title { font-size: 40px; margin-bottom: 10px; }
  .mg-index-diagonal { display: none; }
  .mg-dot-grid-tr { width: 60px; height: 60px; top: -2px; right: 2%; }
  .mg-collage-table-wide { width: 100%; height: 200px; }
  .mg-collage-mug { width: 66px; height: 60px; }
  .mg-collage-book { width: 46px; height: 68px; }
  .mg-collage-bottle { width: 28px; height: 70px; }
  .mg-collage-cap { width: 52px; height: 34px; }

  .mg-index-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .mg-index-card { padding: 24px 12px 18px; border-radius: 14px; }
  .mg-index-card svg { width: 44px; height: 44px; margin-bottom: 16px; }
  .mg-index-card span { font-size: 12px; padding-top: 10px; }
  .mg-index-card span::before { width: 22px; }
}

/* =============================================================
   TRANSICIÓN NEGRO → BLANCO
   ============================================================= */
.mg-wave-divider {
  line-height: 0;
  margin-top: -1px; /* evita línea de 1px entre secciones por redondeo */
}
.mg-wave-divider svg {
  display: block;
  width: 100%;
  height: 90px;
}

.mg-light-wrap {
  background: #ffffff;
  color: #171717;
  min-height: 200px;
}

@media (max-width: 860px) {
  .mg-wave-divider svg { height: 56px; }
}

/* =============================================================
   SECCIÓN DE CATEGORÍA (Merchandising Corporativo y las siguientes)
   ============================================================= */
.mg-cat { padding: 60px clamp(20px, 5vw, 64px) 30px; }

.mg-cat-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.mg-cat-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--mg-orange); font-weight: 700; font-size: 13px; letter-spacing: 1px;
  margin-bottom: 10px;
}
.mg-cat-eyebrow i { display: block; width: 34px; height: 2px; background: var(--mg-orange); font-style: normal; }

.mg-cat-title {
  font-size: clamp(34px, 4vw, 48px); font-weight: 800; text-transform: uppercase;
  line-height: 1.05; margin: 0 0 16px; letter-spacing: -.5px; color: #141414;
}
.mg-cat-title .mg-accent-dark { color: var(--mg-orange); }

.mg-cat-copy > p { color: #555; font-size: 15.5px; line-height: 1.55; max-width: 420px; margin: 0 0 26px; }

.mg-cat-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.mg-btn-solid, .mg-btn-outline {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 8px; font-weight: 600; font-size: 14px;
  text-decoration: none; transition: all .2s ease; white-space: nowrap;
}
.mg-btn-solid { background: var(--mg-orange); color: #fff; }
.mg-btn-solid:hover { background: var(--mg-orange-light); }
.mg-btn-outline { background: transparent; color: var(--mg-orange); border: 1.5px solid var(--mg-orange); }
.mg-btn-outline:hover { background: rgba(255,122,26,.08); }

.mg-cat-mini-features { display: flex; gap: 26px; padding-top: 22px; border-top: 1px solid #e8e8e8; }
.mg-cat-mini-features div { display: flex; align-items: center; gap: 8px; }
.mg-cat-mini-features svg { width: 26px; height: 26px; flex-shrink: 0; }
.mg-cat-mini-features span { font-size: 11.5px; font-weight: 600; color: #444; line-height: 1.3; }

.mg-cat-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.mg-cat-dots { position: absolute; top: 6%; left: 6%; width: 60px; height: 60px; }
.mg-cat-corner {
  position: absolute; bottom: -30px; right: -40px; width: 220px; height: 220px;
  background: var(--mg-orange);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  opacity: .92; z-index: 0;
}
.mg-cat-collage {
  position: relative; z-index: 1;
  background: #f5f5f5; border: 0px solid #ffffff;
  border-radius: 18px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 800px; height: 300px;
}
.mg-cat-collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-cat-collage svg { fill: none; stroke: #171717; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.mg-item-mug { width: 84px; height: 84px; }
.mg-item-bottle { width: 46px; height: 100px; stroke: var(--mg-orange) !important; }
.mg-item-tote { width: 90px; height: 100px; }
.mg-item-notebook { width: 66px; height: 88px; }
.mg-item-cube { width: 62px; height: 96px; }
.mg-item-anfora { width: 78px; height: 78px; }
.mg-item-letras { width: 90px; height: 76px; stroke: var(--mg-orange) !important; }
.mg-item-ruleta { width: 84px; height: 84px; stroke: var(--mg-orange) !important; }
.mg-item-marco { width: 68px; height: 84px; }
.mg-item-modulo { width: 56px; height: 88px; }
.mg-item-roll { width: 84px; height: 76px; stroke: var(--mg-orange) !important; }
.mg-item-stand { width: 76px; height: 68px; }
.mg-item-banner { width: 46px; height: 90px; }
.mg-item-diploma { width: 82px; height: 74px; stroke: var(--mg-orange) !important; }
.mg-item-medal { width: 70px; height: 78px; }
.mg-item-trofeo { width: 54px; height: 78px; }
.mg-item-polo { width: 60px; height: 88px; }
.mg-item-gorra { width: 82px; height: 62px; stroke: var(--mg-orange) !important; }
.mg-item-casaca { width: 64px; height: 92px; }
.mg-item-canguro { width: 90px; height: 58px; stroke: var(--mg-orange) !important; }
.mg-item-mochila2 { width: 66px; height: 66px; }
.mg-item-necesere { width: 78px; height: 62px; }
.mg-item-volante { width: 78px; height: 70px; }
.mg-item-diptico { width: 70px; height: 78px; stroke: var(--mg-orange) !important; }
.mg-item-folder { width: 82px; height: 64px; }
.mg-item-lanyard { width: 44px; height: 92px; }
.mg-item-dado { width: 66px; height: 66px; stroke: var(--mg-orange) !important; }
.mg-item-caja { width: 84px; height: 68px; }

/* ---------- Productos destacados ---------- */
.mg-products { padding-top: 10px; }
.mg-products-title {
  text-align: center; font-size: 20px; font-weight: 800; letter-spacing: 1px;
  color: #141414; margin: 0 0 34px;
}

.mg-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.mg-products-grid-6 { grid-template-columns: repeat(3, 1fr); }
.mg-product-card {
  position: relative;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 22px 20px 26px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow .25s ease, transform .25s ease;
}
.mg-product-card:hover { box-shadow: 0 18px 34px -14px rgba(0,0,0,.18); transform: translateY(-4px); }
.mg-select {
  flex-shrink: 0; display: flex; align-items: center; gap: 5px;
  padding: 6px 11px; margin-left: auto;
  border-radius: 999px; border: 1.5px solid var(--mg-orange); background: #fff;
  cursor: pointer; transition: all .2s ease;
}
.mg-select svg { width: 13px; height: 13px; fill: none; stroke: var(--mg-orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mg-select span { font-size: 11.5px; font-weight: 700; color: var(--mg-orange); }
.mg-select:hover { background: rgba(255,122,26,.08); }
.mg-select.is-checked { background: var(--mg-orange); border-color: var(--mg-orange); }
.mg-select.is-checked svg { stroke: #fff; }
.mg-select.is-checked span { color: #fff; }

.mg-fav {
  position: absolute; top: 16px; right: 16px; min-width: 32px; height: 32px;
  border-radius: 999px; border: 1px solid #eee; background: #fff; color: var(--mg-orange);
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 0 10px; cursor: pointer; font-size: 12px; font-weight: 700;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.mg-fav svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; transition: fill .2s ease; }
.mg-fav .mg-fav-count { min-width: 8px; text-align: left; }
.mg-fav:hover { border-color: var(--mg-orange); }
.mg-fav.is-liked {
  background: var(--mg-orange); border-color: var(--mg-orange); color: #fff;
  box-shadow: 0 6px 16px -4px rgba(255,122,26,.6);
}
.mg-fav.is-liked svg { fill: #fff; }
.mg-product-thumb {
  background: #f7f7f7; border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  min-height: 130px; margin-bottom: 18px;
}
.mg-product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-product-thumb svg { width: 70%; max-height: 90px; fill: none; stroke: #171717; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.mg-product-card h4 { font-size: 14px; font-weight: 800; color: #141414; margin: 0 0 8px; letter-spacing: .2px; }
.mg-mini-divider { display: block; width: 28px; height: 2px; background: var(--mg-orange); margin-bottom: 10px; }
.mg-product-card p { font-size: 12.5px; color: #666; line-height: 1.5; margin: 0 0 14px; flex-grow: 1; }
.mg-product-actions {
  display: flex; align-items: center; gap: 10px;
  margin-top: auto;
}

.mg-ver-opciones {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 0; font-family: inherit;
  color: var(--mg-orange); font-weight: 700; font-size: 12.5px;
  text-decoration: none; cursor: pointer;
}
.mg-ver-opciones span { transition: transform .2s ease; }
.mg-ver-opciones:hover span { transform: translateX(3px); }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .mg-cat { padding: 40px 14px 20px; }
  .mg-cat-visual { display: none; }
  .mg-cat-top { grid-template-columns: 1fr; margin-bottom: 30px; }
  .mg-cat-title { font-size: 30px; }
  .mg-cat-copy > p { max-width: 100%; font-size: 13px; line-height: 1.35; }
  .mg-cat-mini-features { display: none; }

  .mg-products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mg-product-card { padding: 14px 12px 16px; }
  .mg-product-thumb { min-height: 110px; margin-bottom: 12px; }
  .mg-product-card p { font-size: 9.5px; line-height: 1.35; }
  .mg-product-card h4 { font-size: 12.5px; }
}

/* =============================================================
   MODAL DE COTIZACIÓN
   ============================================================= */
.mg-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(10,10,10,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200;
  padding: 24px;
  overflow-y: auto;
}
.mg-modal-backdrop.is-open { display: flex; }

.mg-modal {
  position: relative;
  background: #fff;
  border-radius: 20px;
  width: 100%; max-width: 460px;
  padding: 28px 26px 24px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.5);
  animation: mgModalIn .25s ease;
}
@keyframes mgModalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.mg-modal-close {
  position: sticky; top: 0;
  margin-left: auto; margin-bottom: -38px;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: var(--mg-orange); color: #fff;
  font-size: 16px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px -4px rgba(255,122,26,.6);
  z-index: 5;
  transition: background .2s ease, transform .15s ease;
}
.mg-modal-close:hover { background: var(--mg-orange-light); transform: scale(1.06); }

.mg-modal-image {
  background: #ffffff; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  padding: 30px; margin-bottom: 18px; min-height: 180px;
}
.mg-modal-image svg { width: 60%; max-height: 150px; fill: none; stroke: #171717; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mg-modal-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

.mg-modal-title { text-align: center; font-size: 19px; font-weight: 800; color: #141414; margin: 0 0 18px; text-transform: uppercase; }

.mg-quote-form { display: flex; flex-direction: column; gap: 14px; }
.mg-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mg-quote-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: #333; }
.mg-quote-form input, .mg-quote-form textarea {
  font-family: inherit; font-size: 13.5px; padding: 10px 12px;
  border: 1px solid #ddd; border-radius: 8px; background: #fafafa;
  color: #171717; resize: vertical;
}
.mg-quote-form input:focus, .mg-quote-form textarea:focus {
  outline: none; border-color: var(--mg-orange); background: #fff;
}
.mg-quote-submit { justify-content: center; margin-top: 4px; border: none; cursor: pointer; }
.mg-quote-submit:disabled { opacity: .6; cursor: default; }
.mg-quote-status { text-align: center; font-size: 13px; margin: 8px 0 0; min-height: 16px; }
.mg-quote-status.is-ok { color: #1a8a4a; font-weight: 600; }
.mg-quote-status.is-error { color: #c0392b; font-weight: 600; }

.mg-quote-float-btn {
  position: fixed;
  right: 24px; bottom: 100px;
  z-index: 150;
  display: flex; align-items: center; gap: 10px;
  background: var(--mg-orange); color: #fff;
  border: none; border-radius: 999px;
  padding: 14px 22px; font-weight: 700; font-size: 14px;
  cursor: pointer;
  box-shadow: 0 14px 30px -10px rgba(255,122,26,.6);
  transition: transform .2s ease, background .2s ease;
}
.mg-quote-float-btn[hidden] { display: none !important; }
.mg-quote-float-btn:hover { background: var(--mg-orange-light); transform: translateY(-2px); }
.mg-quote-float-count {
  background: rgba(255,255,255,.25); border-radius: 999px;
  min-width: 22px; height: 22px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px;
}

.mg-modal-multi-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.mg-multi-item {
  display: flex; align-items: center; gap: 12px;
  background: #f7f7f7; border-radius: 12px; padding: 10px 12px;
}
.mg-multi-thumb { width: 46px; height: 46px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.mg-multi-thumb svg { width: 100%; height: 100%; fill: none; stroke: #171717; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mg-multi-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.mg-multi-info { flex: 1; }
.mg-multi-info span { display: block; font-size: 12.5px; font-weight: 700; color: #141414; margin-bottom: 4px; }
.mg-multi-qty {
  width: 64px; padding: 7px 8px; border: 1px solid #ddd; border-radius: 7px;
  font-size: 13px; font-family: inherit; background: #fff;
}

@media (max-width: 500px) {
  .mg-quote-float-btn { right: 16px; bottom: 148px; padding: 12px 18px; font-size: 13px; }
}

.mg-modal-small { max-width: 360px; text-align: center; }
.mg-call-subtitle { color: #666; font-size: 13px; margin: -6px 0 18px; }
.mg-call-list { display: flex; flex-direction: column; gap: 10px; }
.mg-call-item {
  display: flex; align-items: center; gap: 14px;
  background: #f7f7f7; border-radius: 12px; padding: 14px 16px;
  text-decoration: none; text-align: left;
  transition: background .2s ease;
}
.mg-call-item:hover { background: #f0ebe6; }
.mg-call-item svg { width: 26px; height: 26px; color: var(--mg-orange); flex-shrink: 0; }
.mg-call-item span { display: block; font-size: 13.5px; font-weight: 700; color: #141414; }
.mg-call-item small { display: block; font-size: 12.5px; color: #666; margin-top: 2px; }

.mg-drawer-list { display: flex; flex-direction: column; gap: 8px; text-align: left; max-width: 460px; margin: 0 auto; }
.mg-drawer-item {
  display: flex; align-items: center; gap: 12px;
  background: #17130f; border-radius: 10px; padding: 14px 16px;
  font-size: 13.5px; font-weight: 600; color: #f2f2f2;
  text-decoration: none;
  border: 1px solid rgba(255,122,26,.2);
  border-left: 3px solid var(--mg-orange);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.mg-drawer-item i {
  font-style: normal; color: var(--mg-orange); font-weight: 800; font-size: 12px;
  letter-spacing: 1px; flex-shrink: 0;
}
.mg-drawer-item:hover {
  background: #211a14;
  border-color: var(--mg-orange);
  box-shadow: 0 0 0 1px rgba(255,122,26,.35), 0 10px 24px -10px rgba(255,122,26,.5);
  transform: translateX(3px);
}

/* ---------- Drawer de Índice: panel de pantalla completa ---------- */
.mg-index-fullscreen {
  position: fixed; inset: 0;
  background: #0c0c0c;
  z-index: 300;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}
.mg-index-fullscreen.is-open { display: flex; }

.mg-drawer-video-wrap {
  position: relative;
  width: 100%;
  height: 18vh;
  min-height: 130px;
  max-height: 190px;
  flex-shrink: 0;
  overflow: hidden;
  background: #141414; /* se ve mientras no haya video puesto */
}
.mg-drawer-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-drawer-video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,12,12,.1) 0%, rgba(12,12,12,.5) 65%, #0c0c0c 100%);
}
.mg-index-close-btn {
  position: absolute; top: 16px; right: 16px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.3);
  color: #fff; padding: 9px 16px; border-radius: 999px;
  font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .3px;
  cursor: pointer; backdrop-filter: blur(3px);
  transition: background .2s ease, border-color .2s ease;
}
.mg-index-close-btn:hover { background: rgba(255,122,26,.85); border-color: var(--mg-orange); }

.mg-index-fullscreen-body { padding: 30px 24px 100px; text-align: center; }
.mg-modal-title-tech { color: #fff; letter-spacing: 2px; font-size: 22px; font-weight: 800; margin: -46px 0 8px; position: relative; z-index: 2; }
.mg-call-subtitle-tech { color: #a8a8a8; font-size: 13px; margin: 0 0 26px; }

@media (max-width: 500px) {
  .mg-modal { padding: 22px 18px 18px; }
  .mg-form-row { grid-template-columns: 1fr; }
}

/* =============================================================
   LAYOUT "SIMPLE" (Trabajos en Acrílico y categorías similares)
   ============================================================= */
.mg-cat-simple { padding-top: 40px; }

.mg-simple-header {
  position: relative;
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid #ececec;
}
.mg-simple-header-text { max-width: 560px; }
.mg-simple-header-text p { color: #555; font-size: 15px; line-height: 1.55; margin: 14px 0 0; }

.mg-simple-header-decor { position: relative; width: 160px; flex-shrink: 0; display: flex; justify-content: flex-end; }
.mg-simple-badge {
  position: relative;
  width: 130px; height: 90px;
  background: #141414;
  clip-path: polygon(30% 0, 100% 0, 100% 100%);
  display: flex; align-items: flex-start; justify-content: flex-end;
  padding: 10px 14px 0 0;
}
.mg-simple-badge::before {
  content: ""; position: absolute; top: 0; left: -2px; width: 4px; height: 100%;
  background: var(--mg-orange); transform: skewX(-20deg); transform-origin: top;
}
.mg-simple-badge span { color: #fff; font-size: 26px; font-weight: 800; }

.mg-simple-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mg-simple-card {
  position: relative;
  border: 1.5px solid var(--mg-orange);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: box-shadow .25s ease, transform .25s ease;
}
.mg-simple-card:hover { box-shadow: 0 16px 30px -14px rgba(0,0,0,.18); transform: translateY(-3px); }
.mg-simple-head-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mg-select-sm { position: static; width: 20px; height: 20px; border-radius: 5px; }
.mg-select-sm svg { width: 11px; height: 11px; stroke-width: 3.4; }
.mg-simple-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #f1d9c4;
}
.mg-simple-card-head span:first-child { font-size: 13px; font-weight: 800; color: #141414; letter-spacing: .2px; }
.mg-simple-num {
  background: var(--mg-orange); color: #fff; font-size: 11px; font-weight: 800;
  padding: 2px 9px; border-radius: 999px; flex-shrink: 0;
}
.mg-simple-thumb {
  padding: 16px 20px; min-height: 110px;
  display: flex; align-items: center; justify-content: center;
}
.mg-simple-thumb svg { width: 100%; max-height: 90px; fill: none; stroke: #171717; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mg-simple-card p {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 11.5px; color: #555; line-height: 1.4;
  margin: 0; padding: 0 14px 14px;
}
.mg-simple-card p i {
  display: block; width: 7px; height: 7px; background: var(--mg-orange); flex-shrink: 0; margin-top: 4px;
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .mg-cat-simple { padding-top: 26px; }
  .mg-simple-header { flex-direction: column; gap: 14px; margin-bottom: 20px; padding-bottom: 16px; }
  .mg-simple-header-decor { display: none; }
  .mg-simple-header-text p { font-size: 13px; margin-top: 10px; }

  .mg-simple-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mg-simple-card-head { padding: 8px 10px; }
  .mg-simple-card-head span:first-child { font-size: 10px; line-height: 1.2; }
  .mg-simple-num { font-size: 9px; padding: 2px 7px; }
  .mg-select-sm { width: 16px; height: 16px; border-radius: 4px; }
  .mg-select-sm svg { width: 9px; height: 9px; }
  .mg-simple-thumb { padding: 8px 10px; min-height: 64px; }
  .mg-simple-thumb svg { max-height: 54px; }
  .mg-simple-card p { font-size: 9px; line-height: 1.3; padding: 0 10px 10px; gap: 5px; }
  .mg-simple-card p i { width: 5px; height: 5px; margin-top: 3px; }
}

/* =============================================================
   PROCESO Y CONDICIONES COMERCIALES
   ============================================================= */
.mg-process {
  background: #000000;
  color: #fff;
  padding: 70px clamp(20px, 5vw, 64px) 80px;
}

.mg-process-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}
.mg-process-title {
  font-size: clamp(34px, 4vw, 48px); font-weight: 800; text-transform: uppercase;
  line-height: 1.05; margin: 0 0 16px; letter-spacing: -.5px;
}
.mg-process-title .mg-accent { color: var(--mg-orange); }

.mg-process-visual { position: relative; display: flex; justify-content: center; }
.mg-process-photo {
  width: 100%; max-width: 600px; height: 280px;
  background: var(--mg-bg-soft);
  border-radius: 16px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.mg-process-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-item-cards { width: 100%; max-width: 260px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mg-dot-grid-process { position: absolute; bottom: -18px; right: -8px; width: 70px; height: 70px; opacity: .9; }

.mg-process-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.mg-process-col-payment { border-left: 1px solid rgba(255,122,26,.35); padding-left: 60px; }

.mg-process-col h3 { font-size: 20px; font-weight: 800; letter-spacing: .3px; margin: 0 0 14px; }

.mg-process-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.mg-process-steps li {
  display: grid; grid-template-columns: 44px 30px 1fr; align-items: center;
  gap: 14px; padding: 12px 0;
}
.mg-step-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--mg-bg-soft);
  display: flex; align-items: center; justify-content: center;
}
.mg-step-icon svg { width: 22px; height: 22px; }
.mg-step-num { font-size: 22px; font-weight: 800; color: var(--mg-orange); text-align: center; }
.mg-step-text { font-size: 14.5px; color: #e2e2e2; line-height: 1.4; }

.mg-payment-item { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; padding: 16px 0; }
.mg-payment-icon {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--mg-orange);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mg-payment-icon svg { width: 20px; height: 20px; }
.mg-payment-info { display: flex; flex-direction: column; gap: 2px; }
.mg-payment-info strong { color: var(--mg-orange); font-size: 14px; font-weight: 700; }
.mg-payment-info span { font-size: 13px; color: #d8d8d8; }
.mg-payment-numbers { display: flex; flex-direction: column; gap: 2px; text-align: right; font-size: 12.5px; color: #d8d8d8; }
.mg-payment-titular { grid-template-columns: 44px 1fr; }
.mg-payment-sep { border: none; border-top: 1px dashed rgba(255,122,26,.35); margin: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .mg-process { padding: 44px 14px 122px; }
  .mg-process-header { grid-template-columns: 1fr; gap: 26px; margin-bottom: 40px; }
  .mg-process-title { font-size: 30px; }
  .mg-process-visual { display: none; }

  .mg-process-columns { grid-template-columns: 1fr; gap: 40px; }
  .mg-process-col-payment { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,122,26,.35); padding-top: 30px; }

  .mg-process-steps li { grid-template-columns: 40px 26px 1fr; gap: 10px; padding: 10px 0; }
  .mg-step-icon { width: 40px; height: 40px; border-radius: 8px; }
  .mg-step-icon svg { width: 19px; height: 19px; }
  .mg-step-num { font-size: 19px; }
  .mg-step-text { font-size: 13px; }

  .mg-payment-item { grid-template-columns: 40px 1fr; }
  .mg-payment-numbers { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; text-align: left; padding-left: 54px; margin-top: 6px; }
}

@media (max-width: 860px) {
  .mg-select { padding: 6px 10px; }
  .mg-select span { font-size: 10.5px; }
  .mg-select svg { width: 11px; height: 11px; }
  .mg-fav { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .mg-slide, .mg-cta-btn, .mg-cta-primary, .mg-dot, .mg-index-card { animation: none !important; transition: none !important; }
}

/* =============================================================
   FICHA DE PRODUCTO (pantalla completa antes de cotizar)
   ============================================================= */
.mg-detail-fullscreen {
  position: fixed; inset: 0; z-index: 250;
  background: #fff; color: #171717;
  display: none; flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}
.mg-detail-fullscreen.is-open { display: flex; }
.mg-detail-lower { flex-grow: 1; }

.mg-detail-topbar,
.mg-detail-hero {
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}

.mg-detail-topbar {
  display: flex; align-items: center; justify-content: flex-start; gap: 20px;
  padding: 16px 13px;
  position: sticky; top: 0; z-index: 30;
  background: #fff;
}
.mg-detail-back, .mg-detail-fav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 700;
}
.mg-detail-fav-toggle { background: none; color: #171717; margin-left: auto; }
.mg-detail-fav-toggle svg { width: 18px; height: 18px; fill: none; stroke: #171717; stroke-width: 1.8; transition: fill .2s ease, stroke .2s ease; }
.mg-detail-fav-toggle.is-liked svg { fill: var(--mg-orange); stroke: var(--mg-orange); }

.mg-detail-back {
  background: var(--mg-orange);
  color: #fff;
  border-radius: 999px;
  padding: 10px 20px 10px 16px;
  transition: background .2s ease, transform .15s ease;
}
.mg-detail-back:hover { background: var(--mg-orange-light); transform: translateY(-1px); }
.mg-detail-back svg { stroke: #fff; }

.mg-detail-hero {
  padding: 10px clamp(20px, 4vw, 48px) 40px;
}
.mg-detail-info { margin-bottom: 30px; text-align: center; }
.mg-detail-info .mg-eyebrow { margin-left: auto; margin-right: auto; }
.mg-detail-hero-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 50px;
}
.mg-detail-title { font-size: clamp(30px, 3.2vw, 42px); font-weight: 800; text-transform: uppercase; line-height: 1.05; margin: 0 0 14px; }
.mg-detail-title .mg-accent-dark,
.mg-detail-title-accent { color: var(--mg-orange); }
.mg-detail-subtitle { color: #666; font-size: 14.5px; margin: 14px 0 0; }

.mg-detail-image-wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }

.mg-detail-zoom-btn {
  position: absolute; bottom: 14px; right: 14px;
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; color: #171717;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px -2px rgba(0,0,0,.25);
  transition: background .2s ease, transform .15s ease;
  z-index: 2;
}
.mg-detail-zoom-btn:hover { background: var(--mg-orange); color: #fff; transform: scale(1.06); }

.mg-image-lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(10,10,10,.92);
  display: none; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.mg-image-lightbox.is-open { display: flex; }
.mg-image-lightbox img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.mg-image-lightbox-close {
  position: fixed; top: 20px; right: 20px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--mg-orange); color: #fff;
  border: none; cursor: pointer; font-size: 17px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px -2px rgba(255,122,26,.5);
  z-index: 401;
}
.mg-image-lightbox-close:hover { background: var(--mg-orange-light); }

.mg-detail-image {
  width: 100%; max-width: 540px; aspect-ratio: 1 / 1;
  object-fit: contain; background: #ffffff; border-radius: 16px;
  padding: 24px;
  cursor: zoom-in;
}
.mg-detail-dots { display: flex; gap: 7px; }
.mg-detail-dots span { width: 7px; height: 7px; border-radius: 50%; background: #ddd; }
.mg-detail-dots span.is-active { background: var(--mg-orange); }

.mg-detail-features { display: flex; flex-direction: column; gap: 28px; }
.mg-detail-feature { display: flex; align-items: flex-start; gap: 12px; }
.mg-detail-feature-text { min-height: 56px; }
.mg-detail-feature-text strong {
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 15.5px; font-weight: 500; color: #fff;
}
.mg-detail-feature-text span {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13px; color: #b8b8b8; margin-top: 2px;
}
.mg-detail-feature-icon {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(255,122,26,.12);
  border: 1px solid rgba(255,122,26,.3); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.mg-detail-feature-icon svg { width: 19px; height: 19px; fill: none; stroke: var(--mg-orange); stroke-width: 1.8; }

.mg-detail-lower {
  background: var(--mg-bg); color: #fff;
}
.mg-detail-lower-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px clamp(20px, 4vw, 48px) 40px;
}
.mg-detail-description h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 800; letter-spacing: .3px; margin: 0 0 12px; color: #141414;
}
.mg-detail-description > p { color: #555; font-size: 15.5px; line-height: 1.65; margin: 0 0 18px; }
.mg-detail-cotizar { width: 100%; justify-content: center; border: none; cursor: pointer; }

.mg-detail-fav-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mg-detail-fav-header span { font-size: 13.5px; font-weight: 800; letter-spacing: .3px; color: var(--mg-orange); }
.mg-detail-ver-todos { color: var(--mg-orange); font-size: 12.5px; font-weight: 700; text-decoration: none; }
.mg-detail-fav-scroll {
  display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.mg-detail-fav-scroll::-webkit-scrollbar { display: none; }
.mg-detail-favoritos { min-width: 0; }
.mg-detail-description { min-width: 0; }
.mg-detail-fav-card {
  flex: 0 0 auto; width: 190px; background: #141414; border-radius: 12px;
  padding: 16px; cursor: pointer; position: relative;
}
.mg-detail-fav-card .mg-detail-fav-thumb {
  width: 100%; height: 180px; border-radius: 8px; background: #1e1e1e;
  display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 12px;
}
.mg-detail-fav-card .mg-detail-fav-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mg-detail-fav-card .mg-detail-fav-name { font-size: 14px; font-weight: 700; color: #fff; display: block; }
.mg-detail-fav-heart {
  position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center;
}
.mg-detail-fav-heart svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2; }

@media (max-width: 900px) {
  .mg-detail-topbar { padding: 13px; }
  .mg-detail-back, .mg-detail-fav-toggle { font-size: 11.5px; }
  .mg-detail-fav-toggle svg { width: 15px; height: 15px; }

  .mg-detail-hero { padding: 4px 14px 12px; }
  .mg-detail-info { margin-bottom: 12px; text-align: center; }
  .mg-detail-info .mg-eyebrow { margin-left: auto; margin-right: auto; }
  .mg-detail-hero-split { grid-template-columns: 1fr; gap: 16px; }
  .mg-detail-image-wrap { order: 1; gap: 8px; }
  .mg-detail-image { max-width: 220px; padding: 14px; margin: 0 auto; }
  .mg-detail-dots { justify-content: center; }
  .mg-detail-dots span { width: 5px; height: 5px; }
  .mg-detail-title { font-size: 20px; margin-bottom: 6px; }
  .mg-detail-subtitle { font-size: 11px; margin-top: 6px; }

  .mg-detail-description { order: 2; text-align: left; }
  .mg-detail-description h3 { font-size: 13.5px; margin-bottom: 8px; justify-content: flex-start; }
  .mg-detail-description > p { font-size: 13.5px; line-height: 1.5; margin-bottom: 14px; }

  .mg-detail-features {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
  }
  .mg-detail-feature { width: auto; gap: 8px; }
  .mg-detail-feature-icon { width: 24px; height: 24px; border-radius: 6px; }
  .mg-detail-feature-icon svg { width: 11px; height: 11px; }
  .mg-detail-feature-text { min-height: 40px; }
  .mg-detail-feature-text strong { font-size: 12px; font-weight: 500; line-height: 1.25; }
  .mg-detail-feature-text span { font-size: 10px; line-height: 1.25; margin-top: 1px; }

  .mg-detail-lower-inner { grid-template-columns: 1fr; gap: 14px; padding: 16px 16px 90px; }

  .mg-detail-fav-header { margin-bottom: 10px; }
  .mg-detail-fav-header span { font-size: 11.5px; }
  .mg-detail-fav-card { width: 130px; padding: 10px; }
  .mg-detail-fav-card .mg-detail-fav-thumb { height: 90px; margin-bottom: 6px; }
  .mg-detail-fav-card .mg-detail-fav-name { font-size: 10px; }

  .mg-detail-cotizar {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 5;
    display: flex !important; align-items: center; justify-content: center;
    width: auto; padding: 13px 20px; font-size: 13px;
    box-shadow: 0 10px 30px -8px rgba(0,0,0,.5);
  }
}

/* =============================================================
   CHAT EN VIVO (diseño de la interfaz — la conexión real a una
   plataforma de chat se programa después)
   ============================================================= */
.mg-chat-button {
  position: fixed; right: 24px; bottom: 24px; z-index: 400;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--mg-orange); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 10px 28px -6px rgba(255,122,26,.6);
  transition: transform .2s ease, background .2s ease;
}
.mg-chat-button:hover { background: var(--mg-orange-light); transform: scale(1.05); }
.mg-chat-button svg { width: 26px; height: 26px; }
.mg-chat-button.is-open svg { display: none; }
.mg-chat-button.is-open::after {
  content: "✕"; font-size: 22px; font-weight: 700;
}
.mg-chat-badge {
  position: absolute; top: -2px; right: -2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #e0392b; color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.mg-chat-button.is-open .mg-chat-badge { display: none; }

.mg-chat-window {
  position: fixed; right: 24px; bottom: 98px; z-index: 401;
  width: 350px; height: 480px;
  background: #fff; border-radius: 0 0 16px 16px;
  box-shadow: 0 25px 60px -15px rgba(0,0,0,.35);
  display: none; flex-direction: column; overflow: hidden;
}
.mg-chat-window.is-open { display: flex; }

.mg-chat-header {
  background: var(--mg-bg); color: #fff;
  padding: 16px 18px; display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.mg-chat-header-info { display: flex; align-items: center; gap: 12px; }
.mg-chat-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--mg-orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.mg-chat-header-info strong { display: block; font-size: 14px; }
.mg-chat-status { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #b8b8b8; }
.mg-chat-status i { width: 7px; height: 7px; border-radius: 50%; background: #3ecf6e; display: block; }
.mg-chat-close { background: none; border: none; color: #fff; font-size: 16px; cursor: pointer; padding: 4px; }

.mg-chat-messages {
  flex: 1; overflow-y: auto; padding: 18px; background: #f7f7f7;
  display: flex; flex-direction: column; gap: 12px;
}
.mg-chat-messages[hidden] { display: none !important; }
.mg-chat-msg { max-width: 80%; }
.mg-chat-msg p {
  margin: 0; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45;
}
.mg-chat-img{ max-width:180px; border-radius:12px; display:block; margin-bottom:4px; cursor:pointer; }
.mg-chat-msg-bot { align-self: flex-start; }
.mg-chat-msg-bot p { background: #fff; color: #171717; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.mg-chat-msg-user { align-self: flex-end; }
.mg-chat-msg-user p { background: var(--mg-orange); color: #fff; border-bottom-right-radius: 4px; }
.mg-chat-time { display: block; font-size: 10.5px; color: #999; margin-top: 4px; }
.mg-chat-msg-user .mg-chat-time { text-align: right; }

.mg-chat-input-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-top: 1px solid #ececec; background: #fff; flex-shrink: 0;
}
.mg-chat-input-row[hidden] { display: none !important; }
.mg-chat-input-row input {
  flex: 1; border: 1px solid #ddd; border-radius: 999px; padding: 10px 16px;
  font-family: inherit; font-size: 13.5px; background: #fafafa;
}
.mg-chat-input-row input:focus { outline: none; border-color: var(--mg-orange); background: #fff; }
.mg-chat-send {
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: var(--mg-orange); color: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .2s ease;
}
.mg-chat-send:hover { background: var(--mg-orange-light); }
.mg-chat-send svg { width: 17px; height: 17px; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .mg-chat-button { right: 16px; bottom: 88px; width: 52px; height: 52px; }
  .mg-chat-button svg { width: 22px; height: 22px; }

  .mg-chat-window {
    right: 10px; left: 10px; bottom: 148px;
    width: auto; height: 65vh; max-height: 480px;
  }
}

/* Formulario previo del chat (nombre + correo antes de conversar) */
.mg-chat-prechat {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px 18px; flex: 1; overflow-y: auto;
}
.mg-chat-prechat[hidden] { display: none !important; }
.mg-chat-prechat-title { font-size: 13.5px; color: #444; line-height: 1.5; margin: 0 0 4px; }
.mg-chat-prechat label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; color: #555; }
.mg-chat-prechat input {
  font-family: inherit; font-size: 13.5px; padding: 10px 12px;
  border: 1px solid #ddd; border-radius: 8px; background: #fafafa; color: #171717;
}
.mg-chat-prechat input:focus { outline: none; border-color: var(--mg-orange); background: #fff; }
.mg-chat-start-btn { justify-content: center; border: none; cursor: pointer; margin-top: 6px; }

/* Evita el contorno de foco del navegador (a veces se ve amarillo/naranja
   en algunos sistemas) al hacer click, pero lo mantiene para navegación
   por teclado — así no se ve ese "borde raro" en las esquinas del chat. */
.mg-chat-close:focus:not(:focus-visible),
.mg-chat-button:focus:not(:focus-visible) {
  outline: none;
}
