/* Celeste TCG — hoja de estilo v2. Sin build, sin dependencias, sin CDN.

   Dirección: papel blanco y un solo color, el celeste del logo (#27ABF1).
   Ni un degradado, ni un brillo, ni una animación de fondo. Lo que hace que
   se lea "Pokémon" no es el arcoíris: es el marco de la carta (dos filos y
   esquinas redondeadas), los bloques planos de color, la tipografía
   geométrica ancha y los botones de cápsula.

   Reglas duras de esta hoja:
   - un solo color de marca; el resto es blanco, tinta y línea
   - `background: linear-gradient(...)` está prohibido
   - nada de rejillas de tarjetas gemelas: filas numeradas o columnas desiguales
   - nada de bolitas de color como viñeta */

:root {
  /* el celeste exacto del logo, medido sobre el PNG de marca */
  --sky:       #27ABF1;
  --sky-dark:  #0F8AD0;   /* hover de botón */
  --sky-deep:  #06699F;   /* enlaces y texto celeste sobre blanco */
  --sky-pale:  #EAF6FE;   /* bandas suaves */
  --sky-line:  #C3E3F8;

  --ink:       #0B1E2B;
  --ink-soft:  #43606F;
  --ink-dim:   #7A93A2;

  --paper:     #FFFFFF;
  --line:      #E2EAEF;

  --wrap:      72rem;
  --radius:    18px;      /* esquina de carta */
  --radius-sm: 10px;

  --font: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Jost", "Futura", "Avenir Next", "Century Gothic",
                  "Trebuchet MS", sans-serif;
}

/* ============ tipografía, servida desde el propio dominio ============ */

@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-v2.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-v3.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-italic-v3.woff2") format("woff2");
  font-weight: 400 600; font-style: italic; font-display: swap;
}

* { box-sizing: border-box; }

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

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

img { max-width: 100%; height: auto; }
a   { color: var(--sky-deep); text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.06;
  letter-spacing: -.015em;
  margin: 0 0 .55em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.16rem; font-weight: 600; letter-spacing: -.005em; }
p  { margin: 0 0 1em; }

.skip { position: absolute; left: -9999px; background: var(--sky-deep); color: #fff; padding: .7rem 1.1rem; }
.skip:focus { left: 0; top: 0; z-index: 20; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 1.5rem; }

/* ============ cabecera ============ */

.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--wrap); margin: 0 auto;
  padding: .9rem 1.5rem;
  background: var(--paper);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--line);
}

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand img { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b {
  font-family: var(--font-display); font-size: 1.14rem; font-weight: 700;
  letter-spacing: .04em;
}
.brand-text i {
  font-style: normal; font-size: .58rem; font-weight: 600;
  letter-spacing: .22em; color: var(--sky-deep); margin-top: .3rem;
}

.site-header nav { display: flex; align-items: center; gap: 1.6rem; }
.site-header nav a {
  font-size: .93rem; font-weight: 500; color: var(--ink-soft);
  text-decoration: none;
}
.site-header nav a:hover { color: var(--sky-deep); }
.site-header nav a.btn { color: #fff; }

/* ============ botones ============ */

.btn {
  display: inline-block;
  padding: .8rem 1.5rem;
  border: 2px solid var(--sky);
  border-radius: 999px;
  background: var(--sky);
  color: #fff;
  font: 600 .96rem/1.2 var(--font-display);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--sky-dark); border-color: var(--sky-dark); }
.btn-sm { padding: .5rem 1.05rem; font-size: .87rem; }
.btn-ghost { background: transparent; color: var(--sky-deep); }
.btn-ghost:hover { background: var(--sky-pale); border-color: var(--sky); color: var(--sky-deep); }

.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin: 1.9rem 0 .9rem; }

/* ============ etiqueta de sección ============ */

.setline {
  font: 700 .72rem var(--font-display);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--sky-deep);
  margin: 0 0 .9rem;
}
.setline span { color: var(--sky-deep); opacity: .55; margin: 0 .3em; }

.section-sub { color: var(--ink-soft); max-width: 54ch; margin-top: -.15rem; }

section { scroll-margin-top: 5rem; }

/* ============ portada ============ */

.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: 4rem 1.5rem 3.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 3.5rem; align-items: center;
}
.hero-solo { grid-template-columns: minmax(0, 1fr); max-width: 44rem; }
.lede { font-size: 1.14rem; line-height: 1.55; color: var(--ink-soft); max-width: 46ch; }
.note { font-size: .88rem; color: var(--ink-soft); margin: 0; max-width: 46ch; }

/* el bloque de marca: celeste plano, esquinas de carta, la marca centrada.
   Es el único sitio grande donde el color llena la superficie. */
.brand-block {
  display: grid; place-items: center;
  aspect-ratio: 2.5 / 3.5;          /* la proporción exacta de una carta */
  width: 100%; max-width: 23rem; justify-self: center;
  border-radius: var(--radius);
  background: var(--sky);
  padding: 1.4rem;
}
/* el filo interior blanco: el borde de un dorso, sin copiar ningún arte */
.brand-block::before {
  content: ""; grid-area: 1 / 1;
  width: 100%; height: 100%;
  border: 2px solid rgba(255, 255, 255, .55);
  border-radius: 11px;
}
.brand-block img { grid-area: 1 / 1; width: min(62%, 12rem); place-self: center; }

/* ============ franja de pruebas ============ */

.proof-strip {
  max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}
.proof-strip div { padding: 1.4rem 1.4rem 1.4rem 0; }
.proof-strip div + div { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.proof-strip strong {
  display: block; font: 700 1.5rem var(--font-display); color: var(--sky-deep);
  letter-spacing: -.02em;
}
.proof-strip span { font-size: .84rem; color: var(--ink-soft); }

/* ============ secciones de texto ============ */

.band { max-width: var(--wrap); margin: 0 auto; padding: 3.6rem 1.5rem; }

.two-col {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem; align-items: start;
}
.panel h3 { margin-bottom: .45rem; }
.panel p  { color: var(--ink-soft); font-size: .99rem; }

.ticks { list-style: none; padding: 0; margin: 0; color: var(--ink-soft); font-size: .99rem; }
.ticks li { position: relative; display: block; min-width: 0; padding-left: 1.7rem; margin-bottom: .8rem; }
.tick {
  position: absolute; left: 0; top: .18rem;
  color: var(--sky-deep); font-weight: 700; font-size: 1rem;
}
.steps { color: var(--ink-soft); font-size: .99rem; margin: 0; padding-left: 1.2rem; }
.steps li { margin-bottom: .85rem; padding-left: .25rem; }
.steps li::marker { color: var(--sky-deep); font-family: var(--font-display); font-weight: 700; }

/* la ficha del producto: marco de carta, sin sombra ni brillo */
.product-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--paper);
}
.product-figure img { display: block; width: 100%; border-radius: var(--radius-sm); }
.product-figure figcaption { margin-top: .8rem; color: var(--ink-dim); font-size: .75rem; line-height: 1.5; }
.product-figure figcaption a { color: inherit; }

.disclosure { font-size: .8rem; color: var(--ink-dim); max-width: 52ch; }

/* ============ herramientas: dos filas desiguales, no dos tarjetas gemelas ============ */

