/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/


/* TRAL lote 3: validación, capacitación, productos destacados y carrito lateral. */
.wd-nav-main > li > a[href*="sistema-de-validacion-de-certificados"] {
	background: #f9c900;
	color: #07182f !important;
	border-radius: 6px;
	padding: 10px 14px !important;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.15;
	text-align: center;
}

.wd-nav-main > li > a[href*="sistema-de-validacion-de-certificados"]:hover {
	background: #ffd83d;
	color: #07182f !important;
}

.mobile-nav a[href*="sistema-de-validacion-de-certificados"] {
	border-left: 5px solid #f9c900;
	color: #07182f !important;
	font-weight: 800;
}

#programas .tral-bilingual-note,
.tral-programs-page .tral-bilingual-note {
	display: inline-block;
	margin: 16px 0 0;
	padding: 10px 14px;
	border-radius: 6px;
	background: #f9c900;
	color: #07182f !important;
	font-weight: 800;
	line-height: 1.45;
}

.home .elementor-element-e23e64a .product-element-top img {
	transform: scale(1.14) !important;
	transform-origin: center;
	transition: transform .25s ease;
}

.home .elementor-element-e23e64a .product-grid-item:hover .product-element-top img {
	transform: scale(1.18) !important;
}

.cart-widget-side .mini_cart_item > .cart-item-link.wd-fill {
	display: none !important;
}

.cart-widget-side .mini_cart_item .cart-info {
	position: relative;
	z-index: 2;
}

.cart-widget-side .mini_cart_item .quantity {
	display: block;
	margin-top: 5px;
	color: #07182f;
	font-size: 14px;
	font-weight: 800;
}

.tral-mini-cart-help {
	margin: 0 20px 14px;
	padding: 12px 14px;
	border-left: 5px solid #f9c900;
	border-radius: 5px;
	background: #f3f6f9;
	color: #07182f;
	font-size: 13px;
	line-height: 1.4;
}

.tral-mini-cart-help strong,
.tral-mini-cart-help span {
	display: block;
}

.tral-edit-quantity {
	display: inline-flex;
	margin-top: 9px;
	padding: 7px 10px;
	border-radius: 4px;
	background: #f9c900;
	color: #07182f !important;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}

.tral-edit-quantity:hover {
	background: #07182f;
	color: #fff !important;
}


/* TRAL lote 4: PETZL bajo consulta */
.tral-price-on-request {
	display: inline-block;
	font-weight: 700;
	color: #176344;
	letter-spacing: .01em;
}

.tral-petzl-consult-wrap {
	margin-top: 14px;
	margin-bottom: 0;
}

a.tral-petzl-consult.button {
	background-color: #176344;
	color: #fff;
}

a.tral-petzl-consult.button:hover {
	background-color: #0f4931;
	color: #fff;
}


/* TRAL lote 5: catálogos por actividad */
.tral-activity-catalog-intro {
	margin: 0 0 24px;
	padding: 16px 18px;
	border-left: 4px solid #176344;
	background: #f2f7f4;
	color: #24352d;
	line-height: 1.55;
}

.tral-activity-catalog-intro strong {
	color: #176344;
}


/* TRAL lote 6: portada compacta */
body.tral-compact-home-page .page-title,
body.tral-compact-home-page .title-size-default {
	display: none;
}

body.tral-compact-home-page .main-page-wrapper,
body.tral-compact-home-page .site-content {
	padding-top: 0;
}

.tral-compact-home {
	--tral-green: #176344;
	--tral-green-dark: #0f4931;
	--tral-navy: #06263c;
	--tral-yellow: #ffc400;
	--tral-ink: #18231e;
	--tral-soft: #f4f7f5;
	--tral-line: #dce4df;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	color: var(--tral-ink);
	background: #fff;
	overflow: hidden;
}

.tral-compact-home *,
.tral-compact-home *::before,
.tral-compact-home *::after {
	box-sizing: border-box;
}

.tral-compact-reel {
	position: relative;
	height: clamp(500px, 54vw, 670px);
	background: #0b1d25;
	overflow: hidden;
}

.tral-reel-stage,
.tral-reel-slide {
	position: absolute;
	inset: 0;
}

.tral-reel-slide {
	display: block;
	opacity: 0;
	pointer-events: none;
	transition: opacity .7s ease;
	color: #fff;
}

.tral-reel-slide.is-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}

