/* Global Trends Digest. Valores en docs/04-diseno.md. Solo tema claro. */
:root {
  color-scheme: light;
  --white: #ffffff;
  --ink: #1d1c1a;
  --text: #2b2a27;
  --muted: #5f5d57;
  --line: #e6e5e0;
  --surface: #f7f7f5;
  --accent: #4f6f58;
  --tint: #e9efe8;
  --pro: #2f6b3f;
  --con: #9b3a2f;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --ui: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--ui); font-size: 16px; line-height: 1.6 }
a { color: inherit }
img { max-width: 100%; height: auto; display: block }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 4px; z-index: 50 }
.skip:focus { left: 8px }

.in { max-width: var(--max); margin: 0 auto; padding-inline: 24px }
@media (max-width: 600px) { .in { padding-inline: 16px } }

/* Aviso de afiliado */
.disclosure { background: var(--tint); color: var(--ink); font-size: .82rem; text-align: center; padding: 9px 16px; margin: 0 }
.disclosure a { font-weight: 600 }
.disclosure-inline { font-size: .82rem; color: var(--muted); margin: -16px 0 24px }
.disclosure-inline a { color: var(--ink); font-weight: 600 }

/* Encabezado */
.hdr { border-bottom: 1px solid var(--line) }
.hdr .in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 68px }
.hdr nav { display: flex; gap: 22px; font-size: .9rem; flex-wrap: wrap; align-items: center }
.hdr nav a { text-decoration: none }
.hdr nav a:hover { text-decoration: underline; text-underline-offset: 4px }
.hdr .right { justify-content: flex-end }
.logo { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 1.85rem; line-height: 1; color: var(--ink); text-decoration: none; white-space: nowrap }
.icon-search { width: 20px; height: 20px; display: block }
@media (max-width: 700px) {
  .hdr .in { grid-template-columns: auto 1fr auto }
  .hdr nav.left a:not(:first-child), .hdr nav.right a:not(.icon) { display: none }
  .logo { font-size: 1.55rem; justify-self: center }
}

/* Piezas comunes */
.eyebrow { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 }
.h-sec { font-family: var(--display); font-weight: 400; color: var(--ink); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.05; margin: 4px 0 0; text-wrap: balance }
.h-sec em, .hero h1 em, .how .big em { font-style: italic }
.sec { padding-block: 72px }
.sec.flush { padding-top: 0 }
@media (max-width: 600px) { .sec { padding-block: 52px } }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; flex-wrap: wrap }
.more-link { font-size: .9rem; font-weight: 600; text-underline-offset: 4px }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: .92rem; text-decoration: none; transition: background-color .2s; white-space: nowrap; cursor: pointer }
.btn:hover { background: #3a3935 }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink) }
.btn.ghost:hover { background: var(--tint) }
.paid { font-size: .72rem; color: var(--muted) }
.meta { font-size: .82rem; color: var(--muted) }
.ph { background: var(--tint); color: var(--accent); display: grid; place-items: center; font-size: .78rem; letter-spacing: .04em; border-radius: 4px; max-width: 100%; text-align: center; padding: 8px }
.media { border-radius: 4px; overflow: hidden; background: var(--tint) }
.media img { width: 100%; height: 100%; object-fit: cover }

/* 1. Portada */
.hero .in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding-block: 64px }
@media (max-width: 860px) { .hero .in { grid-template-columns: 1fr; gap: 32px; padding-block: 40px } }
.hero h1 { font-family: var(--display); font-weight: 400; color: var(--ink); font-size: clamp(2.8rem, 6.5vw, 5rem); line-height: .98; letter-spacing: -.015em; margin: 14px 0 20px; text-wrap: balance }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 46ch; margin: 0 0 28px }
.hero .acts { display: flex; gap: 12px; flex-wrap: wrap }
.hero .ph, .hero .media { aspect-ratio: 5 / 4 }

/* 3. Más vendidos */
.trend { background: var(--surface) }
.prod-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0 }
@media (max-width: 1000px) { .prod-row { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 520px) { .prod-row { grid-template-columns: 1fr } }
.prod { background: var(--white); border-radius: 6px; padding: 16px; display: grid; gap: 12px; grid-template-rows: auto auto 1fr auto; min-width: 0 }
.prod .ph, .prod .media { aspect-ratio: 1 / 1 }
.prod h3 { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--ink) }
.prod h3 a { text-decoration: none }
.prod p { margin: 0; font-size: .9rem }
.prod .rate { display: flex; align-items: baseline; gap: 6px; font-size: .82rem; color: var(--muted) }
.prod .rate b { font-family: var(--display); font-weight: 400; font-size: 1.6rem; color: var(--ink); line-height: 1 }
.prod .acts { display: grid; gap: 8px }
.prod .buy { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px }
.prod .btn { min-height: 42px; padding: 0 14px; font-size: .86rem }

