/* Guías SetCell — mismos tokens que la landing (index.html) */
:root {
  --pink: #f29ec2;
  --pink-dark: #e07ba8;
  --pink-xdark: #c45e8e;
  --pink-light: #fdf2f8;
  --pink-mid: #fae0ef;
  --black: #111111;
  --text: #333333;
  --text-mid: #666666;
  --border: #e8e8e8;
  --white: #ffffff;
  --wa: #25D366;
  --wa-text: #0b7a53;
  --wa-light: #e7f9ef;
  --wa-mid: #bfe9d1;
  --radius: 16px;
  --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container.angosto { max-width: 760px; }
.container.ancho { max-width: 1000px; }

/* ── NAV ── */
.nav { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 6px; }
.logo svg { width: 26px; height: 28px; color: var(--pink); }
.logo-text { font-size: 1.2rem; font-weight: 800; color: var(--pink); letter-spacing: -0.3px; }
.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; transition: color .2s; }
.nav-links a:hover, .nav-links a.activo { color: var(--pink-xdark); }
.nav-cta {
  display: flex; align-items: center; gap: 7px; background: var(--wa); color: var(--white);
  font-size: 0.8rem; font-weight: 700; padding: 10px 18px; border-radius: 40px; transition: background .2s;
}
.nav-cta svg { width: 15px; height: 15px; }
.nav-cta:hover { background: #1db954; }

/* ── COMUNES ── */
.migas { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.75rem; font-weight: 600; color: var(--text-mid); margin-bottom: 22px; }
.migas a:hover { color: var(--pink-xdark); text-decoration: underline; }
.eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--pink-xdark); margin-bottom: 10px; }
.bajada { font-size: 1.1rem; color: var(--text-mid); font-weight: 500; line-height: 1.6; }
.meta { font-size: 0.82rem; color: var(--text-mid); font-weight: 500; }
.meta a { color: var(--black); font-weight: 700; border-bottom: 1px solid var(--pink); }

/* ── NOTA ── */
.nota > .container:first-child { padding-top: 28px; }
.nota-header { padding: 12px 0 28px; }
.nota-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.18; font-weight: 800; color: var(--black); letter-spacing: -0.5px; margin-bottom: 16px; }
.nota-header .bajada { margin-bottom: 22px; }
.nota-header .meta + .meta { margin-top: 4px; }

.portada { margin-bottom: 36px; }
.portada img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: var(--radius); background: var(--pink-light); }
.portada figcaption { font-size: 0.75rem; color: var(--text-mid); margin-top: 8px; }

.resumen { background: var(--pink-light); border: 1px solid var(--pink-mid); border-left: 4px solid var(--pink); border-radius: var(--radius-sm); padding: 22px 24px; margin-bottom: 28px; }
.resumen h2 { font-size: 0.78rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--pink-xdark); margin-bottom: 10px; }
.resumen ul { padding-left: 18px; display: grid; gap: 8px; }
.resumen li { font-size: 0.98rem; color: var(--black); font-weight: 500; line-height: 1.6; }

.indice { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px 24px; margin-bottom: 36px; }
.indice h2 { font-size: 0.78rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-mid); margin-bottom: 10px; }
.indice ol { padding-left: 20px; display: grid; gap: 4px; }
.indice a { font-size: 0.92rem; font-weight: 600; color: var(--black); }
.indice a:hover { color: var(--pink-xdark); text-decoration: underline; }

