/* ==========================================================
   Metabolismo40 — hoja de estilos principal
   ========================================================== */

:root {
  --bg: #FBF8F3;
  --surface: #FFFFFF;
  --ink: #1F2A24;
  --muted: #5B665F;
  --line: #E6E0D6;
  --brand: #2F5D4A;
  --brand-dark: #234738;
  --brand-soft: #E4EEE7;
  --accent: #C8693F;
  --accent-soft: #F6E3D8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 42, 36, .05), 0 8px 24px rgba(31, 42, 36, .06);
  --max: 1120px;
  --read: 720px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

[hidden] { display: none !important; }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--read); }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, .92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.35rem;
  color: var(--ink); text-decoration: none;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-body); font-size: .8rem; font-weight: 700;
}
.logo span.num { color: var(--accent); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.nav a[aria-current="page"] { background: var(--brand); color: #fff; }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; color: var(--ink);
}
.menu-toggle svg { margin: auto; }

@media (max-width: 820px) {
  .menu-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute; left: 0; right: 0; top: 68px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none; padding: 10px 20px 18px;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 12px 14px; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-ghost:hover { background: var(--brand-soft); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 em { font-style: italic; color: var(--brand); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }

@media (max-width: 820px) {
  .hero { padding: 44px 0 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { max-width: 360px; margin: 0 auto; }
}

/* ---------- Secciones ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { color: var(--muted); margin: 0; max-width: 560px; }

/* Pilares */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.pillar-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 14px;
}
.pillar h3 { font-size: 1.1rem; margin-bottom: 6px; }
.pillar p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Tarjetas de artículos ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(31,42,36,.06), 0 14px 32px rgba(31,42,36,.1); }
.card-media { aspect-ratio: 16 / 9; display: grid; place-items: center; }
.card-media.green { background: var(--brand-soft); color: var(--brand); }
.card-media.orange { background: var(--accent-soft); color: var(--accent); }
.card-media.sand { background: #EFE8DB; color: #8A6D3B; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.tag {
  align-self: flex-start; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  color: var(--brand); margin-bottom: 8px;
}
.tag.recetas { color: var(--accent); }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.card .meta { margin-top: auto; font-size: .85rem; color: var(--muted); }

/* Filtros del blog */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 8px 16px; border-radius: 999px; font: 500 .92rem var(--font-body); cursor: pointer;
}
.filter-btn[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Newsletter / CTA ---------- */
.cta {
  background: var(--brand); color: #fff; border-radius: 22px; padding: 44px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.82); margin: 0; }
.cta ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.cta li { display: flex; gap: 10px; align-items: flex-start; }
.cta li::before { content: "✓"; color: var(--accent-soft); font-weight: 700; }
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; padding: 30px 24px; } }

/* ---------- Página interior ---------- */
.page-head { padding: 56px 0 24px; }
.page-head p { color: var(--muted); font-size: 1.1rem; }

.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }

/* ---------- Artículo ---------- */
.article-head { padding: 48px 0 12px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .92rem; margin-top: 12px; }
.article-lead { font-size: 1.2rem; color: var(--muted); }

.prose { font-size: 1.07rem; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent);
  font-family: var(--font-head); font-size: 1.25rem; color: var(--ink);
}

.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--surface); }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

.box {
  border-radius: var(--radius); padding: 20px 22px; margin: 1.6em 0;
  background: var(--brand-soft); border: 1px solid #CFE0D5;
}
.box.warn { background: var(--accent-soft); border-color: #EDCDBB; }
.box strong:first-child { display: block; margin-bottom: 4px; font-family: var(--font-head); font-size: 1.05rem; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }

.toc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin: 1.4em 0 2em;
}
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { text-decoration: none; }

.sources { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 2.4em; padding-top: 1.2em; }
.sources h2 { font-size: 1.2rem; }
.sources ol { padding-left: 1.2em; }

.author-box {
  display: flex; gap: 16px; align-items: center; margin: 2.2em 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.author-avatar {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700;
}
.author-box p { margin: 0; font-size: .93rem; color: var(--muted); }
.author-box strong { color: var(--ink); }

.disclaimer { font-size: .88rem; color: var(--muted); font-style: italic; }

/* Receta */
.recipe-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 1.6em 0; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; }
.fact b { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--brand); }
.fact span { font-size: .82rem; color: var(--muted); }
@media (max-width: 560px) { .recipe-facts { grid-template-columns: repeat(2, 1fr); } }

.recipe-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 1.6em 0; }
.recipe-card h2 { margin-top: 0; }
.ingredients { list-style: none; padding: 0 !important; }
.ingredients li { padding: 8px 0 8px 30px; border-bottom: 1px dashed var(--line); position: relative; margin: 0 !important; }
.ingredients li::before {
  content: ""; position: absolute; left: 4px; top: 14px; width: 12px; height: 12px;
  border: 2px solid var(--brand); border-radius: 4px;
}
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 46px; margin-bottom: 16px !important; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}

