/* Blog de tcgbestia-reviews.com. Se carga después de site.css y solo en las páginas del blog.
   Misma identidad: crema con ondas, tinta, carmesí, Playfair en titulares, Inter 800 cursiva en
   los títulos de sección. Lo propio: el artículo va en una hoja de papel (una carta más) con
   medida de lectura cómoda, y el índice es una fila de cartas. */

/* Cabecera del artículo y del índice */
.post-cab, .blog-cab { padding-top: 28px; padding-bottom: 36px; max-width: 900px; }
.migas ol { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .86rem; color: var(--tinta-3); }
.migas li { display: inline-flex; align-items: center; min-width: 0; }
.migas li + li::before { content: ''; width: 6px; height: 6px; margin: 0 10px; border-top: 1.5px solid var(--rojo); border-right: 1.5px solid var(--rojo); transform: rotate(45deg); flex: none; }
.migas a { color: var(--tinta-2); text-decoration: none; }
.migas a:hover { color: var(--tinta); text-decoration: underline; text-decoration-color: var(--rojo); }
.migas [aria-current] { color: var(--tinta-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.post-cab h1, .blog-cab h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -.02em; max-width: 22ch; }
.blog-cab .sub { max-width: 64ch; }
/* Cada dato es un bloque en línea que no se parte; el punto separador va delante y, si el
   dato baja de línea, el punto se queda al final de la anterior (no abre la línea nueva). */
.post-meta { margin-top: 22px; font-size: .92rem; line-height: 1.9; color: var(--tinta-2); }
.post-meta > span { display: inline; white-space: nowrap; }
.post-meta > span + span::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--rojo); margin: 0 12px; vertical-align: middle; }
.post-meta a { font-weight: 600; color: var(--tinta); }
.post-cab .aviso, .blog-cab .aviso { margin-top: 18px; max-width: 70ch; }

/* La hoja: el artículo sobre papel, como la ficha de empresa */
.post-hoja { max-width: 900px; }
.post-img { margin: 0 0 -1px; border-radius: 16px 16px 0 0; overflow: hidden; border: 1px solid var(--linea); border-bottom: 0; background: var(--negro-3); }
.post-img img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.post-img + .prosa { border-top-left-radius: 0; border-top-right-radius: 0; }
.prosa {
  background: #fff; border-radius: 16px; border: 1px solid var(--linea); box-shadow: 0 22px 48px rgba(26, 26, 46, .1);
  padding: clamp(24px, 5vw, 56px) clamp(18px, 6vw, 72px); font-size: 1.08rem; line-height: 1.75; color: var(--tinta);
  overflow-wrap: break-word;
}
.prosa > * { max-width: 68ch; }
.prosa > * + * { margin-top: 1.1em; }
.prosa h2 { font: italic 800 clamp(1.35rem, 2.6vw, 1.8rem)/1.15 var(--sans); text-transform: uppercase; letter-spacing: -.03em; margin-top: 2.2em; }
.prosa h2::before { content: ''; display: block; width: 44px; height: 3px; background: var(--rojo); margin-bottom: 14px; border-radius: 2px; }
.prosa h3 { font: 700 1.28rem/1.3 var(--serif); margin-top: 1.8em; }
.prosa h2 + *, .prosa h3 + * { margin-top: .7em; }
.prosa a { color: var(--tinta); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(220, 20, 60, .6); text-decoration-thickness: 1.5px; }
.prosa a:hover { text-decoration-color: var(--rojo); color: var(--rojo-osc); }
.prosa strong { font-weight: 700; }
.prosa ul, .prosa ol { padding-left: 1.4em; }
.prosa li + li { margin-top: .45em; }
.prosa ul li::marker { color: var(--rojo); }
.prosa ol li::marker { color: var(--rojo); font-weight: 700; }
.prosa blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--rojo); font: italic 400 1.16rem/1.65 var(--serif); color: var(--tinta-2); }
.prosa blockquote p + p { margin-top: .8em; }

/* En resumen: la carta oscura de la respuesta citable */
.prosa aside.clave { position: relative; padding: 22px 24px 22px 26px; border-radius: 14px; background: var(--negro-2); color: rgba(255, 255, 255, .86);
  box-shadow: 0 0 0 1px rgba(220, 20, 60, .35), 0 16px 32px rgba(26, 26, 46, .18); }
.prosa aside.clave::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 3px 3px 0; background: var(--rojo); box-shadow: var(--glow); }
.prosa aside.clave strong { color: #fff; }
.prosa aside.clave a { color: #fff; }
.prosa aside.clave p + p, .prosa aside.nota p + p { margin-top: .7em; }
/* Nota: un matiz o aviso, en papel crema con borde de puntos e icono en CSS */
.prosa aside.nota { position: relative; padding: 18px 20px 18px 56px; border-radius: 12px; background: var(--crema); border: 1.5px dashed rgba(26, 26, 46, .25); font-size: 1rem; color: var(--tinta-2); }
.prosa aside.nota::before { content: '!'; position: absolute; left: 18px; top: 18px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tinta); color: var(--crema); font: italic 800 .85rem/1 var(--sans); }

/* Tablas: siempre dentro de .tabla, que hace scroll horizontal si no caben */
.prosa .tabla { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1px solid var(--linea);
  background: linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0)) left / 40px 100% no-repeat local,
    linear-gradient(270deg, #fff 30%, rgba(255, 255, 255, 0)) right / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(26, 26, 46, .16), transparent) left / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(26, 26, 46, .16), transparent) right / 12px 100% no-repeat scroll; }
.prosa .tabla:focus-visible { outline: 3px solid var(--rojo); outline-offset: 2px; }
.prosa table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.prosa th, .prosa td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linea); }
.prosa thead th { background: var(--negro-2); color: #fff; font: italic 800 .78rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.prosa tbody tr:nth-child(even) td, .prosa tbody tr:nth-child(even) th { background: rgba(26, 26, 46, .03); }
.prosa tbody th { font-weight: 600; }
.prosa tbody tr:last-child td, .prosa tbody tr:last-child th { border-bottom: 0; }

/* Preguntas del post: las mismas filas que en la portada */
.post-faq { max-width: 900px; padding-top: 72px; }
.post-faq h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 28px; }

