/* ==========================================================================
   MONETIGENESIS™ — landing page styles (complementa styles.css)
   ========================================================================== */

/* ---------- Hero ---------- */
.mg-hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  overflow: hidden;
}

/* ---------- HERO: triple reveal (4 actos) ---------- */
.mg-hero-copy { max-width: 620px; }

/* ACTO 1: video de impacto a pantalla completa */
.mg-act-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 1;
  transition: opacity 1s var(--ease);
}
.mg-act-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1.15s var(--ease);
}
.mg-video-forward { opacity: 0; }

.mg-act-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(5,10,24,0.45), rgba(5,10,24,0.25) 45%, rgba(5,10,24,0.6));
  opacity: 1;
  transition: opacity 1s var(--ease);
}

/* Velo oscuro 40%: entra ANTES de los textos para darles protagonismo */
.mg-act-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(5, 10, 24, 0.56);
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.stage-veil .mg-act-veil { opacity: 1; }
.stage-3 .mg-act-veil, .stage-4 .mg-act-veil { opacity: 0; }
/* Finale: la veladura del hero SE ACTIVA sobre stage-4 (mayor especificidad) */
.mg-hero.stage-4.stage-finale .mg-act-veil { opacity: 1; }

/* ACTO 2: textos overlay — aparecen UNO A UNO, de arriba hacia abajo */
.mg-intro-texts {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.stage-2 .mg-intro-texts { pointer-events: auto; }

/* secuencia de revelación: cada unidad entra con su delay (--d) */
.mg-rev {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.stage-2 .mg-rev { opacity: 1; transform: none; }

/* tipografía de las 8 líneas */
.mg-hero-title { margin-bottom: 1.4rem; }
.mg-line { display: block; }
.mg-line-big { line-height: 1.12; }
.mg-line-small {
  font-family: var(--font-sans);
  font-size: clamp(1.02rem, 1.7vw, 1.28rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.55;
}
.mg-line-small:first-of-type { margin-top: 1.5rem; }
.mg-line-brand { color: var(--sapphire-soft); font-weight: 600; }
.mg-line-brand sup { font-size: 0.55em; color: var(--champagne); }

/* ACTO 3: fade out de video + textos */
.stage-3 .mg-act-video, .stage-3 .mg-act-scrim { opacity: 0; }
.stage-3 .mg-intro-texts { opacity: 0; transform: translateY(-16px); pointer-events: none; }

/* ACTO 4: el sistema llena TODO el hero — alto completo y ancho adaptable */
.mg-system-stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease) 0.2s, transform 0.9s var(--ease) 0.2s;
  pointer-events: none;
  padding: calc(var(--header-h) + 1.2rem) clamp(1rem, 3vw, 3rem) 1rem;
}
.stage-4 .mg-system-stage { opacity: 1; transform: none; pointer-events: auto; }
.stage-4 .mg-act-video, .stage-4 .mg-act-scrim { opacity: 0; }
.stage-4 .mg-intro-texts { display: none; }

.stage-4 .mg-hero-art,
.mg-system-stage .mg-hero-art {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
}
.mg-system-stage .container {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.mg-system-stage .mg-hero-art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.mg-system-stage .mg-story-ui {
  flex: 0 0 auto;
  width: min(760px, 100%);
  margin-inline: auto;
}

/* botón secundario: pulso del efecto hover cada 1s, infinito (texto siempre visible) */
#mgStartSystem {
  position: relative;
  overflow: hidden;
  border-color: var(--line-sapph);
  animation: mgCTABorderPulse 1s ease-in-out infinite;
}
#mgStartSystem::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--champagne);
  opacity: 0;
  pointer-events: none;
  animation: mgCTAWashPulse 1s ease-in-out infinite;
}
@keyframes mgCTAWashPulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.16; }
}
@keyframes mgCTABorderPulse {
  0%, 100% { border-color: var(--line-sapph); }
  50% { border-color: var(--champagne);
        box-shadow: 0 0 18px rgba(241, 218, 166, 0.28); }
}
@media (prefers-reduced-motion: reduce) {
  #mgStartSystem, #mgStartSystem::before { animation: none; }
}

/* botón saltar intro */
.mg-skip {
  position: absolute;
  right: 1.6rem;
  bottom: 1.4rem;
  z-index: 5;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice);
  background: rgba(5, 10, 24, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-sapph);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s, opacity 0.4s;
}
.mg-skip:hover { color: #101b3d; border-color: var(--champagne); background: var(--champagne); }
.stage-4 .mg-skip { opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .mg-act-video, .mg-act-scrim, .mg-intro-texts, .mg-system-stage { transition: none; }
  .mg-rev { transition: none; }
}

/* ---------- HUDs de actividad en vivo ---------- */
.mg-hud rect {
  fill: rgba(6, 11, 26, 0.92);
  stroke: rgba(92, 155, 240, 0.45);
  stroke-width: 1;
}
.mg-hud-text {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  fill: #8fbbf5;
}
.mg-hud-gold rect { stroke: rgba(241, 218, 166, 0.55); }
.mg-hud-text-gold { fill: var(--champagne); }

/* el paso activo brilla más */
#mgSystemSvg .mg-step.is-active .mg-hud rect {
  stroke: var(--champagne);
  filter: drop-shadow(0 0 8px rgba(241, 218, 166, 0.35));
}

