/* mega-pago.info — diseño Megacable (distinto a Telmex/Telcel) */
:root {
  --mc-orange: #e8491d;
  --mc-orange-dk: #c73a14;
  --mc-blue: #1786ff;
  --mc-blue-dk: #0b5ed7;
  --mc-navy: #0c1222;
  --mc-ink: #1e293b;
  --mc-bg: #eef1f6;
  --mc-surface: #ffffff;
  --mc-line: #d8dee9;
  --mc-muted: #64748b;
  --mc-radius: 14px;
  --mc-radius-lg: 22px;
  --mc-shadow: 0 18px 40px rgba(12, 18, 34, 0.08);
  --mc-font-h: 'Outfit', system-ui, sans-serif;
  --mc-font-b: 'DM Sans', system-ui, sans-serif;
  --bp: var(--mc-orange);
  --bph: var(--mc-orange-dk);
  --bbd: var(--mc-line);
  --bbg: var(--mc-bg);
  --btx: var(--mc-ink);
  --bsf: var(--mc-surface);
  --bmt: var(--mc-muted);
  --bhd: var(--mc-navy);
  --ffh: var(--mc-font-h);
  --ffb: var(--mc-font-b);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--mc-font-b);
  background: var(--mc-bg);
  color: var(--mc-ink);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
}

a { color: var(--mc-blue); text-decoration: none; }
a:hover { color: var(--mc-blue-dk); }

.mb-shell { min-height: 100vh; display: flex; flex-direction: column; }
.mb-main { flex: 1; }

/* ── Header ── */
.mb-header,
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--mc-navy);
  border-bottom: 3px solid var(--mc-orange);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}
.mb-header-inner,
.topbar .wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mb-brand,
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mc-font-h);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #fff !important;
  text-decoration: none;
}
.mb-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--mc-orange), #ff7a45);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.mb-nav,
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}
.mb-nav a,
.nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.mb-nav a:hover,
.nav a:hover,
.mb-nav a.active,
.nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ── Hero portada ── */
.mb-hero {
  background:
    linear-gradient(120deg, rgba(12, 18, 34, 0.92) 0%, rgba(23, 134, 255, 0.55) 55%, rgba(232, 73, 29, 0.75) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: #fff;
  padding: 48px 20px 56px;
}
.mb-hero-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: end;
}
.mb-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}
.mb-hero-kicker::before {
  content: '';
  width: 28px;
  height: 3px;
  background: var(--mc-orange);
  border-radius: 2px;
}
.mb-hero h1 {
  font-family: var(--mc-font-h);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.mb-hero-lead {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  margin-bottom: 18px;
}
.mb-hero-note {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 480px;
  line-height: 1.6;
}
.mb-hero-panel {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--mc-radius-lg);
  padding: 22px 24px;
}
.mb-hero-panel h2 {
  font-family: var(--mc-font-h);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.mb-hero-panel p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}
.mb-stat-row {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.mb-stat {
  flex: 1;
  min-width: 90px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
}
.mb-stat strong {
  display: block;
  font-family: var(--mc-font-h);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}
.mb-stat span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Layout portada ── */
.mb-layout {
  max-width: 1180px;
  margin: -28px auto 0;
  padding: 0 20px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
.mb-content { min-width: 0; }

.mb-section-label {
  font-family: var(--mc-font-h);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mc-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mb-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--mc-line);
}

/* Destacado */
.mb-featured {
  display: block;
  background: var(--mc-surface);
  border-radius: var(--mc-radius-lg);
  overflow: hidden;
  box-shadow: var(--mc-shadow);
  text-decoration: none;
  color: inherit;
  margin-bottom: 22px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.mb-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(12, 18, 34, 0.12);
}
.mb-featured-img-wrap { position: relative; aspect-ratio: 21/9; overflow: hidden; }
.mb-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mb-featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--mc-orange);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.mb-featured-body { padding: 22px 24px 26px; }
.mb-featured-tag {
  color: var(--mc-blue);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: inline-block;
}
.mb-featured h2 {
  font-family: var(--mc-font-h);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 800;
  color: var(--mc-navy);
  line-height: 1.25;
  margin-bottom: 10px;
}
.mb-featured p {
  color: var(--mc-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 14px;
}
.mb-featured-meta {
  font-size: 0.78rem;
  color: var(--mc-muted);
}
.mb-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--mc-orange);
}

