/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* ==========================================================================
   Getecna — Tarjetas de proyecto (carrusel "MÁS PROYECTOS")
   Acotado a .wd-project--getecna para no afectar otros listados.
   ========================================================================== */

/* Fuente Montserrat (la del sitio) en toda la tarjeta */
.wd-project--getecna,
.wd-project--getecna .portfolio-info,
.wd-project--getecna .wd-entities-title,
.wd-project--getecna .wd-entities-title a,
.wd-project--getecna .proj-cats-list li,
.wd-project--getecna .wd-project__subtitle,
.wd-project--getecna .wd-project__link {
	font-family: 'Montserrat', 'Kumbh Sans', sans-serif !important;
}

/* Altura igual: estirar los slides del carrusel y que la tarjeta llene la altura */
.wd-projects .wd-carousel-item,
.wd-portfolio-element .wd-carousel-item {
	height: auto;
	display: flex;
}

.wd-project--getecna {
	display: flex;
	width: 100%;
}

.wd-project--getecna .entry-header {
	background-color: #fff;
	border: 1px solid #ececec;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(16, 24, 40, .05);
	transition: box-shadow .3s ease, transform .3s ease;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.wd-project--getecna:hover .entry-header {
	box-shadow: 0 12px 28px rgba(16, 24, 40, .12);
	transform: translateY(-4px);
}

/* Imagen superior uniforme */
.wd-project--getecna .entry-thumbnail {
	margin: 0;
	border-radius: 0;
	overflow: hidden;
}

.wd-project--getecna .portfolio-thumbnail {
	display: block;
	overflow: hidden;
}

.wd-project--getecna .portfolio-thumbnail img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
	opacity: 1 !important;
	visibility: visible !important;
	transition: transform .6s ease;
}

.wd-project--getecna:hover .portfolio-thumbnail img {
	transform: scale(1.05);
}

/* Quitar overlay oscuro del tema y botones de hover */
.wd-project--getecna .portfolio-thumbnail:after {
	display: none !important;
}

.wd-project--getecna .wd-portfolio-btns {
	display: none !important;
}

/* Bloque de información, alineado a la izquierda */
.wd-project--getecna .portfolio-info {
	background-color: #fff !important;
	text-align: left !important;
	padding: 16px 18px 18px !important;
	transform: none !important;
	opacity: 1 !important;
	position: static !important;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	flex: 1 1 auto;
}

/* Categoría con ícono */
.wd-project--getecna .wrap-meta {
	margin: 0;
}

.wd-project--getecna .proj-cats-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
}

.wd-project--getecna .proj-cats-list li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	color: var(--wd-primary-color, rgb(32, 172, 179));
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	line-height: 1;
}

.wd-project--getecna .proj-cats-list li:before {
	display: none !important;
}

.wd-project--getecna .wd-project__cat-icon {
	display: inline-flex;
	color: var(--wd-primary-color, rgb(32, 172, 179));
}

.wd-project--getecna .wd-project__cat-icon svg {
	width: 16px;
	height: 16px;
	display: block;
}

/* Título en negro */
.wd-project--getecna .wrap-title {
	margin: 0;
}

.wd-project--getecna .wd-entities-title {
	margin: 0;
	font-size: 17px;
	line-height: 1.3;
	font-weight: 700;
}

.wd-project--getecna .wd-entities-title a {
	color: #1a1a1a !important;
	font-weight: 700;
	transition: color .2s ease;
	/* Límite de 2 líneas visibles con puntos suspensivos */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: calc(2 * 1.3em);
}

.wd-project--getecna:hover .wd-entities-title a {
	color: var(--wd-primary-color, rgb(32, 172, 179)) !important;
}

/* Subtítulo gris */
.wd-project--getecna .wd-project__subtitle {
	margin: 0;
	color: #6b7280;
	font-size: 13.5px;
	line-height: 1.4;
	/* Límite de 2 líneas visibles */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Enlace "Ver proyecto" */
.wd-project--getecna .wd-project__link {
	margin-top: auto;
	padding-top: 10px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--wd-primary-color, rgb(32, 172, 179));
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.wd-project--getecna .wd-project__link:hover {
	color: var(--wd-primary-color, rgb(32, 172, 179));
}

.wd-project--getecna .wd-project__arrow {
	transition: transform .25s ease;
}

.wd-project--getecna .wd-project__link:hover .wd-project__arrow {
	transform: translateX(4px);
}

/* ==========================================================================
   Getecna — Barra de filtros de proyectos (pills con icono por categoría)
   ========================================================================== */
.getecna-filter { margin-bottom: 30px; }

.getecna-filter .wd-nav-portfolio.wd-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	border: 0 !important;
	padding: 0;
	margin: 0;
}

