/* blog.css — estilos del blog de mividencia.com
   Usa la identidad de la web: Cambay (títulos), Cabin (texto), azul #465fff y oscuro #202020. */
:root {
  --mg-blue: #465fff;
  --mg-blue-dark: #2f45e0;
  --mg-dark: #202020;
  --mg-ink: #131315;
  --mg-text: #6d6f82;
  --mg-line: #e6e7ef;
  --mg-soft: #f5f6fb;
  --mg-wrap: 1140px;
  --mg-read: 760px;
}
body.mg-blog {
  margin: 0;
  background: #fff;
  color: var(--mg-text);
  font-family: "Cabin", sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
.mg-blog *, .mg-blog *::before, .mg-blog *::after { box-sizing: border-box; }
.mg-blog img { max-width: 100%; height: auto; display: block; }
.mg-blog a { color: var(--mg-blue); text-decoration: none; }
.mg-blog a:hover, .mg-blog a:focus-visible { text-decoration: underline; }
.mg-blog h1, .mg-blog h2, .mg-blog h3 {
  font-family: "Cambay", sans-serif;
  font-weight: 700;
  color: var(--mg-ink);
  line-height: 1.2;
}
.mg-wrap { max-width: var(--mg-wrap); margin: 0 auto; padding: 0 20px; }
.mg-read { max-width: var(--mg-read); margin: 0 auto; padding: 0 20px; }
.mg-skip { position: absolute; left: -9999px; }
.mg-skip:focus { left: 10px; top: 10px; z-index: 1000; background: #fff; padding: 8px 12px; }

/* Divisor en zigzag, como en la portada */
.mg-zigzag {
  display: block;
  width: 90px;
  height: 18px;
  margin: 14px 0 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='none'%3E%3Cpolyline points='0,18 12,6 24,18' fill='none' stroke='%23465fff' stroke-width='4.3' stroke-linecap='square'/%3E%3C/svg%3E") repeat-x left center / 18px 18px;
}
.mg-zigzag--center { margin-left: auto; margin-right: auto; }

/* Cabecera */
.mg-header { background: var(--mg-dark); position: sticky; top: 0; z-index: 50; }
.mg-header .mg-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.mg-logo img { height: 34px; width: auto; }
.mg-nav { display: flex; align-items: center; gap: 26px; }
.mg-nav a {
  color: #fff;
  font-family: "Cambay", sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.mg-nav a[aria-current="page"] { color: var(--mg-blue); }
.mg-nav a.mg-btn { color: #fff; }

/* Botones */
.mg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px 9px;
  background: var(--mg-blue);
  border: 3px solid var(--mg-blue);
  color: #fff !important;
  font-family: "Cambay", sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.mg-btn:hover, .mg-btn:focus-visible { background: #fff; color: var(--mg-blue) !important; text-decoration: none !important; }
.mg-btn--ghost { background: transparent; border-color: #fff; }
.mg-btn--ghost:hover, .mg-btn--ghost:focus-visible { background: #fff; border-color: #fff; color: var(--mg-ink) !important; }
.mg-btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; margin-top: -3px; }

/* Cabecera del índice */
.mg-hero { background: var(--mg-dark); color: rgba(255,255,255,.77); padding: 64px 0 70px; }
.mg-hero h1 { color: #fff; font-size: 52px; margin: 0; }
.mg-hero p { font-size: 19px; max-width: 720px; margin: 0; }
.mg-kicker { display: block; color: #fff; font-size: 17px; margin-bottom: 10px; }

/* Rejilla de artículos */
.mg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.mg-list { padding: 70px 0 80px; }
.mg-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mg-line); transition: box-shadow .2s, transform .2s; }
.mg-card:hover { box-shadow: 0 12px 30px rgba(19,19,21,.10); transform: translateY(-2px); }
.mg-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mg-soft); }
.mg-card__img img { width: 100%; height: 100%; object-fit: cover; }
.mg-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.mg-tag { font-family: "Cambay", sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--mg-blue); }
.mg-card h2, .mg-card h3 { font-size: 22px; margin: 8px 0 10px; }
.mg-card h2 a, .mg-card h3 a { color: var(--mg-ink); }
.mg-card p { margin: 0 0 16px; font-size: 16px; line-height: 1.65; }
.mg-more { margin-top: auto; font-family: "Cambay", sans-serif; font-weight: 700; font-size: 15px; }

/* Artículo */
.mg-breadcrumbs { font-size: 14px; padding-top: 22px; }
.mg-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mg-breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--mg-text); }
.mg-breadcrumbs [aria-current] { color: var(--mg-ink); }
.mg-article-head { padding-top: 26px; padding-bottom: 8px; }
.mg-article-head h1 { font-size: 46px; margin: 8px 0 0; }
.mg-meta { font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.mg-figure { margin: 6px auto 34px; max-width: 980px; padding: 0 20px; }
.mg-figure img { width: 100%; max-height: 520px; object-fit: cover; }
.mg-content { padding-bottom: 20px; }
.mg-content > p:first-child { font-size: 19px; color: #4f5163; }
.mg-content h2 { font-size: 32px; margin: 46px 0 14px; }
.mg-content h3 { font-size: 23px; margin: 30px 0 8px; }
.mg-content p { margin: 0 0 18px; }
.mg-content strong { font-weight: 700; color: #4f5163; }
.mg-content ul, .mg-content ol { margin: 0 0 22px; padding-left: 1.4em; }
.mg-content li { margin-bottom: 8px; padding-left: .2em; }
.mg-content li::marker { color: var(--mg-blue); font-weight: 700; }
.mg-content table { width: 100%; border-collapse: collapse; margin: 8px 0 26px; font-size: 15.5px; line-height: 1.5; }
.mg-content th, .mg-content td { border: 1px solid var(--mg-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.mg-content th { background: var(--mg-soft); color: var(--mg-ink); font-weight: 700; }
.mg-content a[href^="tel:"] { white-space: nowrap; font-weight: 500; }
.mg-table { overflow-x: auto; }

/* Caja de llamada */
.mg-cta { background: var(--mg-dark); color: rgba(255,255,255,.8); padding: 34px 34px 36px; margin: 40px 0 26px; }
.mg-cta h2 { color: #fff; font-size: 30px; margin: 0; }
.mg-cta p { margin: 0 0 22px; }
.mg-cta .mg-zigzag { margin: 10px 0 16px; }
.mg-cta__buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.mg-note { font-size: 13.5px; line-height: 1.6; color: #8a8c9c; border-top: 1px solid var(--mg-line); padding-top: 16px; margin: 0 0 10px; }

/* Relacionados */
.mg-related { background: var(--mg-soft); padding: 60px 0 70px; margin-top: 40px; }
.mg-related > .mg-wrap > h2 { font-size: 34px; margin: 0; text-align: center; }

/* Pie */
.mg-footer { background: var(--mg-dark); color: rgba(255,255,255,.7); padding: 46px 0 30px; font-size: 15px; }
.mg-footer .mg-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.mg-footer img { height: 30px; width: auto; }
.mg-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.mg-footer a { color: #fff; }
.mg-footer small { font-size: 12px; line-height: 1.6; max-width: 760px; }

/* Barra de llamada fija (móvil), como en la portada */
.mg-callbar { display: none; }

/* Tableta */
@media (max-width: 1024px) {
  .mg-grid { grid-template-columns: repeat(2, 1fr); }
  .mg-hero h1 { font-size: 44px; }
  .mg-article-head h1 { font-size: 40px; }
}
/* Móvil */
@media (max-width: 767px) {
  body.mg-blog { font-size: 16.5px; padding-bottom: 66px; }
  .mg-header .mg-wrap { min-height: 60px; }
  .mg-logo img { height: 26px; }
  .mg-nav { gap: 16px; }
  .mg-nav a { font-size: 14px; }
  .mg-nav .mg-btn { display: none; }
  .mg-grid { grid-template-columns: 1fr; gap: 24px; }
  .mg-hero { padding: 44px 0 48px; }
  .mg-hero h1 { font-size: 36px; }
  .mg-hero p { font-size: 17px; }
  .mg-list { padding: 44px 0 56px; }
  .mg-article-head h1 { font-size: 32px; }
  .mg-content > p:first-child { font-size: 17.5px; }
  .mg-content h2 { font-size: 26px; margin-top: 36px; }
  .mg-content h3 { font-size: 21px; }
  .mg-figure { padding: 0; }
  .mg-cta { padding: 28px 22px 30px; margin-left: -20px; margin-right: -20px; }
  .mg-cta h2 { font-size: 26px; }
  .mg-related { padding: 44px 0 50px; }
  .mg-related > .mg-wrap > h2 { font-size: 28px; }
  .mg-callbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 99;
    padding: 10px;
    background: #000;
  }
  .mg-callbar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--mg-blue);
    color: #fff;
    min-height: 46px;
    font-family: "Cambay", sans-serif; font-weight: 700; font-size: 14px; text-transform: uppercase;
  }
  .mg-callbar a:hover { text-decoration: none; }
  .mg-callbar svg { width: 18px; height: 18px; fill: #fff; }
}

/* Precio de la línea 806 junto al número */
.mg-806 { white-space: normal; font-size: .92em; }
.mg-cta__price { font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.75); margin: 16px 0 0 !important; }
