/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/

/* ==========================================================================
   BLOG — estilos propios de los artículos
   Ámbito: body.single-post .fusion-content-tb, que es el contenedor del texto
   del artículo. Deja fuera el resto del sitio y también, dentro de la propia
   entrada, la cabecera, los comentarios y las zonas de widgets.
   Rex4media · 2026-08-12
   ========================================================================== */

/* H2 — hereda el carácter del H1 del artículo (Manrope 300, tracking cerrado),
   un escalón por debajo en tamaño: 40px del H1 → 28px. */
body.single-post .fusion-content-tb h2 {
	font-family: "Manrope", Arial, Helvetica, sans-serif;
	font-size: 28px;
	font-style: normal;
	font-weight: 300;
	letter-spacing: -1px;
	line-height: 1.25;
	text-transform: none;
	margin-top: 60px;
	margin-bottom: 28px;
}

/* H3 — asume el estilo que hasta ahora tenían los H2 (IBM Plex Mono
   espaciado), y siempre en mayúsculas. */
body.single-post .fusion-content-tb h3 {
	font-family: "IBM Plex Mono", Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	letter-spacing: 4px;
	line-height: 1.6;
	text-transform: uppercase;
	margin-top: 48px;
	margin-bottom: 22px;
}

/* Imágenes del cuerpo — más aire arriba y abajo, y alineadas a la izquierda
   en lugar de centradas. */
body.single-post .fusion-content-tb img,
body.single-post .fusion-content-tb .wp-caption {
	display: block;
	height: auto;
	max-width: 100%;
	margin-top: 64px !important;
	margin-bottom: 64px !important;
	margin-left: 0 !important;
	margin-right: auto !important;
}

/* El párrafo que solo envuelve una imagen no debe centrarla ni añadir su
   propio espacio al de la imagen. */
body.single-post .fusion-content-tb p:has(> img) {
	text-align: left;
	margin-bottom: 0;
}

/* Pie de foto alineado con la imagen. */
body.single-post .fusion-content-tb .wp-caption-text {
	text-align: left;
}

/* Dos imágenes seguidas no necesitan doble espacio entre ellas. */
body.single-post .fusion-content-tb img + img {
	margin-top: 0 !important;
}

/* Móvil — mismas proporciones, menos aire. */
@media (max-width: 640px) {
	body.single-post .fusion-content-tb h2 {
		font-size: 22px;
		margin-top: 40px;
		margin-bottom: 20px;
	}
	body.single-post .fusion-content-tb h3 {
		font-size: 14px;
		letter-spacing: 3px;
		margin-top: 34px;
		margin-bottom: 16px;
	}
	body.single-post .fusion-content-tb img,
	body.single-post .fusion-content-tb .wp-caption {
		margin-top: 36px !important;
		margin-bottom: 36px !important;
	}
}