/* ---------- Imágenes ---------- */
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.hero-photo { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; top: 18px; right: 18px; width: 84px; height: 84px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.hero-note {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: rgba(255,255,255,.94); border-radius: 14px; padding: 12px 16px; font-size: .9rem; color: var(--ink);
}
.hero-note b { color: var(--accent); }

.figure { margin: 1.8em 0; }
.figure img { width: 100%; height: auto; border-radius: var(--radius); background: var(--brand-soft); }
.figure figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.figure figcaption a { color: var(--muted); }
.article-cover { margin: 8px auto 0; }
.article-cover img { aspect-ratio: 16 / 9; object-fit: cover; }

.chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px 12px; }
.chart svg { width: 100%; height: auto; }
.chart .ax { font: 12px var(--font-body); fill: var(--muted); }

.about-photo img { aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Lectura en móvil ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60;
  background: var(--accent); transition: width .1s linear;
}

.quick {
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--brand);
  border-radius: var(--radius); padding: 18px 20px; margin: 1.4em 0;
}
.quick-title { display: block; font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 8px; }
.quick ul { margin: 0 !important; padding-left: 1.1em !important; }
.quick li { margin-bottom: .35em !important; }

details.toc summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.toc summary::-webkit-details-marker { display: none; }
details.toc summary::after { content: "▾"; color: var(--muted); transition: transform .2s; }
details.toc[open] summary::after { transform: rotate(180deg); }
details.toc ol { margin-top: 10px; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 1.6em 0; }
.share:empty { display: none; }
.share-label { font-size: .9rem; color: var(--muted); margin-right: 2px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 .9rem var(--font-body); text-decoration: none; cursor: pointer;
}
.share-btn:hover { border-color: var(--brand); color: var(--brand); }
.share-btn.wa { background: #1F9D55; border-color: #1F9D55; color: #fff; }
.share-btn.wa:hover { background: #17834A; color: #fff; }
.share-btn svg { width: 18px; height: 18px; }

.exercise { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 1em 0; }
.exercise h3 { margin: 0 0 6px !important; display: flex; gap: 10px; align-items: baseline; }
.exercise h3 .n { color: var(--accent); font-family: var(--font-body); font-weight: 700; }
.exercise .dose { display: inline-block; background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; font-size: .88rem; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.exercise p { margin-bottom: .5em; }
.exercise .var { font-size: .93rem; color: var(--muted); }

.myth { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 1.2em 0; background: var(--surface); }
.myth-q { background: var(--accent-soft); padding: 14px 18px; font-weight: 700; font-family: var(--font-head); font-size: 1.12rem; }
.myth-q::before { content: "Mito: "; color: var(--accent); }
.myth-a { padding: 14px 18px 4px; }
.myth-a strong:first-child { color: var(--brand); }

@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .article-head { padding-top: 24px; }
  .prose { font-size: 1.04rem; }
  .prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
  .article-lead { font-size: 1.08rem; }
  .figure { margin-left: -20px; margin-right: -20px; }
  .figure img { border-radius: 0; }
  .figure figcaption { padding: 0 20px; }
  .chart.figure { margin-left: 0; margin-right: 0; }
  .recipe-card { padding: 20px 18px; }
  .section { padding: 44px 0; }
  .share-btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Web dinámica ---------- */
html.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
html.js-reveal .reveal.in { opacity: 1; transform: none; }

.site-header { transition: transform .35s ease; }
.site-header.hide { transform: translateY(-100%); }

.kicker {
  display: block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}

/* Recomendación a mitad de artículo */
.inline-rec {
  margin: 2.2em 0; padding: 16px 18px 18px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line);
}
.mini { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); }
.mini img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; background: var(--brand-soft); }
.mini b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.06rem; line-height: 1.3; }
.mini small { display: block; margin-top: 4px; color: var(--muted); font-size: .84rem; }
.mini:hover b { color: var(--brand); }

