/* ─────────────────────────────────────────────────────────
   marketing.css · CISISA — zona pública (landing, nosotros,
   contacto, faq, rastreo, términos, privacidad)
   Dirección: oscuro refinado (Fraunces + Inter + Space Mono)
   ───────────────────────────────────────────────────────── */

:root {
  --md-bg:            #150320;
  --md-bg-raised:     #1D0A2B;
  --md-ink:           #F3EEF7;
  --md-muted:         #B7ABBF;
  --md-muted-2:       #8B8093;
  --md-magenta:       #C41589;
  --md-magenta-light: #e879c1;
  --md-plum:          #4B0D5E;
  --md-border:        rgba(247,232,245,.12);
  --md-border-soft:   rgba(247,232,245,.07);
  --md-surface:       rgba(247,232,245,.03);
  --md-surface-hover: rgba(247,232,245,.06);
  --md-success:       #4ade80;
  --md-font-display:  'Fraunces', Georgia, serif;
  --md-font-body:     'Inter', system-ui, sans-serif;
  --md-font-mono:     'Space Mono', ui-monospace, monospace;
  --md-radius:        10px;
  --md-radius-lg:     16px;
  --md-container:     1280px;
}

.md-scope, .md-scope body { background: var(--md-bg); }

body.md-body {
  margin: 0;
  font-family: var(--md-font-body);
  background: var(--md-bg);
  color: var(--md-ink);
  -webkit-font-smoothing: antialiased;
}
.md-body * { box-sizing: border-box; }
.md-body img { max-width: 100%; }
.md-body ::selection { background: var(--md-magenta); color: #fff; }

/* ── Grain / grid backdrop (sutil, contenido, sin canvas) ── */
.md-grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(247,232,245,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,232,245,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, black 15%, transparent 70%);
}
.md-glow {
  position: fixed; z-index: 0; pointer-events: none; filter: blur(20px);
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,21,137,.22) 0%, transparent 68%);
  top: -220px; right: -160px;
}
.md-main { position: relative; z-index: 1; }