.prosa { font-size: 1.04rem; line-height: 1.8; color: var(--text); }
.prosa > * + * { margin-top: 1.1em; }
.prosa h2 { font-size: 1.55rem; line-height: 1.25; font-weight: 800; color: var(--black); margin-top: 2em; letter-spacing: -0.3px; }
.prosa h3 { font-size: 1.15rem; line-height: 1.35; font-weight: 700; color: var(--black); margin-top: 1.6em; }
.prosa h2 + p, .prosa h3 + p { margin-top: 0.6em; }
.prosa ul, .prosa ol { padding-left: 1.3em; }
.prosa li + li { margin-top: 0.45em; }
.prosa strong { color: var(--black); font-weight: 700; }
.prosa a { color: var(--pink-xdark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prosa a:hover { color: var(--black); }
.nota-precio { font-size: 0.85rem !important; color: var(--text-mid); background: #fafafa; border-radius: var(--radius-sm); padding: 12px 16px; }

.tabla-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.prosa table { width: 100%; border-collapse: collapse; font-size: 0.92rem; line-height: 1.5; }
.prosa th { text-align: left; background: var(--pink-light); color: var(--black); font-weight: 700; padding: 11px 14px; white-space: nowrap; }
.prosa td { padding: 11px 14px; border-top: 1px solid var(--border); vertical-align: top; }
.prosa td:first-child { font-weight: 600; color: var(--black); white-space: nowrap; }
.px { font-weight: 800; color: var(--black); white-space: nowrap; }

.cta-wa { background: var(--wa-light); border: 1px solid var(--wa-mid); border-radius: var(--radius); padding: 26px; margin-top: 2.2em !important; text-align: center; }
.cta-tit { font-size: 1.15rem; font-weight: 800; color: var(--black); }
.cta-sub { font-size: 0.86rem; color: var(--text-mid); margin: 6px auto 18px !important; max-width: 480px; line-height: 1.55; }
.btn-wa, .prosa .btn-wa {
  display: inline-flex; align-items: center; gap: 9px; background: var(--wa); color: var(--white);
  font-weight: 700; font-size: 0.95rem; padding: 14px 28px; border-radius: 40px; text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.28); transition: background .2s, transform .15s;
}
.btn-wa svg { width: 18px; height: 18px; }
.btn-wa:hover, .prosa .btn-wa:hover { background: #1db954; color: var(--white); transform: translateY(-2px); }

.faq { margin-top: 56px; }
.faq h2, .fuentes h2 { font-size: 1.55rem; font-weight: 800; color: var(--black); margin-bottom: 16px; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--black); font-size: 1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--pink-xdark); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 10px; font-size: 0.97rem; line-height: 1.7; }

.fuentes { margin-top: 48px; font-size: 0.88rem; }
.fuentes p { color: var(--text-mid); margin-bottom: 10px; }
.fuentes ol { padding-left: 20px; display: grid; gap: 6px; }
.fuentes a { color: var(--black); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

.autor-box { display: flex; gap: 18px; margin-top: 48px; padding: 24px; border-radius: var(--radius); background: #fafafa; border: 1px solid var(--border); }
.autor-ico { flex: 0 0 56px; height: 56px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; }
.autor-ico svg { width: 22px; height: 26px; color: var(--white); }
.autor-nom { font-weight: 800; color: var(--black); }
.autor-nom a { border-bottom: 2px solid var(--pink); }
.autor-rol { font-size: 0.8rem; font-weight: 600; color: var(--pink-xdark); margin-bottom: 8px; }
.autor-bio { font-size: 0.9rem; line-height: 1.65; }

.relacionadas { background: var(--pink-light); margin-top: 64px; padding: 56px 0 64px; }
.relacionadas h2 { font-size: 1.5rem; font-weight: 800; color: var(--black); margin-bottom: 24px; }

/* ── TARJETAS ── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.07); }
.card-link { display: flex; flex-direction: column; height: 100%; }
.card img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; background: var(--pink-light); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-tit { font-size: 1.05rem; line-height: 1.35; font-weight: 800; color: var(--black); margin-bottom: 8px; }
.card-desc { font-size: 0.86rem; color: var(--text-mid); line-height: 1.55; margin-bottom: 14px; }
.card-meta { margin-top: auto; font-size: 0.74rem; font-weight: 600; color: var(--text-mid); }
.card-grande { margin-bottom: 28px; }
.card-grande .card-link { display: grid; grid-template-columns: 1.35fr 1fr; }
.card-grande .card-body { padding: 32px; justify-content: center; }
.card-grande .card-tit { font-size: 1.6rem; line-height: 1.22; }
.card-grande .card-desc { font-size: 0.98rem; }

/* ── LISTADO / AUTOR ── */
.listado-header { background: var(--pink-light); padding: 40px 0 44px; margin-bottom: 40px; }
.listado-header h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; font-weight: 800; color: var(--black); letter-spacing: -0.5px; margin-bottom: 14px; }
.listado-header .bajada { max-width: 680px; }
.listado-header .meta { margin-top: 14px; }
.listado > .container > h2 { font-size: 1.4rem; font-weight: 800; color: var(--black); margin: 8px 0 20px; }
.listado > .container > h2:not(:first-child) { margin-top: 48px; }
.listado-autores { margin: 40px 0 64px; font-size: 0.88rem; color: var(--text-mid); text-align: center; }
.listado-autores a { color: var(--black); font-weight: 700; border-bottom: 1px solid var(--pink); }
.listado > .container { padding-bottom: 64px; }
.temas { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 18px; }
.temas li { font-size: 0.75rem; font-weight: 700; background: var(--white); border: 1px solid var(--pink-mid); color: var(--pink-xdark); padding: 6px 12px; border-radius: 40px; }

/* ── FOOTER ── */
.footer { background: var(--pink); padding: 52px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1.4fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.25); margin-bottom: 28px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer .logo svg { color: var(--white); }
.footer .logo-text { color: var(--white); }
.footer-brand p { font-size: 0.82rem; color: rgba(255,255,255,0.85); line-height: 1.6; font-weight: 500; max-width: 260px; }
.footer-col h2 { font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col li { font-size: 0.85rem; color: var(--white); font-weight: 500; }
.footer-col a:hover { text-decoration: underline; }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.8); text-align: center; font-weight: 500; }

.float-wa { position: fixed; bottom: 24px; right: 24px; z-index: 200; width: 56px; height: 56px; background: var(--wa); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: transform .2s; }
.float-wa:hover { transform: scale(1.1); }
.float-wa svg { width: 26px; height: 26px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card-grande .card-link { grid-template-columns: 1fr; }
  .card-grande .card-body { padding: 22px; }
  .card-grande .card-tit { font-size: 1.3rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .nota > .container:first-child { padding-top: 18px; }
  .nota-header { padding: 6px 0 22px; }
  .bajada { font-size: 1rem; }
  .prosa { font-size: 1rem; }
  .prosa h2 { font-size: 1.32rem; }
  .portada { padding: 0; margin-bottom: 28px; }
  .portada img { border-radius: 0; }
  .portada figcaption { padding: 0 16px; }
  .resumen, .indice { padding: 18px; }
  .cta-wa { padding: 22px 18px; }
  .btn-wa { width: 100%; justify-content: center; padding: 14px 18px; }
  .autor-box { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .float-wa { bottom: 16px; right: 16px; }
}
