/* Smartz Artworks — estilos base (Montserrat en negro, heredados del tema). Ajustables con las variables. */
:root {
	--smartz-ink: #000;
	--smartz-text: #111;
	--smartz-muted: #6b6b6b;
	--smartz-line: #e3e3e3;
	--smartz-soft: #f2f2f2;
	--smartz-panel: #f6f6f5;
	--smartz-radius: 10px;
	--smartz-gap: 16px;
	--smartz-sticky-top: 120px;
	--smartz-overlay: rgba(0, 0, 0, .3);
}

html.smartz-lock { overflow: hidden; }

.smartz-pt *, .smartz-work *, .smartz-grid *, .smartz-modal *, .smartz-lb * { box-sizing: border-box; }
.smartz-pt a, .smartz-work a, .smartz-grid a, .smartz-modal a, .smartz-lb a,
.smartz-pt button, .smartz-work button, .smartz-modal button, .smartz-lb button { -webkit-tap-highlight-color: transparent; }
.smartz-ico { flex: none; }
.smartz-empty { color: var(--smartz-muted); }

/* ---------- Botones (blindados frente al magenta de Hello Elementor) ---------- */
body .smartz-btn,
body .smartz-btn:focus,
body .smartz-btn:active {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 50px; padding: 0 34px;
	border: 1px solid var(--smartz-ink); border-radius: 999px;
	background: var(--smartz-ink); color: #fff;
	font: inherit; font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
	cursor: pointer; transition: background .2s, color .2s; box-shadow: none;
}
body .smartz-btn:hover { background: #fff; color: var(--smartz-ink); border-color: var(--smartz-ink); }
body .smartz-btn:focus-visible { outline: 2px solid var(--smartz-ink); outline-offset: 3px; }
body .smartz-btn:disabled { opacity: .5; cursor: wait; }
body .smartz-btn--block { width: 100%; }
body .smartz-btn--ghost, body .smartz-btn--ghost:focus, body .smartz-btn--ghost:active { background: #fff; color: var(--smartz-ink); }
body .smartz-btn--ghost:hover { background: var(--smartz-ink); color: #fff; }
body .smartz-aw-button-wrap .smartz-btn { width: var(--smartz-btn-width, auto); }

/* Botones de icono (cerrar, flechas) */
body .smartz-modal .smartz-modal__close,
body .smartz-modal .smartz-modal__close:hover,
body .smartz-modal .smartz-modal__close:focus,
body .smartz-modal .smartz-modal__close:active,
body .smartz-lb button,
body .smartz-lb button:hover,
body .smartz-lb button:focus,
body .smartz-lb button:active {
	background: none; border: 0; border-radius: 0; box-shadow: none; color: var(--smartz-ink);
}
body .smartz-modal .smartz-modal__close:focus-visible,
body .smartz-lb button:focus-visible { outline: 2px solid var(--smartz-ink); outline-offset: 2px; }

.smartz-sold-badge {
	display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px;
	border: 0; border-radius: 999px; background: #fff; color: var(--smartz-ink);
	box-shadow: 0 1px 4px rgba(0,0,0,.12);
	font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1;
}
.smartz-sold-dot {
	display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%;
	background: var(--smartz-sold, #d0021b); vertical-align: middle;
}
.smartz-card__meta .smartz-sold-dot { margin: -2px 7px 0 0; width: 8px; height: 8px; }

/* ---------- Paintings: columna + mosaico ---------- */
.smartz-pt {
	display: grid; grid-template-columns: var(--smartz-nav-width, minmax(240px, 320px)) 1fr; gap: 72px; align-items: start;
}
.smartz-pt__nav { position: sticky; top: var(--smartz-sticky-top); }
.smartz-pt__heading {
	margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--smartz-line);
	font-size: 20px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--smartz-ink);
}
.smartz-pt__list { list-style: none; margin: 0; padding: 0; }
.smartz-pt__list li { margin: 0; border-bottom: 1px solid var(--smartz-line); }
body .smartz-pt__item,
body .smartz-pt__item:focus,
body .smartz-pt__item:active {
	position: relative; display: grid; grid-template-columns: 1fr auto; column-gap: 12px;
	margin: 8px 0; padding: 18px 20px; border-radius: var(--smartz-radius);
	background: transparent; color: var(--smartz-text); text-decoration: none; transition: background .2s;
	outline: none;
}
body .smartz-pt__item:hover { background: var(--smartz-soft); color: var(--smartz-ink); }
body .smartz-pt__item.is-active { background: var(--smartz-soft); color: var(--smartz-ink); }
body .smartz-pt__item:focus-visible { outline: 2px solid var(--smartz-ink); outline-offset: 2px; }
.smartz-pt__name { grid-column: 1; font-size: 19px; font-weight: 400; line-height: 1.3; }
.smartz-pt__item.is-active .smartz-pt__name { font-weight: 500; }
.smartz-pt__label { grid-column: 1; margin-top: 6px; font-size: 14px; color: var(--smartz-muted); letter-spacing: .02em; }
.smartz-pt__item .smartz-ico { grid-column: 2; grid-row: 1 / span 2; align-self: start; margin-top: 4px; }

.smartz-pt__stage { min-width: 0; }
.smartz-pt__mosaic { columns: var(--smartz-cols, 2); column-gap: var(--smartz-gap); animation: smartz-fade .35s ease; }
.smartz-pt__mosaic[hidden] { display: none; }
.smartz-pt__mosaic .smartz-card { break-inside: avoid; margin-bottom: var(--smartz-gap); }
@keyframes smartz-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Tarjetas ---------- */
.smartz-grid {
	display: grid; grid-template-columns: repeat(var(--smartz-cols, 3), minmax(0, 1fr));
	gap: 40px var(--smartz-gap); align-items: start;
}
body .smartz-card, body .smartz-card:hover, body .smartz-card:focus { display: block; color: var(--smartz-text); text-decoration: none; }
.smartz-card:focus-visible { outline: 2px solid var(--smartz-ink); outline-offset: 3px; }
.smartz-card__media { position: relative; display: block; overflow: hidden; background: var(--smartz-soft); }
.smartz-card__media img { display: block; width: 100%; height: auto; transition: transform .6s ease; }
.smartz-card:hover .smartz-card__media img { transform: scale(1.025); }
.smartz-card__media .smartz-sold-badge,
.woocommerce ul.products li.product .smartz-sold-badge { position: absolute; top: 12px; right: 12px; left: auto; z-index: 2; }
.woocommerce ul.products li.product { position: relative; }
.smartz-card__body { display: block; padding-top: 14px; }
.smartz-card__title { display: block; font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--smartz-ink); }
.smartz-card__meta { display: block; margin-top: 4px; font-size: 14px; color: var(--smartz-muted); }
.smartz-card__meta del { opacity: .6; }
.smartz-card__meta ins { text-decoration: none; }

/* Capa al pasar el ratón (mosaico de Paintings) */
.smartz-card__overlay {
	position: absolute; inset: 0; z-index: 1;
	display: flex; flex-direction: column; justify-content: flex-end; padding: 22px 24px;
	background: var(--smartz-overlay); opacity: 0; transition: opacity .3s ease;
}
.smartz-card__overlay .smartz-card__title { color: #fff; font-size: 18px; font-weight: 500; }
.smartz-card__overlay .smartz-card__meta { color: #fff; margin-top: 4px; }
.smartz-card--overlay .smartz-card__body { display: none; }
.smartz-card--overlay:hover .smartz-card__overlay,
.smartz-card--overlay:focus-visible .smartz-card__overlay { opacity: 1; }
/* Pantallas táctiles: sin hover, el título va debajo de la imagen */
@media (hover: none) {
	.smartz-card__overlay { display: none; }
	.smartz-card--overlay .smartz-card__body { display: block; padding-top: 10px; }
	.smartz-pt__mosaic .smartz-card { margin-bottom: 24px; }
}

/* ---------- Shop: filtros (filas combinables: categoría · color · tamaño) ---------- */
.smartz-filterbar { margin: 0 0 40px; }
body .smartz-filter__toggle { display: none; }
.smartz-filter { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.smartz-filter__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body .smartz-filter__btn,
body .smartz-filter__btn:focus,
body .smartz-filter__btn:active,
body .smartz-filter__toggle,
body .smartz-filter__toggle:focus,
body .smartz-filter__toggle:active {
	min-height: 40px; padding: 0 18px; margin: 0;
	border: 1px solid var(--smartz-line); border-radius: 999px;
	background: #fff; color: var(--smartz-text); box-shadow: none;
	font: inherit; font-size: 14px; font-weight: 400; letter-spacing: .02em; text-transform: none;
	cursor: pointer; transition: border-color .2s, background .2s, color .2s;
}
body .smartz-filter__btn:hover { border-color: var(--smartz-ink); background: #fff; color: var(--smartz-ink); }
body .smartz-filter__btn.is-active { border-color: var(--smartz-ink); background: var(--smartz-ink); color: #fff; }
body .smartz-filter__btn:focus-visible,
body .smartz-filter__toggle:focus-visible { outline: 2px solid var(--smartz-ink); outline-offset: 2px; }

/* Puntos de color */
body .smartz-filter__dot,
body .smartz-filter__dot:focus,
body .smartz-filter__dot:active,
body .smartz-filter__dot:hover {
	position: relative; width: 28px; height: 28px; min-height: 0; padding: 0; margin: 0 2px;
	border: 1px solid transparent; border-radius: 50%;
	background: var(--smartz-dot, #ccc); box-shadow: none; cursor: pointer;
	transition: box-shadow .2s, transform .2s;
}
body .smartz-filter__dot.is-light { border-color: #cfcfcf; }
body .smartz-filter__dot:hover { transform: scale(1.08); }
body .smartz-filter__dot.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--smartz-ink); }
body .smartz-filter__dot:focus-visible { outline: 2px solid var(--smartz-ink); outline-offset: 3px; }
.smartz-filter__dot .screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Quitar filtros */
body .smartz-filter__clear,
body .smartz-filter__clear:focus,
body .smartz-filter__clear:hover,
body .smartz-filter__clear:active {
	padding: 0; margin: 2px 0 0; border: 0; background: none; box-shadow: none; min-height: 0;
	font: inherit; font-size: 13px; color: var(--smartz-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
body .smartz-filter__clear:hover { color: var(--smartz-ink); }
.smartz-filter__clear[hidden], .smartz-filter__count[hidden] { display: none !important; }
.smartz-filter__count {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
	background: var(--smartz-ink); color: #fff; font-size: 12px; line-height: 1;
}
.smartz-grid .smartz-card[hidden] { display: none; }
.smartz-shop__none { margin-top: 24px; }

/* ---------- Series ---------- */
.smartz-series { margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--smartz-line); }
.smartz-series__title { margin: 0 0 28px; font-size: 20px; font-weight: 500; color: var(--smartz-ink); }
.smartz-series__grid { --smartz-cols: 4; }

/* ---------- Ficha de obra ---------- */
.smartz-work__top { margin: 0 0 24px; }
body .smartz-work__back, body .smartz-work__back:focus, body .smartz-work__back:active {
	display: inline-flex; align-items: center; gap: 8px;
	color: var(--smartz-ink); text-decoration: none;
	font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
body .smartz-work__back:hover { color: var(--smartz-ink); text-decoration: underline; text-underline-offset: 4px; }

.smartz-work__hero {
	display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 0; align-items: stretch;
}
.smartz-work__media { position: relative; margin: 0; padding: 40px 48px 40px 0; display: flex; align-items: center; justify-content: center; }
.smartz-work__media a { position: relative; display: block; cursor: zoom-in; }
.smartz-work__media img { display: block; width: auto; max-width: 100%; height: auto; max-height: 82vh; margin: 0 auto; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.smartz-work__zoom {
	position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center;
	border-radius: 50%; background: rgba(255,255,255,.92); color: var(--smartz-ink); opacity: 0; transition: opacity .2s;
}
.smartz-work__media a:hover .smartz-work__zoom, .smartz-work__media a:focus-visible .smartz-work__zoom { opacity: 1; }

.smartz-work__panel { padding: 64px 52px; background: var(--smartz-panel); }
.smartz-work__eyebrow { margin: 0 0 18px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--smartz-muted); }
.smartz-work__title { margin: 0; font-size: clamp(30px, 3.2vw, 46px); font-weight: 400; line-height: 1.12; color: var(--smartz-ink); }
.smartz-work__year { margin: 14px 0 0; font-size: 20px; font-style: italic; color: var(--smartz-text); }
.smartz-work__actions { margin-top: 36px; padding: 36px 0; border-top: 1px solid #d9d9d6; border-bottom: 1px solid #d9d9d6; }
.smartz-work__price { margin: 0 0 16px; font-size: 22px; color: var(--smartz-ink); }
.smartz-work__buy form.cart { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.smartz-work__buy .quantity { display: none; }
body .smartz-work__buy .single_add_to_cart_button.button,
body .smartz-work__buy .single_add_to_cart_button.button.alt,
body .smartz-work__buy .single_add_to_cart_button.button.alt:focus,
body .smartz-work__buy .single_add_to_cart_button.button.alt:active {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 50px; margin: 0; padding: 0 34px; float: none;
	border: 1px solid var(--smartz-ink); border-radius: 999px;
	background: var(--smartz-ink); color: #fff; box-shadow: none;
	font: inherit; font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
}
body .smartz-work__buy .single_add_to_cart_button.button.alt:hover { background: #fff; color: var(--smartz-ink); }
body .smartz-work__buy .single_add_to_cart_button.button.alt.loading { opacity: .5; }
body.woocommerce .smartz-work__buy form.cart,
body .smartz-work__buy form.cart { margin: 0; }
body .smartz-work__buy form.cart::before,
body .smartz-work__buy form.cart::after { display: none !important; content: none !important; }
.smartz-work__buy .stock { margin: 0 0 12px; font-size: 14px; color: var(--smartz-muted); }
.smartz-work__sold {
	display: inline-flex; align-items: center; gap: 9px; margin: 0;
	font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--smartz-ink);
}
.smartz-work__specs { padding-top: 32px; font-size: 16px; line-height: 1.65; color: var(--smartz-text); }
.smartz-work__specs p { margin: 0; }
.smartz-work__short { margin-top: 16px; }
.smartz-work__short p { margin: 0 0 10px; }

.smartz-work__desc { max-width: 760px; margin: 72px auto 0; font-size: 16px; line-height: 1.75; }

.smartz-work__gallery { columns: 3; column-gap: var(--smartz-gap); margin-top: 72px; }
.smartz-work__gallery a { display: block; break-inside: avoid; margin-bottom: var(--smartz-gap); overflow: hidden; cursor: zoom-in; background: var(--smartz-soft); }
.smartz-work__gallery img { display: block; width: 100%; height: auto; transition: transform .6s ease; }
.smartz-work__gallery a:hover img { transform: scale(1.025); }

/* ---------- Modal ---------- */
.smartz-modal { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 16px; }
.smartz-modal[hidden] { display: none; }
.smartz-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.smartz-modal__dialog {
	position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto;
	padding: 44px 40px 36px; background: #fff; color: var(--smartz-text); border-radius: 16px;
	box-shadow: 0 30px 80px rgba(0,0,0,.25); animation: smartz-pop .25s ease;
}
@keyframes smartz-pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
body .smartz-modal .smartz-modal__close { position: absolute; top: 14px; right: 14px; padding: 6px; cursor: pointer; }
.smartz-modal__work { display: flex; gap: 16px; align-items: center; margin-bottom: 26px; padding-right: 28px; }
.smartz-modal__thumb { width: 64px; height: 64px; object-fit: cover; flex: none; }
.smartz-modal__eyebrow { margin: 0 0 4px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--smartz-muted); }
.smartz-modal__title { margin: 0; font-size: 24px; font-weight: 500; line-height: 1.2; color: var(--smartz-ink); }

.smartz-form__row { margin: 0 0 12px; }
.smartz-form__row label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body .smartz-form input[type="text"], body .smartz-form input[type="email"], body .smartz-form select {
	width: 100%; min-height: 50px; padding: 0 18px;
	border: 1px solid var(--smartz-ink); border-radius: 999px; background-color: #fff; color: var(--smartz-text);
	font: inherit; font-size: 15px; box-shadow: none;
}
body .smartz-form select { appearance: none; -webkit-appearance: none; padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 20px center; }
body .smartz-form input:focus, body .smartz-form select:focus { border-color: var(--smartz-ink); outline: 2px solid var(--smartz-ink); outline-offset: 1px; }
.smartz-form input[type="checkbox"] { accent-color: var(--smartz-ink); }
.smartz-form__check { margin: 16px 0 20px; font-size: 14px; }
.smartz-form__check label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.smartz-form__check input { margin-top: 3px; }
body .smartz-form__check a, body .smartz-form__check a:hover { color: var(--smartz-ink); text-decoration: underline; }
.smartz-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.smartz-form__status { min-height: 1.4em; margin: 12px 0 0; font-size: 14px; color: var(--smartz-ink); text-align: center; }
.smartz-modal__done { text-align: center; padding: 8px 0; }
.smartz-modal__done-title { margin: 0 0 8px; font-size: 22px; font-weight: 500; color: var(--smartz-ink); }
.smartz-modal__done p { margin: 0 0 22px; }

/* ---------- Lightbox ---------- */
.smartz-lb { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: #fff; }
.smartz-lb[hidden] { display: none; }
.smartz-lb__fig { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 56px 88px; }
.smartz-lb__fig img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; }
.smartz-lb__count { margin-top: 14px; font-size: 13px; color: var(--smartz-muted); letter-spacing: .08em; }
body .smartz-lb button { position: absolute; cursor: pointer; padding: 10px; }
.smartz-lb button[hidden] { display: none; }
body .smartz-lb .smartz-lb__close { top: 14px; right: 18px; }
body .smartz-lb .smartz-lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
body .smartz-lb .smartz-lb__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.smartz-pt { grid-template-columns: 260px 1fr; gap: 40px; }
	.smartz-grid:not([data-smartz-responsive]) { --smartz-cols: 2 !important; }
	.smartz-work__hero { grid-template-columns: 1fr; }
	.smartz-work__media { padding: 0 0 32px; }
	.smartz-work__media img { max-height: 75vh; }
	.smartz-work__panel { padding: 40px 32px; }
	.smartz-work__gallery { columns: 2; }
	.smartz-series__grid { --smartz-cols: 3; }
}
@media (max-width: 767px) {
	.smartz-pt { grid-template-columns: 1fr; gap: 24px; }
	.smartz-pt__nav { position: static; }
	.smartz-pt__heading { display: none; }
	.smartz-pt__list { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
	.smartz-pt__list::-webkit-scrollbar { display: none; }
	.smartz-pt__list li { flex: none; border: 0; }
	body .smartz-pt__item, body .smartz-pt__item:focus, body .smartz-pt__item:active { margin: 0; padding: 10px 16px; border: 1px solid var(--smartz-line); border-radius: 999px; }
	body .smartz-pt__item:hover { background: transparent; }
	body .smartz-pt__item.is-active { background: var(--smartz-ink); color: #fff; border-color: var(--smartz-ink); }
	.smartz-pt__label, .smartz-pt__item .smartz-ico { display: none; }
	.smartz-pt__name { font-size: 15px; white-space: nowrap; }
	.smartz-pt__item.is-active .smartz-pt__name { font-weight: 500; }
	.smartz-pt__mosaic { column-gap: 12px; }
	.smartz-grid { gap: 28px 12px; }
	.smartz-card__title { font-size: 14px; }
	.smartz-card__meta { font-size: 13px; }
	.smartz-work__top { margin-bottom: 16px; }
	.smartz-work__panel { padding: 32px 22px; margin: 0 -16px; }
	.smartz-work__actions { padding: 28px 0; margin-top: 28px; }
	body .smartz-work__actions .smartz-btn { width: 100%; }
	.smartz-work__gallery { columns: 2; column-gap: 10px; margin-top: 40px; }
	.smartz-work__gallery a { margin-bottom: 10px; }
	.smartz-modal__dialog { padding: 40px 22px 28px; }
	.smartz-series__grid { --smartz-cols: 2; }
	.smartz-filterbar { margin-bottom: 24px; }
	body .smartz-filter__toggle,
	body .smartz-filter__toggle:focus,
	body .smartz-filter__toggle:active { display: inline-flex; align-items: center; gap: 8px; }
	body .smartz-filter__toggle[aria-expanded="true"] { border-color: var(--smartz-ink); color: var(--smartz-ink); }
	.smartz-filter { display: none; gap: 16px; margin-top: 16px; padding: 18px 0 4px; border-top: 1px solid var(--smartz-line); }
	.smartz-filter.is-open { display: flex; }
	body .smartz-filter__btn { white-space: nowrap; }
	body .smartz-filter__dot { width: 32px; height: 32px; }
	.smartz-lb__fig { padding: 56px 12px; }
	body .smartz-lb .smartz-lb__prev, body .smartz-lb .smartz-lb__next { top: auto; bottom: 10px; transform: none; }
}
