/*!
Theme Name: Ohio-Child
Theme URI: http://ohio.colabr.io/
Author: Colabrio
Author URI: http://colabr.io/
Description: Ohio is a WordPress theme bundled with premium plugins to build a modern and functional website.
Version: 1.0.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: ohio
Text Domain: ohio-child
Tags: ajax, customizer, ecommerce, portfolio, minimal, page builder, responsive, multipurpose, shop, store, woocommerce, wpml

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
*/

/* ==========================================================================
   Iconify: espaciados en móvil (solo hasta 767px; ordenador y tablet sin cambios)
   ========================================================================== */
@media (max-width: 767px) {
	/* Todas las páginas: separadores de sección coherentes */
	#content .vc_empty_space.clb__section_spacer,
	#content .vc_empty_space.clb__sm_section_spacer { height: 32px !important; }
	#content .vc_empty_space.clb__spacer,
	#content .vc_empty_space.clb__sm_spacer { height: 28px !important; }
	#content .vc_empty_space:not([class*="clb__"])[style*="height: 12vh"],
	#content .vc_empty_space:not([class*="clb__"])[style*="height: 10vh"],
	#content .vc_empty_space:not([class*="clb__"])[style*="height: 8vh"] { height: 32px !important; }
	#content .vc_empty_space:not([class*="clb__"])[style*="height: 5vh"] { height: 24px !important; }

	/* Home (ID 152208): ajustes específicos aprobados */
	.page-id-152208 #content .vc_empty_space:not([class*="clb__"])[style*="height: 12vh"] { height: 112px !important; }
	.page-id-152208 #content .wpb_column + .wpb_column .vc_empty_space:not([class*="clb__"])[style*="height: 12vh"] { height: 16px !important; }
	.page-id-152208 #content .vc_empty_space.vc_hidden-lg.vc_hidden-md[style*="height: 5vh"] { height: 0 !important; }
	.page-id-152208 #content .vc_empty_space:not([class*="clb__"])[style*="height: 10vh"] { height: 16px !important; }
	.page-id-152208 #content .vc_empty_space:not([class*="clb__"])[style*="height: 8vh"] { height: 32px !important; }
	.page-id-152208 #content .vc_empty_space:not([class*="clb__"]):not(.vc_hidden-md)[style*="height: 5vh"] { height: 24px !important; }
	.page-id-152208 #content .vc_empty_space.vc_hidden-lg:not(.vc_hidden-md)[style*="height: 5vh"] { height: 32px !important; }
}

/* Iconify: carrusel de la home en móvil — logos dentro del cuadro, arriba y en una sola línea (ordenador y tablet sin cambios) */
@media (max-width: 767px) {
	body .icfy-carousel { --icfy-gap: 5px; --icfy-dot: min(44px, calc((100cqw - 24px - var(--icfy-gap) * (var(--icfy-n) - 1)) / var(--icfy-n))); }
	body .icfy-carousel .icfy-carousel__nav { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 5; flex-direction: row; flex-wrap: nowrap; justify-content: center; gap: var(--icfy-gap); margin: 0; transform: none; }
	body .icfy-carousel .icfy-dot__track, body.dark-scheme .icfy-carousel .icfy-dot__track { stroke: rgba(255, 255, 255, .45); }
	body .icfy-carousel .icfy-dot__logo { inset: 3px; border: 0; box-shadow: 0 4px 12px rgba(0, 0, 0, .22); }
}

/* Iconify: el marcador de carga diferida del portfolio ocupa lo mismo que la imagen real (7:5), así la rejilla no deja huecos mientras cargan */
.portfolio-grid img.portfolio-archive-image[data-lazyloaded]:not([data-ll-status="loaded"]) { aspect-ratio: 7 / 5; }

/* Iconify: la animación de entrada (AOS fade-up) del primer bloque de cada página se hace con CSS puro,
   idéntica (opacidad 0 -> 1, sube 32px, 0,4s ease, mismos retrasos), para que no espere al JavaScript (mejora el LCP) */
@keyframes icfy-hero-fadeup { from { opacity: .01; transform: translate3d(0, 32px, 0); } to { opacity: 1; transform: none; } }
#wpb-content-root > .vc_row:first-child [data-aos="fade-up"] { animation: icfy-hero-fadeup .4s ease both; }
#wpb-content-root > .vc_row:first-child [data-aos="fade-up"][data-aos-delay="100"] { animation-delay: .1s; }
#wpb-content-root > .vc_row:first-child [data-aos="fade-up"][data-aos-delay="200"] { animation-delay: .2s; }
#wpb-content-root > .vc_row:first-child [data-aos="fade-up"][data-aos-delay="300"] { animation-delay: .3s; }
#wpb-content-root > .vc_row:first-child [data-aos="fade-up"][data-aos-delay="400"] { animation-delay: .4s; }
@media (prefers-reduced-motion: reduce) { #wpb-content-root > .vc_row:first-child [data-aos="fade-up"] { animation: none; opacity: 1; transform: none; } }

/* icfy-blog-rows: alinea las filas del listado del blog (evita huecos cuando un título ocupa 2 líneas) */
@media (min-width: 768px) {
	.blog-posts > .masonry-block.vc_col-md-6:nth-child(2n+1) { clear: left; }
}

/* icfy-target-size: área táctil mínima 24px en categorías del portfolio (sin cambio visual) */
.portfolio-item .category-holder .category a { display: inline-block; padding: 4px 0; margin: -4px 0; }