/* ── Typography ── */
.md-body h1, .md-body h2, .md-body h3 { font-family: var(--md-font-display); font-weight: 500; margin: 0; text-wrap: balance; }
.md-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--md-font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--md-magenta-light);
}
.md-eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--md-magenta-light); display: inline-block; }
.md-em {
  font-style: normal;
  background: linear-gradient(100deg, var(--md-magenta-light) 0%, var(--md-magenta) 60%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── Layout helpers ── */
.md-container { max-width: var(--md-container); margin: 0 auto; padding: 0 48px; }
.md-section { padding: 96px 0; }
.md-section-tight { padding: 64px 0; }
.md-section-head { max-width: 640px; margin-bottom: 48px; }
.md-section-head h2 { font-size: 34px; line-height: 1.15; margin: 14px 0 12px; }
.md-section-head p { font-size: 16px; line-height: 1.6; color: var(--md-muted); margin: 0; }
.md-section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.md-section-head.center .md-eyebrow { justify-content: center; }
.md-section-head.center .md-eyebrow::before { display: none; }

@media (max-width: 880px) {
  .md-container { padding: 0 24px; }
  .md-section { padding: 64px 0; }
}

/* ── Nav ── */
.md-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(21,3,32,.75);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.md-nav.scrolled { border-bottom-color: var(--md-border); background: rgba(21,3,32,.92); }
.md-nav-row { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.md-brand { font-family: var(--md-font-display); font-weight: 600; font-size: 20px; color: #fff; text-decoration: none; letter-spacing: -.01em; display: flex; align-items: center; gap: 2px; }
.md-brand span { color: var(--md-magenta-light); }
.md-nav-links { display: flex; gap: 30px; }
.md-nav-links a { color: var(--md-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s ease; }
.md-nav-links a:hover, .md-nav-links a.active { color: #fff; }
.md-nav-actions { display: flex; align-items: center; gap: 14px; }
.md-nav-actions a { text-decoration: none; }
.md-nav-login { font-size: 14px; font-weight: 600; color: #fff; }
.md-hamburger { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }

@media (max-width: 860px) {
  .md-nav-links { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: #1a0a26; flex-direction: column; padding: 90px 28px; gap: 22px; transition: right .35s cubic-bezier(.4,0,.2,1); box-shadow: -12px 0 30px rgba(0,0,0,.5); }
  .md-nav-links.open { right: 0; }
  .md-nav-actions .md-nav-login { display: none; }
  .md-hamburger { display: block; }
}

/* ── Buttons ── */
.md-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--md-font-body); font-size: 15px; font-weight: 600;
  padding: 14px 26px; border-radius: 8px; text-decoration: none; cursor: pointer; border: none;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, background-color .18s ease, border-color .18s ease;
}
.md-btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--md-magenta), var(--md-plum));
  box-shadow: 0 0 0 1px rgba(247,232,245,.06), 0 12px 30px -10px rgba(196,21,137,.6);
}
.md-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(247,232,245,.1), 0 16px 34px -8px rgba(196,21,137,.7); }
.md-btn-ghost { color: #fff; background: transparent; border: 1px solid var(--md-border); }
.md-btn-ghost:hover { background: var(--md-surface-hover); border-color: rgba(247,232,245,.25); }
.md-btn-text { color: #fff; padding: 0; border-bottom: 1px solid rgba(247,232,245,.3); border-radius: 0; }
.md-btn-text:hover { border-color: var(--md-magenta-light); color: var(--md-magenta-light); }
.md-btn-block { width: 100%; }
.md-btn-sm { padding: 10px 18px; font-size: 13.5px; }
.md-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ── Cards ── */
.md-card {
  background: var(--md-surface); border: 1px solid var(--md-border); border-radius: var(--md-radius-lg);
  backdrop-filter: blur(6px);
}
.md-card-pad { padding: 28px; }

/* ── Badges / stat pills ── */
.md-stats { display: flex; gap: 40px; font-family: var(--md-font-mono); flex-wrap: wrap; }
.md-stat b { display: block; font-size: 22px; font-weight: 700; color: #fff; }
.md-stat span { display: block; font-size: 11px; color: var(--md-muted-2); margin-top: 4px; letter-spacing: .03em; }

/* ── Hero ── */
.md-hero { padding: 72px 0 100px; position: relative; }
.md-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.md-hero h1 { font-size: 54px; line-height: 1.06; letter-spacing: -.02em; margin: 22px 0 22px; color: #fff; }
.md-hero-sub { font-size: 17px; line-height: 1.65; color: var(--md-muted); max-width: 470px; margin: 0 0 36px; }
.md-hero-cta { display: flex; align-items: center; gap: 20px; margin-bottom: 52px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .md-hero-grid { grid-template-columns: 1fr; }
  .md-hero h1 { font-size: 38px; }
  .md-hero { padding: 48px 0 60px; }
}

/* Quote-card visual (hero) */
.md-quote-card { padding: 22px; position: relative; }
.md-quote-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.md-quote-head .t { font-size: 13px; font-weight: 700; color: #fff; }
.md-quote-head .p { font-size: 11px; color: var(--md-muted-2); font-family: var(--md-font-mono); }
.md-quote-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--md-border-soft); }
.md-quote-row:first-of-type { border-top: none; }
.md-quote-logo { width: 34px; height: 34px; border-radius: 8px; background: rgba(196,21,137,.15); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: var(--md-magenta-light); flex-shrink: 0; }
.md-quote-info { flex: 1; min-width: 0; }
.md-quote-info .n { font-size: 13.5px; font-weight: 600; color: #fff; }
.md-quote-info .d { font-size: 11.5px; color: var(--md-muted-2); margin-top: 1px; }
.md-quote-price { text-align: right; font-family: var(--md-font-mono); }
.md-quote-price .p { font-size: 14px; font-weight: 700; color: #fff; }
.md-quote-price .best { font-size: 10px; color: var(--md-success); font-weight: 700; }
.md-float-badge {
  position: absolute; bottom: -18px; left: -18px; z-index: 3;
  background: #fff; color: var(--md-bg); border-radius: 12px; padding: 14px 18px;
  box-shadow: 0 16px 34px -12px rgba(0,0,0,.5); font-size: 12.5px; display: flex; align-items: center; gap: 10px;
}
.md-float-badge b { font-family: var(--md-font-display); font-size: 17px; display: block; color: var(--md-magenta); }

/* ── Logos (fila estática, sin animación) ── */
.md-logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.md-logo-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--md-border); border-radius: 100px; font-size: 13.5px; font-weight: 600; color: var(--md-ink); background: var(--md-surface); white-space: nowrap; transition: border-color .2s ease, background-color .2s ease; }
.md-logo-chip:hover { border-color: rgba(196,21,137,.4); background: rgba(196,21,137,.06); }

/* ── Bento grid (Servicios) ── */
.md-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.md-bento-card { padding: 30px; display: flex; flex-direction: column; }
.md-bento-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.md-feature-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(196,21,137,.12); border: 1px solid rgba(196,21,137,.25); display: flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: 20px; }
.md-bento-card h4 { font-family: var(--md-font-display); font-weight: 600; font-size: 18px; margin: 0 0 10px; color: #fff; }
.md-bento-card:nth-child(1) h4 { font-size: 23px; }
.md-bento-card p { color: var(--md-muted); font-size: 14px; line-height: 1.6; margin: 0; }
.md-bento-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.md-bento-list li { display: flex; align-items: center; gap: 10px; color: #D8CEDD; font-size: 14px; }
.md-bento-list li::before { content: '✓'; color: var(--md-magenta-light); font-weight: 700; }

@media (max-width: 860px) {
  .md-bento { grid-template-columns: 1fr; }
  .md-bento-card:nth-child(1) { grid-column: span 1; grid-row: span 1; }
}

/* ── Forms (simulador, contacto) ── */
.md-field { margin-bottom: 14px; }
.md-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--md-muted-2); margin-bottom: 7px; }
.md-input, .md-textarea, .md-select {
  width: 100%; padding: 12px 14px; font-family: var(--md-font-body); font-size: 14px;
  background: rgba(0,0,0,.25); border: 1.5px solid var(--md-border); border-radius: 8px; color: var(--md-ink);
  transition: border-color .18s ease, box-shadow .18s ease; outline: none;
}
.md-input:focus, .md-textarea:focus, .md-select:focus { border-color: var(--md-magenta); box-shadow: 0 0 0 3px rgba(196,21,137,.18); }
.md-input::placeholder, .md-textarea::placeholder { color: #6b5f74; }
.md-textarea { resize: vertical; min-height: 110px; }
.md-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .md-row-2 { grid-template-columns: 1fr; } }

/* Simulador */
.md-sim-note { background: rgba(196,21,137,.06); padding: 16px; border-radius: 12px; border: 1px dashed rgba(196,21,137,.25); font-size: 13px; color: var(--md-magenta-light); margin-top: 18px; }
.md-loading-step { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--md-muted); margin-bottom: 10px; }
.md-loading-step .dot { width: 8px; height: 8px; border-radius: 50%; background: #4a4053; flex-shrink: 0; transition: background .2s; }
.md-loading-step.active { color: #fff; }
.md-loading-step.active .dot { background: var(--md-magenta-light); box-shadow: 0 0 10px var(--md-magenta-light); animation: md-pulse 1s infinite alternate; }
.md-loading-step.done .dot { background: var(--md-success); }
@keyframes md-pulse { from { opacity: .4; } to { opacity: 1; } }
.md-sim-result { background: rgba(247,232,245,.04); border: 1px solid var(--md-border-soft); border-radius: 12px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; transition: background .2s; }
.md-sim-result:hover { background: rgba(247,232,245,.07); }
.md-sim-result .logo { font-weight: 700; font-size: 14.5px; color: #fff; }
.md-sim-result .meta { font-size: 11px; color: var(--md-muted-2); margin-top: 2px; }
.md-sim-result .price { font-weight: 700; color: var(--md-success); font-size: 16px; font-family: var(--md-font-mono); }

/* ── Stats band ── */
.md-stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.md-stat-box { padding: 30px 20px; text-align: center; }
.md-stat-box .ic { font-size: 26px; margin-bottom: 12px; }
.md-stat-box h3 { font-family: var(--md-font-mono); font-size: 30px; font-weight: 700; color: #fff; margin: 0; }
.md-stat-box p { font-size: 11.5px; letter-spacing: .06em; color: var(--md-muted-2); margin: 8px 0 0; font-weight: 600; }
@media (max-width: 760px) { .md-stats-band { grid-template-columns: 1fr 1fr; } }

/* ── FAQ accordion ── */
.md-faq-item { border-bottom: 1px solid var(--md-border-soft); }
.md-faq-item:first-child { border-top: 1px solid var(--md-border-soft); }
.md-faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 4px; font-family: var(--md-font-body); font-size: 16px; font-weight: 600; color: #fff;
}
.md-faq-q .ic { font-size: 20px; color: var(--md-magenta-light); transition: transform .25s ease; flex-shrink: 0; font-weight: 400; }
.md-faq-item.open .md-faq-q .ic { transform: rotate(45deg); }
.md-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.md-faq-a-inner { padding: 0 4px 22px; color: var(--md-muted); font-size: 14.5px; line-height: 1.65; }
.md-faq-cat { font-family: var(--md-font-mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--md-magenta-light); margin: 40px 0 6px; }
.md-faq-cat:first-child { margin-top: 0; }

/* ── Footer ── */
.md-footer { border-top: 1px solid var(--md-border-soft); padding: 64px 0 32px; }
.md-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.md-footer-brand p { color: var(--md-muted-2); font-size: 13.5px; line-height: 1.6; margin: 14px 0 0; max-width: 280px; }
.md-footer-col h5 { font-family: var(--md-font-mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--md-muted-2); margin: 0 0 16px; font-weight: 400; }
.md-footer-col a { display: block; color: var(--md-muted); text-decoration: none; font-size: 14px; margin-bottom: 11px; }
.md-footer-col a:hover { color: #fff; }
.md-footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--md-border-soft); font-size: 12.5px; color: var(--md-muted-2); flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .md-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .md-footer-grid { grid-template-columns: 1fr; } }

/* ── Scroll reveal ── */
.md-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1); }
.md-reveal.active { opacity: 1; transform: translateY(0); }
.md-reveal-d1 { transition-delay: .08s; }
.md-reveal-d2 { transition-delay: .16s; }
.md-reveal-d3 { transition-delay: .24s; }

/* ── Legal pages (términos / privacidad) — mismos tokens, contenido intacto ── */
.md-legal-shell { padding: 56px 0 90px; }
.md-legal-wrap { max-width: 820px; margin: 0 auto; background: var(--md-surface); border: 1px solid var(--md-border); border-radius: var(--md-radius-lg); padding: 44px 48px 56px; }
.md-legal-head { border-bottom: 2px solid var(--md-magenta); padding-bottom: 20px; margin-bottom: 8px; }
.md-legal-head h1 { font-size: 30px; color: #fff; margin: 0 0 8px; }
.md-legal-meta { font-size: 13px; color: var(--md-muted-2); font-family: var(--md-font-mono); }
.md-legal-toc { background: rgba(0,0,0,.2); border: 1px solid var(--md-border-soft); border-radius: 10px; padding: 20px 24px; margin: 28px 0 36px; }
.md-legal-toc h2 { font-family: var(--md-font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--md-muted-2); margin: 0 0 12px; font-weight: 400; }
.md-legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 13.5px; }
.md-legal-toc li { margin-bottom: 6px; break-inside: avoid; }
.md-legal-toc a { color: var(--md-ink); text-decoration: none; }
.md-legal-toc a:hover { color: var(--md-magenta-light); text-decoration: underline; }
.md-legal-body { font-size: 15px; line-height: 1.72; color: #DCD3E0; }
.md-legal-body section { scroll-margin-top: 90px; margin-bottom: 32px; }
.md-legal-body h2 { font-family: var(--md-font-body); font-weight: 700; font-size: 18px; margin: 0 0 12px; padding-left: 14px; border-left: 3px solid var(--md-magenta); color: #fff; }
.md-legal-body h2 .n { color: var(--md-muted-2); font-variant-numeric: tabular-nums; margin-right: 8px; font-weight: 500; }
.md-legal-body h3 { font-size: 14.5px; margin: 18px 0 6px; color: #fff; }
.md-legal-body p { margin: 0 0 12px; }
.md-legal-body ul, .md-legal-body ol { margin: 0 0 12px; padding-left: 22px; }
.md-legal-body li { margin-bottom: 7px; }
.md-legal-note { background: rgba(217,119,6,.08); border-left: 3px solid #d97706; padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 16px 0; font-size: 14px; }
.md-legal-key { background: rgba(0,0,0,.2); border: 1px solid var(--md-border-soft); border-radius: 8px; padding: 14px 18px; margin: 16px 0; font-size: 14px; }
.md-legal-sensitive { background: rgba(220,38,38,.08); border-left: 3px solid #dc2626; padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 16px 0; font-size: 14px; }
.md-legal-simplificado { background: rgba(196,21,137,.05); border: 1px solid var(--md-border-soft); border-left: 3px solid var(--md-magenta); border-radius: 0 10px 10px 0; padding: 20px 24px; margin: 28px 0; font-size: 14.5px; line-height: 1.65; }
.md-legal-simplificado h2 { font-family: var(--md-font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--md-muted-2); margin: 0 0 12px; font-weight: 400; }
.md-legal-body table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 14px 0; }
.md-legal-body th, .md-legal-body td { border: 1px solid var(--md-border-soft); padding: 9px 12px; text-align: left; vertical-align: top; }
.md-legal-body th { background: rgba(0,0,0,.2); font-weight: 600; color: #fff; }
.md-legal-foot { border-top: 1px solid var(--md-border-soft); margin-top: 40px; padding-top: 20px; font-size: 13px; color: var(--md-muted-2); }
.md-legal-foot a { color: var(--md-magenta-light); }
.md-placeholder { color: #f0abdc; background: rgba(196,21,137,.12); padding: 1px 5px; border-radius: 4px; font-family: var(--md-font-mono); font-size: .92em; }

@media (max-width: 700px) {
  .md-legal-toc ol { columns: 1; }
  .md-legal-head h1 { font-size: 24px; }
  .md-legal-wrap { padding: 32px 22px 44px; }
}

/* ═══════════════════════════════════════════════════════════
   Cinematic / exploded-view — secciones del index
   Diagramas SVG "explosionados" que se arman al cargar (hero)
   o conforme el usuario hace scroll (data-cine-stage / data-cine-part)
   ═══════════════════════════════════════════════════════════ */

@keyframes md-heroFloatIn { from { opacity: 0; transform: translateY(16px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes md-heroBob     { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes md-heroSpin    { to { transform: rotate(360deg); } }
@keyframes md-heroDraw    { to { stroke-dashoffset: 0; } }

/* ── Hero: diagrama explosionado del paquete ── */
.md-hero-visual { position: relative; width: 100%; aspect-ratio: 560 / 480; }
.md-hero-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.md-hero-orbit { transform-box: fill-box; transform-origin: center; animation: md-heroSpin 60s linear infinite; }
.md-hero-leader { fill: none; stroke: rgba(247,232,245,.35); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: md-heroDraw 1.1s ease forwards; }
.md-hero-leader:nth-of-type(1) { animation-delay: .45s; }
.md-hero-leader:nth-of-type(2) { animation-delay: .85s; }
.md-hero-leader:nth-of-type(3) { animation-delay: .65s; }
.md-hero-route-path { animation: md-heroDraw 1.3s ease .55s forwards; }

.md-hero-part { opacity: 0; animation: md-heroFloatIn .9s cubic-bezier(.2,.8,.2,1) forwards; }
.md-hero-box   { animation-delay: .05s; }
.md-hero-label { animation-delay: .35s; }
.md-hero-route { animation-delay: .55s; }
.md-hero-check { animation-delay: .75s; }

.md-hero-bob-a { animation: md-heroBob 6s ease-in-out 1s infinite; }
.md-hero-bob-b { animation: md-heroBob 5s ease-in-out 1.3s infinite; }
.md-hero-bob-c { animation: md-heroBob 5.5s ease-in-out 1.5s infinite; }
.md-hero-bob-d { animation: md-heroBob 4.5s ease-in-out 1.7s infinite; }

.md-hero-callout {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(21,3,32,.75); border: 1px solid var(--md-border); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 8px 14px; border-radius: 100px; font-size: 12.5px; font-weight: 600; color: #fff;
  opacity: 0; animation: md-heroFloatIn .8s ease forwards; white-space: nowrap; z-index: 2;
}
.md-hero-callout .ic { font-size: 14px; }
.md-hero-callout.c1 { top: 12%;  right: 0%;  animation-delay: .95s; }
.md-hero-callout.c2 { bottom: 4%; right: 2%; animation-delay: 1.15s; }
.md-hero-callout.c3 { top: 2%;   left: 4%;  animation-delay: 1.05s; }

@media (max-width: 640px) {
  .md-hero-visual { aspect-ratio: auto; padding-bottom: 8px; }
  .md-hero-callout { position: static; display: flex; width: max-content; margin: 8px auto 0; }
}

/* ── Motor de scroll cinemático (JS asigna --p y transforma [data-cine-part]) ── */
[data-cine-part] { opacity: .08; will-change: transform, opacity; }
[data-cine-draw] { stroke-dasharray: 1; stroke-dashoffset: 1; }

@media (prefers-reduced-motion: reduce) {
  .md-hero-part, .md-hero-callout, .md-hero-leader, .md-hero-route-path { animation: none !important; opacity: 1 !important; transform: none !important; }
  .md-hero-leader, .md-hero-route-path { stroke-dashoffset: 0 !important; }
  .md-hero-orbit, .md-hero-bob-a, .md-hero-bob-b, .md-hero-bob-c, .md-hero-bob-d { animation: none !important; }
  [data-cine-part] { opacity: 1 !important; transform: none !important; }
  [data-cine-draw] { stroke-dashoffset: 0 !important; }
}

/* ── Proceso (cómo funciona) ── */
.md-proc { position: relative; margin-top: 8px; }
.md-proc-line { display: block; width: 100%; height: 4px; margin-bottom: 40px; overflow: visible; }
.md-proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.md-proc-step { text-align: left; }
.md-proc-ic {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  background: rgba(196,21,137,.12); border: 1px solid rgba(196,21,137,.25);
  display: flex; align-items: center; justify-content: center;
}
.md-proc-n { display: block; font-family: var(--md-font-mono); font-size: 11px; color: var(--md-magenta-light); letter-spacing: .08em; margin-bottom: 6px; }
.md-proc-step h4 { font-family: var(--md-font-display); font-weight: 600; font-size: 18px; margin: 0 0 8px; color: #fff; }
.md-proc-step p { color: var(--md-muted); font-size: 14px; line-height: 1.6; margin: 0; }

@media (max-width: 900px) { .md-proc-grid { grid-template-columns: 1fr 1fr; row-gap: 34px; } }
@media (max-width: 560px) { .md-proc-grid { grid-template-columns: 1fr; } }

/* ── Escena explosionada dentro de la card bento principal ── */
.md-bento-scene { width: 100%; max-width: 220px; margin-bottom: 22px; }
.md-bento-scene svg { width: 100%; height: auto; overflow: visible; }

/* ── Hub de integraciones (reemplaza el marquee/carrusel) ── */
.md-hub { position: relative; width: 100%; max-width: 780px; aspect-ratio: 760 / 420; margin: 56px auto 0; }
.md-hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.md-hub-path { fill: none; stroke: rgba(247,232,245,.16); stroke-width: 1.4; stroke-dasharray: 3 7; }
.md-hub-dot { filter: drop-shadow(0 0 5px rgba(232,121,193,.85)); }

.md-hub-center-pos { position: absolute; top: 49%; left: 50%; transform: translate(-50%, -50%); z-index: 3; }
.md-hub-center { position: relative; width: 86px; height: 86px; opacity: 0; animation: md-heroFloatIn .8s ease forwards; }
.md-hub-mark {
  position: relative; z-index: 2; width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(135deg, var(--md-magenta), var(--md-plum));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--md-font-display); font-weight: 700; font-size: 20px; color: #fff; letter-spacing: -.01em;
  box-shadow: 0 0 0 1px rgba(247,232,245,.15), 0 20px 40px -14px rgba(196,21,137,.65);
}
.md-hub-ping { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(232,121,193,.55); animation: md-hubPing 2.6s ease-out infinite; }
.md-hub-ping-d2 { animation-delay: 1.3s; }
@keyframes md-hubPing { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }

.md-hub-node-pos { position: absolute; transform: translate(-50%, -50%); z-index: 2; }
.md-hub-node-pos.n1 { top: 8.3%;  left: 18.2%; }
.md-hub-node-pos.n2 { top: 6.2%;  left: 62.1%; }
.md-hub-node-pos.n3 { top: 38.1%; left: 88.0%; }
.md-hub-node-pos.n4 { top: 78.1%; left: 70.0%; }
.md-hub-node-pos.n5 { top: 82.1%; left: 26.1%; }
.md-hub-node-pos.n6 { top: 38.1%; left: 6.1%; }

.md-hub-node {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 100px;
  background: rgba(21,3,32,.8); border: 1px solid var(--md-border); font-size: 13px; font-weight: 600; color: #fff;
  white-space: nowrap; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: margin-top .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.md-hub-node .ic { font-size: 14px; }
.md-hub-node:hover { margin-top: -4px; border-color: rgba(196,21,137,.55); background: rgba(196,21,137,.14); box-shadow: 0 14px 30px -12px rgba(196,21,137,.55); cursor: default; }

@media (max-width: 720px) {
  .md-hub { aspect-ratio: auto; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 24px 0 8px; }
  .md-hub-lines { display: none; }
  .md-hub-center-pos { position: static; transform: none; flex-basis: 100%; display: flex; justify-content: center; margin-bottom: 4px; }
  .md-hub-node-pos { position: static; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .md-hub-center, .md-hub-ping { animation: none !important; opacity: 1 !important; }
}

/* ── Comparativa (por tu cuenta vs. con CISISA) ── */
.md-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: stretch; margin-top: 8px; }
.md-compare-col { display: flex; flex-direction: column; gap: 14px; }
.md-compare-head { font-family: var(--md-font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--md-muted-2); margin-bottom: 6px; }
.md-compare-after .md-compare-head { color: var(--md-magenta-light); }
.md-compare-row {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px;
  background: var(--md-surface); border: 1px solid var(--md-border-soft); font-size: 14px; line-height: 1.55; color: var(--md-muted);
}
.md-compare-after .md-compare-row { color: #EDE6F1; border-color: rgba(196,21,137,.2); }
.md-compare-row .ic { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; margin-top: 1px; }
.md-compare-row .ic.x { background: rgba(220,38,38,.14); color: #f87171; }
.md-compare-row .ic.ok { background: rgba(74,222,128,.14); color: var(--md-success); }
.md-compare-vs { display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.md-compare-arrow { width: 24px; height: 100%; min-height: 160px; }
.md-compare-stats { display: flex; justify-content: center; gap: 56px; margin-top: 52px; flex-wrap: wrap; text-align: center; }
.md-compare-stat b { display: block; font-family: var(--md-font-mono); font-size: 28px; font-weight: 700; color: #fff; }
.md-compare-stat span { display: block; font-size: 11px; color: var(--md-muted-2); margin-top: 6px; letter-spacing: .04em; max-width: 160px; }

@media (max-width: 780px) {
  .md-compare { grid-template-columns: 1fr; }
  .md-compare-vs { display: none; }
}