/* 4. Temas */
.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; list-style: none; margin: 0; padding: 0 }
.topic { background: var(--white); padding: 22px 20px; text-decoration: none; display: grid; gap: 4px; height: 100%; transition: background-color .2s }
.topic:hover { background: var(--tint) }
.topic b { font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; color: var(--ink) }
.topic span { font-size: .82rem; color: var(--muted) }

/* 5. Reseñas nuevas */
.lead-story { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); text-decoration: none }
@media (max-width: 860px) { .lead-story { grid-template-columns: 1fr; gap: 20px } }
.lead-story .ph, .lead-story .media { aspect-ratio: 16 / 10 }
.lead-story h3 { font-family: var(--display); font-weight: 400; color: var(--ink); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.03; margin: 10px 0 14px; text-wrap: balance }
.lead-story p { margin: 0 0 14px; color: var(--muted); font-size: 1.02rem }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; list-style: none; margin: 0; padding: 0 }
@media (max-width: 860px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 560px) { .grid3 { grid-template-columns: 1fr } }
.story { display: grid; gap: 10px; align-content: start; text-decoration: none; min-width: 0 }
.story .ph, .story .media { aspect-ratio: 4 / 3 }
.story h3 { font-family: var(--display); font-weight: 400; color: var(--ink); font-size: 1.7rem; line-height: 1.08; margin: 0; text-wrap: balance }
.story p { margin: 0; color: var(--muted); font-size: .92rem }
.story:hover h3, .lead-story:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px }

/* 6. Más leídas */
.mostread { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; list-style: none; margin: 0; padding: 0; counter-reset: r }
@media (max-width: 760px) { .mostread { grid-template-columns: 1fr } }
.mostread li { counter-increment: r; border-top: 1px solid var(--line) }
.mostread a { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px 0; text-decoration: none }
.mostread a::before { content: counter(r); font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--accent) }
.mostread b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.45rem; line-height: 1.12; color: var(--ink); margin-bottom: 4px }
.mostread a:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px }

/* 7. Los mejores */
.best { background: var(--tint) }
.best .in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start }
@media (max-width: 860px) { .best .in { grid-template-columns: 1fr; gap: 28px } }
.best p { max-width: 42ch; margin: 16px 0 0 }
.best ul { list-style: none; margin: 0; padding: 0 }
.best li a { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid rgba(29, 28, 26, .15); text-decoration: none }
.best li:first-child a { border-top: 1px solid rgba(29, 28, 26, .15) }
.best li b { font-family: var(--display); font-weight: 400; font-size: 1.55rem; line-height: 1.15; color: var(--ink) }
.best li a:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px }
.best li span { font-size: .82rem; color: var(--muted); white-space: nowrap }

/* 8. Cómo reseñamos */
.how .in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start }
@media (max-width: 860px) { .how .in { grid-template-columns: 1fr; gap: 28px } }
.how .big { font-family: var(--display); font-weight: 400; color: var(--ink); font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.02; margin: 12px 0 24px; text-wrap: balance }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); counter-increment: s }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; font-size: .8rem; font-weight: 600; color: var(--ink) }
.steps b { color: var(--ink) }

/* 9. Pie */
.ftr { background: var(--surface); border-top: 1px solid var(--line); padding-block: 56px 32px; font-size: .88rem }
.ftr .top { display: grid; grid-template-columns: 1.4fr repeat(auto-fit, minmax(140px, 1fr)); gap: 32px }
@media (max-width: 760px) { .ftr .top { grid-template-columns: 1fr 1fr } .ftr .top > div:first-child { grid-column: 1 / -1 } }
.ftr h2 { margin: 0 0 12px; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600 }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px }
.ftr ul a { text-decoration: none }
.ftr ul a:hover { text-decoration: underline }
.ftr .about { margin: 12px 0 0; max-width: 34ch; color: var(--muted) }
.ftr .fine { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; color: var(--muted); font-size: .8rem; display: grid; gap: 8px; max-width: 90ch }
.ftr .fine p { margin: 0 }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important } }