/* mini-visualizaciones */
.hud-spin {
  fill: none;
  stroke: #8fbbf5;
  stroke-width: 1.6;
  stroke-dasharray: 9 20;
  transform-box: fill-box;
  transform-origin: center;
  animation: mgSpin 1.1s linear infinite;
}
.hud-blink { fill: #8fbbf5; animation: hudBlink 1.2s ease-in-out infinite; }
.hud-blink.d2 { animation-delay: 0.2s; }
.hud-blink.d3 { animation-delay: 0.4s; }
@keyframes hudBlink { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

.hud-bar { fill: #8fbbf5; transform-box: fill-box; transform-origin: bottom; animation: hudBar 1.15s ease-in-out infinite; }
.hud-bar.d2 { animation-delay: 0.18s; }
.hud-bar.d3 { animation-delay: 0.36s; }
@keyframes hudBar { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }

.hud-line { stroke: #8fbbf5; stroke-width: 1.6; stroke-linecap: round; transform-box: fill-box; transform-origin: left; animation: hudLine 1.6s ease-in-out infinite; }
.hud-line.d2 { animation-delay: 0.25s; }
.hud-line.d3 { animation-delay: 0.5s; }
@keyframes hudLine { 0%, 100% { transform: scaleX(0.25); opacity: 0.4; } 50% { transform: scaleX(1); opacity: 1; } }

.hud-fall { animation: hudFall 1.3s linear infinite; }
@keyframes hudFall { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 90% { transform: translateY(8px); opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }

.hud-fly { fill: #8fbbf5; animation: hudFly 1.4s ease-in-out infinite; }
.hud-fly.d2 { animation-delay: 0.35s; }
.hud-fly.d3 { animation-delay: 0.7s; }
@keyframes hudFly { 0% { transform: translateX(0); opacity: 0; } 25% { opacity: 1; } 85% { transform: translateX(13px); opacity: 1; } 100% { transform: translateX(13px); opacity: 0; } }

.hud-pulse { transform-box: fill-box; transform-origin: center; animation: hudPulse 1.5s ease-in-out infinite; }
@keyframes hudPulse { 0%, 100% { transform: scale(0.85); opacity: 0.6; } 50% { transform: scale(1.08); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .hud-spin, .hud-blink, .hud-bar, .hud-line, .hud-fall, .hud-fly, .hud-pulse,
  #mgSystemSvg .flow-badge, #mgSystemSvg .mg-chip text, .mg-chip-zoom { animation: none; }
}
#mgSystemSvg.is-story .mg-step {
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
#mgSystemSvg.is-story .mg-step.is-on { opacity: 1; }

/* Veladura del 40% sobre OFFER y FUNNEL mientras se muestra The Output */
#mgSystemSvg.dim-a23 #mgStepA2,
#mgSystemSvg.dim-a23 #mgStepA3 { opacity: 0.4; }

/* ---------- Stage Preview overlay HTML: independiente del viewBox ---------- */
.mg-stage-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 10;
}
.mg-stage-box {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line-sapph);
  overflow: hidden;
  opacity: 0;
  background: rgba(5, 10, 24, 0.92);
}
.mg-stage-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ---------- FINALE: velo general (55%) + píldoras de beneficios ---------- */
#mgFinale { pointer-events: none; }

.mg-pill { opacity: 0; transform: translateY(10px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.mg-pill.is-on { opacity: 1; transform: translateY(0); }
.mg-pill rect {
  fill: rgba(6, 11, 26, 0.92);
  stroke: rgba(241, 218, 166, 0.5);
  stroke-width: 1;
}
.mg-pill circle { fill: var(--champagne); }
.mg-pill text {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  fill: var(--champagne);
  filter: drop-shadow(0 2px 8px rgba(241, 218, 166, 0.3));
}

/* zoom de la píldora activa: exactamente 2 loops, luego queda estática */
.mg-pill-zoom {
  transform-box: fill-box;
  transform-origin: left center;
}
.mg-pill.is-zooming .mg-pill-zoom {
  animation: mgPillZoom 2s ease-in-out 2;
}
@keyframes mgPillZoom {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .mg-pill { transition: none; }
  .mg-pill { transform: none; }
}

/* Badges #N: pulso fade in/out cada 2s */
#mgSystemSvg .flow-badge { animation: mgBadgeFade 2s ease-in-out infinite; }
#mgSystemSvg .flow-badge text { font-size: 11.5px; }

/* Badge dorado del output (#5): mismo fondo sólido que los demás, borde y texto dorados */
#mgSystemSvg .flow-badge-goal circle {
  fill: var(--sapph-800);
  stroke: var(--champagne);
}
#mgSystemSvg .flow-badge-goal text { fill: var(--champagne); }

@keyframes mgBadgeFade {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.12; }
}

.mg-story-ui { margin-top: 1rem; }

.mg-story-card {
  min-height: 96px;
  padding: 0.95rem 1.15rem;
  border: 1px solid var(--line-sapph);
  border-radius: 12px;
  background: rgba(11, 20, 46, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.mg-story-step {
  margin: 0 0 0.3rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--champagne);
}
.mg-story-card h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.mg-story-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.mg-story-controls {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.7rem;
}
.mg-ctl {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-sapph);
  background: rgba(11, 20, 46, 0.7);
  color: var(--ice);
  font-size: 1.05rem;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.mg-ctl:hover { color: #101b3d; border-color: var(--champagne); background: var(--champagne); }
.mg-ctl:focus-visible { outline: 2px solid var(--sapphire-bright); outline-offset: 2px; }
.mg-ctl-replay { margin-left: auto; }

.mg-story-dots { display: flex; gap: 7px; }
.mg-story-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(169, 201, 242, 0.3);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.mg-story-dot:hover { background: var(--sapphire-bright); }
.mg-story-dot.is-active { background: var(--champagne); transform: scale(1.25); }

@media (prefers-reduced-motion: reduce) {
  #mgSystemSvg.is-story .mg-step { transition: none; }
}
.mg-hero-art {
  width: 100%;
  max-width: 560px;
  justify-self: stretch;
}
.mg-hero-art svg { display: block; width: 100%; height: auto; }

/* cursor de máquina de escribir */
.is-typing::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 0.95em;
  margin-left: 3px;
  vertical-align: -0.12em;
  background: var(--champagne);
  animation: mgCaret 0.75s step-end infinite;
}
@keyframes mgCaret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .is-typing::after { content: none; } }

/* core hexagonal */
.mg-core-hex {
  fill: url(#coreGrad);
  stroke: #5c9bf0;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 18px rgba(46, 107, 216, 0.45));
}
.mg-hex-ring {
  fill: none;
  stroke: rgba(92, 155, 240, 0.4);
  stroke-width: 1;
  stroke-dasharray: 10 14;
  transform-origin: 280px 250px;
  animation: mgSpin 34s linear infinite;
}
.mg-core-sub {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  fill: #8fbbf5;
  text-anchor: middle;
}

/* radar de escaneo */
.mg-sweep {
  transform-origin: 280px 250px;
  animation: mgSpin 9s linear infinite;
}

/* partículas de datos */
.mg-dot { fill: #8fbbf5; filter: drop-shadow(0 0 4px rgba(143, 187, 245, 0.9)); }
.mg-dot-gold { fill: var(--champagne); filter: drop-shadow(0 0 5px rgba(241, 218, 166, 0.9)); }

/* conducto y nodo de salida */
.mg-out-pipe { stroke-width: 3; }
.mg-goal-hex {
  fill: rgba(241, 218, 166, 0.12);
  stroke: var(--champagne);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 16px rgba(241, 218, 166, 0.35));
}

/* chips de beneficios flotantes */
.mg-chip rect {
  fill: rgba(11, 20, 46, 0.85);
  stroke: rgba(92, 155, 240, 0.4);
  stroke-width: 1;
}
.mg-chip text {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  fill: var(--champagne);
}

/* Secuencia de turnos: ciclo maestro de 24s — cada chip anima 2 loops (4s),
   queda estático, espera 2s, y cede el turno al siguiente. Solo 1 anima a la vez. */
.mg-chip-zoom {
  transform-box: fill-box;
  transform-origin: left center;
}
.mg-chip   .mg-chip-zoom { animation: mgChipSeq1 24s ease-in-out infinite; }
.mg-chip-d2 .mg-chip-zoom { animation: mgChipSeq2 24s ease-in-out infinite; }
.mg-chip-d3 .mg-chip-zoom { animation: mgChipSeq3 24s ease-in-out infinite; }
.mg-chip-d4 .mg-chip-zoom { animation: mgChipSeq4 24s ease-in-out infinite; }

@keyframes mgChipSeq1 {
  0% { transform: scale(1); }
  4.167% { transform: scale(1.12); }
  8.333% { transform: scale(1); }
  12.5% { transform: scale(1.12); }
  16.667% { transform: scale(1); }
  100% { transform: scale(1); }
}
@keyframes mgChipSeq2 {
  0%, 25% { transform: scale(1); }
  29.167% { transform: scale(1.12); }
  33.333% { transform: scale(1); }
  37.5% { transform: scale(1.12); }
  41.667% { transform: scale(1); }
  100% { transform: scale(1); }
}
@keyframes mgChipSeq3 {
  0%, 50% { transform: scale(1); }
  54.167% { transform: scale(1.12); }
  58.333% { transform: scale(1); }
  62.5% { transform: scale(1.12); }
  66.667% { transform: scale(1); }
  100% { transform: scale(1); }
}
@keyframes mgChipSeq4 {
  0%, 75% { transform: scale(1); }
  79.167% { transform: scale(1.12); }
  83.333% { transform: scale(1); }
  87.5% { transform: scale(1.12); }
  91.667% { transform: scale(1); }
  100% { transform: scale(1); }
}
.mg-chip circle { fill: var(--champagne); }
.mg-chip { animation: mgChipFloat 5s ease-in-out infinite; }
.mg-chip-d2 { animation-delay: 1.2s; }
.mg-chip-d3 { animation-delay: 2.1s; }
.mg-chip-d4 { animation-delay: 3.2s; }
@keyframes mgChipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.mg-chip-d2, .mg-chip-d3, .mg-chip-d4 { /* delays vía clases */ }

/* destellos */
.mg-spark {
  stroke: rgba(143, 187, 245, 0.8);
  stroke-width: 1.2;
  stroke-linecap: round;
  animation: mgTwinkle 3.2s ease-in-out infinite;
}
.mg-spark-d2 { animation-delay: 1.1s; }
.mg-spark-d3 { animation-delay: 2.2s; }
@keyframes mgTwinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .mg-orbit-spin, .mg-pulse, .mg-hero-art .flow-line,
  .mg-hex-ring, .mg-sweep, .mg-chip, .mg-spark { animation: none; }
}

.mg-orbit {
  fill: none;
  stroke: rgba(92, 155, 240, 0.16);
  stroke-width: 1;
  stroke-dasharray: 3 8;
}
.mg-orbit-2 { stroke: rgba(92, 155, 240, 0.09); }
.mg-orbit-spin {
  transform-origin: 280px 250px;
  animation: mgSpin 46s linear infinite;
}
@keyframes mgSpin { to { transform: rotate(360deg); } }
.mg-sat { fill: #8fbbf5; opacity: 0.75; }

.mg-core { stroke: var(--sapphire-bright); fill: rgba(46, 107, 216, 0.2); }
.mg-core-m {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  fill: #f5f8fd;
  text-anchor: middle;
}
.mg-pulse {
  fill: none;
  stroke: rgba(92, 155, 240, 0.4);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: mgPulse 3.5s ease-out infinite;
}
@keyframes mgPulse {
  0% { transform: scale(0.92); opacity: 0.7; }
  100% { transform: scale(1.22); opacity: 0; }
}

.mg-art .flow-line, .mg-hero-art .flow-line { stroke-width: 1.3; }
.mg-out-line { stroke: rgba(241, 218, 166, 0.55); }

.mg-node-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  fill: #a7b4ce;
}
.mg-node-label-goal { fill: var(--champagne); }

@media (prefers-reduced-motion: reduce) {
  .mg-orbit-spin, .mg-pulse, .mg-hero-art .flow-line { animation: none; }
}

.mg-hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}
.mg-hero-title sup { font-size: 0.45em; color: var(--champagne); }

.mg-hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 2.4rem;
}

/* ---------- Agent tabs ---------- */
.mg-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.mg-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: rgba(16, 27, 61, 0.5);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.mg-tab:hover { color: var(--text); border-color: var(--line-sapph); }
.mg-tab.is-active {
  color: #101b3d;
  background: var(--sapphire-soft);
  border-color: var(--sapphire-soft);
}

.mg-tab-num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(46, 107, 216, 0.25);
  border: 1px solid var(--line-sapph);
  color: var(--sapphire-bright);
}
.mg-tab.is-active .mg-tab-num {
  background: rgba(16, 27, 61, 0.25);
  border-color: rgba(16, 27, 61, 0.4);
  color: #101b3d;
}

.mg-tab-panel {
  display: none;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
}
.mg-tab-panel.is-active { display: block; }

.mg-panel-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 2.5rem;
  align-items: center;
}

.mg-agent-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 0.5rem;
}
.mg-tab-panel h3 {
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.mg-agent-desc { color: var(--text-muted); font-size: 0.98rem; margin-bottom: 1.3rem; }
.mg-tab-panel .service-list { border-top: 1px solid var(--line); padding-top: 1.2rem; }

.mg-agent-visual {
  display: grid;
  place-items: center;
  gap: 0.8rem;
  aspect-ratio: 1;
  border-radius: 16px;
  background:
    radial-gradient(closest-side, rgba(46, 107, 216, 0.25), transparent 75%),
    rgba(5, 10, 24, 0.45);
  border: 1px solid var(--line);
}
.mg-glyph {
  font-family: var(--font-serif);
  font-size: 5.5rem;
  font-weight: 500;
  color: var(--sapphire-soft);
  line-height: 1;
}
.mg-visual-note {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  padding: 0 1rem;
}

/* ---------- Audit (wedge offer) ---------- */
.mg-audit {
  background:
    radial-gradient(44rem 26rem at 12% 0%, rgba(46, 107, 216, 0.12), transparent 60%),
    var(--sapph-900);
  border-block: 1px solid var(--line);
}

/* ---------- ROI calculator ---------- */
.mg-calc {
  display: grid;
  gap: 2rem;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
}

.mg-slider { margin-bottom: 1.4rem; }
.mg-slider:last-child { margin-bottom: 0; }
.mg-slider label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.55rem;
}
.mg-slider output {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sapphire-soft);
}
.mg-slider input[type="range"] {
  width: 100%;
  height: 6px;
  accent-color: var(--sapphire-deep);
  cursor: pointer;
}
.mg-slider input[type="range"]:focus-visible { outline: 2px solid var(--sapphire-bright); outline-offset: 4px; border-radius: 4px; }