.tool-rows { border-top: 1px solid var(--line); margin-top: 2rem; }
.tool-row {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto;
  gap: 1.5rem; align-items: center;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.tool-row:hover h3 { color: var(--sky-deep); }
.tool-row .tool-tag {
  font: 700 .68rem var(--font-display); letter-spacing: .13em;
  text-transform: uppercase; color: var(--sky-deep);
}
.tool-row h3 { margin: 0 0 .25rem; }
.tool-row p  { margin: 0; color: var(--ink-soft); font-size: .93rem; max-width: 56ch; }
.tool-row .go {
  font: 600 .9rem var(--font-display); color: var(--sky-deep); white-space: nowrap;
}

/* ============ banda celeste suave: comprar cartas ============ */

.buying { background: var(--sky-pale); }
.buying-inner { max-width: var(--wrap); margin: 0 auto; padding: 4rem 1.5rem; }
.buying .product-figure { background: var(--paper); }

.faq-lines {
  counter-reset: faq;
  margin: 2rem 0 0;
  max-width: none;
  border-top: 2px solid var(--ink);
}
.faq-lines > div {
  counter-increment: faq;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: .25rem 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.faq-lines > div::before {
  content: counter(faq, decimal-leading-zero);
  grid-row: 1 / span 2;
  font: 700 .72rem/1 var(--font-display);
  letter-spacing: .08em;
  color: var(--sky-deep);
  padding-top: .35rem;
}
.faq-lines dt { font: 650 1.05rem/1.35 var(--font-display); color: var(--ink); margin: 0; }
.faq-lines dd { grid-column: 2; margin: 0; color: var(--ink-soft); font-size: .96rem; line-height: 1.6; }

/* ============ las cuatro promesas: el cuadro de ataques de una carta ============ */

.promise-sheet {
  border: 2px solid var(--sky);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2.2rem;
}
.promise-list { list-style: none; margin: 0; padding: 0; }
.promise {
  display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto;
  gap: 1.2rem; align-items: center;
  padding: 1.5rem 1.6rem;
  border-top: 1px solid var(--sky-line);
}
.promise:first-child { border-top: 0; }
.promise-no {
  font: 700 1.5rem var(--font-display); color: var(--sky-deep);
  letter-spacing: -.02em; text-align: center;
}
.promise h3 { margin: 0 0 .3rem; }
.promise p  { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.55; max-width: 56ch; }
.promise-dmg {
  margin: 0; text-align: right;
  font: 700 1.05rem var(--font-display); color: var(--ink);
  white-space: nowrap;
}
.promise-dmg small {
  display: block; font: 600 .62rem var(--font-display);
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim);
  margin-bottom: .15rem;
}
.sheet-footer {
  display: flex; justify-content: space-between; gap: 1rem;
  margin: .9rem .2rem 0;
  font: 600 .76rem var(--font-display); color: var(--ink-dim);
  letter-spacing: .04em;
}

.flavor-strip {
  max-width: 52rem; margin: 0 auto; padding: 3.2rem 1.5rem;
  font-style: italic; color: var(--ink-soft); text-align: center;
  font-size: 1.02rem;
}

/* ============ formulario y contacto ============ */

.sell-form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem; max-width: 52rem; margin: 2rem 0 2.5rem;
}
.sell-form label span {
  display: block; margin-bottom: .4rem;
  font: 600 .72rem var(--font-display); letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink-soft);
}
.sell-form input, .sell-form textarea {
  width: 100%; padding: .8rem .9rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink); font: inherit;
}
.sell-form input:focus, .sell-form textarea:focus { border-color: var(--sky); outline: none; }
.sell-form textarea { min-height: 120px; resize: vertical; }
.sell-form-wide { grid-column: 1 / -1; }
.sell-form-action { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.sell-form-action p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.contact-lines { margin: 2.2rem 0 0; max-width: 44rem; }
.contact-lines > div {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.contact-lines > div:first-child { border-top: 1px solid var(--line); }
.contact-lines dt { margin: 0; }
.contact-lines dt a {
  font: 600 1.02rem var(--font-display); color: var(--ink); text-decoration: none;
}
.contact-lines dt a:hover { color: var(--sky-deep); }
.contact-lines dd { margin: 0; color: var(--ink-dim); font-size: .93rem; }

.lang-alt { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem 3rem; font-size: .93rem; }
.article-hero .lang-alt {
  position: absolute;
  z-index: 1;
  top: 1.35rem;
  right: clamp(1.4rem, 5vw, 4.8rem);
  margin: 0;
  padding: 0;
  font-size: .78rem;
}
.article-hero .lang-alt a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .35rem .75rem;
  border: 1px solid var(--sky-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--sky-deep);
  font-family: var(--font-display);
  font-weight: 650;
  text-decoration: none;
}
.article-hero .lang-alt a:hover { border-color: var(--sky); background: var(--paper); }

/* ============ pie ============ */

.resource-dock {
  width: min(var(--wrap), calc(100% - 3rem));
  margin: clamp(4.5rem, 9vw, 8rem) auto 0;
}
.resource-kicker {
  margin: 0 0 .8rem;
  font: 700 .7rem var(--font-display);
  letter-spacing: .16em;
  color: var(--ink-dim);
}
.resource-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 1.25rem;
}
.resource-card {
  position: relative;
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: center;
  min-height: 10.5rem;
  gap: 1.2rem;
  overflow: hidden;
  padding: 1.3rem 1.6rem;
  border: 2px solid var(--ink);
  border-radius: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  box-shadow: .45rem .45rem 0 var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.resource-card-journal { background: #A8DCF2; }
.resource-card-tools { background: #FFE7A0; }
.resource-card::after {
  content: "";
  position: absolute;
  width: 6rem;
  height: 6rem;
  right: -2.5rem;
  top: -2.8rem;
  border: 2px solid rgba(11, 30, 43, .22);
  border-radius: 50%;
}
.resource-card:hover {
  color: var(--ink);
  transform: translate(-.2rem, -.2rem);
  box-shadow: .65rem .65rem 0 var(--ink);
}
.resource-card:active {
  transform: translate(.15rem, .15rem);
  box-shadow: .25rem .25rem 0 var(--ink);
}
.resource-card img {
  display: block;
  width: 5.5rem;
  max-height: 5.5rem;
  object-fit: contain;
}
.resource-copy { display: block; min-width: 0; padding: .2rem 0; }
.resource-copy strong {
  display: block;
  max-width: 16ch;
  font: 700 clamp(1.4rem, 2.5vw, 2rem)/1.05 var(--font-display);
  letter-spacing: -.02em;
}
.resource-copy small {
  display: block;
  max-width: 36ch;
  margin-top: .65rem;
  font-size: .9rem;
  line-height: 1.45;
  color: #254453;
}
.resource-copy b {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1rem;
  font: 700 .78rem var(--font-display);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.resource-copy i {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-style: normal;
  transition: transform .2s ease;
}
.resource-card:hover .resource-copy i { transform: translateX(.25rem); }
.resource-horizon {
  width: 100%;
  margin: clamp(3rem, 7vw, 6rem) 0 0;
  line-height: 0;
  overflow: hidden;
  border-radius: 1.5rem 1.5rem 0 0;
}
.resource-horizon img {
  display: block;
  width: 100%;
  min-width: 0;
  height: clamp(6rem, 10vw, 9.4rem);
  object-fit: cover;
  object-position: center bottom;
}

.site-footer {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 3rem 1.5rem 2.6rem;
}
.site-footer img { display: block; margin: 0 auto .9rem; width: 44px; }
.site-footer p { font-family: var(--font-display); margin: 0 0 .5rem; }
.site-footer a { color: #fff; }
.footer-nav {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: .45rem 1.2rem; margin: 1.2rem 0;
  font-size: .86rem;
}
.footer-nav a { color: #fff; text-decoration: none; opacity: .92; }
.footer-nav a:hover { text-decoration: underline; }
.site-footer .fine {
  font-size: .74rem; max-width: 52ch; margin: 1.2rem auto 0;
  line-height: 1.6; color: rgba(255, 255, 255, .82); font-family: var(--font);
}
.site-footer .credit { font-size: .74rem; margin-top: .8rem; font-family: var(--font); }
.site-footer .credit a { color: rgba(255, 255, 255, .85); text-decoration: none; border-bottom: 1px solid currentColor; }
.site-footer .ft__otros-webs {
  font-size: .72rem; margin-top: .6rem; font-family: var(--font);
  color: rgba(255, 255, 255, .78);
}
.site-footer .ft__otros-webs a { color: rgba(255, 255, 255, .85); text-decoration: none; border-bottom: 1px solid currentColor; }

/* ============ pantallas estrechas ============ */

@media (max-width: 62rem) {
  .site-header { flex-wrap: wrap; gap: .8rem 1.2rem; }
  .site-header nav { gap: 1.1rem; font-size: .88rem; flex-wrap: wrap; }
}

@media (max-width: 54rem) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3rem; }
  .brand-block { aspect-ratio: 16 / 10; max-width: 26rem; }
  .two-col { grid-template-columns: 1fr; gap: 2.2rem; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip div { padding: 1.1rem 0; border-top: 1px solid var(--line); }
  .proof-strip div:first-child { border-top: 0; }
  .proof-strip div + div { padding-left: 0; border-left: 0; }
  .tool-row { grid-template-columns: 1fr; gap: .45rem; }
  .promise { grid-template-columns: 2.6rem minmax(0, 1fr); gap: .9rem; }
  .promise-dmg { grid-column: 2; text-align: left; margin-top: .5rem; }
  .sell-form { grid-template-columns: 1fr; }
  .sell-form-wide { grid-column: auto; }
  .band, .buying-inner { padding-block: 3.2rem; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-card { grid-template-columns: 5.5rem minmax(0, 1fr); }
}

@media (max-width: 30rem) {
  body { font-size: 16.5px; }
  /* en móvil la columna es la pantalla: a 19 px caben 38 caracteres por línea
     y el texto se corta demasiado seguido */
  .article-body { font-size: 1.08rem; }
  .article-hero .lede { font-size: 1.16rem; }
  .article-body h2 { font-size: 1.5rem; margin-top: 2.4rem; }
  .cta-row .btn { width: 100%; text-align: center; }
  .resource-dock { width: calc(100% - 1.3rem); }
  .resource-card {
    grid-template-columns: 4.2rem minmax(0, 1fr);
    min-height: 0;
    gap: .9rem;
    padding: 1.15rem;
    box-shadow: .3rem .3rem 0 var(--ink);
  }
  .resource-card img { width: 4.2rem; max-height: 4.2rem; }
  .resource-card:hover { transform: none; box-shadow: .3rem .3rem 0 var(--ink); }
  .resource-copy { padding: 0; }
  .resource-copy strong { font-size: 1.3rem; }
  .resource-copy small { font-size: .78rem; }
  .resource-copy b { font-size: .68rem; margin-top: .75rem; }
}

/* Las cuadrículas compartidas nunca deben comprimir texto en una columna
   implícita. Cada hijo puede encogerse dentro de su columna sin desbordar. */
.two-col > *,
.tool-row > *,
.promise > *,
.resource-card > *,
.article-hero > *,
.article-gallery > *,
.related-card > *,
.cluster-links > *,
.workflow-grid > *,
.tool-grid > *,
.news-card-copy,
.calculator > *,
.calculator-form > *,
.home-hero > *,
.home-path > *,
.home-story > *,
.home-sell > * {
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .resource-card:hover { transform: none; }
}

/* ============ fotos ============

   Una foto no lleva marco. El marco existía para despegarla del fondo
   coloreado de la hoja anterior, y lo que conseguía era apilar tres fondos
   distintos: el blanco de la propia foto, el gris de la caja y el color de
   la página. Sobre papel blanco no hace falta ninguno.

   `fotos.py` mide el borde de cada archivo y estampa la clase; no se elige
   a mano. Tres casos, porque son tres cosas distintas:

   - .foto-recortada  el archivo trae canal alfa: no hay fondo que separar
   - .foto-blanca     producto sobre blanco: el papel de la página hace de fondo
   - .foto-escena     foto con su propio fondo: llena el ancho, esquina de carta

   Ninguna recorta. `object-fit: cover` con `max-height` ya mordió ocho fotos
   de /news/ una vez; aquí la foto manda su proporción y la página se adapta. */

figure.foto { margin-top: 3.5rem; margin-bottom: 3.8rem; }
figure.foto img { display: block; }

/* con fondo propio blanco o transparente, la foto se apoya en el papel y
   llena la columna. `contain` aquí no cuesta nada: lo que sobra por arriba y
   por abajo es blanco sobre blanco, así que la caja del recorte no se ve.
   Es el único sitio donde `contain` no deja calles. */
.foto-recortada img,
.foto-blanca img {
  width: 100%; height: auto; max-height: 34rem;
  object-fit: contain;
}

/* con fondo propio, la foto es el bloque: lo llena entero y conserva su
   proporción. Sin tope de alto: recortarla se vería, y ya mordió ocho fotos. */
.foto-escena img {
  width: 100%; height: auto;
  border-radius: var(--radius);
}

/* la de portada del artículo va a todo el ancho del texto y no se recorta */
.foto-hero { margin-top: 1.6rem; }
.foto-hero.foto-escena img { border-radius: var(--radius); }
.foto-hero.foto-blanca img,
.foto-hero.foto-recortada img { max-height: 36rem; }

/* el pie: una línea de lo que se ve, y el crédito legal debajo y más callado.
   Antes iban en la misma frase y el aviso de copyright pesaba igual que la
   descripción. */
.foto figcaption {
  max-width: var(--col);
  margin: 1rem auto 0;
  font-size: .88rem; line-height: 1.5; color: var(--ink-soft);
}
.foto figcaption .credito {
  display: block; margin-top: .25rem;
  font-size: .74rem; color: var(--ink-dim);
}
.foto figcaption a { color: inherit; }

/* dos fotos en fila: alturas naturales, no dos cajas gemelas rellenas de aire */
.foto-par {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.6rem 1.4rem; align-items: start;
  margin: 2.4rem 0;
}
.foto-par figure.foto { margin: 0; }
.foto-par .foto-blanca img, .foto-par .foto-recortada img { max-height: 20rem; }
@media (max-width: 46rem) { .foto-par { grid-template-columns: 1fr; } }

/* ============ artículo ============ */

/* Un artículo es una columna centrada, como cualquier blog que se lee de
   arriba abajo. La cabecera y el pie siguen usando el ancho grande; solo el
   texto y sus fotos se estrechan y se centran.

   El cuerpo va a 1.19rem y no a los 17 px del resto del sitio: en esta columna,
   17 px daban 81 caracteres por línea y el ojo pierde el renglón al volver.
   A 19 px salen 72, dentro del rango cómodo (60-75).

   Y va en --ink, no en --ink-soft. El gris azulado da 6,7:1 sobre blanco y el
   negro de marca 17:1. Para tres pantallas seguidas de lectura, el gris cansa.
   --ink-soft se queda para lo que se ojea: entradilla, pies y fecha. */
:root {
  --col: 43rem;
  --article-wide: 62rem;
  --article-shell: 76rem;
}

/* la cabecera del artículo sobre papel celeste: separa lo que presenta de lo
   que se lee, sin una línea ni una caja de por medio */
.article-hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 2rem);
  width: calc(100% - 2rem);
  max-width: var(--article-shell);
  margin: 1.35rem auto 4.6rem;
  padding: clamp(3rem, 6vw, 5.6rem) clamp(1.5rem, 5vw, 4.8rem) 2.1rem;
  overflow: hidden;
  border: 1px solid #A9DDF5;
  border-radius: 1.75rem;
  background: #EDF8FD url("/assets/article-hero-tcg-motif.svg") center / cover no-repeat;
  box-shadow: .65rem .65rem 0 #FFD84D;
}
.article-hero::before {
  content: none;
}
.article-hero > * {
  animation: article-enter .42s cubic-bezier(.2, .7, .2, 1) both;
}
.article-hero h1 { animation-delay: .04s; }
.article-hero .dek, .article-hero .lede { animation-delay: .09s; }
.article-hero .byline { animation-delay: .14s; }
@keyframes article-enter {
  from { opacity: 0; transform: translateY(.65rem); }
  to { opacity: 1; transform: translateY(0); }
}
.article-hero > * { max-width: none; margin-inline: 0; padding-inline: 0; }
.article-hero .setline {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  width: fit-content;
  margin-bottom: 1.7rem;
}
.article-hero .setline::before {
  content: "";
  width: .85rem;
  height: .85rem;
  flex: 0 0 auto;
  border: 2px solid var(--sky-deep);
  border-radius: 50%;
  background: #FFD84D;
  box-shadow: inset 0 0 0 2px #EDF8FD;
}
.article-hero h1 {
  grid-column: 1 / 8;
  grid-row: 2 / span 2;
  align-self: start;
  font-size: clamp(3rem, 6vw, 5.25rem);
  line-height: .97;
  letter-spacing: -.045em;
  text-wrap: balance;
  margin: 0;
}
.article-hero .lede {
  grid-column: 8 / -1;
  grid-row: 3;
  align-self: start;
  font-size: clamp(1.06rem, 1.8vw, 1.28rem);
  line-height: 1.55; color: var(--ink-soft);
  text-wrap: pretty;
  margin: .6rem 0 0;
}
.article-hero .article-meta,
.article-hero .disclosure {
  grid-column: 1 / -1;
  width: min(100%, 48rem);
  margin-top: 1.25rem;
}
.article-hero .disclosure {
  padding-top: 1rem;
  border-top: 1px solid rgba(6, 105, 159, .22);
  line-height: 1.55;
}
.article-hero > figure {
  grid-column: 1 / -1;
  width: min(100%, 38rem);
  margin: 2rem auto 0;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: .4rem 1.2rem;
  margin: 1.4rem auto 0; font-size: .85rem; color: var(--ink-soft);
}

.article-body {
  max-width: var(--col); margin: 0 auto; padding: 0 1.5rem 2.5rem;
  font-size: 1.16rem; line-height: 1.76;
}
.article-body p, .article-body li { color: var(--ink); text-wrap: pretty; }
.article-body p { margin: 0 0 1.15em; }
.article-body strong { color: var(--ink); font-weight: 700; }

/* el primer párrafo entra un punto más alto: marca dónde empieza a leerse */
.article-body > p:first-of-type {
  font-size: 1.13em;
  line-height: 1.62;
  letter-spacing: -.012em;
}

/* "sección nueva" se marca solo con tamaño y espacio en blanco, sin adorno */
.article-body h2 {
  position: relative;
  font-size: 1.85rem; margin: 4.2rem 0 1rem;
  padding-left: 1.15rem;
  text-wrap: balance;
  display: block;
}
.article-body h2::before {
  content: "";
  position: absolute;
  left: 0; top: .08em; bottom: .08em;
  width: .28rem;
  border-radius: 1rem;
  background: var(--sky);
}
.article-body h2:first-child { margin-top: 1rem; }
.article-body h3 { margin: 2rem 0 .5rem; font-size: 1.25rem; }

/* un enlace dentro del texto se tiene que ver sin cazarlo: subrayado propio,
   separado de la línea base, y más grueso al pasar por encima */
.article-body a {
  color: var(--sky-deep);
  text-decoration-color: var(--sky);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.article-body a:hover { text-decoration-thickness: 3px; }

.article-body > figure.foto,
.article-body > .foto-par {
  width: min(var(--article-wide), calc(100vw - 3rem));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}
.article-body > figure.foto-carta {
  width: min(31rem, calc(100vw - 3rem));
}

.breadcrumbs { max-width: var(--col); margin: 0 auto; padding: 1rem 1.5rem 0; font-size: .8rem; color: var(--ink-dim); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--sky-line); }
.breadcrumbs a { color: inherit; }

.subscribe {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  max-width: var(--article-wide);
  margin: 2.2rem auto 0;
  padding: clamp(1.8rem, 4vw, 3rem) clamp(7.5rem, 14vw, 11rem) clamp(1.8rem, 4vw, 3rem) clamp(1.8rem, 4vw, 3rem);
  overflow: hidden;
  border: 1px solid var(--sky-line);
  border-radius: 1.5rem;
  background: #EEF9FE;
  color: var(--ink);
}
.subscribe::after {
  content: "";
  position: absolute;
  right: clamp(2rem, 5vw, 4rem);
  top: 50%;
  width: clamp(4.8rem, 9vw, 6.8rem);
  aspect-ratio: 1;
  transform: translateY(-50%) rotate(-8deg);
  border: .3rem solid var(--ink);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 13%, var(--ink) 14% 19%, transparent 20%),
    linear-gradient(to bottom, #FF806B 0 44%, var(--ink) 45% 55%, #fff 56% 100%);
  box-shadow: .45rem .45rem 0 #FFD84D;
}
.subscribe > * { position: relative; z-index: 1; grid-column: 1; }
.subscribe h1,
.subscribe h3 { margin: .35rem 0 .5rem; font-size: clamp(1.7rem, 3.5vw, 2.65rem); line-height: 1.05; max-width: 17ch; }
.subscribe p { color: var(--ink-soft); max-width: 50ch; margin-bottom: 1.25rem; }
.subscribe .subscribe-kicker {
  margin: 0;
  color: var(--sky-deep);
  font: 700 .7rem var(--font-display);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.subscribe-form { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; max-width: 34rem; }
.subscribe-form input {
  flex: 1 1 15rem; padding: .8rem .9rem;
  border: 1px solid #6E8795; border-radius: 999px;
  background: var(--paper); color: var(--ink); font: inherit;
}
.subscribe-form input:focus { border-color: var(--sky); outline: 3px solid rgba(39, 171, 241, .3); }
.subscribe-form #subscribe-form-status { flex-basis: 100%; margin: 0; font-size: .88rem; color: var(--ink-soft); }

/* ============ resto de componentes del artículo ============

   Todo lo que sigue viene de las 216 páginas que aún estaban en styles.css:
   reseñas de producto, guías del playbook, comparativas de marketplaces y
   calculadoras. Misma doctrina: un solo color de marca, nada de degradados,
   nada de cajas gemelas. Donde el diseño viejo usaba amarillo o un color de
   energía por tipo, aquí es siempre --sky o tinta. */

/* el gancho de voz bajo el h1, antes del lede */
.dek {
  grid-column: 8 / -1;
  grid-row: 2;
  align-self: end;
  font: 650 clamp(1.25rem, 2.2vw, 1.65rem)/1.25 var(--font-display);
  color: var(--sky-deep);
  margin: .15rem 0 0;
  max-width: 26ch;
}
.article-hero .dek { margin-inline: 0; }

/* firma: avatar + autor + fechas + tiempo de lectura, o "Tested by" en gear */
.byline {
  display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center;
  margin: 1.3rem 0 0; font-size: .88rem; color: var(--ink-soft);
}
.article-hero .byline {
  grid-column: 1 / -1;
  grid-row: 4;
  margin: 2.8rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(6, 105, 159, .22);
}
.byline strong { color: var(--ink); }
.byline a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--sky-line); }
.byline a:hover { color: var(--sky-deep); }
.byline-avatar {
  width: 42px;
  height: 42px;
  display: block;
  padding: 3px;
  object-fit: contain;
  border: 2px solid #EE9D2B;
  border-radius: 50%;
  background: #FFE2A2;
}

/* fotos dentro del cuerpo del artículo: mismo "sin marco" que .foto, pero
   sobre las clases que trae el contenido todavía sin convertir a fotos.py */
.article-figure { margin: 1.8rem 0; padding: 0; }
.article-figure img {
  display: block; width: 100%; height: auto;
  max-height: 30rem; object-fit: contain; border-radius: var(--radius);
}
.article-figure figcaption { margin-top: .8rem; color: var(--ink-soft); font-size: .85rem; line-height: 1.5; }
.article-figure figcaption a { color: inherit; }

.article-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  width: min(var(--article-wide), calc(100vw - 3rem));
  margin: 2.4rem 0 3rem 50%;
  transform: translateX(-50%);
}
.article-gallery .article-figure,
.article-gallery figure.foto { margin: 0; }
.article-gallery .article-figure img,
.article-gallery figure.foto img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
@media (max-width: 46rem) { .article-gallery { grid-template-columns: 1fr; } }

.article-hero-figure img {
  display: block; width: 100%; height: auto;
  max-height: 32rem; object-fit: contain; border-radius: var(--radius);
}
.article-hero-figure figcaption { margin-top: .8rem; color: var(--ink-soft); font-size: .85rem; line-height: 1.5; }

/* "seguir leyendo": fotos sin caja, como cualquier otra en la página */
.related-heading {
  margin: 4rem 0 1.25rem;
  padding-top: 1.2rem;
  border-top: 2px solid var(--ink);
  font-size: 1.55rem;
}
.related-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem;
  margin: 0 0 1rem; padding: 0; list-style: none;
}
.related-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.related-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: contain;
  border-radius: .85rem;
  background: #EDF6FA;
}
.related-card span { display: block; margin-top: .75rem; font: 650 .96rem/1.35 var(--font-display); color: var(--ink); }
.related-card:hover { border-color: var(--sky); }
.related-card:hover span { color: var(--sky-deep); }
/* fuera de la columna de artículo (van después de </article>, a ancho de página) */
.related-heading, .related-grid { max-width: var(--article-wide); margin-inline: auto; padding-inline: 1.5rem; }

