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

/* Cabecera: top bar según brief (teléfono / OFERTAS / enlaces) */
.whb-top-bar .decobraz-topbar-left,
.whb-top-bar .decobraz-topbar-center,
.whb-top-bar .decobraz-topbar-right {
	font-size: 13px;
	line-height: 1.4;
}

.whb-top-bar .decobraz-topbar-left .decobraz-topbar-phone a {
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}

.whb-top-bar .decobraz-topbar-left .decobraz-topbar-phone a:hover {
	border-bottom-color: currentColor;
}

.whb-top-bar .decobraz-topbar-sep {
	margin: 0 0.35em;
	opacity: 0.55;
}

.whb-top-bar .decobraz-topbar-wa {
	display: inline-block;
	color: #25d366;
	font-size: 1.35em;
	line-height: 1;
	vertical-align: middle;
	margin-left: 0.15em;
}

.whb-top-bar .decobraz-topbar-wa:hover {
	opacity: 0.85;
}

.whb-top-bar .decobraz-topbar-center {
	text-align: center;
}

.whb-top-bar .decobraz-topbar-ofertas a {
	font-weight: 600;
	text-decoration: none;
	letter-spacing: 0.02em;
}

.whb-top-bar .decobraz-topbar-right {
	text-align: right;
}

.whb-top-bar .decobraz-topbar-links a {
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, opacity 0.2s ease;
}

.whb-top-bar .decobraz-topbar-links a:hover {
	border-bottom-color: currentColor;
	opacity: 0.9;
}

.whb-top-bar .decobraz-topbar-pin {
	margin-right: 0.25em;
	opacity: 0.85;
}

.whb-top-bar .decobraz-topbar-dot {
	margin: 0 0.2em;
	opacity: 0.55;
}

.whb-general-header .decobraz-hdr-presupuesto {
	margin-left: 6px;
}

/* Home: lista reforma integral */
.decobraz-reforma-list {
	margin: 0.75em 0 0;
	padding-left: 1.2em;
}

.decobraz-reforma-list li {
	margin-bottom: 0.35em;
}

/* Footer Decobraz: espaciado tipo Tarimas Diamond (limpio) */
.wd-footer .footer-store {
	margin: 0 0 1.1em;
	font-size: 14px;
	line-height: 1.65;
}
.wd-footer .footer-store:last-child {
	margin-bottom: 0;
}
.wd-footer .footer-store a {
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, opacity 0.2s ease;
}
.wd-footer .footer-store a:hover {
	border-bottom-color: currentColor;
	opacity: 0.85;
}

/* Footer: 4 columnas en una sola fila desde tablet (el gap + % hacía bajar la 4ª) */
@media (min-width: 768px) {
	.wd-footer .decobraz-footer-cols.e-flex {
		flex-wrap: nowrap !important;
	}

	.wd-footer .decobraz-footer-cols.e-parent > .e-child {
		flex: 1 1 0 !important;
		min-width: 0 !important;
		width: auto !important;
		max-width: none !important;
	}
}

/* Contacto: sin título duplicado del tema (H1 va en Elementor) */
body.page-id-56 .wd-page-title {
	display: none;
}

/* Contacto Decobraz: bloques de dirección tipo listado limpio */
.decobraz-contact-locations .decobraz-contact-location {
	margin: 0 0 1.5em;
	padding-bottom: 1.35em;
	border-bottom: 1px solid #e8e8e8;
}

.decobraz-contact-locations .decobraz-contact-location:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.decobraz-contact-locations h3 {
	margin: 0 0 0.45em;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
}

.decobraz-contact-locations p {
	margin: 0;
}

.decobraz-contact-badge {
	display: inline-block;
	margin: 0 0 0.5em !important;
	padding: 0.2em 0.55em;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #b71c1c;
	background: #ffebee;
	border-radius: 4px;
}

.decobraz-contact-main .wpcf7 input[type="text"],
.decobraz-contact-main .wpcf7 input[type="email"],
.decobraz-contact-main .wpcf7 textarea {
	width: 100%;
	max-width: 100%;
	border-radius: 6px;
}

.decobraz-contact-main .wpcf7-submit {
	border-radius: 50px;
	font-weight: 600;
}

/* Single product: bloques ACF (uso / caracteristicas) */
.decobraz-acf-product--empty {
	display: none !important;
}

.decobraz-product-acf-html p:last-child {
	margin-bottom: 0 !important;
}

.decobraz-product-acf-html ul {
	margin: 0.35em 0 0.65em 1.15em;
	padding: 0;
	list-style: disc;
}

