/* =========================================================
   Gio Izq Nutrición — Blog
   Se carga DESPUÉS de /styles.css: reutiliza sus variables,
   tipografías, .nav, .menu, .btn, .eyebrow y .footer.
   ========================================================= */

.blog-main { padding-top: calc(var(--navh, 76px) + 48px); }

/* ---------- Portada del blog ---------- */
.blog-hero { padding: 40px 0 56px; background:
  radial-gradient(60% 80% at 85% 0%, rgba(207,232,169,.45), transparent 70%), var(--paper); }
.blog-hero .display { max-width: 15ch; }
.blog-hero__lead { max-width: 56ch; margin: 28px 0 0; font-size: clamp(17px, 1.4vw, 20px); color: rgba(10,15,12,.75); }

.posts { padding: 24px 0 120px; }
.posts__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }

.post-card {
  display: flex; flex-direction: column; gap: 18px; padding: 30px;
  background: var(--cream); border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(62,142,94,.35), 0 24px 48px -30px rgba(14,42,31,.45); }
.post-card--featured { background: var(--forest); color: var(--paper); box-shadow: none; }
.post-card--featured .post-card__meta { color: var(--sage); }
.post-card--featured .post-card__title em { color: var(--lime); }
.post-card--featured .tag { background: rgba(207,232,169,.16); color: var(--lime); }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13px; color: var(--moss); }
.post-card__title { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.post-card__title em { color: var(--leaf); }
.post-card__excerpt { margin: 0; opacity: .8; font-size: 16px; }
.post-card__more { margin-top: auto; font-weight: 600; font-size: 15px; }
.post-card__more i { font-style: normal; display: inline-block; transition: transform .4s var(--ease); }
.post-card:hover .post-card__more i { transform: translateX(4px); }

.tag { display: inline-flex; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em; background: rgba(62,142,94,.12); color: var(--moss); }

.posts__soon { margin-top: 40px; padding: 26px 30px; border-radius: var(--radius); border: 1px dashed rgba(14,42,31,.25); color: rgba(10,15,12,.7); font-size: 15px; }

/* ---------- Artículo ---------- */
.article-head { padding: 24px 0 48px; background:
  radial-gradient(55% 90% at 90% 0%, rgba(207,232,169,.5), transparent 70%), var(--paper); }
.crumbs { font-size: 14px; color: var(--moss); margin: 0 0 26px; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(28,70,50,.3); }
.article-head .display { font-size: clamp(36px, 5.4vw, 76px); max-width: 17ch; }
.article-head__lead { max-width: 60ch; margin: 28px 0 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: rgba(10,15,12,.78); }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 34px; font-size: 14px; }
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--sage); }
.byline b { display: block; font-size: 15px; }
.byline span { color: rgba(10,15,12,.65); }

.prose { max-width: 720px; margin: 0 auto; padding: 56px 0 40px; font-size: 18px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 42px); line-height: 1.1; letter-spacing: -.02em; margin: 2.2em 0 .2em; color: var(--forest); }
.prose h2 em { color: var(--leaf); }
.prose h3 { font-size: 19px; margin: 1.8em 0 0; color: var(--forest); }
.prose a:not(.btn) { color: var(--moss); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(62,142,94,.45); }
.prose a:not(.btn):hover { text-decoration-color: currentColor; }
.prose strong { color: var(--forest); }

/* Cifras clave */
.kfacts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 2em 0 !important; }
.kfact { padding: 22px 20px; border-radius: 22px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.kfact b { display: block; font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; letter-spacing: -.03em; color: var(--leaf); }
.kfact span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.45; color: rgba(10,15,12,.75); }
@media (max-width: 640px) { .kfacts { grid-template-columns: 1fr; } }

/* Tabla de certeza */
.evidence { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.evidence th { text-align: left; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--moss); font-weight: 600; padding: 0 12px 12px 0; border-bottom: 1px solid var(--line); }
.evidence td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.level { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.level::before { content: ""; width: 9px; height: 9px; border-radius: 50%; }
.level--alta::before { background: var(--leaf); }
.level--moderada::before { background: #C9A227; }
.level--baja::before { background: #C2553B; }
@media (max-width: 640px) {
  .evidence thead { display: none; }
  .evidence tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .evidence td { display: block; padding: 2px 0; border: 0; }
}

/* Pasos */
.tips { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.tips li { counter-increment: s; position: relative; padding: 24px 24px 24px 76px; border-radius: 22px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.tips li::before { content: counter(s); position: absolute; left: 22px; top: 20px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--lime); font-family: var(--serif); font-size: 19px; }
.tips h3 { margin: 0 0 6px; }
.tips p { margin: 0; font-size: 16.5px; }
.tips p + p { margin-top: .7em; }

.note { padding: 20px 24px; border-left: 3px solid var(--leaf); background: rgba(207,232,169,.28); border-radius: 0 16px 16px 0; font-size: 16px; }

/* Receta */
.recipe { margin: 2.4em 0 0 !important; padding: clamp(26px, 4vw, 44px); border-radius: var(--radius); background: var(--forest); color: var(--paper); }
.recipe .eyebrow { color: var(--sage); margin-bottom: 14px; }
.recipe h2 { color: var(--paper); margin: 0 0 .3em; }
.recipe h2 em { color: var(--lime); }
.recipe h3 { color: var(--lime); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }
.recipe strong { color: var(--paper); }
.recipe__facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.recipe__facts li { padding: 8px 14px; border-radius: 999px; background: rgba(207,232,169,.14); color: var(--lime); font-size: 14px; font-weight: 600; }
.recipe__cols { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px 40px; }
@media (max-width: 760px) { .recipe__cols { grid-template-columns: 1fr; } }
.recipe ul, .recipe ol { padding-left: 1.2em; font-size: 16.5px; }
.recipe li + li { margin-top: .45em; }
.recipe li::marker { color: var(--lime); }
.recipe__tip { margin-top: 1.4em; font-size: 15px; opacity: .85; }

/* Referencias */
.refs { font-size: 14.5px; line-height: 1.55; padding-left: 1.3em; color: rgba(10,15,12,.8); }
.refs li + li { margin-top: .7em; }
.refs a { word-break: break-word; }

/* Caja de autor y CTA */
.author { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; margin: 3em 0 0 !important; padding: 28px; border-radius: var(--radius); background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.author img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--sage); }
.author p { margin: 0; font-size: 16px; }
.author .author__name { font-family: var(--serif); font-size: 24px; color: var(--forest); }
.author .btn { margin-top: 16px; }
@media (max-width: 560px) { .author { grid-template-columns: 1fr; } }

.disclaimer { max-width: 720px; margin: 0 auto 100px; font-size: 13.5px; color: rgba(10,15,12,.6); }

/* La cabecera de la web usa .reveal con JS; en el blog se muestra siempre */
.blog .reveal { opacity: 1 !important; transform: none !important; }
@media (max-width: 640px) {
  .prose { padding-top: 8px; font-size: 17px; }
  .article-head { padding-bottom: 32px; }
}
@media (max-width: 640px) {
  .tips li { padding: 20px 18px 20px 62px; }
  .tips li::before { left: 16px; top: 18px; width: 34px; height: 34px; font-size: 17px; }
}

/* Ajuste: las etiquetas de la receta sin sangría */
.recipe .recipe__facts { padding: 0; }