@media (max-width: 54rem) {
  .article-hero {
    grid-template-columns: minmax(0, 1fr);
    width: auto;
    margin: .8rem 1rem 3.2rem;
    padding: 4.25rem 1.5rem 1.6rem;
    border-radius: 1.25rem;
    background-position: left bottom;
    background-size: auto 100%;
    box-shadow: .45rem .45rem 0 #FFD84D;
  }
  .article-hero .setline,
  .article-hero h1,
  .article-hero .dek,
  .article-hero .lede,
  .article-hero .byline {
    grid-column: 1;
    grid-row: auto;
  }
  .article-hero h1 { font-size: clamp(2.7rem, 10vw, 4.25rem); }
  .article-hero .dek { margin-top: 1.35rem; max-width: 34ch; }
  .article-hero .lede { margin-top: 1rem; max-width: 48ch; }
  .article-hero .byline { margin-top: 1.8rem; }
  .related-grid { grid-template-columns: 1fr; gap: 1rem; }
  .related-card {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 1rem;
    align-items: center;
    padding: .75rem 0;
  }
  .related-card img { aspect-ratio: 16 / 9; height: auto; }
  .related-card span { margin: 0; }
  .subscribe { margin-inline: 1rem; }
}

@media (max-width: 30rem) {
  .article-hero { margin-inline: .65rem; padding-inline: 1.25rem; }
  .article-hero h1 { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .article-body { padding-inline: 1.2rem; }
  .article-body h2 { margin-top: 3.2rem; }
  .related-card { grid-template-columns: 6.8rem minmax(0, 1fr); }
  .related-card img { aspect-ratio: 16 / 9; height: auto; }
  .subscribe { padding: 1.75rem 1.25rem; border-radius: 1.15rem; }
  .subscribe::after {
    top: 1.25rem;
    right: 1.2rem;
    width: 4.5rem;
    transform: rotate(-8deg);
    opacity: .16;
    box-shadow: .3rem .3rem 0 #FFD84D;
  }
  .subscribe h3 { max-width: 13ch; }
}

@media (prefers-reduced-motion: reduce) {
  .article-hero > * { animation: none; }
  .related-card { transition: none; }
}

/* cajas informativas: mismo celeste suave que .buying, sin borde. El h2 de
   dentro no lleva el filo superior que sí llevan los h2 sueltos del cuerpo. */
.verdict, .key-facts, .toc {
  margin: 2rem 0; padding: 1.5rem 1.6rem;
  background: var(--sky-pale); border-radius: var(--radius);
}
.article-body .verdict h2, .article-body .key-facts h2, .article-body .toc h2 {
  border-top: 0; padding-top: 0; margin: 0 0 .6rem; font-size: 1.3rem;
}
.article-body .verdict h2::before,
.article-body .key-facts h2::before,
.article-body .toc h2::before { display: none; }
.verdict p:last-child, .key-facts p:last-child, .toc p:last-child { margin-bottom: 0; }
.toc ol { columns: 2; padding-left: 1.2rem; margin: 0; }
.toc ol li { margin-bottom: .4rem; }
@media (max-width: 30rem) { .toc ol { columns: 1; } }

/* aviso de decisión: caja con borde, no rellena, para distinguirla de las
   informativas de arriba a simple vista */
.decision-cta { margin: 2.4rem 0; padding: 1.5rem 1.6rem; border: 2px solid var(--sky-line); border-radius: var(--radius); }
.article-body .decision-cta h2 { border-top: 0; padding-top: 0; margin: 0 0 .6rem; font-size: 1.35rem; }
.decision-cta .cta-row { margin: 1rem 0 0; }
.mini-proof { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin: .8rem 0 0; color: var(--ink-dim); font-size: .85rem; }
.mini-proof strong { color: var(--ink); }

.ricoh-cluster { margin: 3rem 0 1.5rem; padding: clamp(1.2rem, 3vw, 2rem); border-radius: var(--radius); background: var(--sky-pale); }
.article-body .ricoh-cluster h2 { border-top: 0; padding-top: 0; margin: .4rem 0 0; }
.cluster-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem 1.4rem; margin-top: 1rem; }
.cluster-links a { display: grid; gap: .25rem; padding: .9rem 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--sky-line); }
.cluster-links a:hover strong { color: var(--sky-deep); }
.cluster-links span { color: var(--ink-soft); font-size: .85rem; line-height: 1.4; }
@media (max-width: 38.75rem) { .cluster-links { grid-template-columns: 1fr; } }