/* Aviso flotante */
.rec-toast {
  position: fixed; left: 20px; bottom: 20px; z-index: 150; width: min(390px, calc(100% - 40px));
  background: var(--surface); border-radius: 16px; padding: 14px 44px 14px 14px;
  box-shadow: 0 2px 6px rgba(31,42,36,.08), 0 18px 48px rgba(31,42,36,.22);
  transform: translateY(calc(100% + 40px)); transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.rec-toast.show { transform: none; }
.rec-toast .kicker { margin-bottom: 8px; }
.rec-close {
  position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: none; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.rec-close:hover { background: var(--bg); color: var(--ink); }

/* "Más para ti" con formatos alternos */
.more-feed { padding: 0 0 64px; }
.more-feed h2 { border-top: 2px solid var(--ink); padding-top: 18px; }
.feed { display: grid; gap: 28px; }
.feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center;
}
.feature-media { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.feature:hover .feature-media img { transform: scale(1.04); }
.feature h3 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin: 6px 0 10px; }
.feature h3 a { color: var(--ink); text-decoration: none; }
.feature p { color: var(--muted); }
.feature .meta { font-size: .85rem; color: var(--muted); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact-card {
  background: var(--brand); color: #fff; border-radius: 20px; padding: 28px 30px;
}
.fact-card .kicker { color: var(--accent-soft); }
.fact-card p { font-family: var(--font-head); font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.35; margin-bottom: 14px; }
.fact-card a { color: #fff; font-weight: 600; font-size: .95rem; }
.feed-end { text-align: center; margin: 12px 0 0; }

/* Portada: ruta de lectura */
.path { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.path-step {
  position: relative; display: block; height: 100%; text-decoration: none; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.path-step img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.path-n {
  position: absolute; top: 12px; left: 12px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.path-text { display: block; padding: 16px 18px 20px; }
.path-text small { display: block; color: var(--accent); font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.path-text b { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; line-height: 1.3; }
.path-step:hover b { color: var(--brand); }

/* Portada: carrusel de recomendaciones */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 31%); gap: 20px; margin-top: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; -webkit-overflow-scrolling: touch;
}
.rail > .card { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }

/* Portada: últimos artículos en formato revista */
@media (min-width: 901px) {
  .cards--mag > .card:first-child { grid-column: span 2; grid-row: span 2; }
  .cards--mag > .card:first-child .card-media { aspect-ratio: auto; flex: 1; min-height: 320px; }
  .cards--mag > .card:first-child h3 { font-size: 1.7rem; }
  .cards--mag > .card:first-child p { font-size: 1.02rem; }
}

@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; gap: 14px; }
  .duo { grid-template-columns: 1fr; gap: 16px; }
  .path { grid-template-columns: 1fr; }
  .path-step { display: flex; align-items: center; }
  .path-step img { width: 110px; aspect-ratio: 1; flex: none; }
  .path-n { width: 32px; height: 32px; font-size: 1rem; top: 8px; left: 8px; }
  .path-text { padding: 12px 14px; }
  .rail { grid-auto-columns: 82%; margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; scroll-padding: 0 20px; }
  .rec-toast { left: 10px; right: 10px; bottom: 10px; width: auto; }
  .mini img { width: 84px; height: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header, .rec-toast, .feature-media img { transition: none; }
}

/* ---------- Boletín ---------- */
.newsletter { background: var(--accent-soft); border-top: 1px solid #EDCDBB; padding: 64px 0; margin-top: 40px; }
.newsletter + .site-footer { margin-top: 0; }
.newsletter-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.newsletter-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 14px; }
.newsletter-copy p { color: var(--muted); font-size: 1.05rem; }
.newsletter-perks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.newsletter-perks li { display: flex; gap: 10px; align-items: baseline; }
.newsletter-perks li::before { content: "✓"; color: var(--brand); font-weight: 700; }
.newsletter-form {
  background: var(--surface); border-radius: 20px; padding: 28px;
  box-shadow: 0 2px 6px rgba(31,42,36,.06), 0 18px 40px rgba(200,105,63,.14);
}
.newsletter-label { display: block; font-weight: 600; margin-bottom: 8px; }
.newsletter-row { display: flex; gap: 10px; }
.newsletter-row input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; font: 16px var(--font-body); color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px;
}
.newsletter-row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.newsletter-row .btn { background: var(--accent); color: #fff; border-radius: 12px; white-space: nowrap; min-height: 52px; }
.newsletter-row .btn:hover { background: #B35A33; }
.newsletter-row .btn:disabled { opacity: .7; cursor: wait; transform: none; }
.newsletter-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: .92rem; color: var(--muted); cursor: pointer; }
.newsletter-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.newsletter-legal { font-size: .76rem; line-height: 1.5; color: var(--muted); margin: 14px 0 0; }
.newsletter-msg { margin: 12px 0 0; font-weight: 500; color: var(--brand-dark); }
.newsletter-msg:empty { display: none; }
.newsletter-form.done .newsletter-row,
.newsletter-form.done .newsletter-check,
.newsletter-form.done .newsletter-label { display: none; }
.newsletter-form.done .newsletter-msg { margin-top: 0; font-size: 1.05rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 820px) {
  .newsletter { padding: 44px 0; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 24px; }
  .newsletter-form { padding: 22px 18px; }
  .newsletter-row { flex-direction: column; }
  .newsletter-row .btn { justify-content: center; }
}

/* Relacionados */
.related { padding: 48px 0 64px; }

/* ---------- Huecos de publicidad (AdSense) ---------- */
/* Vacíos e invisibles hasta que pegues el código de AdSense dentro. */
.ad-slot { margin: 2em 0; text-align: center; }
.ad-slot:empty { display: none; }

/* ---------- Pie ---------- */
.site-footer { background: #1C2A23; color: #C9D3CC; padding: 56px 0 28px; margin-top: 40px; font-size: .95rem; }
.site-footer a { color: #E4EEE7; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 720px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,.18); padding: 20px 22px;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { font-size: .92rem; color: var(--muted); margin-bottom: 14px; }
.cookie-banner strong { color: var(--ink); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; font-size: .9rem; }

/* ---------- Utilidades ---------- */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