.tral-reel-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transform: scale(1.015);
	transition: transform 6.5s ease;
}

.tral-reel-slide.is-active img {
	transform: scale(1.05);
}

.tral-reel-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(3, 18, 28, .96) 0%, rgba(3, 24, 35, .78) 31%, rgba(3, 24, 35, .3) 59%, rgba(3, 24, 35, .06) 80%);
}

.tral-reel-copy {
	position: absolute;
	z-index: 2;
	left: max(5vw, calc((100vw - 1280px) / 2));
	top: 50%;
	width: min(620px, 78vw);
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.tral-reel-copy small {
	margin-bottom: 15px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--tral-yellow);
}

.tral-reel-copy strong {
	max-width: 680px;
	font-size: clamp(43px, 5.7vw, 82px);
	line-height: .95;
	letter-spacing: -.04em;
	color: #fff;
	text-transform: uppercase;
	text-shadow: 0 4px 28px rgba(0, 0, 0, .24);
}

.tral-reel-copy > span {
	max-width: 580px;
	margin-top: 21px;
	font-size: clamp(16px, 1.5vw, 21px);
	line-height: 1.52;
	color: rgba(255, 255, 255, .92);
}

.tral-reel-copy em {
	display: inline-flex;
	margin-top: 27px;
	padding: 14px 23px;
	border-radius: 3px;
	background: var(--tral-yellow);
	font-style: normal;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .055em;
	text-transform: uppercase;
	color: #071f2d;
	transition: transform .2s ease, background .2s ease;
}

.tral-reel-slide:hover .tral-reel-copy em {
	transform: translateY(-2px);
	background: #ffd43c;
	color: #071f2d;
}

.tral-reel-arrow {
	position: absolute;
	z-index: 3;
	top: 50%;
	width: 46px;
	height: 46px;
	margin-top: -23px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .62);
	border-radius: 50%;
	background: rgba(4, 24, 35, .48);
	color: #fff;
	font-size: 31px;
	line-height: 40px;
	transition: background .2s ease, border-color .2s ease;
}

.tral-reel-arrow:hover {
	border-color: var(--tral-yellow);
	background: var(--tral-yellow);
	color: #071f2d;
}

.tral-reel-arrow.is-prev { left: 24px; }
.tral-reel-arrow.is-next { right: 24px; }

.tral-reel-dots {
	position: absolute;
	z-index: 3;
	left: 50%;
	bottom: 23px;
	display: flex;
	gap: 9px;
	transform: translateX(-50%);
}

.tral-reel-dots button {
	width: 10px;
	height: 10px;
	min-height: 0;
	padding: 0;
	border: 1px solid #fff;
	border-radius: 50%;
	background: transparent;
}

.tral-reel-dots button.is-active {
	border-color: var(--tral-yellow);
	background: var(--tral-yellow);
	transform: scale(1.2);
}

.tral-compact-section {
	width: min(1280px, calc(100% - 44px));
	margin: 0 auto;
	padding: 70px 0 0;
}

.tral-compact-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 25px;
	padding-bottom: 17px;
	border-bottom: 1px solid var(--tral-line);
}

.tral-compact-heading span {
	display: block;
	margin-bottom: 7px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--tral-green);
}

.tral-compact-heading h2 {
	margin: 0;
	font-size: clamp(28px, 3vw, 41px);
	line-height: 1.08;
	letter-spacing: -.025em;
	color: var(--tral-ink);
}

.tral-compact-heading > a {
	flex: 0 0 auto;
	padding-bottom: 4px;
	border-bottom: 1px solid var(--tral-green);
	font-size: 13px;
	font-weight: 800;
	color: var(--tral-green);
}

.tral-activity-strip,
.tral-brand-strip {
	display: grid;
	grid-auto-flow: column;
	gap: 17px;
	padding: 0 0 15px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: #a8bcb0 transparent;
}

.tral-activity-strip { grid-auto-columns: minmax(190px, 1fr); }
.tral-brand-strip { grid-auto-columns: minmax(180px, 1fr); }