.mg-calc-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.mg-result {
  text-align: center;
  padding: 1.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 10, 24, 0.45);
}
.mg-result-goal {
  border-color: rgba(241, 218, 166, 0.45);
  background: rgba(241, 218, 166, 0.07);
}
.mg-result-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}
.mg-result-value {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 500;
  color: var(--sapphire-soft);
  font-variant-numeric: tabular-nums;
}
.mg-result-goal .mg-result-value { color: var(--champagne); }
#roi-delta { color: var(--champagne); }

.mg-calc-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-faint);
  text-align: center;
}

/* ---------- Executive ---------- */
.mg-exec-cta { text-align: center; margin-top: 3rem; }

/* ---------- FAQ ---------- */
.mg-faq-wrap { max-width: 820px; }
.mg-faq { display: grid; gap: 0.8rem; }
.mg-faq-item {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.mg-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.25s;
}
.mg-faq-item summary::-webkit-details-marker { display: none; }
.mg-faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--sapphire-bright);
  transition: transform 0.3s var(--ease);
  flex: 0 0 auto;
}
.mg-faq-item[open] summary::after { transform: rotate(45deg); }
.mg-faq-item summary:hover { color: var(--champagne); }
.mg-faq-item p {
  padding: 0 1.4rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ---------- Final CTA ---------- */
.mg-final-cta {
  text-align: center;
  margin-top: 4.5rem;
  padding: 3rem 1.5rem;
  border: 1px solid var(--line-sapph);
  border-radius: var(--radius);
  background:
    radial-gradient(30rem 16rem at 50% 0%, rgba(46, 107, 216, 0.18), transparent 70%),
    var(--surface);
}
.mg-final-cta .section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.6rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .mg-hero-inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .mg-hero-copy { max-width: none; }
  .mg-hero-art { max-width: 560px; margin-inline: auto; width: 100%; }
  .mg-panel-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .mg-agent-visual { max-width: 260px; margin-inline: auto; }
  .mg-calc-results { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .mg-tab-panel { padding: 1.5rem; }
  .mg-calc { padding: 1.5rem; }
  .mg-calc-results { grid-template-columns: 1fr; }
  .mg-final-cta { padding: 2.2rem 1.2rem; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid rgba(92, 155, 240, 0.16);
  background: var(--sapph-950, #050a18);
  padding: 2.4rem 0 6rem; /* margen inferior: el botón flotante de WhatsApp nunca tapa el texto */
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-note { color: rgba(232, 238, 255, 0.55); font-size: 0.85rem; letter-spacing: 0.06em; }
.footer-legal { color: rgba(232, 238, 255, 0.45); font-size: 0.8rem; }
.brand-logo { height: 34px; width: auto; opacity: 0.9; }

/* ============================================================
   WhatsApp Floating Button
   ============================================================ */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 950;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2ee06f 0%, #1eb857 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .4), 0 2px 10px rgba(8, 15, 40, .35);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: wa-pop .55s cubic-bezier(.2, .9, .3, 1.4) 1s both;
}
.wa-float svg { width: 33px; height: 33px; position: relative; z-index: 2; }
.wa-float:hover,
.wa-float:focus-visible {
  transform: translateY(-3px) scale(1.07);
  box-shadow: 0 16px 38px rgba(37, 211, 102, .55), 0 4px 12px rgba(8, 15, 40, .4);
}
.wa-float:active { transform: translateY(0) scale(.97); }

.wa-float-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(46, 224, 111, .65);
  animation: wa-ring 2.4s ease-out infinite;
  pointer-events: none;
}

.wa-float-tip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: rgba(10, 18, 44, .95);
  color: #eaf0ff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(241, 218, 166, .28);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.wa-float:hover .wa-float-tip,
.wa-float:focus-visible .wa-float-tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@keyframes wa-pop {
  from { transform: translateY(20px) scale(.5); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes wa-ring {
  0%   { transform: scale(.92); opacity: .9; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 720px) {
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .wa-float svg { width: 29px; height: 29px; }
  .wa-float-tip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float { animation: none; }
  .wa-float-ring { display: none; }
}

/* ============================================================
   Form backend: honeypot + estado de éxito
   ============================================================ */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.form-success {
  border: 1px solid rgba(46, 224, 111, 0.35);
  background: rgba(46, 224, 111, 0.08);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  margin-top: 1rem;
}
.form-success-title {
  color: #2ee06f;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.form-success-text { color: rgba(232, 238, 255, 0.65); font-size: 0.92rem; }

/* ============================================================
   Motor de Auditoría: pasos del agente + panel de resultados
   ============================================================ */
.audit-processing { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.ap-step {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: rgba(232, 238, 255, .38); letter-spacing: .02em;
  transition: color .3s;
}
.ap-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(92, 155, 240, .3); flex-shrink: 0; transition: background .3s, box-shadow .3s; }
.ap-step.active { color: #e8eeff; }
.ap-step.active .ap-dot { background: #5c9bf0; box-shadow: 0 0 0 4px rgba(92, 155, 240, .2); animation: apPulse 1.1s ease-in-out infinite; }
.ap-step.done { color: rgba(46, 224, 111, .8); }
.ap-step.done .ap-dot { background: #2ee06f; box-shadow: none; animation: none; }
@keyframes apPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }

.audit-result { margin-top: 6px; }
.ar-head { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 8px 0 4px; }
.ar-score { text-align: center; }
.ar-score b { display: block; font-family: var(--font-serif, "Fraunces", Georgia, serif); font-size: 46px; font-weight: 500; color: #5c9bf0; line-height: 1; }
.ar-score span { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(232, 238, 255, .5); }
.ar-score-comp b { color: rgba(232, 238, 255, .45); }
.ar-vs { font-size: 12px; color: rgba(232, 238, 255, .35); font-style: italic; }
.ar-bar { display: flex; flex-direction: column; gap: 5px; margin: 10px 0 16px; }
.ar-bar span { display: block; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #2a5fd6, #5c9bf0); }
.ar-bar .ar-bar-k { background: rgba(232, 238, 255, .22); }
.ar-verdict { font-size: 13px; line-height: 1.6; color: #e8eeff; border-left: 2px solid #f1daa6; padding-left: 12px; font-style: italic; margin: 10px 0; }
.ar-pos { font-size: 12.5px; color: rgba(232, 238, 255, .7); line-height: 1.6; }
.ar-pos b { color: #e8eeff; }
.audit-result h4 { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #5c9bf0; margin: 18px 0 8px; }
.ar-gaps, .ar-qw { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ar-gaps li { padding: 10px 12px; border: 1px solid rgba(255, 106, 106, .25); background: rgba(255, 106, 106, .06); border-radius: 10px; font-size: 12.5px; }
.ar-gaps li b { display: block; color: #ffb4b4; margin-bottom: 3px; }
.ar-gaps li span { color: rgba(232, 238, 255, .65); line-height: 1.5; }
.ar-qw li { position: relative; padding-left: 18px; font-size: 12.5px; color: rgba(232, 238, 255, .8); line-height: 1.55; }
.ar-qw li::before { content: "→"; position: absolute; left: 0; color: #2ee06f; font-weight: 700; }
.ar-wins { font-size: 11.5px; color: rgba(46, 224, 111, .75); margin-top: 12px; line-height: 1.5; }
.ar-cta { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(241, 218, 166, .25); }
.ar-cta p { font-size: 13px; color: #e8eeff; margin-bottom: 12px; line-height: 1.5; }

/* ============================================================
   HERO CTAs: apilados bajo el titular — principal arriba,
   disponible temprano (4.5s); secundario al cerrar el texto (12.5s)
   ============================================================ */
.mg-intro-texts .hero-actions {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

/* ============================================================
   STAGE-4 SPLIT: diagrama a la izquierda · explicación a la derecha
   (mobile: apilado — diagrama arriba, panel abajo)
   ============================================================ */
.mg-split {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: stretch;
}
.mg-split-left { min-width: 0; min-height: 0; position: relative; }
.mg-split-left .mg-hero-art { position: absolute; inset: 0 0 46px 0; }  /* franja inferior reservada para la etiqueta de paso */
.mg-split-right { min-width: 0; display: flex; align-items: center; }

/* la tarjeta se convierte en el panel explicador: la imagen manda */
.mg-split-right .mg-story-card {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  min-height: 0;
}
.mg-story-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 46vh;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-sapph);
  background: rgba(11, 20, 46, 0.55);
  box-shadow: 0 26px 60px rgba(2, 6, 20, 0.5);
}
.mg-story-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 12, 30, 0) 62%, rgba(6, 12, 30, 0.5));
}
.mg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity 0.55s ease, transform 1.2s ease;
}
.mg-media.is-on { opacity: 1; transform: scale(1); }
.mg-split-right .mg-story-step { margin: 1.05rem 0 0.3rem; }
.mg-split-right .mg-story-card h4 { font-size: 1.12rem; }
.mg-split-right .mg-story-text { font-size: 0.92rem; line-height: 1.6; min-height: 3.4em; }
.mg-split-right .mg-story-card.is-finale .mg-story-step { letter-spacing: 0.26em; }

/* mobile: apilado, todo visible a la vez */
@media (max-width: 1023px) {
  .mg-split {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0.85rem;
  }
  .mg-split-left .mg-hero-art { inset: 0 0 36px 0; }
  .mg-split-left { min-height: 180px; }
  .mg-split-right { align-items: flex-start; }
  .mg-story-media { aspect-ratio: 16 / 9; max-height: 32vh; }
  .mg-split-right .mg-story-step { margin: 0.7rem 0 0.25rem; }
  .mg-split-right .mg-story-card h4 { font-size: 1rem; }
  .mg-split-right .mg-story-text { font-size: 0.85rem; min-height: 3em; }
  .mg-story-controls { justify-content: center; }
}

/* ============================================================
   RESULTADOS vs PASOS: distinción sutil por geometría
   pasos = puntos circulares · resultados = diamantes champagne
   (misma gramática del diagrama: agentes círculos, meta hexágono)
   ============================================================ */
.mg-benefit-dots {
  display: none;
  align-items: center;
  gap: 14px;
}
.mg-benefit-dot {
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  border: 1px solid rgba(169, 201, 242, 0.45);
  background: transparent;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s, transform 0.4s;
}
.mg-benefit-dot.is-active {
  background: var(--champagne);
  border-color: var(--champagne);
  box-shadow: 0 0 10px rgba(241, 218, 166, 0.45);
  transform: rotate(45deg) scale(1.2);
}

/* en resultados: los puntos de pasos se disuelven, entran los diamantes */
.mg-story-controls.is-benefits .mg-story-dots {
  display: none;
}
.mg-story-controls.is-benefits .mg-benefit-dots {
  display: flex;
}

/* kicker de resultados: glifo ◆ + aire tipográfico */
.mg-story-card.is-finale .mg-story-step::before {
  content: "◆ ";
  color: var(--champagne);
}
.mg-story-card.is-finale .mg-story-step {
  color: var(--ice);
}

/* marco de la imagen: del filo zafiro al glow champagne */
.mg-story-card.is-finale .mg-story-media {
  border-color: rgba(241, 218, 166, 0.55);
  box-shadow: 0 26px 60px rgba(2, 6, 20, 0.5), 0 0 0 1px rgba(241, 218, 166, 0.18), 0 0 34px rgba(241, 218, 166, 0.12);
}

/* ============================================================
   Etiqueta de paso al pie del diagrama (dentro de la animación)
   pasos = punto circular champagne · resultados = diamante hielo
   ============================================================ */
.mg-step-tag {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 96%;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(241, 218, 166, 0.35);
  background: rgba(11, 20, 46, 0.85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--champagne);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mg-step-tag::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--champagne);
  box-shadow: 0 0 8px rgba(241, 218, 166, 0.55);
}
.mg-step-tag.is-benefit {
  color: var(--ice);
  border-color: rgba(169, 201, 242, 0.45);
}
.mg-step-tag.is-benefit::before {
  border-radius: 0;
  transform: rotate(45deg);
  background: var(--ice);
  box-shadow: 0 0 8px rgba(169, 201, 242, 0.55);
}
@media (max-width: 1023px) {
  .mg-step-tag { bottom: 6px; font-size: 9.5px; letter-spacing: 0.16em; padding: 5px 12px; }
}

/* ============================================================
   Etiquetas de nodos: pulso constante blanco ↔ champagne
   (desfase escalonado por nodo — el sistema "respira")
   ============================================================ */
.mg-node-label,
.mg-node-label-goal {
  animation: mgLabelPulse 3.4s ease-in-out infinite;
}
/* crecimiento por font-size: el texto respira EN SU SITIO
   (transform en <text> deriva en oblicuo — WebKit calcula mal el fill-box) */
@keyframes mgLabelPulse {
  0%, 100% { fill: #ffffff; font-size: 12px; }
  50% { fill: var(--champagne); font-size: 14.4px; }
}
#mgStepCore .mg-node-label  { animation-delay: 0s; }
#mgStepA0 .mg-node-label    { animation-delay: 0.45s; }
#mgStepA1 .mg-node-label    { animation-delay: 0.9s; }
#mgStepA2 .mg-node-label    { animation-delay: 1.35s; }
#mgStepA3 .mg-node-label    { animation-delay: 1.8s; }
#mgStepA4 .mg-node-label    { animation-delay: 2.25s; }
#mgStepOut .mg-node-label-goal { animation-delay: 2.7s; }
@media (prefers-reduced-motion: reduce) {
  .mg-node-label, .mg-node-label-goal { animation: none; fill: var(--champagne); font-size: 12px; }
}

/* ============================================================
   THE CORE: título sobre el núcleo durante su etapa
   (misma tipografía y pulso que las etiquetas de nodos)
   ============================================================ */
.core-label {
  opacity: 0;
  transition: opacity 0.6s ease;
  font-size: 13px;
}
.mg-step.is-active .core-label { opacity: 1; }

/* ============================================================
   Títulos de la animación: Eurostile Extd (con fallback
   Michroma, la equivalente libre de Eurostile/Microgramma Ext)
   — match con la tipografía de las imágenes conceptuales
   ============================================================ */
:root {
  --font-tech: "Eurostile Extd Medium", "Eurostile Extended", "Eurostile",
               "Square721 Extd", "Bank Gothic", "Michroma", "Arial Narrow", sans-serif;
}
.mg-node-label,
.core-label,
.mg-step-tag {
  font-family: var(--font-tech);
  font-weight: 500;
}
.mg-node-label {
  font-size: 12px;
  letter-spacing: 1.2px;
}
.core-label { letter-spacing: 1.6px; font-size: 12px; }
.mg-step-tag { letter-spacing: 0.18em; font-weight: 400; }

/* ============================================================
   Panel: título + navegación SOBRE la imagen · bullets debajo
   ============================================================ */
.mg-media-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 26px;
  background: linear-gradient(180deg, rgba(6, 12, 30, 0.82) 0%, rgba(6, 12, 30, 0.38) 62%, rgba(6, 12, 30, 0) 100%);
  pointer-events: none;
}
.mg-media-heading { max-width: 55%; }
.mg-media-heading .mg-story-step { margin: 0 0 4px; font-size: 10px; letter-spacing: 0.24em; }
.mg-media-heading h4 {
  margin: 0;
  font-size: 1.18rem;
  color: #fff;
  text-shadow: 0 2px 14px rgba(4, 9, 24, 0.85);
}
.mg-media-topbar .mg-story-controls {
  margin: 0;
  gap: 0.45rem;
  pointer-events: auto;
}
.mg-media-topbar .mg-ctl {
  width: 27px;
  height: 27px;
  font-size: 0.9rem;
  background: rgba(6, 12, 30, 0.55);
}
.mg-media-topbar .mg-story-dots,
.mg-media-topbar .mg-benefit-dots { gap: 6px; }
.mg-media-topbar .mg-story-dot { width: 7px; height: 7px; }
.mg-media-topbar .mg-benefit-dot { width: 7px; height: 7px; }

/* bullets de beneficios/ventajas — 30% mayores que el párrafo anterior */
.mg-story-bullets {
  list-style: none;
  margin: 0.95rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.mg-story-bullets li {
  position: relative;
  padding-left: 1.25em;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--text);
  opacity: 0;
  animation: mgBulletIn 0.5s ease forwards;
}
.mg-story-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--champagne);
  box-shadow: 0 0 8px rgba(241, 218, 166, 0.45);
  transform: rotate(var(--rot, 0deg));
}
#mgStoryBullets li.is-breathing::before {
  animation: mgBulletMarkBreath 3s ease-in-out 1;   /* en unísono con su texto */
}
@keyframes mgBulletMarkBreath {
  0%, 100% { transform: scale(1) rotate(var(--rot, 0deg)); box-shadow: 0 0 8px rgba(241, 218, 166, 0.45); }
  50% { transform: scale(1.3) rotate(var(--rot, 0deg)); box-shadow: 0 0 16px rgba(241, 218, 166, 0.85); }
}
.mg-story-card.is-finale .mg-story-bullets li::before {
  --rot: 45deg;
  border-radius: 0;
  background: var(--ice);
  box-shadow: 0 0 8px rgba(169, 201, 242, 0.45);
}
@keyframes mgBulletIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}
/* Respiración secuencial: cada bullet respira blanco↔champagne creciendo
   en su sitio, uno tras otro — ritmo lento que invita a leer sin prisa */
.mg-bullet-txt {
  display: inline-block;
  transform-origin: left center;   /* crece hacia la derecha: nunca invade la viñeta */
}
/* respiración estricta: solo el párrafo activo (JS orquesta la secuencia) */
#mgStoryBullets li.is-breathing .mg-bullet-txt {
  animation: mgBulletBreath 3s ease-in-out 1;
}
@keyframes mgBulletBreath {
  0%, 100% { color: var(--text); transform: scale(1); }
  50% { color: var(--champagne); transform: scale(1.16); }
}
@media (prefers-reduced-motion: reduce) {
  .mg-bullet-txt { animation: none; color: var(--text); }
  .mg-story-bullets li::before { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mg-story-bullets li { animation: none; opacity: 1; }
}
@media (max-width: 1023px) {
  .mg-media-topbar { padding: 10px 10px 20px; }
  .mg-media-heading h4 { font-size: 1rem; }
  .mg-media-topbar .mg-ctl { width: 24px; height: 24px; font-size: 0.8rem; }
  .mg-story-bullets li { font-size: 1.02rem; }
  .mg-story-bullets { gap: 0.4rem; margin-top: 0.7rem; }
}