.getecna-filter .wd-nav-portfolio > li {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.getecna-filter .wd-nav-portfolio > li:before,
.getecna-filter .wd-nav-portfolio > li:after,
.getecna-filter .wd-nav-portfolio > li > a:before,
.getecna-filter .wd-nav-portfolio > li > a:after {
	display: none !important;
}

.getecna-filter .wd-nav-portfolio > li > a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px solid #e3e6ea;
	border-radius: 999px;
	background: #fff;
	color: #55606b !important;
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	line-height: 1;
	transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.getecna-filter .wd-nav-portfolio > li > a .wd-filter-icon,
.getecna-filter .wd-nav-portfolio > li > a .wd-filter-icon svg {
	display: inline-flex;
	width: 16px;
	height: 16px;
}

.getecna-filter .wd-nav-portfolio > li > a:hover {
	border-color: var(--wd-primary-color, rgb(32, 172, 179));
	color: var(--wd-primary-color, rgb(32, 172, 179)) !important;
}

.getecna-filter .wd-nav-portfolio > li.wd-active > a {
	background: var(--wd-primary-color, rgb(32, 172, 179));
	color: #fff !important;
	border-color: transparent;
	box-shadow: 0 6px 16px rgba(32, 172, 179, .28);
}

@media (max-width: 767px) {
	.getecna-filter .wd-nav-portfolio.wd-nav {
		flex-wrap: nowrap;
		overflow-x: auto;
		justify-content: flex-start;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 6px;
	}
	.getecna-filter .wd-nav-portfolio > li > a { white-space: nowrap; }
}

/* ==========================================================================
   Getecna — Forzar info siempre visible (independiente de hover/text-shown)
   Necesario en archivos/páginas donde el estilo del widget es "hover".
   ========================================================================== */
.wd-project--getecna .portfolio-info,
.wd-project--getecna .wrap-meta,
.wd-project--getecna .proj-cats-list,
.wd-project--getecna .proj-cats-list li,
.wd-project--getecna .wrap-title,
.wd-project--getecna .wd-entities-title,
.wd-project--getecna .wd-entities-title a,
.wd-project--getecna .wd-project__subtitle,
.wd-project--getecna .wd-project__link {
	opacity: 1 !important;
	transform: none !important;
	visibility: visible !important;
}

/* En estilo hover/inverse la info va absoluta sobre la imagen: forzarla estática debajo */
.wd-project--getecna.portfolio-hover .entry-header,
.wd-project--getecna.portfolio-hover-inverse .entry-header {
	background-color: #fff;
}
.wd-project--getecna.portfolio-hover .portfolio-info,
.wd-project--getecna.portfolio-hover-inverse .portfolio-info {
	position: static !important;
	inset: auto !important;
}

/* ==========================================================================
   Getecna — Tarjetas del grid con MISMA ALTURA (todo alineado)
   ========================================================================== */
.wd-project--getecna .portfolio-info {
	min-height: 172px;               /* reserva de altura uniforme del contenido */
	justify-content: flex-start;
}
/* categoría en una sola línea para no descuadrar */
.wd-project--getecna .proj-cats-list {
	flex-wrap: nowrap;
	overflow: hidden;
	max-width: 100%;
}
.wd-project--getecna .proj-cats-list li { white-space: nowrap; }
/* subtítulo reserva 2 líneas aunque tenga una, para alinear el enlace */
.wd-project--getecna .wd-project__subtitle { min-height: calc(2 * 1.4em); }

/* ==========================================================================
   Getecna — Bento "Proyectos destacados": animación + hover
   ========================================================================== */
.elementor-element-d6716ce,
.elementor-element-5e8e0d0,
.elementor-element-17ce607 {
	transition: transform .45s cubic-bezier(.22,.61,.36,1), box-shadow .45s ease, filter .45s ease;
	will-change: transform;
	overflow: hidden;
}
.elementor-element-d6716ce:hover,
.elementor-element-5e8e0d0:hover,
.elementor-element-17ce607:hover {
	transform: translateY(-6px);
	box-shadow: 0 22px 48px rgba(0, 0, 0, .32);
	filter: saturate(1.06);
}
/* la flecha del botón "VER PROYECTO" se desplaza al hover de la tarjeta */
.elementor-element-d6716ce:hover .elementor-button span,
.elementor-element-5e8e0d0:hover .elementor-button span,
.elementor-element-17ce607:hover .elementor-button span {
	letter-spacing: .04em;
}

/* ===== Getecna — Ícono por categoría en el bento destacado ===== */
.elementor-element-f4fb6c6 .elementor-button-text{display:inline-flex;align-items:center;gap:7px;}
.elementor-element-f4fb6c6 .elementor-button-text::before{content:'';width:16px;height:16px;flex:0 0 16px;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2716%27%20height%3D%2716%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%2021h18%27%2F%3E%3Cpath%20d%3D%27M6%2021V7l6-4%206%204v14%27%2F%3E%3Cpath%20d%3D%27M10%209h.01M14%209h.01M10%2013h.01M14%2013h.01M10%2017h.01M14%2017h.01%27%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;}
.elementor-element-4af99f3 .elementor-button-text{display:inline-flex;align-items:center;gap:7px;}
.elementor-element-4af99f3 .elementor-button-text::before{content:'';width:16px;height:16px;flex:0 0 16px;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2716%27%20height%3D%2716%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%2021h18%27%2F%3E%3Cpath%20d%3D%27M5%2021V9M10%2021V9M14%2021V9M19%2021V9%27%2F%3E%3Cpath%20d%3D%27M4%209h16%27%2F%3E%3Cpath%20d%3D%27M12%203%204%207v2h16V7z%27%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;}
.elementor-element-9d69d69 .elementor-button-text{display:inline-flex;align-items:center;gap:7px;}
.elementor-element-9d69d69 .elementor-button-text::before{content:'';width:16px;height:16px;flex:0 0 16px;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2716%27%20height%3D%2716%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%271.9%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M14%202H6a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2V8z%27%2F%3E%3Cpath%20d%3D%27M14%202v6h6%27%2F%3E%3Cpath%20d%3D%27M8%2013h8M8%2017h8M8%209h2%27%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;}

/* ==========================================================================
   GETECNA — Blog hub "Visión Técnica" (Fase 4)
   ========================================================================== */
.getecna-hub { font-family: 'Montserrat', 'Kumbh Sans', sans-serif; color: #1a1a1a; }
.getecna-hub *, .getecna-hub *::before, .getecna-hub *::after { box-sizing: border-box; }

/* --- Barra de categorías --- */
.gh-catbar { text-align: center; margin: 0 0 40px; }
.gh-catbar__title {
	font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: #2a3340; margin: 0 0 20px;
}
.gh-catbar__list {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 4px;
}
.gh-catbar__list > li { margin: 0; }
.gh-catbar__list > li + li { border-left: 1px solid #e3e6ea; }
.gh-catbar__list a {
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px;
	color: #4a5563; font-size: 13px; font-weight: 600; transition: color .2s ease;
}
.gh-catbar__list a:hover { color: var(--wd-primary-color, rgb(32,172,179)); }
.gh-catbar__icon { display: inline-flex; color: var(--wd-primary-color, rgb(32,172,179)); }
.gh-catbar__icon svg { width: 18px; height: 18px; display: block; }

/* --- Encabezado de sección --- */
.gh-section { margin: 0 0 48px; }
.gh-section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.gh-section__title {
	position: relative; margin: 0; font-size: 22px; font-weight: 700; color: #1a2230;
	display: inline-flex; align-items: center; gap: 14px;
}
.gh-section__title::after { content: ''; width: 40px; height: 2px; background: var(--wd-primary-color, rgb(32,172,179)); }
.gh-section__all {
	font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	color: var(--wd-primary-color, rgb(32,172,179)); white-space: nowrap;
}
.gh-section__all:hover { color: var(--wd-primary-color, rgb(32,172,179)); text-decoration: underline; }

/* --- Investigaciones: destacada + grid --- */
.gh-research { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: stretch; }
.gh-research__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* --- Tarjeta regular --- */
.gh-card {
	display: flex; flex-direction: column; background: #fff; border: 1px solid #ececec;
	border-radius: 12px; overflow: hidden; height: 100%;
	box-shadow: 0 2px 6px rgba(16,24,40,.05); transition: box-shadow .3s ease, transform .3s ease;
}
.gh-card:hover { box-shadow: 0 14px 30px rgba(16,24,40,.12); transform: translateY(-4px); }
.gh-card__thumb { display: block; overflow: hidden; }
.gh-card__thumb img { display: block; width: 100%; height: 170px; object-fit: cover; transition: transform .6s ease; }
.gh-card:hover .gh-card__thumb img { transform: scale(1.05); }
.gh-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1 1 auto; }
.gh-card__label {
	font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	color: var(--wd-primary-color, rgb(32,172,179));
}
.gh-card__title { margin: 0; font-size: 16px; line-height: 1.32; font-weight: 700; }
.gh-card__title a {
	color: #1a2230 !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
	overflow: hidden; transition: color .2s ease;
}
.gh-card:hover .gh-card__title a { color: var(--wd-primary-color, rgb(32,172,179)) !important; }
.gh-card__excerpt {
	margin: 0; font-size: 13px; line-height: 1.5; color: #6b7280;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gh-card__meta { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gh-card__more { font-size: 12px; font-weight: 700; color: var(--wd-primary-color, rgb(32,172,179)); white-space: nowrap; }
.gh-card__more:hover { color: var(--wd-primary-color, rgb(32,172,179)); }
.gh-card__date { font-size: 12px; color: #8a929c; }
.gh-card__time { font-size: 12px; color: #8a929c; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.gh-card__time::before {
	content: ''; width: 13px; height: 13px; flex: 0 0 13px; background: no-repeat center/contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%238a929c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

/* --- Tarjeta destacada (dark) --- */
.gh-featured {
	display: flex; flex-direction: column; height: 100%; background: #0f141b; color: #fff;
	border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(16,24,40,.18);
	transition: transform .35s ease, box-shadow .35s ease;
}
.gh-featured:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(16,24,40,.28); }
.gh-featured__thumb { position: relative; display: block; overflow: hidden; }
.gh-featured__thumb img { display: block; width: 100%; height: 220px; object-fit: cover; }
.gh-featured__badge {
	position: absolute; top: 16px; left: 16px; background: var(--wd-primary-color, rgb(32,172,179));
	color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	padding: 6px 12px; border-radius: 6px;
}
.gh-featured__body { display: flex; flex-direction: column; gap: 12px; padding: 24px; flex: 1 1 auto; }
.gh-featured .gh-card__label { color: #6fd0d8; }
.gh-featured__title { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 700; }
.gh-featured__title a { color: #fff !important; }
.gh-featured__title a:hover { color: #6fd0d8 !important; }
.gh-featured__excerpt { margin: 0; font-size: 14px; line-height: 1.55; color: #b9c2cc; }
.gh-featured .gh-card__meta { margin-top: auto; padding-top: 12px; }
.gh-featured .gh-card__more { color: #6fd0d8; font-size: 13px; }
.gh-featured .gh-card__time { color: #9aa4af; }
.gh-featured .gh-card__time::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%239aa4af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

/* --- Grid de artículos técnicos --- */
.gh-grid { display: grid; gap: 22px; }
.gh-grid--articles { grid-template-columns: repeat(6, 1fr); }
.gh-grid--articles .gh-card__thumb img { height: 130px; }
.gh-grid--articles .gh-card__title { font-size: 14px; }

/* --- Responsive --- */
@media (max-width: 1200px) {
	.gh-grid--articles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
	.gh-research { grid-template-columns: 1fr; }
	.gh-research__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
	.gh-research__grid, .gh-grid--articles { grid-template-columns: repeat(2, 1fr); }
	.gh-section__head { flex-direction: column; align-items: flex-start; gap: 8px; }
	.gh-catbar__list { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; }
	.gh-catbar__list > li + li { border-left: 0; }
}
@media (max-width: 480px) {
	.gh-research__grid, .gh-grid--articles { grid-template-columns: 1fr; }
}

/* Hub: contención y ancho */
.getecna-hub { max-width: 1200px; margin: 0 auto; padding: 10px 15px 30px; }

/* Fix: color de la barra de categorías (el tema forzaba enlaces en blanco) */
.getecna-hub .gh-catbar__list a,
.getecna-hub .gh-catbar__name { color: #4a5563 !important; }
.getecna-hub .gh-catbar__list a:hover,
.getecna-hub .gh-catbar__list a:hover .gh-catbar__name { color: var(--wd-primary-color, rgb(32,172,179)) !important; }
.getecna-hub .gh-section__all { color: var(--wd-primary-color, rgb(32,172,179)) !important; }

/* --- Archivo de blog: tarjeta estilo Getecna --- */
.wd-post.gh-archive-item {
	display: flex; flex-direction: column; background: #fff; border: 1px solid #ececec;
	border-radius: 12px; overflow: hidden; box-shadow: 0 2px 6px rgba(16,24,40,.05);
	transition: box-shadow .3s ease, transform .3s ease; padding: 0;
	font-family: 'Montserrat','Kumbh Sans',sans-serif;
}
.wd-post.gh-archive-item:hover { box-shadow: 0 14px 30px rgba(16,24,40,.12); transform: translateY(-4px); }
.wd-post.gh-archive-item .gh-card__title a { -webkit-line-clamp: 2; color: #1a2230 !important; }
.wd-post.gh-archive-item .gh-card__thumb img { height: 190px; }

/* Fix: color de "Leer más" (el tema forzaba enlaces en blanco) */
.gh-card .gh-card__more,
.gh-archive-item .gh-card__more { color: var(--wd-primary-color, rgb(32,172,179)) !important; }
.gh-featured .gh-card__more { color: #6fd0d8 !important; }
.gh-card__title a { color: #1a2230 !important; }
.gh-featured__title a { color: #fff !important; }
