:root{
  --imc-red:#d72626;
  --imc-text:#1f2933;
  --imc-muted:#68717d;
  --imc-line:rgba(0,0,0,.10);
  --imc-soft:#f6f7f8;
}

*{
  box-sizing:border-box;
}

body.imc-blog-body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--imc-text);
  background:#fff;
}

.imc-blog-header{
  max-width:980px;
  margin:28px auto 0;
  padding:0 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.imc-blog-brand{
  font-size:14px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#111;
  text-decoration:none;
}

.imc-blog-brand::after{
  content:"";
  display:inline-block;
  width:8px;
  height:8px;
  margin-left:8px;
  border-radius:999px;
  background:var(--imc-red);
}

.imc-blog-home{
  font-size:13px;
  color:var(--imc-muted);
  text-decoration:none;
  border-bottom:1px dotted rgba(0,0,0,.25);
}

.imc-blog-main{
  max-width:980px;
  margin:42px auto 80px;
  padding:0 22px;
}

.imc-blog-hero{
  max-width:760px;
  margin-bottom:44px;
}

.imc-blog-kicker,
.imc-blog-card-kicker{
  margin:0 0 8px;
  font-size:12px;
  font-weight:750;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--imc-red);
}

.imc-blog-hero h1{
  margin:0 0 16px;
  font-size:42px;
  line-height:1.05;
  letter-spacing:-.035em;
}

.imc-blog-hero p{
  margin:0;
  max-width:720px;
  font-size:18px;
  line-height:1.55;
  color:var(--imc-muted);
}

.imc-blog-section{
  display:grid;
  gap:18px;
}

.imc-blog-section h2{
  margin:0 0 4px;
  font-size:22px;
  letter-spacing:-.02em;
}

.imc-blog-card{
  padding:22px 24px;
  border:1px solid var(--imc-line);
  border-radius:18px;
  background:#fff;
}

.imc-blog-card h3{
  margin:0 0 8px;
  font-size:22px;
  line-height:1.2;
  letter-spacing:-.02em;
}

.imc-blog-card h3 a{
  color:var(--imc-text);
  text-decoration:none;
}

.imc-blog-card h3 a:hover{
  color:#000;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:4px;
}

.imc-blog-card p:last-child{
  margin:0;
  font-size:15px;
  line-height:1.55;
  color:var(--imc-muted);
}

@media (max-width:700px){
  .imc-blog-header{
    align-items:flex-start;
    flex-direction:column;
  }

  .imc-blog-main{
    margin-top:34px;
  }

  .imc-blog-hero h1{
    font-size:32px;
  }

  .imc-blog-hero p{
    font-size:16px;
  }

  .imc-blog-card{
    padding:18px;
  }
}

/* Ajustes visuales post PDF */

.imc-blog-article strong{
  font-weight: 800;
  color: #111827;
}

.imc-blog-example{
  margin: 30px 0 34px;
  padding: 22px;
  border: 1px solid rgba(215,38,38,.20);
  border-radius: 20px;
  background: #fff7f7;
}

.imc-blog-example-title{
  margin: 0 0 16px !important;
  font-size: 12px !important;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--imc-red) !important;
}

.imc-blog-example-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.imc-blog-example-box{
  padding: 16px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: #fff;
}

.imc-blog-example-label{
  margin: 0 0 10px !important;
  font-size: 13px !important;
  font-weight: 800;
  color: #4b5563 !important;
}

.imc-blog-example pre{
  margin: 0;
  padding: 14px;
  border-radius: 12px;
  background: #f6f7f8;
  color: #111827;
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.imc-blog-cta{
  margin: 38px 0 28px;
  padding: 24px 26px;
  border-left: 4px solid var(--imc-red);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
}

.imc-blog-cta p{
  margin: 0 0 14px !important;
  font-size: 17px;
  line-height: 1.65;
  color: #24303d;
}

.imc-blog-cta p:last-child{
  margin-bottom: 0 !important;
}

@media (max-width:700px){
  .imc-blog-example-grid{
    grid-template-columns: 1fr;
  }
}