/* Blog: mismas fuentes, colores, menú y pie que el resto de aulink.app (../styles.css).
   Fondo con patrón geométrico oficial de Aulink (nodos y triángulos de la marca) y hoja editorial blanca. */
.blog-page {
  background-color: #edf2fa;
  background-image:
    radial-gradient(circle at 12% 0%, rgba(16, 185, 129, .10), transparent 36%),
    radial-gradient(circle at 88% 8%, rgba(30, 58, 138, .10), transparent 40%),
    url("/assets/patron-aulink.svg");
  background-size: auto, auto, 180px 156px;
  background-attachment: fixed, fixed, scroll;
}
.blog-page .link-login { color: var(--navy); }
.blog-head {
  width: var(--wrap);
  margin: 28px auto 0;
  padding: 40px 44px;
  border-radius: 24px;
  background: var(--navy);
  background-image:
    radial-gradient(circle at 92% 18%, rgba(16, 185, 129, .24), transparent 38%),
    linear-gradient(135deg, var(--navy) 0%, #15306b 100%);
  color: #dbe4f0;
  box-shadow: var(--shadow);
}
.blog-head h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.08; color: #fff; }
.blog-head > p { margin-top: 14px; max-width: 42rem; font-size: 1.08rem; color: #dbe4f0; }
.blog-head .kicker { background: rgba(128, 231, 193, .18); color: #80e7c1; }
.kicker { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); font-size: .8125rem; font-weight: 700; }

/* Índice */
.post-list { width: var(--wrap); margin: 36px auto 96px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; padding: 0; }
.post-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px; background: var(--white); border: 1px solid #d5deeb; border-radius: var(--r); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #b8c9e6; }
.post-card h2 { font-size: 1.3rem; line-height: 1.3; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* toda la tarjeta es el enlace */
.post-card p { font-size: .97rem; }
.post-meta { margin-top: auto; font-size: .8125rem; color: var(--muted); }

/* Artículo en hoja editorial blanca sobre el lienzo con patrón de Aulink */
.post {
  width: min(840px, 100% - 32px);
  margin: 28px auto 0;
  padding: 48px 56px 52px;
  background: var(--white);
  border: 1px solid #d5deeb;
  border-top: 5px solid var(--blue);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.crumbs { font-size: .875rem; color: var(--muted); }
.crumbs a { color: var(--blue); font-weight: 600; text-underline-offset: 3px; }
.post h1 { margin-top: 18px; font-size: clamp(2rem, 4vw, 2.85rem); line-height: 1.12; }
.post .lead { margin-top: 18px; font-size: 1.14rem; color: var(--ink); }
.post .post-meta { margin-top: 16px; }
.post-body { margin-top: 34px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 1.0625rem; line-height: 1.75; }
.post-body > * + * { margin-top: 18px; }
.post-body h2 { margin-top: 44px; font-size: 1.55rem; line-height: 1.25; }
.post-body h3 { margin-top: 28px; font-size: 1.2rem; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: 8px; }
.post-body a { color: var(--blue); text-underline-offset: 3px; }
.post-body strong { color: var(--ink); }
.post-body table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.post-body th, .post-body td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.post-body th { background: var(--navy); color: #fff; font-weight: 600; }
.note { padding: 18px 20px; border-left: 4px solid var(--green); background: var(--green-soft); border-radius: 0 12px 12px 0; color: var(--ink); }
.post-cta {
  margin: 52px 0 0;
  padding: 34px 36px;
  border-radius: var(--r);
  background: linear-gradient(135deg, var(--navy) 0%, #15306b 100%);
  color: #dbe4f0;
}
.post-cta h2 { color: #fff; font-size: 1.5rem; }
.post-cta p { margin-top: 10px; }
.post-cta .btn { margin-top: 22px; }
.more {
  width: min(840px, 100% - 32px);
  margin: 28px auto 88px;
  padding: 28px 36px;
  background: var(--white);
  border: 1px solid #d5deeb;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
.more h2 { font-size: 1.25rem; }
.more ul { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 10px; }
.more a { color: var(--blue); font-weight: 600; text-underline-offset: 3px; }

@media (max-width: 1100px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .blog-head { margin-top: 16px; padding: 28px 22px; border-radius: 18px; }
  .post-list { grid-template-columns: 1fr; gap: 16px; margin: 24px auto 72px; }
  .post-card { padding: 22px; }
  .post { padding: 28px 20px 32px; border-radius: 18px; }
  .post-cta { padding: 24px 20px; }
  .more { padding: 22px 20px; margin-bottom: 64px; }
  .post-body table { font-size: .875rem; }
  .post-body th, .post-body td { padding: 8px 10px; }
}