/* tablas: cabecera celeste pálida, caja con borde en vez de fondo blanco liso */
.table-scroll, .comparison-table-wrap {
  margin: 1.6rem 0 2rem; overflow-x: auto;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.data-table, .comparison-table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .93rem; }
.data-table th, .data-table td, .comparison-table th, .comparison-table td {
  padding: .75rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line);
}
.data-table th, .comparison-table th { font: 700 .85rem var(--font-display); color: var(--ink); background: var(--sky-pale); }
.data-table td, .comparison-table td { color: var(--ink-soft); }
.data-table td:first-child, .comparison-table td:first-child { color: var(--ink); white-space: normal; min-width: 12rem; }
.data-table tr:last-child td, .comparison-table tr:last-child td { border-bottom: 0; }

.source-list { padding-left: 1.2rem; font-size: .92rem; color: var(--ink-soft); }
.source-list li { margin-bottom: .55rem; }

/* pasos de un proceso: reutiliza el filo celeste que ya marca sección en los
   h2, no una tarjeta con caja */
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem; margin: 1.8rem 0; }
.workflow-step { padding-top: 1rem; border-top: 3px solid var(--sky); }
.workflow-step b { display: block; margin-bottom: .3rem; font: 700 .7rem var(--font-display); letter-spacing: .13em; text-transform: uppercase; color: var(--sky-deep); }
.workflow-step h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.workflow-step p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.workflow-visual { display: block; width: 100%; margin: 1.6rem 0 2rem; }
@media (max-width: 46rem) { .workflow-grid { grid-template-columns: 1fr; gap: 1.3rem; } }