/* Lista horizontal */
.mb-feed { display: flex; flex-direction: column; gap: 14px; }
.mb-feed-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  background: var(--mc-surface);
  border-radius: var(--mc-radius);
  overflow: hidden;
  border: 1px solid var(--mc-line);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mb-feed-item:hover {
  border-color: var(--mc-blue);
  box-shadow: 0 8px 24px rgba(23, 134, 255, 0.1);
}
.mb-feed-item a {
  display: contents;
  color: inherit;
  text-decoration: none;
}
.mb-feed-thumb {
  width: 100%;
  height: 100%;
  min-height: 110px;
  object-fit: cover;
  display: block;
}
.mb-feed-body { padding: 16px 18px 16px 0; display: flex; flex-direction: column; justify-content: center; }
.mb-feed-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--mc-orange);
  margin-bottom: 6px;
}
.mb-feed-body h3 {
  font-family: var(--mc-font-h);
  font-size: 1rem;
  font-weight: 700;
  color: var(--mc-navy);
  line-height: 1.35;
  margin-bottom: 6px;
}
.mb-feed-excerpt {
  font-size: 0.84rem;
  color: var(--mc-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mb-feed-meta {
  font-size: 0.74rem;
  color: var(--mc-muted);
  margin-top: 8px;
}

/* Sidebar */
.mb-sidebar { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 18px; }
.mb-side-card {
  background: var(--mc-surface);
  border-radius: var(--mc-radius);
  border: 1px solid var(--mc-line);
  padding: 18px 20px;
  box-shadow: 0 6px 20px rgba(12, 18, 34, 0.04);
}
.mb-side-card h3 {
  font-family: var(--mc-font-h);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mc-navy);
  margin-bottom: 14px;
}
.mb-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mb-tag {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff4f0;
  color: var(--mc-orange-dk);
  border: 1px solid #ffd4c4;
}
.mb-side-links { list-style: none; }
.mb-side-links li { margin-bottom: 10px; }
.mb-side-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--mc-ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mb-side-links a::before {
  content: '→';
  color: var(--mc-orange);
  font-weight: 800;
}
.mb-side-about p {
  font-size: 0.86rem;
  color: var(--mc-muted);
  line-height: 1.65;
}

/* ── Artículo ── */
.mb-article-hero {
  position: relative;
  min-height: 280px;
  max-height: 420px;
  overflow: hidden;
  background: var(--mc-navy);
}
.mb-article-hero img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  opacity: 0.55;
  display: block;
}
.mb-article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 18, 34, 0.95) 0%, rgba(12, 18, 34, 0.2) 70%);
  display: flex;
  align-items: flex-end;
}
.mb-article-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 40px;
  width: 100%;
}
.mb-crumb {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}
.mb-crumb a { color: rgba(255, 255, 255, 0.9); }
.mb-article-hero .mb-art-tag {
  display: inline-block;
  background: var(--mc-orange);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.mb-article-hero h1 {
  font-family: var(--mc-font-h);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
}
.mb-article-hero .mb-art-meta {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.78);
}

.mb-article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 24px 72px;
}
.mb-article-body {
  background: var(--mc-surface);
  border-radius: var(--mc-radius-lg);
  padding: 32px 36px;
  box-shadow: var(--mc-shadow);
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--mc-ink);
}
.mb-article-body p { margin-bottom: 16px; }
.mb-article-body h2 {
  font-family: var(--mc-font-h);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--mc-navy);
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--mc-orange);
}
.mb-article-body ul, .mb-article-body ol { margin: 0 0 18px 22px; }
.mb-article-body li { margin-bottom: 8px; }
.mb-article-body .note {
  background: #f0f7ff;
  border-left: 4px solid var(--mc-blue);
  padding: 14px 16px;
  border-radius: 0 10px 10px 0;
  font-size: 0.92rem;
  color: var(--mc-muted);
}
.mb-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 12px 20px;
  background: var(--mc-navy);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 999px;
  transition: background 0.2s;
}
.mb-back-btn:hover { background: var(--mc-orange); color: #fff !important; }

/* ── Footer ── */
.mb-footer,
.footer {
  background: var(--mc-navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 20px 32px;
  margin-top: auto;
}
.mb-footer-inner,
.footer .wrap {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}
.mb-foot-links,
.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 22px;
  margin-bottom: 16px;
}
.mb-foot-links a,
.foot-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  font-weight: 600;
}
.mb-foot-links a:hover,
.foot-links a:hover { color: var(--mc-orange); }
.mb-foot-copy,
.foot-copy {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.55;
}
.mb-foot-legal,
.foot-legal {
  max-width: 640px;
  margin: 20px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}
.mb-foot-disclaimer,
.foot-disclaimer {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.55;
}

/* ── Páginas legales ── */
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 24px 56px;
}
.wrap h1,
.mb-legal h1 {
  font-family: var(--mc-font-h);
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
  font-weight: 800;
  color: var(--mc-navy);
  margin-bottom: 10px;
}
.lead {
  font-size: 0.95rem;
  color: var(--mc-muted);
  margin-bottom: 28px;
  line-height: 1.65;
  padding: 16px 18px;
  background: var(--mc-surface);
  border-radius: var(--mc-radius);
  border-left: 4px solid var(--mc-blue);
}
.wrap h2 {
  font-family: var(--mc-font-h);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--mc-navy);
  margin: 32px 0 12px;
}
.wrap p, .wrap li { color: var(--mc-ink); margin-bottom: 12px; }
.wrap ul, .wrap ol { margin: 0 0 16px 22px; line-height: 1.65; }
.box {
  background: var(--mc-surface);
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius);
  padding: 18px 20px;
  margin: 20px 0;
  font-size: 0.92rem;
}
.back { display: inline-block; margin-top: 24px; font-weight: 700; color: var(--mc-orange); }

@media (max-width: 960px) {
  .mb-hero-grid { grid-template-columns: 1fr; }
  .mb-layout { grid-template-columns: 1fr; margin-top: 0; padding-top: 24px; }
  .mb-sidebar { position: static; }
  .mb-feed-item { grid-template-columns: 110px 1fr; }
}

@media (max-width: 640px) {
  .mb-header-inner, .topbar .wrap { height: auto; min-height: 56px; padding: 10px 16px; flex-wrap: wrap; }
  .mb-nav, .nav { gap: 4px; }
  .mb-nav a, .nav a { padding: 6px 10px; font-size: 0.76rem; }
  .mb-hero { padding: 36px 16px 44px; }
  .mb-layout { padding: 0 16px 48px; }
  .mb-feed-item { grid-template-columns: 1fr; }
  .mb-feed-thumb { min-height: 160px; }
  .mb-feed-body { padding: 14px 16px 18px; }
  .mb-article-body { padding: 22px 20px; }
  .wrap { padding: 28px 16px 48px; }
}