/* ACF uso / características — cajas como mockup (2 col, icono izquierda, título + subtítulo) */
.decobraz-spec-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 12px;
	margin: 0.35em 0 0;
}

.decobraz-spec-card {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 14px;
	min-height: 0;
	padding: 14px 16px;
	background: #f5f5f5;
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	color: #1a1a1a;
	text-align: left;
}

.decobraz-spec-card__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.06);
	color: #3d3d3d;
	font-size: 17px;
	line-height: 1;
}

.decobraz-spec-card__text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.decobraz-spec-card__title {
	display: block;
	font-size: 14px;
	line-height: 1.3;
	font-weight: 700;
	color: #111;
}

.decobraz-spec-card__subtitle {
	display: block;
	font-size: 12px;
	line-height: 1.35;
	font-weight: 400;
	color: #777;
}

/* Productos relacionados / upsells en ficha: marco cuadrado y imagen contenida (sin deformar) */
.single-product .wd-products .product-wrapper .product-image-link,
.single-product .wd-products .product-wrapper .product-image-link > img {
	display: block;
}

.single-product .wd-products .product-wrapper .product-image-link {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f5f5f5;
}

.single-product .wd-products .product-wrapper .product-image-link > img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

/* Portada: carrusel «Selección de nuestro catálogo» — altura contenida */
body.home .wd-products .product-wrapper .product-image-link,
body.front-page .wd-products .product-wrapper .product-image-link {
	aspect-ratio: 1 / 1;
	max-height: 280px;
}

body.home .wd-products .product-wrapper .product-image-link > img,
body.front-page .wd-products .product-wrapper .product-image-link > img {
	object-fit: contain;
}

/* Carrusel de marcas: logo contenido y altura uniforme */
.wd-brands .wd-brand-item {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	max-height: 72px;
	padding: 8px 12px;
}

.wd-brands .wd-brand-item img {
	max-height: 56px;
	width: auto !important;
	max-width: 100%;
	object-fit: contain;
}

/* Contacto: dos columnas sin salto por gap + porcentajes (≥768px) */
@media (min-width: 768px) {
	.decobraz-contact-main.e-flex {
		flex-wrap: nowrap !important;
	}

	.decobraz-contact-main.e-parent > .e-child {
		flex: 1 1 0 !important;
		min-width: 0 !important;
		width: auto !important;
		max-width: none !important;
	}
}

/* Ficha producto: botón ancla + bloque presupuesto (CF7) */
a.decobraz-btn-solicitar-presupuesto {
	display: inline-block;
	margin-top: 14px;
	padding: 12px 22px;
	background: #6f7b65;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
	border-radius: 4px;
	line-height: 1.35;
	text-align: center;
	transition: background 0.2s ease, opacity 0.2s ease;
}

a.decobraz-btn-solicitar-presupuesto:hover {
	background: #5d6854;
	color: #fff !important;
}

.decobraz-product-presupuesto {
	scroll-margin-top: 120px;
	margin-top: 2.5rem;
	padding: 2.75rem 0 3.25rem;
	border-top: 1px solid #e5e5e5;
	background: #f9f9f9;
}

.decobraz-product-presupuesto__title {
	margin: 0 0 1.35rem;
	font-size: clamp(1.35rem, 2.5vw, 1.65rem);
	font-weight: 700;
}

.decobraz-product-presupuesto__form .wpcf7-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem 1.35rem;
	align-items: start;
}

.decobraz-product-presupuesto__form .wpcf7-form > p {
	margin: 0;
}

.decobraz-product-presupuesto__form .wpcf7-form > p:has(textarea),
.decobraz-product-presupuesto__form .wpcf7-form > p:has(.wpcf7-acceptance),
.decobraz-product-presupuesto__form .wpcf7-form > p:has(input[type="submit"]),
.decobraz-product-presupuesto__form .wpcf7-form > p:has(div[style*="text-align"]) {
	grid-column: 1 / -1;
}

/* Texto legal pequeño del formulario (suele ser un <p> con estilo inline) */
.decobraz-product-presupuesto__form .wpcf7-form > p[style*="font-size"] {
	grid-column: 1 / -1;
}

.decobraz-product-presupuesto__form .wpcf7 input[type="text"],
.decobraz-product-presupuesto__form .wpcf7 input[type="email"],
.decobraz-product-presupuesto__form .wpcf7 input[type="tel"],
.decobraz-product-presupuesto__form .wpcf7 input[type="number"],
.decobraz-product-presupuesto__form .wpcf7 select,
.decobraz-product-presupuesto__form .wpcf7 textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.decobraz-product-presupuesto__form .wpcf7-submit {
	font-weight: 700;
}

