/* toha-blocks / posts: replica del look de Frontend Builder para los posts migrados a bloques core.
   Equivalencias: .toha-post = #fbuilder_wrapper, .toha-post-row = .fbuilder_row,
   .toha-post-col = .fbuilder_column (bordes transparentes de 24/18/12 px), .toha-post-h/.toha-post-text = modulos. */

.toha-post { display: flow-root; margin: 0; padding: 0; }
/* Igual que #fbuilder_content_wrapper: flotante al 100%. En movil el menu del tema desborda el navbar
   (es flotante) y este float hace que el contenido parta bajo el menu, como en vivo. El clearfix de
   .container-fluid del tema cierra el float. */
.container-t > .toha-post { float: left; width: 100%; }
/* En temas clasicos el grupo envuelve a sus hijos en .wp-block-group__inner-container: se cubren ambos casos. */
.toha-post .wp-block-group__inner-container { margin: 0; padding: 0; }

/* Filas: fondo a todo el ancho con el mismo truco del builder. */
.toha-post .toha-post-row { position: relative; margin: 0 -1500px; padding-left: 1500px; padding-right: 1500px; display: flow-root; }

/* Fila vacia del builder: 1px de alto (min-height de la columna). */
.toha-post .toha-post-row-empty::after { content: ""; display: block; height: 1px; }

/* Columnas */
.toha-post .toha-post-cols { display: flex; flex-wrap: nowrap !important; gap: 0; margin: 0 -24px; padding: 0; align-items: flex-start !important; }
.toha-post .toha-post-col { box-sizing: border-box; flex-grow: 0; min-width: 0; border-left: 24px solid transparent; border-right: 24px solid transparent; margin: 0 !important; word-break: normal; overflow-wrap: normal; }
.toha-post .toha-post-col-3-5 { flex: 0 0 60% !important; }
.toha-post .toha-post-col-2-5 { flex: 0 0 40% !important; }
.toha-post .toha-post-col-2-3 { flex: 0 0 66.66666% !important; }
.toha-post .toha-post-col-1-3 { flex: 0 0 33.33333% !important; }
@media screen and (max-width: 1200px) {
	.toha-post .toha-post-cols { margin: 0 -18px; }
	.toha-post .toha-post-col { border-left-width: 18px; border-right-width: 18px; }
}
@media screen and (max-width: 960px) {
	.toha-post .toha-post-cols { margin: 0 -12px; }
	.toha-post .toha-post-col { border-left-width: 12px; border-right-width: 12px; }
}
@media screen and (max-width: 768px) {
	.toha-post .toha-post-cols { margin: 0; flex-wrap: wrap !important; }
	.toha-post .toha-post-col { flex-basis: 100% !important; border-width: 0; }
}

/* Titulos (fuente global del builder: Open Sans 300, line-height 16px) */
.toha-post .toha-post-h { margin: 0 0 10px; font-family: Open Sans, serif; font-weight: 300; font-style: normal; text-align: left; }
.toha-post h1.toha-post-h { font-size: 45px; line-height: 16px; }
.toha-post h2.toha-post-h { font-size: 30px; line-height: 16px; }

/* Texto */
.toha-post .toha-post-text { margin: 0; text-align: left; }
.toha-post .toha-post-text > p,
.toha-post .toha-post-text > .wp-block-group__inner-container > p { margin: 0 0 10px; }
.toha-post .toha-post-text p.toha-post-inline { margin: 0; }
.toha-post .toha-post-meta > .wp-block-group__inner-container,
.toha-post .toha-post-meta > *,
.toha-post .toha-post-meta > .wp-block-group__inner-container > * { display: inline; margin: 0; }
.toha-post .toha-post-meta .wp-block-post-date { font-size: inherit; }

/* Imagen */
.toha-post .toha-post-image { display: block; margin: 0; padding-bottom: 24px; line-height: 0; text-align: center; }
.toha-post .toha-post-image img { display: block; max-width: 100%; height: auto; margin: 0 auto; }

/* Slider (galeria core) */
.toha-post .toha-post-slider { display: block !important; margin: 0; padding: 0 0 24px; gap: 0; }
.toha-post .toha-post-slider__view { overflow: hidden; position: relative; }
.toha-post .toha-post-slider__track { display: flex; align-items: flex-start; transition: transform 300ms; }
.toha-post .toha-post-slider.wp-block-gallery.has-nested-images figure.wp-block-image:not(#toha) { flex: 0 0 100% !important; width: 100% !important; margin: 0 !important; display: block !important; }
/* El CSS de galeria de core usa max-width:100%!important y :not(#individual-image): se sube la especificidad. */
.toha-post .toha-post-slider.wp-block-gallery.has-nested-images figure.wp-block-image:not(#toha) img { display: block; max-width: none !important; width: auto !important; height: auto !important; margin: 0 auto; flex: none !important; object-fit: none !important; }
.toha-post .toha-post-slider:not(.is-ready) > .wp-block-image:not(:first-child) { display: none; }
.toha-post .toha-post-slider__pag { display: block; text-align: center; width: 100%; padding-top: 10px; }
.toha-post .toha-post-slider__pag span { display: inline-block; width: 10px; height: 10px; border-radius: 10px; background: #999; box-shadow: 0 1px 2px #555 inset; margin: 0 3px; cursor: pointer; }
.toha-post .toha-post-slider__pag span.is-active { background: #fff; }
@media (prefers-reduced-motion: reduce) { .toha-post .toha-post-slider__track { transition: none; } }

/* Sidebar "Entradas recientes" (widget del builder) */
.toha-post .toha-post-sidebar { margin: 0; }
.toha-post .toha-post-sidebar .widget-title { margin: 20px 0 10px; font-family: Open Sans, serif; font-weight: 300; font-size: 30px; line-height: 16px; }
.toha-post ul.wp-block-latest-posts.toha-post-recent { list-style: circle; margin: 16px 0; padding: 0 0 0 40px; }
.toha-post ul.toha-post-recent li { margin: 0; padding: 0; }

/* Video */
.toha-post .toha-post-video iframe { border: 0; }
.toha-post .toha-post-video-auto iframe { width: 100%; }

/* --- correcciones post-migracion (22-10-2026) --- */
/* Las filas usan el truco -1500px/+1500px del builder: sin esto la pagina se desplaza a la derecha. */
html, body { overflow-x: clip; }