/* gráfico inline en SVG: una serie destaca en celeste, el resto en tinta */
.stat-chart { margin: 1.9rem 0 2.2rem; }
.stat-chart svg { display: block; width: 100%; height: auto; }
.stat-chart .chart-bar { fill: var(--ink-dim); }
.stat-chart .chart-bar-alt { fill: var(--sky); }
.stat-chart .chart-baseline { stroke: var(--line); stroke-width: 1; }
.stat-chart .chart-value { font-family: var(--font-display); font-weight: 700; font-size: 15px; fill: var(--ink); }
.stat-chart .chart-value-current { fill: var(--sky-deep); }
.stat-chart .chart-axis-label { font-family: var(--font); font-weight: 600; font-size: 11px; fill: var(--ink-dim); }
.stat-chart figcaption { margin-top: .6rem; color: var(--ink-soft); font-size: .85rem; }

/* video de terceros: cartel oscuro y botón de reproducir. La franja del
   texto es un color sólido, no un degradado, para que se lea sobre la foto */
.video-shell { position: relative; aspect-ratio: 16 / 9; margin: 1.8rem 0 2rem; overflow: hidden; border-radius: var(--radius); background: var(--ink); }
.video-shell iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-poster { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: var(--ink); color: #fff; text-align: left; }
.video-poster img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .2s ease; }
.video-poster:hover img, .video-poster:focus-visible img { opacity: 1; }
.video-poster:focus-visible { outline: 3px solid var(--sky); outline-offset: -3px; }
.video-play {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem;
  background: rgba(11, 30, 43, .82);
  font: 700 .95rem var(--font-display); color: #fff;
}
.video-play::before {
  content: "▶"; display: grid; place-items: center; flex: 0 0 2.6rem; width: 2.6rem; height: 2.6rem;
  border-radius: 50%; background: var(--sky); color: #fff;
}
.media-note { margin-top: -1rem; color: var(--ink-soft); font-size: .85rem; }

