/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* WPML (desarrollo)
 * - Selector de idioma de pie automático de WPML: oculto de forma permanente, porque el footer de Bricks lleva su propio selector ([eper_language_switcher]).
 * - Aviso "sitio de desarrollo": oculto TEMPORALMENTE. Eliminar este bloque al pasar a la clave de producción de WPML.
 */
.wpml-ls-statics-footer,
.otgs-development-site-front-end {
	display: none !important;
}
/* BANNER COOKIES */
.cmplz-title {
	font-size: 18px !important;
	font-family: "PP Neue Machina", sans-serif !important;
}
.cmplz-message a, .cmplz-message p, .cmplz-message span {
	font-family: "Switzer", sans-serif !important;
}
.cmplz-message a {
	text-decoration: underline !important;
}
.cmplz-message a:hover {
	opacity: .8 !important;
}
.cmplz-message p {
	margin-top:0px !important;
	font-size: 15px !important;
	line-height: 25px !important;
}
.cmplz-description {
	font-size: 14px !important;
}
#cmplz-cookiebanner-container button.cmplz-btn.cmplz-deny {
    margin-right: 180px !important;
}
@media(min-width: 769px) {
	#cmplz-cookiebanner-container .cmplz-btn.cmplz-accept {
	order: 3 !important;
}
#cmplz-cookiebanner-container .cmplz-btn.cmplz-deny {
	order: 2 !important;
}
#cmplz-cookiebanner-container .cmplz-btn.cmplz-view-preferences {
	order: 1 !important;
}
}
@media (max-width: 768px) {
#cmplz-cookiebanner-container .cmplz-btn.cmplz-accept {
	order: 1 !important;
}
#cmplz-cookiebanner-container .cmplz-btn.cmplz-deny {
	order: 2 !important;
}
#cmplz-cookiebanner-container .cmplz-btn.cmplz-view-preferences {
	order: 3 !important;
}
}
.cmplz-btn.cmplz-save-preferences {
	order: 4 !important;
}
.cmplz-cookiebanner {
	padding-top:20px !important;
}
.cmplz-buttons button:hover, .cmplz-buttons a:hover {
	opacity: .9 !important;
}
#cmplz-cookiebanner-container .cmplz-description {
	line-height: 24px !important;
	padding-top:0px !important;
}
#cmplz-cookiebanner-container .cmplz-icon {
	display:flex;
	align-items:center;
}
#cmplz-cookiebanner-container .cmplz-icon svg {
	height: 13px !important;
	width: 100% !important;
}
#cmplz-cookiebanner-container div:not(.cmplz-title), #cmplz-cookiebanner-container p,
#cmplz-cookiebanner-container span, #cmplz-cookiebanner-container a, #cmplz-cookiebanner-container button {
	font-family: "Switzer", sans-serif !important;
}
#cmplz-cookiebanner-container a, #cmplz-cookiebanner-container button {
	transition: all .3s ease-in-out !important;
}
.cmplz-service-header p {
	margin-bottom: 0px !important;
}
.cmplz-btn.cmplz-manage-consent.manage-consent-1.cmplz-show {
	display: none !important;
}
/* Política de cookies: bloques de servicios de Complianz más compactos */
#cmplz-cookies-overview .cmplz-service-header h3 {
	margin: 0;
	font-size: var(--text-body-l);
	line-height: 1.3;
}
#cmplz-cookies-overview .cmplz-service-header p {
	font-size: var(--text-body-s);
}
#cmplz-cookies-overview :is(.cmplz-service-description, .cmplz-sharing-data, .cookies-per-purpose) {
	font-size: var(--text-body-s);
	line-height: 1.4;
}
#cmplz-cookies-overview :is(h4, h5) {
	margin: var(--space-gap-s) 0 var(--space-gap-xs);
	font-family: var(--font-body);
	font-size: var(--text-body-s);
	font-weight: var(--font-weight-body-strong);
	line-height: 1.3;
}
#cmplz-cookies-overview :is(.cmplz-service-description, .cmplz-sharing-data, .cookies-per-purpose) p {
	margin: 0 0 var(--space-gap-xs);
}

/* Sin palabras sueltas en la última línea (ES y EN, todos los anchos).
   :where() deja especificidad 0: cualquier regla de componente puede sobrescribirlo.
   Los textos largos (>6 líneas) solo llevan «pretty»: «balance» no actúa por encima de 6 líneas. */
:where(.brxe-text-basic, .brxe-text, .brxe-heading, .brxe-text-link) {
  text-wrap: pretty;
}
:where(
  .brxe-heading, .eyebrow, .archive-hero__lead, .company-history__text,
  .product-detail__spec, .products-index__desc, .product-quality__text,
  .sector-certs__desc, .sector-projects__item, .plants__text, .capacity-services__text
) {
  text-wrap: balance;
}

/* Fichas de producto: texto y descripciones de tarjeta algo más anchos que con «balance», sin palabra suelta. */
.product-detail.brxe-section .product-detail__desc {
  max-width: 31em;
  text-wrap: pretty;
}
@media (min-width: 1700px) {
  .product-detail.brxe-section .product-detail__text {
    max-width: 30em;
    margin-inline: auto;
  }
}

/* Móvil: algo más de aire entre secciones (+8 px por límite entre dos secciones: 4 px dentro de cada una, sin abrir huecos de otro color). */
@media (max-width: 767px) {
  #brx-content > .brxe-section > [class*="__inner"] {
    margin-block: 4px;
  }
}

/* Banner de Complianz en móvil: más aire entre logo y texto, y entre texto y botones. */
@media (max-width: 768px) {
  #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-header {
    margin-bottom: 18px !important;
  }
  #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-body {
    margin-bottom: 16px !important;
  }
  /* Panel de preferencias abierto: más aire entre el texto y las categorías (Funcional, Preferencias…). */
  #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-categories {
    margin-top: 18px !important;
  }
}

/* Enlaces a anclas (p. ej. «Solicita presupuesto» → formulario): desplazamiento suave. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
.eyebrow.brxe-text-basic.stats__label.lowercase-text {
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight:400 !important;
}