/* Buscador de la web. Z-index: por encima de la cabecera (1100), el menú lateral (99999) y los filtros (100001);
   por debajo de la ventana de descarga de catálogos (100010) y del libro online (100020). */

/* ---- Botón de la cabecera ---- */
button.gzb-boton {
	appearance: none; display: inline-flex; align-items: center; gap: 10px; margin: 0; height: 42px; padding: 0 20px 0 15px !important;
	border: 1px solid #1717151f !important; border-radius: 999px !important; background: #fff !important; box-shadow: none !important;
	color: #5c5a55 !important; font-family: inherit !important; font-size: 14px !important; font-weight: 400 !important; line-height: 1 !important;
	letter-spacing: 0 !important; text-transform: none !important; white-space: nowrap; cursor: pointer; transition: border-color .2s, color .2s;
}
button.gzb-boton:hover, button.gzb-boton:focus-visible { border-color: #171715 !important; color: #171715 !important; }
button.gzb-boton svg { flex: 0 0 auto; color: #171715; }
.elementor-widget-shortcode .gzb-boton-cabecera { vertical-align: middle; }
button.gzb-boton-menu { width: 100%; height: 46px; margin: 8px 0 0; }

@media (min-width: 768px) and (max-width: 1024px) {
	button.gzb-boton-cabecera { width: 42px; padding: 0 !important; justify-content: center; }
	button.gzb-boton-cabecera span { display: none; }
}
@media (max-width: 767px) {
	button.gzb-boton-cabecera { width: 44px; height: 44px; padding: 0 !important; justify-content: center; border-color: transparent !important; background: transparent !important; }
	button.gzb-boton-cabecera span { display: none; }
	button.gzb-boton-cabecera svg { width: 23px; height: 23px; }
}

/* ---- Capa ---- */
html.gzb-abierto { overflow: hidden; }
#gzb[hidden] { display: none; }
#gzb { position: fixed; inset: 0; z-index: 100005; color: #171715; font-size: 15px; line-height: 1.45; text-align: left; }
#gzb *, #gzb *::before, #gzb *::after { box-sizing: border-box; }
#gzb [hidden] { display: none !important; }
#gzb .gzb-fondo { position: absolute; inset: 0; background: rgba(23, 23, 21, .46); opacity: 0; transition: opacity .25s ease; }
#gzb .gzb-caja { position: relative; display: flex; flex-direction: column; max-height: 100%; background: #F8F7F4; box-shadow: 0 24px 60px rgba(23, 23, 21, .22); transform: translateY(-14px); opacity: 0; transition: transform .28s cubic-bezier(.22,.61,.36,1), opacity .2s ease; }
#gzb.gzb-visible .gzb-fondo { opacity: 1; }
#gzb.gzb-visible .gzb-caja { transform: none; opacity: 1; }
@media (min-width: 900px) {
	#gzb .gzb-caja { height: min(92vh, 900px); }
}
@media (max-width: 899px) {
	#gzb .gzb-caja { height: 100%; height: 100dvh; }
}
#gzb .gzb-ancho { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
#gzb .gzb-cab { flex: 0 0 auto; padding: 18px 0 0; background: #fff; border-bottom: 1px solid #1717151a; }
#gzb .gzb-cab-linea { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#gzb h2#gzb-titulo { margin: 0; padding: 0; color: #171715; font-size: 15px; font-weight: 500; letter-spacing: .02em; line-height: 1.3; }

/* Botones neutralizados: el tema y Elementor traen estilos propios para <button> */
#gzb button { appearance: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: #171715; font-family: inherit; font-size: inherit; font-weight: 400; line-height: 1.4; letter-spacing: 0; text-transform: none; cursor: pointer; }
#gzb button:hover, #gzb button:focus { background-color: transparent; color: #171715; }
#gzb a { color: #171715; text-decoration: none; box-shadow: none; }
#gzb a:hover, #gzb a:focus { color: #171715; }
#gzb :focus-visible { outline: 2px solid #171715; outline-offset: 2px; }
#gzb button.gzb-cerrar { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; }

#gzb form.gzb-campo { display: flex; align-items: center; gap: 14px; margin: 10px 0 0; padding: 0 0 12px; border-bottom: 2px solid #171715; }
#gzb form.gzb-campo > svg { flex: 0 0 auto; }
#gzb input#gzb-input { flex: 1 1 auto; min-width: 0; height: 52px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #171715; font-family: inherit; font-size: 30px; font-weight: 400; line-height: 1.2; -webkit-appearance: none; appearance: none; }
#gzb input#gzb-input:focus, #gzb input#gzb-input:focus-visible { outline: 0; border: 0; box-shadow: none; }
#gzb input#gzb-input::placeholder { color: #9a968e; }
#gzb input#gzb-input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
#gzb button.gzb-borrar { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; background: #F1EFEB; }
#gzb .gzb-cab form.gzb-campo:last-of-type { margin-bottom: 16px; }

#gzb .gzb-pestanas { display: flex; gap: 26px; margin-top: -8px; overflow-x: auto; scrollbar-width: none; }
#gzb .gzb-pestanas::-webkit-scrollbar { display: none; }
#gzb .gzb-pestanas button { flex: 0 0 auto; padding: 6px 0 11px; border-bottom: 2px solid transparent; font-size: 14px; white-space: nowrap; color: #6d6a64; }
#gzb .gzb-pestanas button[aria-pressed="true"] { border-bottom-color: #171715; color: #171715; }
#gzb .gzb-pestanas button span { margin-left: 3px; color: #9a968e; font-size: 12px; }

#gzb .gzb-cuerpo { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
#gzb .gzb-resultados { padding-top: 24px; padding-bottom: 56px; }
#gzb .gzb-resultados section { margin: 0 0 32px; }
#gzb .gzb-resultados h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; padding: 0; color: #171715; font-size: 13px; font-weight: 500; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; }
#gzb .gzb-resultados h3 > span { color: #9a968e; font-size: 12px; letter-spacing: 0; }
#gzb .gzb-resultados h3 .gzb-enlace { margin-left: auto; font-size: 12px; letter-spacing: 0; text-transform: none; }
#gzb .gzb-enlace { text-decoration: underline; text-underline-offset: 3px; color: #6d6a64; font-size: 13px; }
#gzb ul { margin: 0; padding: 0; list-style: none; }
#gzb li { margin: 0; padding: 0; }
#gzb mark { padding: 0; background: #EADFCB; color: inherit; }
#gzb img { display: block; max-width: 100%; border-radius: 0; }
#gzb .gzb-nota { margin: 0 0 14px; color: #5c5a55; }
#gzb .gzb-aviso { margin: 0 0 18px; color: #5c5a55; font-size: 14px; }

#gzb .gzb-columnas, #gzb .gzb-inicio { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
#gzb .gzb-columnas.gzb-una { grid-template-columns: minmax(0, 1fr); }
#gzb .gzb-inicio { grid-template-columns: 300px minmax(0, 1fr); }

/* ---- Chips ---- */
#gzb .gzb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
#gzb button.gzb-chip, #gzb a.gzb-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid #17171522; border-radius: 999px; background: #fff; font-size: 14px; line-height: 1.2; }
#gzb button.gzb-chip:hover, #gzb a.gzb-chip:hover, #gzb .gzb-chip.gzb-activo { border-color: #171715; background: #fff; }
#gzb .gzb-chip img { width: 18px; height: 18px; margin-left: -6px; border-radius: 999px; object-fit: cover; }
#gzb .gzb-chip svg { color: #9a968e; }

/* ---- Accesos ---- */
#gzb .gzb-accesos a { display: flex; align-items: center; gap: 14px; padding: 10px 8px; margin: 0 -8px; }
#gzb .gzb-accesos a:hover, #gzb .gzb-accesos a.gzb-activo { background: #fff; }
#gzb .gzb-accesos i { flex: 0 0 40px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: #EFECE6; font-style: normal; }
#gzb .gzb-accesos b { display: block; font-size: 15px; font-weight: 500; line-height: 1.3; }
#gzb .gzb-accesos small { display: block; color: #6d6a64; font-size: 12.5px; line-height: 1.35; }

/* ---- Mosaico de categorías ---- */
#gzb .gzb-mosaico { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
#gzb .gzb-tarjeta-cat span { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #EFECE6; }
#gzb .gzb-tarjeta-cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
#gzb .gzb-tarjeta-cat:hover img, #gzb .gzb-tarjeta-cat.gzb-activo img { transform: scale(1.04); }
#gzb .gzb-tarjeta-cat b { display: block; margin-top: 8px; font-size: 14px; font-weight: 400; line-height: 1.3; }

/* ---- Muebles ---- */
#gzb .gzb-rejilla { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; }
#gzb .gzb-columnas.gzb-una .gzb-rejilla, #gzb .gzb-resultados > section .gzb-rejilla { grid-template-columns: repeat(5, minmax(0, 1fr)); }
#gzb a.gzb-mueble { display: block; min-width: 0; }
#gzb .gzb-mueble-foto { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #EFECE6; }
#gzb .gzb-mueble-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
#gzb .gzb-recorte .gzb-mueble-foto { background: #fff; }
#gzb .gzb-recorte .gzb-mueble-foto img { padding: 9%; object-fit: contain; }
#gzb .gzb-mueble:hover .gzb-mueble-foto img, #gzb .gzb-mueble.gzb-activo .gzb-mueble-foto img { transform: scale(1.04); }
#gzb .gzb-mueble b { display: block; margin-top: 9px; font-size: 14px; font-weight: 500; line-height: 1.3; }
#gzb .gzb-mueble > small { display: block; margin-top: 2px; color: #6d6a64; font-size: 12.5px; line-height: 1.35; }
#gzb .gzb-mueble em { display: inline-block; margin-top: 5px; padding: 1px 7px; background: #EADFCB; font-size: 12px; font-style: normal; }
#gzb .gzb-puntos { display: flex; align-items: center; gap: 4px; margin-top: 7px; }
#gzb .gzb-puntos img { width: 14px; height: 14px; border-radius: 999px; object-fit: cover; box-shadow: 0 0 0 1px #17171522; }
#gzb .gzb-puntos small { color: #9a968e; font-size: 11.5px; }
#gzb button.gzb-mas { margin-top: 22px; }

/* ---- Botones ---- */
#gzb a.gzb-btn, #gzb button.gzb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 20px; border: 1px solid #171715; background: #171715; color: #fff; font-size: 14px; line-height: 1.25; text-align: center; transition: background-color .2s, color .2s; }
#gzb a.gzb-btn:hover, #gzb button.gzb-btn:hover, #gzb .gzb-btn.gzb-activo { background: #3a3935; color: #fff; }
#gzb a.gzb-btn-claro, #gzb button.gzb-btn-claro { background: transparent; color: #171715; }
#gzb a.gzb-btn-claro:hover, #gzb button.gzb-btn-claro:hover, #gzb .gzb-btn-claro.gzb-activo { background: #171715; color: #fff; }
#gzb .gzb-botones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ---- Respuesta directa ---- */
#gzb .gzb-resultados section.gzb-respuesta { padding: 22px 24px 24px; border-left: 3px solid #B2A18D; background: #fff; }
#gzb .gzb-antetitulo { display: block; margin-bottom: 6px; color: #8a7a66; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
#gzb .gzb-resultados .gzb-respuesta h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: 0; line-height: 1.3; text-transform: none; }
#gzb .gzb-respuesta p { max-width: 70ch; margin: 0; color: #3a3935; }

/* ---- Atajos a listados filtrados ---- */
#gzb .gzb-atajos { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
#gzb .gzb-atajos a, #gzb .gzb-atajos button { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 7px 16px 7px 8px; border: 1px solid #17171522; background: #fff; font-size: 14.5px; font-weight: 500; }
#gzb .gzb-atajos a:hover, #gzb .gzb-atajos a.gzb-activo, #gzb .gzb-atajos button:hover, #gzb .gzb-atajos button.gzb-activo { border-color: #171715; background: #fff; }
#gzb .gzb-atajos img { width: 32px; height: 32px; object-fit: cover; }
#gzb .gzb-atajos a > span:first-child, #gzb .gzb-atajos button > svg:first-child { margin-left: 8px; }
#gzb .gzb-atajos small { margin-left: 3px; color: #9a968e; font-weight: 400; }

/* ---- Categorías y colecciones (lateral) ---- */
#gzb .gzb-cats a { display: flex; align-items: center; gap: 14px; padding: 7px 8px; margin: 0 -8px; }
#gzb .gzb-cats a:hover, #gzb .gzb-cats a.gzb-activo { background: #fff; }
#gzb .gzb-cats a > span:first-child { flex: 0 0 60px; width: 60px; height: 46px; overflow: hidden; background: #EFECE6; }
#gzb .gzb-cats img { width: 100%; height: 100%; object-fit: cover; }
#gzb .gzb-cats b { display: block; font-size: 14.5px; font-weight: 500; line-height: 1.3; }
#gzb .gzb-cats small { display: block; color: #6d6a64; font-size: 12.5px; }

/* ---- Listas de ayuda y noticias ---- */
#gzb .gzb-lista li + li { border-top: 1px solid #17171517; }
#gzb a.gzb-fila { display: block; padding: 13px 10px; margin: 0 -10px; }
#gzb a.gzb-fila:hover, #gzb a.gzb-fila.gzb-activo, #gzb a.gzb-noticia:hover, #gzb a.gzb-noticia.gzb-activo { background: #fff; }
#gzb .gzb-fila small, #gzb .gzb-noticia small { display: block; color: #8a7a66; font-size: 12px; }
#gzb .gzb-fila b, #gzb .gzb-noticia b { display: block; font-size: 16px; font-weight: 500; line-height: 1.35; }
#gzb .gzb-fila > span, #gzb .gzb-noticia span > span { display: block; max-width: 80ch; margin-top: 3px; color: #5c5a55; font-size: 13.5px; }
#gzb a.gzb-noticia { display: flex; gap: 16px; padding: 12px 10px; margin: 0 -10px; }
#gzb .gzb-noticia > span:last-child { min-width: 0; }
#gzb .gzb-noticia-foto { flex: 0 0 108px; width: 108px; height: 76px; overflow: hidden; background: #EFECE6; }
#gzb .gzb-noticia-foto img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Catálogos ---- */
#gzb .gzb-catalogos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
#gzb .gzb-catalogo { display: flex; gap: 16px; padding: 14px; background: #fff; }
#gzb .gzb-catalogo-foto { flex: 0 0 92px; display: flex; align-items: center; justify-content: center; width: 92px; height: 100px; overflow: hidden; background: #EFECE6; }
#gzb .gzb-catalogo-foto img { width: 100%; height: 100%; object-fit: cover; }
#gzb .gzb-catalogo b { display: block; margin-bottom: 6px; font-size: 16px; font-weight: 500; }
#gzb .gzb-catalogo div > span { display: flex; flex-wrap: wrap; gap: 2px 16px; }
#gzb .gzb-catalogo div a { display: inline-block; padding: 3px 0; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
#gzb .gzb-catalogo div a.gzb-activo { background: #EADFCB; }

/* ---- Tiendas ---- */
#gzb .gzb-tiendas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#gzb .gzb-tienda { display: flex; flex-direction: column; padding: 16px 18px; background: #fff; }
#gzb .gzb-tienda-loc { color: #8a7a66; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
#gzb .gzb-tienda b { margin-top: 3px; font-size: 16px; font-weight: 500; line-height: 1.3; }
#gzb .gzb-tienda i { align-self: flex-start; margin-top: 6px; padding: 1px 8px; background: #EADFCB; font-size: 11.5px; font-style: normal; }
#gzb .gzb-tienda p { flex: 1 0 auto; margin: 6px 0 10px; color: #5c5a55; font-size: 13.5px; }
#gzb .gzb-tienda-acciones { display: flex; flex-wrap: wrap; gap: 6px 18px; }
#gzb .gzb-tienda-acciones a { display: inline-flex; align-items: center; gap: 6px; padding: 3px 0; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
#gzb .gzb-tienda-acciones a.gzb-activo { background: #EADFCB; }

/* ---- Sin resultados y carga ---- */
#gzb .gzb-nada { max-width: 640px; margin: 0 0 40px; }
#gzb .gzb-resultados .gzb-nada h3 { margin: 0 0 8px; font-size: 24px; letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }
#gzb .gzb-cargando { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
#gzb .gzb-cargando span { height: 120px; background: linear-gradient(100deg, #EFECE6 30%, #f7f5f1 50%, #EFECE6 70%); background-size: 200% 100%; animation: gzb-brillo 1.2s linear infinite; }
@keyframes gzb-brillo { to { background-position: -200% 0; } }
#gzb .gzb-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 1100px) {
	#gzb .gzb-columnas { grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; }
	#gzb .gzb-inicio { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; }
	#gzb .gzb-rejilla, #gzb .gzb-columnas.gzb-una .gzb-rejilla, #gzb .gzb-resultados > section .gzb-rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	#gzb .gzb-mosaico { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	#gzb .gzb-ancho { padding: 0 16px; }
	#gzb .gzb-cab { padding-top: 10px; }
	#gzb h2#gzb-titulo { font-size: 14px; }
	#gzb .gzb-cerrar span { display: none; }
	#gzb form.gzb-campo { gap: 10px; margin-top: 4px; padding-bottom: 6px; }
	#gzb input#gzb-input { height: 46px; font-size: 19px; }
	#gzb .gzb-resultados { padding-top: 18px; }
	#gzb .gzb-columnas, #gzb .gzb-inicio { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
	#gzb .gzb-inicio .gzb-col-pri { order: -1; }
	#gzb .gzb-rejilla, #gzb .gzb-columnas.gzb-una .gzb-rejilla, #gzb .gzb-resultados > section .gzb-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
	#gzb .gzb-mosaico { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	#gzb .gzb-tiendas, #gzb .gzb-catalogos { grid-template-columns: minmax(0, 1fr); }
	#gzb .gzb-resultados section.gzb-respuesta { padding: 18px 16px; }
	#gzb .gzb-pestanas { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	#gzb .gzb-fondo, #gzb .gzb-caja, #gzb .gzb-tarjeta-cat img, #gzb .gzb-mueble-foto img { transition: none; }
	#gzb .gzb-cargando span { animation: none; }
}

/* En móvil la lupa va en la misma línea que "Busca tu tienda": si falta sitio, el que se ajusta es el texto. */
@media (max-width: 767px) {
	header[data-elementor-type="header"] .e-con-inner:has(> .elementor-widget-shortcode .gzb-boton-cabecera) { flex-wrap: nowrap !important; column-gap: 8px !important; align-items: center; }
	header[data-elementor-type="header"] .e-con-inner:has(> .elementor-widget-shortcode .gzb-boton-cabecera) > .elementor-widget-icon-list { flex: 0 1 auto; min-width: 0; }
}
@media (max-width: 400px) {
	header[data-elementor-type="header"] .e-con-inner:has(> .elementor-widget-shortcode .gzb-boton-cabecera) > .elementor-widget-icon-list .elementor-icon-list-text { font-size: 14.5px; }
}