/* Páginas de texto (confianza, guías) */
.crumbs { font-size: .82rem; color: var(--muted); padding-block: 18px; margin: 0 }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px }
.crumbs li + li::before { content: "›"; margin-right: 6px }
.crumbs a { text-decoration: none }
.crumbs a:hover { text-decoration: underline }
.page-head { padding-block: 32px 40px; border-bottom: 1px solid var(--line); margin-bottom: 48px }
.page-head h1 { font-family: var(--display); font-weight: 400; color: var(--ink); font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; letter-spacing: -.015em; margin: 12px 0 18px; text-wrap: balance }
.page-head .lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; margin: 0 0 16px }
.prose { max-width: 68ch; font-size: 1.0625rem; line-height: 1.75; padding-bottom: 80px }
.prose h2 { font-family: var(--display); font-weight: 400; color: var(--ink); font-size: clamp(1.8rem, 3.2vw, 2.3rem); line-height: 1.08; margin: 48px 0 14px }
.prose h2:first-child { margin-top: 0 }
.prose p, .prose ul, .prose ol { margin: 0 0 16px }
.prose ul, .prose ol { padding-left: 1.3em }
.prose li { margin-bottom: 6px }
.prose a { color: var(--accent); text-underline-offset: 3px }
.prose strong { color: var(--ink) }
.callout { background: var(--tint); border-radius: 6px; padding: 18px 20px; margin: 0 0 24px; color: var(--ink) }
.callout p:last-child { margin-bottom: 0 }
.scale { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0 0 16px }
.scale th, .scale td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top }
.scale th { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600 }
.table-wrap { overflow-x: auto }