/* hub de herramientas y gear: dos columnas de texto con el mismo filo
   celeste que .workflow-step, sin recuadro */
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; margin: 1.8rem 0; }
.tool-card { display: flex; flex-direction: column; padding-top: 1.1rem; border-top: 3px solid var(--sky); color: inherit; text-decoration: none; }
.tool-card h2, .tool-card h3 { margin: .2rem 0 .5rem; border-top: 0; padding-top: 0; }
.tool-card p { color: var(--ink-soft); font-size: .95rem; margin: 0 0 .8rem; }
.tool-card .tool-link, .tool-card strong { margin-top: auto; color: var(--sky-deep); font: 700 .92rem var(--font-display); }
@media (max-width: 46rem) { .tool-grid { grid-template-columns: 1fr; } }

.trust-bar { max-width: var(--wrap); margin: 0 auto; padding: 3.6rem 1.5rem; }

/* hub de /news/, /gear/, /playbook/: una fila por entrada, sin tarjetas */
.news-list { list-style: none; max-width: var(--wrap); margin: 2.6rem auto 0; padding: 0 1.5rem; }
.news-item { display: block; padding: 1.7rem 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.news-list li:first-child .news-item { border-top: 1px solid var(--line); }
.news-item h2 { font-size: 1.35rem; margin: .3rem 0 .4rem; border-top: 0; padding-top: 0; }
.news-item:hover h2 { color: var(--sky-deep); }
.news-item p { margin: 0; color: var(--ink-soft); max-width: 60ch; }

/* Portada del Journal: una mesa editorial de imágenes, no un índice de texto. */
.news-index { background: #FBFDFE; }
.news-index main { overflow: hidden; }
.news-hub-hero {
  position: relative;
  isolation: isolate;
  width: min(var(--wrap), calc(100% - 3rem));
  min-height: 24rem;
  display: grid;
  place-content: center;
  justify-items: center;
  margin: 1.2rem auto 3rem;
  padding: 4.5rem 2rem;
  overflow: hidden;
  border: 1px solid var(--sky-line);
  border-radius: 1.8rem;
  background: #DDF2FC;
  text-align: center;
}
.news-hub-hero::before,
.news-hub-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 20rem;
  height: 20rem;
  border: 2px solid rgba(6, 105, 159, .14);
  border-radius: 50%;
}
.news-hub-hero::before { left: -7rem; top: -10rem; }
.news-hub-hero::after { right: -6rem; bottom: -12rem; }
.news-hub-hero h1 {
  max-width: 13ch;
  margin: .5rem auto .65rem;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  letter-spacing: -.045em;
}
.news-hub-hero .lede { max-width: 45rem; margin: 0 auto; color: var(--ink-soft); font-size: 1.15rem; }
.news-count { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1rem; margin: 1.5rem 0 0; font-size: .83rem; }
.news-count strong { font-family: var(--font-display); color: var(--ink); }
.news-count span { color: var(--ink-soft); }

.news-index .news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.2rem 1.5rem;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.news-index .news-item {
  display: block;
  height: 100%;
  padding: 0;
  border: 0;
}
.news-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1.1rem;
  background: var(--sky-pale);
}
.news-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.news-index .news-item:hover .news-thumb img { transform: scale(1.025); }
.news-card-copy { display: block; padding: 1rem .15rem 0; }
.news-index .news-item .setline {
  display: inline-flex;
  width: fit-content;
  padding: .34rem .65rem;
  border-radius: 999px;
  background: #DDF2FC;
  color: var(--sky-deep);
  letter-spacing: .08em;
}
.news-index .news-list li:nth-child(3n + 2) .setline { background: #FFE9AB; color: #765A00; }
.news-index .news-list li:nth-child(3n) .setline { background: #FFE5DE; color: #8E3C2D; }
.news-index .news-item h2 {
  margin: .75rem 0 .55rem;
  padding: 0;
  border: 0;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.08;
}
.news-index .news-item p:last-child { color: var(--ink-soft); font-size: .95rem; line-height: 1.52; }
.news-index main > .subscribe { max-width: var(--wrap); margin-top: 5rem; }
.news-index .lang-alt { margin-top: 2rem; }

@media (max-width: 54rem) {
  .news-hub-hero { min-height: 20rem; padding-block: 3.5rem; }
  .news-hub-hero h1 { font-size: clamp(3rem, 10vw, 5rem); }
  .news-index .news-list { grid-template-columns: 1fr; gap: 2.7rem; }
}

@media (max-width: 30rem) {
  .news-hub-hero { width: calc(100% - 1.3rem); min-height: 18rem; padding: 3rem 1.2rem; border-radius: 1.3rem; }
  .news-hub-hero h1 { font-size: clamp(2.55rem, 12vw, 3.8rem); }
  .news-hub-hero .lede { font-size: 1rem; }
  .news-index .news-list { padding-inline: .65rem; }
  .news-index .news-item h2 { font-size: 1.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .news-thumb img { transition: none; }
  .news-index .news-item:hover .news-thumb img { transform: none; }
}

/* calculadoras gratuitas */
.calculator { margin: 1.8rem 0 2.5rem; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(17rem, .85fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.calculator-form { padding: 1.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; align-content: start; }
.calculator-form label { display: block; color: var(--ink); font: 600 .88rem var(--font-display); }
.calculator-form label span { display: block; margin-bottom: .35rem; }
.calculator-form input, .calculator-form select {
  width: 100%; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink); font: inherit;
}
.calculator-form input:focus, .calculator-form select:focus { border-color: var(--sky); outline: none; }
.calculator-form .field-wide { grid-column: 1 / -1; }
.field-help { display: block; margin-top: .25rem; font: 400 .78rem/1.4 var(--font); color: var(--ink-dim); }
.calculator-results { padding: 1.5rem; background: var(--sky-pale); }
.calculator-results h2 { margin: 0 0 .6rem; font-size: 1.25rem; border-top: 0; padding-top: 0; }
.result-list { margin: 1rem 0; }
.result-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--sky-line); }
.result-list dt { color: var(--ink-soft); margin: 0; }
.result-list dd { margin: 0; font: 700 1rem var(--font-display); color: var(--ink); text-align: right; }
.result-primary dd { color: var(--sky-deep); font-size: 1.3rem; }
.result-status { min-height: 3.2rem; margin: .9rem 0 0; padding: .8rem .9rem; color: var(--ink-soft); background: var(--paper); border-radius: var(--radius-sm); }
.calculator-note { max-width: var(--col); font-size: .85rem; color: var(--ink-dim); margin: 0 auto 1.5rem; }
@media (max-width: 54rem) {
  .calculator { grid-template-columns: 1fr; }
  .calculator-results { border-top: 1px solid var(--line); }
}
@media (max-width: 30rem) {
  .calculator-form { grid-template-columns: 1fr; padding: 1.1rem; }
  .calculator-form .field-wide { grid-column: auto; }
  .calculator-results { padding: 1.1rem; }
}

/* Portada comercial: una entrada clara a tienda, noticias y herramientas. */
.home-landing { background: #fbfdfe; }
.home-landing main { overflow: hidden; }
.home-header nav { align-items: center; }
.home-header .nav-shop { padding: .68rem 1rem; border-radius: 999px; background: var(--ink); color: white; }
.home-header .nav-shop:hover { background: var(--sky-deep); color: white; }

.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(22rem, .88fr);
  align-items: center;
  width: min(82rem, calc(100% - 3rem));
  min-height: 42rem;
  margin: 1.2rem auto 5.8rem;
  padding: clamp(2.2rem, 5vw, 5rem);
  overflow: hidden;
  border: 1px solid var(--sky-line);
  border-radius: 2rem;
  background: linear-gradient(135deg, #eef9fe 0%, #d8f1fc 100%);
}
.home-hero::before { content: ""; position: absolute; z-index: -1; width: 32rem; height: 32rem; right: -8rem; top: -12rem; border: 2px solid rgba(6,105,159,.14); border-radius: 50%; box-shadow: 0 0 0 4rem rgba(255,255,255,.18), 0 0 0 8rem rgba(39,171,241,.05); }
.home-hero-copy { position: relative; z-index: 2; }
.home-hero h1 { max-width: 11ch; margin: .7rem 0 1.1rem; font-size: clamp(3.4rem, 6vw, 6.5rem); line-height: .92; letter-spacing: -.055em; }
.home-hero .lede { max-width: 39rem; margin: 0; color: var(--ink-soft); font-size: clamp(1.05rem, 1.5vw, 1.24rem); }
.home-hero .cta-row { margin: 1.8rem 0 2rem; }
.home-assurance { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin: 0; padding: 1.3rem 0 0; border-top: 1px solid rgba(6,105,159,.2); list-style: none; }
.home-assurance li { display: grid; gap: .05rem; }
.home-assurance strong { font: 800 .93rem var(--font-display); color: var(--ink); }
.home-assurance span { font-size: .77rem; color: var(--ink-soft); }

.home-hero-art { position: relative; min-height: 31rem; display: grid; place-items: center; }
.home-hero-art > img { position: relative; z-index: 3; width: min(27rem, 100%); height: auto; filter: drop-shadow(0 1.5rem 1.2rem rgba(6,31,45,.18)); }
.home-card { position: absolute; width: 15.5rem; aspect-ratio: 2.5 / 3.5; border: .55rem solid white; border-radius: 1rem; box-shadow: 0 1.3rem 2.4rem rgba(6,31,45,.18); background: radial-gradient(circle at 50% 42%, #fff 0 7%, #172d3b 7.4% 9%, transparent 9.5%), linear-gradient(#e23f35 0 48%, #172d3b 48% 53%, #fff 53%); }
.home-card-one { transform: rotate(-13deg) translate(-2rem, .5rem); }
.home-card-two { transform: rotate(10deg) translate(3rem, 1rem); background: radial-gradient(circle at 50% 42%, #fff 0 7%, #172d3b 7.4% 9%, transparent 9.5%), linear-gradient(#f8c83c 0 48%, #172d3b 48% 53%, #fff 53%); }
.home-hero-art p { position: absolute; z-index: 4; right: 0; bottom: 1.2rem; display: grid; gap: .08rem; margin: 0; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: .8rem; background: rgba(255,255,255,.92); box-shadow: 0 .6rem 1.5rem rgba(6,31,45,.1); }
.home-hero-art b { font: 800 .82rem var(--font-display); color: var(--sky-deep); text-transform: uppercase; letter-spacing: .08em; }
.home-hero-art span { font-size: .78rem; color: var(--ink-soft); }

.home-directions, .home-latest { width: min(var(--wrap), calc(100% - 3rem)); margin: 0 auto 6rem; }
.home-directions > h2, .home-section-heading h2 { margin: .45rem 0 2rem; font-size: clamp(2.4rem, 5vw, 4.6rem); letter-spacing: -.045em; }
.home-path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.home-path { min-height: 19rem; display: flex; flex-direction: column; justify-content: space-between; padding: 1.6rem; overflow: hidden; border: 1px solid var(--line); border-radius: 1.35rem; color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.home-path:hover { transform: translateY(-.3rem); box-shadow: 0 1rem 2rem rgba(6,31,45,.1); }
.home-path-shop { background: var(--ink); color: white; }
.home-path-news { background: #dff3fc; }
.home-path-market { background: #e8e3ff; }
.home-path-tools { background: #ffedae; }
.home-path > img { width: 7.2rem; height: auto; align-self: flex-start; margin: 0; }
.home-path-number { font: 800 4.6rem/.85 var(--font-display); color: var(--sky); }
.home-path-copy { display: grid; gap: .65rem; }
.home-path-copy strong { font: 800 1.55rem/1.08 var(--font-display); }
.home-path-copy small { max-width: 28ch; font-size: .94rem; line-height: 1.5; opacity: .78; }
.home-path-copy b { margin-top: .35rem; font: 800 .9rem var(--font-display); color: var(--sky-deep); }
.home-path-shop .home-path-copy b { color: #73d2ff; }
.home-path-copy i { font-style: normal; }

.home-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.home-section-heading h2 { margin-bottom: 0; }
.home-section-heading > a { flex: none; margin-bottom: .4rem; font: 800 .9rem var(--font-display); }
.home-story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.home-story { display: block; color: inherit; text-decoration: none; }
.home-story-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 1.1rem; background: var(--sky-pale); }
.home-story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.home-story:hover img { transform: scale(1.025); }
.home-story-copy { display: grid; gap: .5rem; padding: 1rem .15rem 0; }
.home-story-copy small { font: 800 .72rem var(--font-display); color: var(--sky-deep); text-transform: uppercase; letter-spacing: .08em; }
.home-story-copy strong { font: 800 1.3rem/1.18 var(--font-display); }
.home-story-copy b { font: 700 .86rem var(--font-display); color: var(--sky-deep); }
.home-story-copy i { font-style: normal; }

.home-sell { width: min(var(--wrap), calc(100% - 3rem)); display: grid; grid-template-columns: 8rem 1fr auto; align-items: center; gap: 2rem; margin: 0 auto 6rem; padding: 2rem 2.4rem; border: 1px solid #edca48; border-radius: 1.5rem; background: #fff0b8; }
.home-sell-mark { display: grid; place-items: center; align-self: stretch; border-radius: 1rem; background: white; }
.home-sell-mark img { width: 4.3rem; height: auto; }
.home-sell h2 { margin: .3rem 0 .55rem; font-size: clamp(2rem, 3.5vw, 3.3rem); }
.home-sell p:last-child { max-width: 54ch; margin: 0; color: var(--ink-soft); }
.home-sell > .btn { white-space: nowrap; }
.home-final { width: min(82rem, calc(100% - 3rem)); margin: 0 auto 2.2rem; padding: clamp(3rem, 7vw, 6rem); border-radius: 2rem; background: var(--ink) url('/assets/article-hero-tcg-motif.svg') center/cover; color: white; text-align: center; }
.home-final .setline { color: #79d5ff; }
.home-final h2 { max-width: 13ch; margin: .5rem auto .8rem; color: white; font-size: clamp(2.7rem, 6vw, 5.5rem); letter-spacing: -.045em; }
.home-final p:not(.setline) { max-width: 42rem; margin: 0 auto 1.6rem; color: #c6d8e1; }
.home-final .btn { background: var(--sky); color: var(--ink); }
.home-landing .lang-alt { margin: 0 auto 2.5rem; text-align: center; }

@media (max-width: 62rem) {
  .home-hero { grid-template-columns: 1fr; }
  .home-hero h1 { max-width: 12ch; }
  .home-hero-art { min-height: 25rem; }
  .home-hero-art > img { width: 23rem; }
  .home-path-grid { grid-template-columns: 1fr 1fr; }
  .home-path-shop { grid-column: 1 / -1; min-height: 15rem; }
  .home-sell { grid-template-columns: 6rem 1fr; }
  .home-sell > .btn { grid-column: 2; justify-self: start; }
}
@media (max-width: 46rem) {
  .home-header nav a:not(.nav-shop) { display: none; }
  .home-hero, .home-directions, .home-latest, .home-sell, .home-final { width: calc(100% - 1.25rem); }
  .home-hero { min-height: auto; margin-top: .65rem; margin-bottom: 4rem; padding: 2.2rem 1.2rem 1rem; border-radius: 1.35rem; }
  .home-hero h1 { font-size: clamp(3rem, 14vw, 4.4rem); }
  .home-assurance { gap: .7rem 1rem; }
  .home-hero-art { min-height: 23rem; }
  .home-card { width: 11.5rem; }
  .home-hero-art > img { width: 20rem; }
  .home-hero-art p { right: .2rem; bottom: .5rem; }
  .home-path-grid, .home-story-grid { grid-template-columns: 1fr; }
  .home-path-shop { grid-column: auto; }
  .home-path {
    min-height: 0;
    display: grid;
    grid-template-columns: 4.6rem minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
  }
  .home-path > img { width: 4.6rem; align-self: center; }
  .home-path-number { font-size: 3.5rem; text-align: center; }
  .home-path-copy { gap: .45rem; }
  .home-path-copy strong { font-size: 1.35rem; }
  .home-path-copy small { font-size: .88rem; }
  .home-path-copy b { margin-top: .2rem; font-size: .78rem; }
  .home-section-heading { align-items: start; flex-direction: column; gap: .4rem; }
  .home-section-heading > a { margin: 0; }
  .home-sell { grid-template-columns: 1fr; padding: 1.4rem; }
  .home-sell-mark { height: 7rem; }
  .home-sell > .btn { grid-column: auto; }
  .home-final { border-radius: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .home-path, .home-story-image img { transition: none; }
  .home-path:hover { transform: none; }
  .home-story:hover img { transform: none; }
}

/* Market desk */
.market-table { width: 100%; margin: 1.6rem 0 2.5rem; border-collapse: collapse; font-size: .96rem; }
.market-table th, .market-table td { padding: .85rem .75rem; border-bottom: 1px solid #cfe2ec; text-align: left; vertical-align: top; }
.market-table th { background: #eaf7fc; color: var(--ink); font: 800 .82rem var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.market-table td:nth-child(n + 2) { white-space: nowrap; }
.market-note { margin: 3rem 0; padding: 1.35rem 1.5rem; border: 1px solid #94d6ef; border-radius: 1rem; background: #eaf7fc; }
.market-note strong { display: block; margin-bottom: .35rem; font: 800 1.05rem var(--font-display); }
.market-note p { margin: 0; }
.market-article .article-body > h2 { padding-left: 0; border-left: 0; }
.market-article .article-body > h2::before { content: none; }
@media (max-width: 46rem) {
  .market-table { display: block; overflow-x: auto; font-size: .88rem; }
  .market-table th, .market-table td { min-width: 8rem; }
}

/* Enlace contextual al final de una pieza de /learn: manda al lector a la
   herramienta o la guía que resuelve lo que acaba de leer. Se separa del
   cuerpo con aire, no con filete ni con caja: el texto ya es distinto por
   el color apagado, y una caja más sería un callout. */
.article-body .enlace-util {
  margin-top: 1.9em;
  color: var(--ink-soft);
  font-size: .96em;
}
.article-body .enlace-util a { color: var(--sky-dark); }