/* Caja de alta: la sección negra de la portada en una carta */
.caja-alta-wrap { max-width: 900px; padding-top: 64px; }
.caja-alta { position: relative; overflow: hidden; border-radius: 20px; padding: clamp(28px, 5vw, 48px); background: var(--oscuro); color: #fff;
  box-shadow: 0 0 0 1px rgba(220, 20, 60, .45), 0 30px 70px rgba(26, 26, 46, .3), 0 0 60px rgba(220, 20, 60, .12); }
.caja-alta::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(220, 20, 60, .3), transparent); }
.caja-alta > * { position: relative; z-index: 1; }
.caja-alta h2 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.5rem); max-width: 20ch; }
.caja-alta .sub { color: rgba(255, 255, 255, .7); max-width: 56ch; }
.caja-alta .hero-cta { margin-top: 28px; }
@media (max-width: 480px) { .caja-alta .btn-xl { width: 100%; text-align: center; padding-left: 18px; padding-right: 18px; } }

.post-mas { max-width: 900px; padding-top: 40px; padding-bottom: 96px; }
.post-mas a { display: inline-flex; align-items: center; gap: 8px; font: italic 800 .92rem/1.2 var(--sans); text-transform: uppercase; color: var(--rojo); text-decoration: none; }
.post-mas a:hover { text-decoration: underline; }
.post-mas .ico { width: 18px; height: 18px; }

/* Índice: una carta por artículo */
.blog-lista-wrap { max-width: 900px; }
.blog-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.blog-carta { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 24px; border-radius: 16px; background: var(--papel);
  border: 1px solid var(--linea); box-shadow: 0 14px 32px rgba(26, 26, 46, .08); transition: transform .3s var(--curva), box-shadow .3s var(--curva); }
.blog-carta::before { content: ''; position: absolute; left: 24px; right: 24px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--rojo); }
.blog-carta:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(26, 26, 46, .16); }
.blog-carta img { margin: -26px -24px 4px; width: calc(100% + 48px); max-width: none; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 16px 16px 0 0; }
.blog-carta-meta { font-size: .84rem; color: var(--tinta-3); }
.blog-carta-meta > * { white-space: nowrap; }
.blog-carta-meta > * + *::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--rojo); margin: 0 10px; vertical-align: middle; }
.blog-carta h2 { font: 700 1.4rem/1.25 var(--serif); text-transform: none; letter-spacing: -.01em; }
.blog-carta h2 a { color: var(--tinta); text-decoration: none; }
.blog-carta h2 a::after { content: ''; position: absolute; inset: 0; border-radius: 16px; }
.blog-carta h2 a:hover { text-decoration: underline; text-decoration-color: var(--rojo); }
.blog-carta h2 a:focus-visible { outline: none; }
.blog-carta h2 a:focus-visible::after { outline: 3px solid var(--rojo); outline-offset: 3px; }
.blog-carta p { color: var(--tinta-2); font-size: .98rem; line-height: 1.6; }
.blog-carta .blog-leer { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font: italic 800 .82rem/1.2 var(--sans); text-transform: uppercase; color: var(--rojo); }
.blog-carta .blog-leer .ico { width: 16px; height: 16px; }

@media (max-width: 560px) {
  .post-cab, .blog-cab { padding-top: 16px; }
  .migas [aria-current] { max-width: 24ch; }
  .prosa { font-size: 1.03rem; line-height: 1.7; border-radius: 14px; }
  .prosa aside.clave { padding: 18px 18px 18px 22px; }
  .prosa aside.nota { padding: 16px 16px 16px 50px; }
  .prosa aside.nota::before { left: 14px; top: 16px; }
  .blog-lista { grid-template-columns: 1fr; }
  .post-mas { padding-bottom: 110px; }
}
@media (max-width: 760px) { .blog .pie { padding-bottom: 150px; } }

/* Trustpilot en el texto del blog: logo oficial delante del TrustScore (normas de marca de Trustpilot). */
.tp-marca { white-space: nowrap; }
.tp-marca img { display: inline-block; height: 1em; width: auto; margin-right: .3em; vertical-align: -.12em; }

/* Datos de empresa: la ficha y, debajo, cómo comprobar cada dato */
.datos-comp { margin-top: 32px; }
.post-hoja > .hoja { max-width: none; }
.datos-comp .prosa > h2:first-child { margin-top: 0; }