.tral-activity-card,
.tral-brand-card {
	position: relative;
	display: block;
	min-width: 0;
	overflow: hidden;
	background: #dfe5e1;
	scroll-snap-align: start;
}

.tral-activity-card { aspect-ratio: 1 / 1; }
.tral-brand-card { aspect-ratio: 1 / 1.02; }

.tral-activity-card::after,
.tral-brand-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 48%, rgba(5, 17, 11, .58));
}

.tral-activity-card img,
.tral-brand-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.tral-activity-card:hover img,
.tral-brand-card:hover img {
	transform: scale(1.055);
}

.tral-activity-card span,
.tral-brand-card span {
	position: absolute;
	z-index: 2;
	left: 50%;
	bottom: 17px;
	width: max-content;
	max-width: calc(100% - 22px);
	padding: 8px 14px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .14);
	transform: translateX(-50%);
	font-size: 11px;
	font-weight: 850;
	line-height: 1.15;
	text-align: center;
	text-transform: uppercase;
	color: #27312c;
}

.tral-brands-section { padding-top: 58px; }

.tral-store-section {
	display: grid;
	grid-template-columns: minmax(260px, .34fr) minmax(0, 1fr);
	gap: 38px;
	align-items: stretch;
	padding-top: 74px;
	padding-bottom: 10px;
}

.tral-store-visual {
	position: relative;
	min-height: 590px;
	overflow: hidden;
	background: var(--tral-navy);
}

.tral-store-visual::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 48%, rgba(2, 20, 31, .94));
}

.tral-store-visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tral-store-visual > div {
	position: absolute;
	z-index: 2;
	left: 25px;
	right: 25px;
	bottom: 25px;
	display: flex;
	flex-direction: column;
}

.tral-store-visual span {
	font-size: 11px;
	font-weight: 850;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--tral-yellow);
}

.tral-store-visual strong {
	margin-top: 8px;
	font-size: clamp(25px, 2.4vw, 37px);
	line-height: 1.05;
	color: #fff;
}

.tral-store-catalog {
	min-width: 0;
	padding-top: 2px;
}

.tral-store-catalog .tral-compact-heading { margin-bottom: 22px; }

.tral-tab-buttons {
	display: flex;
	gap: 8px;
	margin-bottom: 22px;
	overflow-x: auto;
}

.tral-tab-buttons button {
	flex: 0 0 auto;
	min-height: 42px;
	padding: 10px 18px;
	border: 1px solid var(--tral-line);
	border-radius: 999px;
	background: #fff;
	color: #3f4a44;
	font-size: 12px;
	font-weight: 800;
}

.tral-tab-buttons button.is-active {
	border-color: var(--tral-green);
	background: var(--tral-green);
	color: #fff;
}

.tral-tab-panel[hidden] { display: none !important; }
.tral-tab-panel .woocommerce { margin: 0; }
.tral-tab-panel ul.products { margin-bottom: 0; }
.tral-tab-panel .product-grid-item { margin-bottom: 18px; }

.tral-training-showcase {
	width: min(1360px, calc(100% - 44px));
	margin: 80px auto 74px;
	display: grid;
	grid-template-columns: minmax(330px, .78fr) minmax(0, 1.22fr);
	min-height: 500px;
	background: var(--tral-navy);
	color: #fff;
	overflow: hidden;
}

.tral-training-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(38px, 5vw, 66px);
}

.tral-training-copy > span {
	position: relative;
	margin: 0 0 22px 45px;
	font-size: 12px;
	font-weight: 850;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--tral-yellow);
}

.tral-training-copy > span::before {
	content: "";
	position: absolute;
	left: -45px;
	top: .7em;
	width: 34px;
	height: 3px;
	background: var(--tral-yellow);
}

.tral-training-copy h2 {
	margin: 0;
	font-size: clamp(38px, 4.2vw, 62px);
	line-height: .98;
	letter-spacing: -.04em;
	text-transform: uppercase;
	color: #fff;
}

.tral-training-copy h2 strong {
	display: block;
	color: var(--tral-yellow);
}

.tral-training-copy p {
	margin: 24px 0 0;
	font-size: clamp(16px, 1.25vw, 19px);
	line-height: 1.6;
	color: rgba(255, 255, 255, .84);
}