/* Cartel de cookies (solo Europa, ver assets/js/consent.js) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 560px; margin-inline: auto; background: var(--white); color: var(--text); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 24px rgb(29 28 26 / .12); padding: 16px 18px; display: grid; gap: 12px; font-size: .9rem }
.consent p { margin: 0 }
.consent a { color: var(--accent); text-underline-offset: 3px }
.consent-btns { display: flex; gap: 10px; justify-content: flex-end }
.consent .btn { min-height: 40px; padding: 0 20px; border: 0; font-family: inherit }

/* Reseña (layout aprobado en docs/04-diseno.md, maqueta layout-home-y-resena.html) */
.r-top { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; padding-bottom: 56px; border-bottom: 1px solid var(--line) }
@media (max-width: 900px) { .r-top { grid-template-columns: 1fr; gap: 32px } }
.r-top h1 { font-family: var(--display); font-weight: 400; color: var(--ink); font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -.015em; margin: 12px 0 22px; text-wrap: balance }
.verdict-text { font-size: 1.15rem; line-height: 1.6; margin: 0 0 22px; max-width: 56ch }
.verdict-text b { color: var(--ink) }
.byline { display: flex; gap: 12px; align-items: center; font-size: .85rem; color: var(--muted); flex-wrap: wrap }
.byline b { color: var(--ink); font-weight: 600 }
.method { font-size: .82rem; color: var(--muted); margin: 18px 0 0; max-width: 56ch }
.method a { color: var(--ink) }
.r-card { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: grid }
.r-card .photo { background: var(--tint); display: grid; place-items: center; aspect-ratio: 4 / 3 }
.r-card .photo img { max-width: 70%; max-height: 85%; width: auto; height: auto; object-fit: contain }
.r-card .body { padding: 20px; display: grid; gap: 16px }
.score { display: flex; align-items: baseline; gap: 8px }
.score strong { font-family: var(--display); font-weight: 400; font-size: 3.2rem; line-height: 1; color: var(--ink) }
.score span { color: var(--muted); font-size: .88rem }
.score a { margin-left: auto; font-size: .8rem; color: var(--muted) }
.bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden }
.bar i { display: block; height: 100%; background: var(--accent) }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: .85rem; margin: 0 }
.facts dt { color: var(--muted) }
.facts dd { margin: 0; color: var(--ink); font-weight: 500 }
.facts.subs { padding-bottom: 16px; border-bottom: 1px solid var(--line) }
.buybox { display: grid; gap: 6px; justify-items: center }
.buybox .btn { width: 100% }
.r-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding-block: 56px }
@media (max-width: 900px) { .r-body { grid-template-columns: 1fr; gap: 24px; padding-block: 32px } }
.toc { position: sticky; top: 24px; align-self: start; font-size: .86rem }
.toc h2 { margin: 0 0 10px; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600 }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line) }
.toc a { display: block; padding: 5px 0 5px 14px; text-decoration: none; color: var(--muted); margin-left: -1px; border-left: 2px solid transparent }
.toc a:hover { color: var(--ink); border-left-color: var(--accent) }
@media (max-width: 900px) {
  .toc { position: static; border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px }
  .toc ol { grid-template-columns: 1fr 1fr; border: 0 }
  .toc a { padding-left: 0; border: 0 }
}
.r-body .prose { padding-bottom: 0 }
.r-body .prose section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 16px }
.r-body .prose h2 { margin: 0 0 16px }
.ing { display: grid; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-top: 8px }
.ing div { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 16px; border-top: 1px solid var(--line); font-size: .92rem; line-height: 1.55 }
.ing div:first-child { border-top: 0 }
.ing b { color: var(--ink) }
.ing small { grid-column: 1 / -1; color: var(--muted); font-size: .85rem }
.ev { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; align-self: start; white-space: nowrap }
.ev.good, .ev.mod { background: var(--tint); color: var(--accent) }
.ev.low { background: #f4ebe4; color: #7a4a2a }
.checked { font-size: .82rem; color: var(--muted); border-left: 2px solid var(--accent); padding-left: 12px }
.mid-cta { margin-top: 24px; border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; display: grid; grid-template-columns: 1fr minmax(220px, auto); gap: 16px; align-items: center }
.mid-cta p { margin: 0; font-size: .9rem; color: var(--muted) }
@media (max-width: 640px) { .mid-cta { grid-template-columns: 1fr } }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
@media (max-width: 560px) { .pc { grid-template-columns: 1fr } }
.pc > div { border: 1px solid var(--line); border-radius: 6px; padding: 18px }
.pc h3 { margin: 0 0 10px; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600 }
.pc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .95rem }
.pc li { display: flex; gap: 10px }
.pc .p h3, .pc .p li::before { color: var(--pro) }
.pc .c h3, .pc .c li::before { color: var(--con) }
.pc .p li::before { content: "+"; font-weight: 600 }
.pc .c li::before { content: "\2013"; font-weight: 600 }
.alts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px }
@media (max-width: 640px) { .alts { grid-template-columns: 1fr } }
.alts a { border: 1px solid var(--line); border-radius: 6px; padding: 16px; text-decoration: none; color: var(--text); display: grid; gap: 6px }
.alts a:hover { border-color: var(--ink) }
.alts b { font-family: var(--display); font-weight: 400; font-size: 1.35rem; line-height: 1.1; color: var(--ink) }
.alts span { font-size: .8rem; color: var(--muted) }
details { border-top: 1px solid var(--line) }
details:last-of-type { border-bottom: 1px solid var(--line) }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px }
summary::-webkit-details-marker { display: none }
summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; line-height: 1 }
details[open] summary::after { content: "\2013" }
details p { margin: 0 0 16px }
.sources { font-size: .88rem; padding-left: 1.2em; display: grid; gap: 6px; margin: 0 }
.sources li:target { background: var(--tint) }
.final { background: var(--tint); border-radius: 6px; padding: 28px; display: grid; grid-template-columns: 1fr minmax(240px, auto); gap: 20px; align-items: center }
@media (max-width: 640px) { .final { grid-template-columns: 1fr } }
.r-body .prose .final h2 { font-size: 1.9rem; margin: 0 0 6px }
.final p { margin: 0 }
.mbar { display: none }
@media (max-width: 700px) {
  .mbar { display: flex; position: sticky; bottom: 0; background: var(--white); border-top: 1px solid var(--line); margin-inline: -24px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); gap: 12px; align-items: center; justify-content: space-between; z-index: 10; font-size: .85rem }
  .mbar .buybox { grid-auto-flow: column; align-items: center; gap: 8px }
  .mbar .btn { min-height: 42px; width: auto }
}
.draft-note { background: #fff4d6; border: 1px solid #e8c766; border-radius: 6px; padding: 14px 18px; margin: 0 0 24px; font-size: .88rem; color: var(--ink) }
.draft-note ul { margin: 6px 0 0; padding-left: 1.2em }

/* Página de tema */
.topic-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; padding-bottom: 80px }
.story { display: grid; gap: 8px; align-content: start; text-decoration: none; color: var(--text); border-top: 1px solid var(--line); padding-top: 18px }
.story h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; color: var(--ink); margin: 0 }
.story p { margin: 0; color: var(--muted); font-size: .95rem }
.story:hover h3 { text-decoration: underline; text-underline-offset: 3px }

