/* RESET Journal: blog y artículos con el sistema visual de la landing (landing.css). */

.rv-journal { color: var(--rv-dark); background: var(--rv-white); }
.rv-journal a { color: inherit; }
.rv-journal img { display: block; max-width: 100%; height: auto; }

/* Autora */
.rv-jauthor { display: flex; align-items: center; gap: 14px; padding-top: 20px; margin-top: 8px; border-top: 1px solid var(--rv-line); font-size: 14px; line-height: 1.4; }
.rv-jauthor img { width: 56px; height: 56px; border-radius: 999px; object-fit: cover; object-position: 50% 20%; }
.rv-jauthor strong { display: block; font-size: 15px; }

/* Portada del blog */
.rv-jhero { padding: clamp(56px, 7vw, 96px) 0; }
.rv-jhero__title { font-weight: 600; font-size: clamp(2.5rem, 4.8vw, 4rem); line-height: 1.06; letter-spacing: -.02em; max-width: 13em; }
.rv-jhero__media { position: relative; aspect-ratio: 4 / 5; max-height: 620px; overflow: hidden; border-top: 3px solid var(--rv-sage); }
.rv-jhero__media img { width: 100%; height: 100% !important; object-fit: cover; object-position: 60% 25%; }

/* Artículo destacado */
.rv-jfeat { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 64px); align-items: center; }
.rv-jfeat__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.rv-jfeat__media img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .6s ease; }
.rv-jfeat__media:hover img { transform: scale(1.03); }
.rv-jfeat .rv-h2 a { text-decoration: none; }
.rv-jfeat .rv-h2 a:hover { color: var(--rv-sage); }

/* Grilla de tarjetas (como las fases del método) */
.rv-jgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.rv-jcard { display: flex; flex-direction: column; background: var(--rv-white); border-top: 3px solid var(--rv-sage); }
.rv-jcard__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.rv-jcard__media img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .6s ease; }
.rv-jcard:hover .rv-jcard__media img { transform: scale(1.04); }
.rv-jcard__body { display: flex; flex-direction: column; gap: 12px; padding: 26px 28px 30px; flex: 1; }
.rv-jcard__title { font-weight: 600; font-size: 1.3rem; line-height: 1.3; }
.rv-jcard__title a { text-decoration: none; }
.rv-jcard__title a:hover { color: var(--rv-sage); }
.rv-jcard__body p { font-size: 15px; line-height: 1.65; flex: 1; }
.rv-jcard .rv-textlink { margin-top: 4px; padding: 6px 0; }

/* Portada del artículo */
.rv-jpost-hero { padding: clamp(48px, 6vw, 80px) 0 clamp(120px, 14vw, 180px); }
.rv-jback { align-self: flex-start; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--rv-sage) !important; }
.rv-jback:hover { text-decoration: underline; }
.rv-jpost-hero__title { font-weight: 600; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.08; letter-spacing: -.02em; }
.rv-jpost-media { margin-top: calc(-1 * clamp(96px, 12vw, 150px)); }
.rv-jpost-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-top: 3px solid var(--rv-sage); }

/* Texto del artículo */
.rv-jarticle { padding: clamp(48px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); }
.rv-jprose { max-width: 808px; font-size: 1.08rem; line-height: 1.8; }
.rv-jprose > * + * { margin-top: 1.1em; }
.rv-jprose > p:first-child { font-size: 1.2rem; line-height: 1.7; }
.rv-jprose h2 { font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.2; letter-spacing: -.01em; margin-top: 2.2em; padding-top: 1.1em; border-top: 1px solid var(--rv-line); }
.rv-jprose h3 { font-weight: 600; font-size: 1.25rem; line-height: 1.35; margin-top: 1.8em; color: var(--rv-dark); }
.rv-jprose h2 + *, .rv-jprose h3 + * { margin-top: .6em; }
.rv-jprose strong { font-weight: 600; }
.rv-jprose a { color: var(--rv-sage); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rv-jprose ul, .rv-jprose ol { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.rv-jprose ul li { position: relative; padding-left: 30px; }
.rv-jprose ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 999px; background: var(--rv-sage); }
.rv-jprose ol { counter-reset: rvn; }
.rv-jprose ol li { position: relative; padding-left: 44px; counter-increment: rvn; }
.rv-jprose ol li::before { content: counter(rvn, decimal-leading-zero); position: absolute; left: 0; top: 0; font-weight: 600; color: var(--rv-numeral); }
.rv-jprose figure.wp-block-table { margin-top: 1.6em; overflow-x: auto; }
.rv-jprose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; background: var(--rv-white); }
.rv-jprose th, .rv-jprose td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--rv-line); }
.rv-jprose thead th { background: var(--rv-sage); color: var(--rv-white); font-weight: 600; border-bottom: 0; }
.rv-jprose tbody tr:nth-child(even) td { background: var(--rv-cream); }
.rv-jprose td:first-child { font-weight: 600; }
.rv-jprose > p:last-child em { display: block; padding: 22px 26px; background: var(--rv-cream); border-left: 3px solid var(--rv-sage); font-style: normal; font-weight: 600; color: var(--rv-sage); }

/* Ficha de la autora */
.rv-jbio-wrap { padding-bottom: clamp(56px, 7vw, 88px); }
.rv-jbio { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: start; max-width: 760px; padding: clamp(24px, 3.5vw, 36px); background: var(--rv-white); border: 1px solid var(--rv-line); border-top: 3px solid var(--rv-sage); }
.rv-jbio img { width: 120px; height: 120px; border-radius: 999px; object-fit: cover; object-position: 50% 20%; }
.rv-jbio p { line-height: 1.7; }

/* Mismo ancho de columna en portada, texto y ficha del artículo */
.rv-jpost-hero .rv-wrap, .rv-jbio-wrap .rv-wrap { max-width: 808px; }
.rv-jbio { max-width: none; }

/* Botón del destacado con su ancho natural, como en la landing */
.rv-jfeat__body .rv-btn { align-self: flex-start; }

/* En /blog/ la grilla va de a 2 para que las tarjetas respiren */
.rv-jgrid--two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 32px; }
.rv-jgrid--two .rv-jcard__title { font-size: 1.45rem; }

/* Cierre */
.rv-jcta .rv-lead { margin: 0 auto; }

@media (max-width: 640px) {
	.rv-jbio { grid-template-columns: 1fr; }
	.rv-jhero__media { aspect-ratio: 4 / 3; }
	.rv-jprose td:first-child { font-weight: 600; min-width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
	.rv-jcard__media img, .rv-jfeat__media img { transition: none; }
}