.tral-training-copy > a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 31px;
	padding: 16px 22px;
	border-radius: 3px;
	background: var(--tral-yellow);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #071f2d;
}

.tral-training-gallery {
	display: grid;
	grid-template-columns: 1.65fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 12px;
	min-width: 0;
	padding: 24px 24px 24px 0;
}

.tral-training-gallery img {
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: cover;
}

.tral-training-gallery img.is-main {
	grid-row: 1 / 3;
}

@media (max-width: 1100px) {
	.tral-compact-reel { height: 560px; }
	.tral-reel-copy { left: 58px; }
	.tral-store-section { grid-template-columns: 280px minmax(0, 1fr); gap: 26px; }
	.tral-store-visual { min-height: 540px; }
	.tral-training-showcase { grid-template-columns: .9fr 1.1fr; }
	.tral-training-gallery { grid-template-columns: 1fr; grid-template-rows: 1.4fr .8fr; }
	.tral-training-gallery img.is-main { grid-row: auto; }
	.tral-training-gallery img:last-child { display: none; }
}

@media (max-width: 900px) {
	.tral-store-section { grid-template-columns: 1fr; }
	.tral-store-visual { min-height: 320px; }
	.tral-store-visual img { object-position: center 45%; }
	.tral-training-showcase { grid-template-columns: 1fr; }
	.tral-training-gallery {
		grid-template-columns: 1.5fr 1fr;
		grid-template-rows: 330px;
		padding: 0 22px 22px;
	}
	.tral-training-gallery img.is-main { grid-row: auto; }
}

@media (max-width: 767px) {
	.tral-compact-reel { height: 520px; }
	.tral-reel-slide img { object-position: 66% center; }
	.tral-reel-overlay { background: linear-gradient(180deg, rgba(2, 18, 28, .08) 15%, rgba(2, 18, 28, .92) 70%); }
	.tral-reel-copy {
		left: 22px;
		right: 22px;
		top: auto;
		bottom: 58px;
		width: auto;
		transform: none;
	}
	.tral-reel-copy small { margin-bottom: 10px; font-size: 10px; }
	.tral-reel-copy strong { font-size: clamp(35px, 11vw, 48px); }
	.tral-reel-copy > span { margin-top: 12px; font-size: 14px; line-height: 1.45; }
	.tral-reel-copy em { margin-top: 16px; padding: 11px 15px; font-size: 10px; }
	.tral-reel-arrow { display: none; }
	.tral-compact-section { width: min(100% - 28px, 1280px); padding-top: 49px; }
	.tral-compact-heading { align-items: flex-start; }
	.tral-compact-heading h2 { font-size: 29px; }
	.tral-compact-heading > a { display: inline-block; font-size: 11px; }
	.tral-activity-strip { grid-auto-columns: 72%; gap: 13px; }
	.tral-brand-strip { grid-auto-columns: 63%; gap: 13px; }
	.tral-store-section { padding-top: 54px; }
	.tral-store-visual { min-height: 360px; }
	.tral-store-visual > div { left: 20px; right: 20px; bottom: 20px; }
	.tral-store-catalog .tral-compact-heading { flex-direction: column; align-items: flex-start; }
	.tral-tab-panel ul.products {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 13px;
	}
	.tral-tab-panel ul.products::before,
	.tral-tab-panel ul.products::after { display: none; }
	.tral-tab-panel ul.products li.product { width: auto !important; margin: 0 0 14px !important; }
	.tral-training-showcase { width: calc(100% - 28px); margin: 58px auto 54px; }
	.tral-training-copy { padding: 36px 24px; }
	.tral-training-copy > span { margin-left: 38px; font-size: 10px; }
	.tral-training-copy > span::before { left: -38px; width: 28px; }
	.tral-training-copy h2 { font-size: 39px; }
	.tral-training-copy p { font-size: 15px; }
	.tral-training-copy > a { width: 100%; justify-content: center; text-align: center; }
	.tral-training-gallery { grid-template-columns: 1fr; grid-template-rows: 280px 190px; padding: 0 16px 16px; gap: 10px; }
	.tral-training-gallery img:last-child { display: block; }
}