@media (max-width: 767px) {
	.decobraz-product-presupuesto__form .wpcf7-form {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------------
   Portada Elementor — capa visual (misma estructura y contenido)
   ------------------------------------------------------------------------- */
body.decobraz-home {
	--decobraz-sage: #6f7b65;
	--decobraz-sage-dark: #5a6452;
	--decobraz-cream: #f7f6f3;
	--decobraz-mist: #eef0ea;
	--decobraz-ink: #1e2320;
	--decobraz-line: rgba(111, 123, 101, 0.22);
	color: var(--decobraz-ink);
}

/* Más aire lateral en el lienzo principal */
body.decobraz-home .wd-content-layout.content-layout-wrapper.container {
	max-width: 100%;
	width: 100%;
}

body.decobraz-home .wd-content-area.site-content {
	padding-left: 0;
	padding-right: 0;
}

body.decobraz-home article.page .entry-content {
	margin-bottom: 0;
}

/* Hero */
body.decobraz-home .elementor-element-ff567a1.e-con {
	background: linear-gradient(152deg, #faf9f6 0%, var(--decobraz-mist) 42%, #f3f2ed 100%) !important;
	padding-top: clamp(2.25rem, 5vw, 4rem) !important;
	padding-bottom: clamp(2.25rem, 5vw, 3.5rem) !important;
	padding-left: clamp(1rem, 4vw, 3rem) !important;
	padding-right: clamp(1rem, 4vw, 3rem) !important;
	border-bottom: 1px solid var(--decobraz-line);
}

body.decobraz-home .elementor-element-ff567a1 .elementor-heading-title {
	font-size: clamp(1.85rem, 4.2vw, 2.85rem);
	line-height: 1.12;
	font-weight: 700;
	letter-spacing: -0.025em;
	color: var(--decobraz-ink);
	max-width: 22ch;
}

body.decobraz-home .elementor-element-ff567a1 .wd-text-block {
	font-size: 1.08rem;
	line-height: 1.65;
	color: #3d4540;
}

body.decobraz-home .elementor-element-ff567a1 ul.wd-list > li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 10px;
	padding: 12px 14px;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid var(--decobraz-line);
	border-radius: 12px;
	box-shadow: 0 4px 18px rgba(30, 35, 32, 0.04);
}

body.decobraz-home .elementor-element-ff567a1 ul.wd-list .wd-icon {
	color: var(--decobraz-sage);
	flex-shrink: 0;
	margin-top: 2px;
}

body.decobraz-home .elementor-element-ff567a1 ul.wd-list .wd-list-content {
	line-height: 1.5;
}

/* CTAs hero */
body.decobraz-home .elementor-element-9d75c86 .e-con-inner {
	gap: 14px 18px;
	flex-wrap: wrap;
	align-items: center;
}

body.decobraz-home .elementor-element-f0ab795 .elementor-button {
	background: transparent;
	color: var(--decobraz-sage) !important;
	border: 2px solid var(--decobraz-sage);
	border-radius: 999px;
	padding: 0.65rem 1.35rem;
	font-weight: 600;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.decobraz-home .elementor-element-f0ab795 .elementor-button:hover {
	background: var(--decobraz-sage);
	color: #fff !important;
}

body.decobraz-home .elementor-element-47bfb01 .elementor-button {
	background: var(--decobraz-sage);
	color: #fff !important;
	border: 2px solid var(--decobraz-sage);
	border-radius: 999px;
	padding: 0.65rem 1.35rem;
	font-weight: 600;
	box-shadow: 0 10px 28px rgba(111, 123, 101, 0.28);
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.decobraz-home .elementor-element-47bfb01 .elementor-button:hover {
	background: var(--decobraz-sage-dark);
	border-color: var(--decobraz-sage-dark);
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(111, 123, 101, 0.32);
}

/* Imagen hero */
body.decobraz-home .elementor-element-86c02b1 img {
	border-radius: 18px;
	box-shadow: 0 28px 70px rgba(30, 35, 32, 0.16);
}

/* Franja financiación */
body.decobraz-home .elementor-element-37354d0.e-con {
	background: linear-gradient(95deg, rgba(111, 123, 101, 0.14), rgba(111, 123, 101, 0.04)) !important;
	border-top: 1px solid var(--decobraz-line);
	border-bottom: 1px solid rgba(111, 123, 101, 0.12);
	padding-top: clamp(1.1rem, 3vw, 1.65rem) !important;
	padding-bottom: clamp(1.1rem, 3vw, 1.65rem) !important;
	padding-left: clamp(1rem, 4vw, 2.5rem) !important;
	padding-right: clamp(1rem, 4vw, 2.5rem) !important;
}

body.decobraz-home .elementor-element-37354d0 .wd-text-block p {
	margin: 0;
	line-height: 1.55;
}

body.decobraz-home .elementor-element-37354d0 .btn-color-primary {
	background-color: var(--decobraz-sage) !important;
	border-color: var(--decobraz-sage) !important;
	color: #fff !important;
	border-radius: 999px !important;
	font-weight: 600 !important;
}

/* Títulos de sección WoodMart */
body.decobraz-home .woodmart-title-container.title {
	position: relative;
	padding-bottom: 0.2em;
	color: var(--decobraz-ink);
}

body.decobraz-home .title-wrapper .liner-continer .woodmart-title-container.title::after {
	content: "";
	display: block;
	width: 52px;
	height: 3px;
	margin-top: 12px;
	background: var(--decobraz-sage);
	border-radius: 2px;
}

body.decobraz-home .title-wrapper.text-center .liner-continer .woodmart-title-container.title::after {
	margin-left: auto;
	margin-right: auto;
}

body.decobraz-home .title-after_title {
	color: #5c6560;
	line-height: 1.6;
}

/* Banners «tipo de suelo» */
body.decobraz-home .promo-banner.banner-default {
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 18px 46px rgba(30, 35, 32, 0.1);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

body.decobraz-home .promo-banner.banner-default:hover {
	transform: translateY(-5px);
	box-shadow: 0 26px 60px rgba(30, 35, 32, 0.14);
}

body.decobraz-home .promo-banner .banner-title {
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

body.decobraz-home .promo-banner .banner-inner {
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* Info boxes (ventajas) */
body.decobraz-home .wd-info-box.box-style-base {
	background: #fff;
	border-radius: 16px;
	padding: 1.4rem 1.15rem;
	border: 1px solid #e5e8e3;
	box-shadow: 0 10px 32px rgba(30, 35, 32, 0.06);
	height: 100%;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.decobraz-home .wd-info-box.box-style-base:hover {
	border-color: var(--decobraz-line);
	box-shadow: 0 14px 40px rgba(30, 35, 32, 0.08);
}

body.decobraz-home .wd-info-box .info-box-icon {
	background: rgba(111, 123, 101, 0.12);
	color: var(--decobraz-sage);
	border-radius: 10px;
}

/* Marcas */
body.decobraz-home .wd-brands .wd-brand-item {
	background: #fff;
	border-radius: 12px;
	border: 1px solid #e8eae6;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.decobraz-home .wd-brands .wd-brand-item:hover {
	border-color: rgba(111, 123, 101, 0.45);
	box-shadow: 0 10px 28px rgba(111, 123, 101, 0.09);
}

/* Calculadora m² (bloque con .decobraz-calc-*) */
body.decobraz-home .wd-text-block:has(.decobraz-calc-w) {
	background: linear-gradient(165deg, #fcfcfa, #f0f2eb);
	padding: clamp(1.25rem, 3vw, 1.85rem) !important;
	border-radius: 16px;
	border: 1px solid var(--decobraz-line);
	box-shadow: 0 12px 36px rgba(30, 35, 32, 0.05);
}

body.decobraz-home .decobraz-calc-w,
body.decobraz-home .decobraz-calc-l {
	border: 1px solid #c5cbc0 !important;
	border-radius: 10px !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.decobraz-home .decobraz-calc-w:focus,
body.decobraz-home .decobraz-calc-l:focus {
	outline: none;
	border-color: var(--decobraz-sage) !important;
	box-shadow: 0 0 0 3px rgba(111, 123, 101, 0.2);
}

body.decobraz-home .decobraz-calc-out {
	font-weight: 700 !important;
	font-size: 1.15em !important;
	color: var(--decobraz-sage) !important;
}

/* Espaciado vertical general entre secciones padre */
body.decobraz-home .elementor-41028 > .e-con.e-parent {
	padding-top: clamp(1.75rem, 4vw, 3rem);
	padding-bottom: clamp(1.75rem, 4vw, 3rem);
}

body.decobraz-home .elementor-41028 > .e-con.e-parent.elementor-element-ff567a1,
body.decobraz-home .elementor-41028 > .e-con.e-parent.elementor-element-37354d0 {
	padding-top: unset;
	padding-bottom: unset;
}

/* Botones WoodMart genéricos en portada */
body.decobraz-home .btn-color-primary:not(.elementor-button) {
	background-color: var(--decobraz-sage) !important;
	border-color: var(--decobraz-sage) !important;
}

body.decobraz-home .btn-color-primary:not(.elementor-button):hover {
	filter: brightness(0.94);
}
