/* Luz en Números — hoja de estilos. Tipografías del sistema: sin descargas externas ni cookies de terceros. */
:root {
  --ink: #14263a;
  --ink-soft: #3f5266;
  --muted: #66778a;
  --paper: #f8f6f1;
  --surface: #ffffff;
  --line: #e2ddd2;
  --line-strong: #cfc8b9;
  --accent: #e8a317;
  --accent-ink: #7a5200;
  --brand: #1d4e73;
  --brand-ink: #ffffff;
  --link: #1d5f8c;
  --barato: #2f8a6b;
  --medio: #c9a032;
  --caro: #c2553f;
  --ok-bg: #e9f4ef;
  --warn-bg: #fdf3dc;
  --err-bg: #fbe9e5;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 38, 58, .06), 0 4px 16px rgba(20, 38, 58, .05);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8edf2;
    --ink-soft: #c2ccd6;
    --muted: #93a1b0;
    --paper: #0f1a25;
    --surface: #152433;
    --line: #253647;
    --line-strong: #34495d;
    --accent: #f0b43a;
    --accent-ink: #f6cf7a;
    --brand: #6fa8d6;
    --brand-ink: #0f1a25;
    --link: #8cc0ea;
    --barato: #4cae8b;
    --medio: #d8b24b;
    --caro: #de7560;
    --ok-bg: #16322a;
    --warn-bg: #3a2f14;
    --err-bg: #3b1f1a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3 { line-height: 1.2; color: var(--ink); text-wrap: balance; }
h1 { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.6rem); margin: .2em 0 .4em; letter-spacing: -.01em; }
h2 { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin: 2em 0 .6em; }
h3 { font-size: 1.1rem; margin: 1.6em 0 .4em; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* Cabecera */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; }
.brand span b { color: var(--accent-ink); font-weight: 700; }
.nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink-soft); padding: .45rem .7rem; border-radius: 8px; font-size: .95rem; }
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper); font-weight: 600; }

main { padding: 1.5rem 0 3rem; }

/* Portada */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; padding: 1.5rem 0 1rem; }
.hero .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.hero-art { justify-self: end; width: 100%; max-width: 420px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--accent-ink); margin: 0; }

.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0; }
.tool { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.3rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s; }
.tool:hover { border-color: var(--brand); }
.tool h3 { margin: .4rem 0 .3rem; font-size: 1.2rem; }
.tool p { color: var(--ink-soft); margin: 0; }
.tool .go { display: inline-block; margin-top: .8rem; color: var(--link); font-weight: 600; }
.tool svg.icon { width: 40px; height: 40px; }

.today-strip { display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: baseline; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1rem 0; }
.today-strip strong { font-size: 1.15rem; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1rem; }
.principles div { border-top: 2px solid var(--ink); padding-top: .6rem; }
.principles h3 { margin-top: 0; }
.principles p { color: var(--ink-soft); font-size: .97rem; }

/* Tarjetas de cifras */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin: 1rem 0 1.5rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.stat .label { font-size: .82rem; color: var(--muted); display: block; }
.stat .value { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; display: block; margin-top: .15rem; }
.stat .sub { font-size: .85rem; color: var(--ink-soft); }
.stat.highlight { border-color: var(--barato); box-shadow: inset 0 0 0 1px var(--barato); }

/* Pestañas hoy/mañana */
.tabs { display: flex; gap: .4rem; margin: .5rem 0 1rem; }
.tabs a { padding: .45rem .9rem; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-size: .95rem; background: var(--surface); }
.tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 600; }

/* Gráfico */
.chart-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1rem .5rem; box-shadow: var(--shadow); }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis-label { fill: var(--muted); font-size: 12px; font-family: var(--sans); }
.chart .bar.barato { fill: var(--barato); }
.chart .bar.medio { fill: var(--medio); }
.chart .bar.caro { fill: var(--caro); }
.chart .bar.current { stroke: var(--ink); stroke-width: 2; }
.chart .now-label { fill: var(--ink); font-size: 12px; font-weight: 700; font-family: var(--sans); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .88rem; color: var(--ink-soft); margin: .5rem 0 .25rem; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: .4rem; }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.swatch.barato { background: var(--barato); }
.swatch.medio { background: var(--medio); }
.swatch.caro { background: var(--caro); }

/* Tablas */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { padding: .5rem .75rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: .82rem; color: var(--muted); font-weight: 600; background: var(--paper); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
tr.current td { background: var(--warn-bg); font-weight: 600; }
.tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; }
details.hours > summary { cursor: pointer; font-weight: 600; margin: 1rem 0 .5rem; }

/* Avisos */
.notice { border-radius: var(--radius); padding: .9rem 1.1rem; margin: 1rem 0; border: 1px solid var(--line); }
.notice.ok { background: var(--ok-bg); }
.notice.warn { background: var(--warn-bg); }
.notice.err { background: var(--err-bg); }
.notice p:last-child { margin-bottom: 0; }