/* Bloques de venta de la reseña: lista con ticks, foto al lado, galería, comparación y paquetes */
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: 1rem }
.ticks li { display: flex; gap: 10px; color: var(--ink) }
.ticks li::before { content: "\2713"; color: var(--accent); font-weight: 600 }
.deal { margin: 0; font-size: .85rem; background: var(--tint); color: var(--ink); border-radius: 4px; padding: 10px 12px }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 28px; align-items: center }
.split figure { margin: 0; border-radius: 6px; overflow: hidden; background: var(--tint) }
.split img { display: block; width: 100%; height: auto }
@media (max-width: 640px) { .split { grid-template-columns: 1fr } .split figure { max-width: 320px } }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
.gallery figure { margin: 0 }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--tint) }
.gallery figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; line-height: 1.4 }
.compare { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 0 0 8px }
.compare th, .compare td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top }
.compare thead th { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600 }
.compare thead th:nth-child(2), .compare td:nth-child(2) { background: var(--tint); color: var(--ink); font-weight: 600 }
.compare tbody th { font-weight: 500; color: var(--ink) }
.compare .yes { color: var(--pro) }
.compare .no { color: var(--con) }
.pkgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px }
@media (max-width: 760px) { .pkgs { grid-template-columns: 1fr } }
.pkg { position: relative; border: 1px solid var(--line); border-radius: 6px; padding: 22px 18px 18px; display: grid; gap: 8px; align-content: start }
.pkg.best { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink) }
.pkg h3 { margin: 0; font-size: 1rem; font-weight: 600; color: var(--ink) }
.pkg p { margin: 0; font-size: .88rem; color: var(--muted) }
.pkg .price b { font-family: var(--display); font-weight: 400; font-size: 2.2rem; line-height: 1; color: var(--ink) }
.pkg .buybox { margin-top: 8px }
.badge { position: absolute; top: -11px; left: 18px; background: var(--ink); color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px }
.prose a.btn { color: #fff; text-decoration: none }
.pkg { display: flex; flex-direction: column }
.pkg .buybox { margin-top: auto; padding-top: 8px }

/* Botones de compra: nunca se salen de su caja, en ningún tamaño de pantalla */
.buybox { width: 100%; min-width: 0 }
.buybox .btn { width: 100%; max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; min-height: 48px; padding: 12px 20px }
.r-card, .r-card .body, .pkg, .mid-cta > *, .final > * { min-width: 0 }
.byline a { color: inherit; text-decoration: none }
.byline a:hover b { text-decoration: underline }
@media (max-width: 700px) {
  .mbar .buybox { width: auto; flex: none }
  .mbar .btn { width: auto; min-height: 42px; padding: 8px 18px }
}
@media (max-width: 900px) {
  .r-body, .r-top { grid-template-columns: minmax(0, 1fr) }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (max-width: 380px) { .toc ol { grid-template-columns: minmax(0, 1fr) } }
@media (max-width: 600px) { .mbar { margin-inline: -16px } }
.compare { min-width: 460px }
@media (min-width: 601px) and (max-width: 900px) {
  .r-card { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) }
  .r-card .photo { aspect-ratio: auto; height: 100% }
}

/* Ficha de la reseña: la columna nunca se agranda por el tamaño de la foto */
.r-card { grid-template-columns: minmax(0, 1fr) }
.r-card .photo { overflow: hidden }

/* Botones amarillos en todo el sitio (Pablo, 13/10/2026). Texto oscuro: con blanco no se lee sobre amarillo. */
:root { --buy: #ffd814; --buy-hover: #f7ca00; --buy-text: #0f1111 }
.btn, .prose a.btn { background: var(--buy); color: var(--buy-text); box-shadow: inset 0 -1px 0 rgb(0 0 0 / .12) }
.btn:hover, .prose a.btn:hover { background: var(--buy-hover) }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink) }
.btn.ghost:hover { background: var(--tint) }
.badge { background: var(--buy); color: var(--buy-text) }
.pkg.best { border-color: var(--buy-hover); box-shadow: inset 0 0 0 1px var(--buy-hover) }

/* Tarjetas con foto del producto (home, temas, todas las reseñas) */
.media img { display: block; width: 100%; height: 100%; object-fit: contain }
.prod .media, .story .media { aspect-ratio: 1 / 1; padding: 8px }
.lead-story .media { padding: 12px }
.prod .buybox .btn, .prod .btn.ghost { width: 100% }
.topics-page { margin-bottom: 80px }
.hero-photo img { object-fit: cover }
.pkg img { display: block; width: 100%; height: 140px; object-fit: contain; margin-bottom: 4px }
.prose figure.wide { margin: 16px 0 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden }
.prose figure.wide img { display: block; width: 100%; height: auto }