/* Formulario */
.calc { display: grid; grid-template-columns: 380px 1fr; gap: 1.5rem; align-items: start; }
/* Los hijos de la rejilla no deben ensancharse por un desplegable largo o un gráfico desplazable. */
.calc > *, .row2 > * { min-width: 0; }
select { max-width: 100%; text-overflow: ellipsis; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
fieldset { border: 0; margin: 0 0 1rem; padding: 0; min-width: 0; }
legend { font-weight: 700; font-size: .95rem; margin-bottom: .4rem; padding: 0; }
.field { margin-bottom: .8rem; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .2rem; }
.field .hint { display: block; font-size: .8rem; color: var(--muted); margin-top: .2rem; line-height: 1.4; }
.field .error { display: block; font-size: .85rem; color: var(--caro); margin-top: .2rem; font-weight: 600; }
input[type="text"], select {
  width: 100%; font: inherit; font-size: 1rem; padding: .5rem .6rem; border: 1px solid var(--line-strong);
  border-radius: 8px; background: var(--surface); color: var(--ink);
}
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--caro); box-shadow: 0 0 0 1px var(--caro); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
details.advanced > summary { cursor: pointer; font-weight: 700; font-size: .95rem; margin: .4rem 0 .8rem; }
.btn { display: inline-block; font: inherit; font-weight: 700; background: var(--brand); color: var(--brand-ink); border: 0; padding: .7rem 1.2rem; border-radius: 8px; cursor: pointer; width: 100%; }
.btn:hover { filter: brightness(1.08); }

.method { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.3rem; margin-top: 1.5rem; }
.method h2 { margin-top: .5rem; }
.sources { font-size: .92rem; }
.sources li { margin-bottom: .35rem; }
.byline { font-size: .9rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: .8rem; margin-bottom: 1.2rem; }

.prose { max-width: 760px; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.placeholder { background: var(--warn-bg); padding: 0 .3rem; border-radius: 4px; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 2rem 0; font-size: .9rem; color: var(--ink-soft); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; }
.site-footer h2 { font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .5rem; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .3rem; }
.site-footer a { color: var(--ink-soft); }

@media (max-width: 860px) {
  .tools { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { justify-self: start; max-width: 320px; }
  .calc { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .tools { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .site-header .wrap { padding-top: .5rem; padding-bottom: .5rem; }
  .nav { width: 100%; }
  .nav a { padding: .4rem .55rem; font-size: .9rem; }
  .stat .value { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.small-top { margin-top: 0; }
.chart .zero { stroke: var(--ink); stroke-width: 1.5; }

.calc .stats { grid-template-columns: repeat(2, 1fr); }
.scroll-hint { display: none; margin: 0 0 .4rem; }
@media (max-width: 600px) {
  .chart-card { overflow-x: auto; }
  .chart { min-width: 560px; }
  .scroll-hint { display: block; }
}
.prose th, .prose td { white-space: normal; vertical-align: top; min-width: 7rem; }
.prose .table-wrap { margin-bottom: 1.2rem; }

/* Guías */
.lead-text { font-size: 1.12rem; color: var(--ink-soft); max-width: 42em; }
.article-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1rem 0; }
.article-card { display: flex; flex-direction: column; gap: .35rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s; }
.article-card:hover { border-color: var(--brand); }
.article-card h3 { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.article-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.crumbs { color: var(--muted); margin-bottom: .5rem; }
.crumbs a { color: var(--muted); }
.article-body h2 { scroll-margin-top: 1rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.2rem; margin: 1.2rem 0 1.5rem; }
.toc-title { font-weight: 700; margin: 0 0 .3rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: .2rem; }
.example { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: .9rem 1.2rem; margin: 1rem 0; }
.example p:last-child { margin-bottom: 0; }
.tool-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; background: var(--ok-bg); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 2rem 0 1rem; }
.tool-cta p { margin: 0; }
.btn-inline { width: auto; text-decoration: none; }
@media (max-width: 860px) { .article-list { grid-template-columns: 1fr; } }

/* Calculadora de consumo */
.consumo-form { margin: 1rem 0 1.5rem; }
.appl-head, .appl-row { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr 7.5rem; gap: .6rem; align-items: start; }
.appl-head { font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: .3rem; }
.appl-row { margin-bottom: .55rem; }
.appl-row .mlabel { display: none; font-size: .8rem; font-weight: 600; margin-bottom: .15rem; }
.appl-row .error { display: block; font-size: .8rem; color: var(--caro); font-weight: 600; margin-top: .15rem; }
.appl-row .check { padding-top: .55rem; font-size: .9rem; }
.appl-row .check label { display: flex; gap: .35rem; align-items: center; cursor: pointer; }
.price-row { margin-top: 1rem; align-items: end; }
.submit-field .btn { margin-top: 0; }
.chart .bar-name { fill: var(--ink); }
@media (max-width: 860px) {
  .appl-head { display: none; }
  .appl-row { grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem; }
  .appl-row > div:first-child { grid-column: 1 / -1; }
  .appl-row .mlabel { display: block; }
  .price-row { grid-template-columns: 1fr; }
}
.chart.hbars { max-width: 640px; }
.chart.hbars .bar.medio { fill: var(--brand); }
@media (max-width: 600px) { .chart.hbars { min-width: 0; } }

/* ===== Portada ===== */
.home { padding-top: 0; }
.hero-band {
  background: radial-gradient(circle at 85% 10%, rgba(232, 163, 23, .28), transparent 42%),
              linear-gradient(135deg, #102a41 0%, #1d4e73 60%, #1f6a86 100%);
  color: #fff; padding: 3rem 0 3.5rem; margin-bottom: 1rem;
}
.hero2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; }
.hero-copy h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.08; margin: .6rem 0 1rem; }
.hero-copy .hl { color: #f5c04a; }
.pill { display: inline-block; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; margin: 0; }
.hero-lead { font-size: 1.15rem; color: #d7e4ee; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0 1rem; }
.btn-accent { background: #e8a317; color: #14263a; width: auto; text-decoration: none; padding: .8rem 1.3rem; font-size: 1.02rem; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); width: auto; text-decoration: none; padding: .75rem 1.2rem; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.hero-facts { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; list-style: none; padding: 0; margin: 0; color: #c3d5e3; font-size: .92rem; }
.hero-facts li::before { content: "✓ "; color: #f5c04a; font-weight: 700; }

.live-card { background: var(--surface); color: var(--ink); border-radius: 16px; padding: 1.2rem 1.3rem 1rem; box-shadow: 0 20px 50px rgba(5, 20, 35, .35); }
.live-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .92rem; color: var(--ink-soft); font-weight: 600; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--barato); box-shadow: 0 0 0 4px rgba(47, 138, 107, .2); }
.tier-chip { margin-left: auto; font-size: .78rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; color: #fff; }
.tier-chip.barato { background: var(--barato); }
.tier-chip.medio { background: var(--medio); color: #14263a; }
.tier-chip.caro { background: var(--caro); }
.live-price { margin: .3rem 0 0; }
.live-price strong { font-size: clamp(2.2rem, 5vw, 3rem); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.live-sub { margin: 0 0 .6rem; color: var(--muted); font-size: .9rem; }
.chart.mini { margin: .2rem 0 .4rem; }
.chart.mini .axis-label { font-size: 22px; }
.live-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.live-stats span { display: block; font-size: .78rem; color: var(--muted); }
.live-stats strong { font-size: .98rem; font-variant-numeric: tabular-nums; }
.live-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: .8rem; font-size: .93rem; }

.home-section { margin: 3.2rem 0; }
.section-title { margin-top: .2rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.tools-big .tool { padding: 1.4rem; border-top: 4px solid var(--brand); }
.tools-big .tool-precio { border-top-color: var(--caro); }
.tools-big .tool-consumo { border-top-color: var(--barato); }
.tools-big .tool-solar { border-top-color: var(--accent); }
.tools-big .tool:hover { transform: translateY(-2px); transition: transform .15s; }
.tools-big .icon { width: 48px; height: 48px; }

.steps { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: none; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.steps h3 { margin: .6rem 0 .3rem; }
.steps p { margin: 0; color: var(--ink-soft); }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 700; }

.article-card .go { margin-top: auto; color: var(--link); font-weight: 600; font-size: .93rem; padding-top: .4rem; }

.trust { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem; }
.trust .principles { grid-template-columns: 1fr; margin-top: 0; }
.source-chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.source-chips a { display: inline-block; border: 1px solid var(--line-strong); border-radius: 999px; padding: .3rem .8rem; font-size: .9rem; text-decoration: none; color: var(--ink); background: var(--paper); }
.source-chips a:hover { border-color: var(--brand); }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .2rem 1.1rem; margin-bottom: .6rem; }
.faq summary { cursor: pointer; font-weight: 600; padding: .8rem 0; }
.faq details p { margin: 0 0 1rem; color: var(--ink-soft); }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: linear-gradient(135deg, #102a41, #1d4e73); color: #fff; border-radius: 16px; padding: 1.8rem 2rem; margin: 3rem 0 1rem; }
.cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { margin: 0; color: #d7e4ee; }

@media (max-width: 860px) {
  .hero2 { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero-band { padding: 2rem 0 2.4rem; }
  .steps { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; padding: 1.3rem; }
  .cta-band { padding: 1.4rem; }
}
@media (max-width: 600px) {
  .chart.mini { min-width: 0; }
  .live-stats { grid-template-columns: 1fr 1fr 1fr; }
  .live-stats strong { font-size: .88rem; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
}

/* Imágenes de las guías */
.article-hero { display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: cover; border-radius: 14px; margin: .2rem 0 1.2rem; border: 1px solid var(--line); }
.card-img { display: block; width: calc(100% + 2.4rem); max-width: none; height: auto; margin: -1.1rem -1.2rem .6rem; border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 2 / 1; object-fit: cover; }
.figure { margin: 1.2rem 0 1.5rem; }
.figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.figure figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }

/* Anuncios: separados del contenido, etiquetados y con espacio reservado para que la página no salte */
.ad-slot { margin: 2rem 0; padding: .6rem 0 .8rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 280px; clear: both; }
.ad-label { margin: 0 0 .4rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; }
.ad-slot ins.adsbygoogle { display: block; }
