/* ==========================================================================
   SGM Catálogo — estilos del catálogo, ficha y presupuesto.
   Usa las variables del tema (Tinta + Naranja SGM sobre crema).
   ========================================================================== */

:root {
	--sgmc-ink: var(--ink, #0e1726);
	--sgmc-orange: var(--orange, #f76a0c);
	--sgmc-orange-600: var(--orange-600, #dd5a03);
	--sgmc-orange-50: var(--orange-50, #fff3ea);
	--sgmc-sand: var(--sand, #f3eee6);
	--sgmc-cream: var(--cream, #faf7f2);
	--sgmc-line: var(--line, rgba(14, 23, 38, 0.1));
	--sgmc-muted: var(--muted, #465062);
	--sgmc-radius: var(--radius, 18px);
	--sgmc-radius-lg: var(--radius-lg, 28px);
	--sgmc-shadow-sm: var(--shadow-sm, 0 1px 2px rgba(14, 23, 38, 0.06), 0 2px 8px rgba(14, 23, 38, 0.04));
	--sgmc-shadow: var(--shadow, 0 10px 30px -10px rgba(14, 23, 38, 0.18));
	--sgmc-ease: var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
	--sgmc-green: #2f8f5b;
}

/* ---------- Botón «Mi presupuesto» de la cabecera ---------- */
.sgmc-quote-link {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	width: 44px; height: 44px; flex-shrink: 0; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.28);
	font-size: 14px; font-weight: 700; color: inherit; white-space: nowrap;
	transition: background 0.25s, border-color 0.25s;
}
.sgmc-quote-link .icon { width: 19px; height: 19px; color: var(--sgmc-orange); }
.sgmc-quote-link__label { display: none; }
.sgmc-quote-link .sgmc-quote-link__count { position: absolute; top: -5px; right: -6px; }
.site-header .header-phone { white-space: nowrap; }
@media (min-width: 1280px) {
	.sgmc-quote-link { width: auto; padding: 0 8px 0 16px; }
	.sgmc-quote-link__label { display: inline; }
	.sgmc-quote-link .sgmc-quote-link__count { position: static; }
}
.sgmc-quote-link:hover { background: rgba(255, 255, 255, 0.1); }
.is-scrolled .sgmc-quote-link { border-color: var(--sgmc-line); }
.is-scrolled .sgmc-quote-link:hover { background: rgba(14, 23, 38, 0.05); }
.sgmc-quote-link__count {
	min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
	display: inline-grid; place-items: center;
	background: var(--sgmc-orange, #f76a0c); color: #fff; font-size: 12px; font-weight: 800; line-height: 1;
}
.sgmc-quote-link__count.is-empty { background: rgba(140, 150, 165, 0.35); color: inherit; }
.sgmc-quote-link.is-bump .sgmc-quote-link__count { animation: sgmc-bump 0.5s var(--sgmc-ease); }
@keyframes sgmc-bump { 40% { transform: scale(1.35); } }
.nav__contact .sgmc-quote-link__count { margin-left: 4px; }

/* ---------- Héroe ---------- */
.sgmc-hero--compact { padding-bottom: clamp(36px, 5vw, 60px); }
.sgmc-hero--compact .page-hero__title { font-size: clamp(30px, 4.2vw, 52px); }
.sgmc-hero--compact .page-hero__text { margin-bottom: 0; }
.sgmc-hero .breadcrumbs ol { margin-bottom: 20px; }
.sgmc-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sgmc-hero .sgmc-search { margin-top: 8px; }

/* ---------- Buscador ---------- */
.sgmc-search {
	position: relative; display: flex; align-items: center; gap: 8px;
	max-width: 720px; padding: 6px 6px 6px 50px; border-radius: 999px;
	background: #fff; box-shadow: var(--sgmc-shadow);
}
.sgmc-search > .icon { position: absolute; left: 20px; width: 20px; height: 20px; color: var(--sgmc-muted); }
.sgmc-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 4px; font-size: 16px; color: var(--sgmc-ink); }
.sgmc-search input:focus { outline: none; }
.sgmc-search input::-webkit-search-cancel-button { cursor: pointer; }
.sgmc-search .btn { flex-shrink: 0; }
.sgmc-search:focus-within { box-shadow: 0 0 0 4px rgba(247, 106, 12, 0.25), var(--sgmc-shadow); }

/* ---------- Secciones ---------- */
.sgmc-section { padding-top: clamp(48px, 6vw, 80px); }
.sgmc-section--after { padding-top: clamp(24px, 3vw, 40px); }
.sgmc-subcats + .sgmc-section { border-top: 0; }
.sgmc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(28px, 4vw, 44px); }
.sgmc-head .section-title { margin: 0; }
.sgmc-head .eyebrow { margin-bottom: 12px; }
.sgmc-subtitle { font-size: clamp(20px, 2vw, 24px); margin: 0 0 20px; }
.sgmc-link { font-size: 14px; font-weight: 700; color: var(--sgmc-ink); border-bottom: 2px solid var(--sgmc-orange); padding-bottom: 1px; }
.sgmc-link:hover { color: var(--sgmc-orange-600); }

/* ---------- Categorías (4 por fila) ---------- */
.sgmc-cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.sgmc-cat { border-radius: var(--sgmc-radius); overflow: hidden; background: #fff; box-shadow: var(--sgmc-shadow-sm); transition: transform 0.4s var(--sgmc-ease), box-shadow 0.4s; }
.sgmc-cat:hover { transform: translateY(-6px); box-shadow: var(--sgmc-shadow); }
.sgmc-cat__link { display: flex; flex-direction: column; height: 100%; }
.sgmc-cat__media { position: relative; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.sgmc-cat__media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform 0.8s var(--sgmc-ease); }
.sgmc-cat:hover .sgmc-cat__media img { transform: scale(1.06); }
.sgmc-cat__media::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--sgmc-line); }
.sgmc-cat__icon { position: absolute; left: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--sgmc-orange); color: #fff; box-shadow: 0 8px 20px -6px rgba(247, 106, 12, 0.6); }
.sgmc-cat__icon .icon { width: 22px; height: 22px; }
.sgmc-cat__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.sgmc-cat__title { font-size: 18px; margin: 0 0 4px; line-height: 1.25; }
.sgmc-cat__count { margin: 0 0 8px; font-size: 13.5px; font-weight: 700; color: var(--sgmc-orange-600); }
.sgmc-cat__subs { margin: 0 0 14px; font-size: 13.5px; color: var(--sgmc-muted); line-height: 1.45; }
.sgmc-cat__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--sgmc-ink); }
.sgmc-cat__more .icon { width: 16px; height: 16px; color: var(--sgmc-orange); transition: transform 0.3s var(--sgmc-ease); }
.sgmc-cat:hover .sgmc-cat__more .icon { transform: translateX(4px); }
.sgmc-cat--small .sgmc-cat__body { padding: 16px 18px 18px; }
.sgmc-cat--small .sgmc-cat__title { font-size: 16px; }
.sgmc-cat--small .sgmc-cat__count { margin-bottom: 10px; }

/* ---------- Listado ---------- */
.sgmc-listing { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.sgmc-sidebar { position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.admin-bar .sgmc-sidebar { top: 128px; }
.sgmc-sidebar__head { display: none; }
.sgmc-filters { display: grid; gap: 10px; }
.sgmc-filters__search { position: relative; }
.sgmc-filters__search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--sgmc-muted); }
.sgmc-filters__search input { width: 100%; padding: 12px 14px 12px 40px; border-radius: 12px; border: 1.5px solid var(--sgmc-line); background: #fff; font-size: 14.5px; }
.sgmc-filters__search input:focus { outline: none; border-color: var(--sgmc-orange); }
.sgmc-facet { border-radius: 14px; background: #fff; border: 1px solid var(--sgmc-line); }
.sgmc-facet summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; cursor: pointer; font-weight: 700; font-size: 14.5px; color: var(--sgmc-ink); }
.sgmc-facet summary::-webkit-details-marker { display: none; }
.sgmc-facet summary .icon { width: 16px; height: 16px; transition: transform 0.3s var(--sgmc-ease); }
.sgmc-facet[open] summary .icon { transform: rotate(180deg); }
.sgmc-facet__body { padding: 0 16px 14px; display: grid; gap: 4px; }
.sgmc-check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; cursor: pointer; color: var(--text, #1b2434); }
.sgmc-check input { width: 17px; height: 17px; accent-color: var(--sgmc-orange); flex-shrink: 0; margin: 0; }
.sgmc-check span:nth-of-type(1) { flex: 1; }
.sgmc-check--more { display: none; }
.sgmc-checks.is-expanded .sgmc-check--more { display: flex; }
.sgmc-count { font-size: 12px; color: var(--sgmc-muted); font-variant-numeric: tabular-nums; }
.sgmc-more-btn { justify-self: start; margin-top: 4px; padding: 0; border: 0; background: none; font-weight: 700; font-size: 13px; color: var(--sgmc-orange-600); cursor: pointer; }
.sgmc-color-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; }
.sgmc-color-opt { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13.5px; cursor: pointer; min-width: 0; }
.sgmc-color-opt input { position: absolute; opacity: 0; pointer-events: none; }
.sgmc-color-opt__dot { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(14, 23, 38, 0.15); position: relative; }
.sgmc-color-opt input:checked + .sgmc-color-opt__dot { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sgmc-orange); }
.sgmc-color-opt input:focus-visible + .sgmc-color-opt__dot { outline: 2px solid var(--sgmc-orange); outline-offset: 3px; }
.sgmc-color-opt__name { flex: 1; min-width: 0; line-height: 1.25; }
.sgmc-color-opt .sgmc-count { display: none; }
.sgmc-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.sgmc-pill { cursor: pointer; }
.sgmc-pill input { position: absolute; opacity: 0; pointer-events: none; }
.sgmc-pill span { display: inline-block; min-width: 40px; padding: 6px 10px; border-radius: 10px; border: 1.5px solid var(--sgmc-line); text-align: center; font-size: 13px; font-weight: 700; background: var(--sgmc-cream); transition: all 0.2s; }
.sgmc-pill input:checked + span { background: var(--sgmc-ink); color: #fff; border-color: var(--sgmc-ink); }
.sgmc-pill input:focus-visible + span { outline: 2px solid var(--sgmc-orange); outline-offset: 2px; }
.sgmc-filters__actions { display: grid; gap: 10px; justify-items: start; padding-top: 4px; }
.js .sgmc-filters__actions .btn { display: none; }
.sgmc-results { min-width: 0; transition: opacity 0.25s; }
.sgmc-listing.is-loading .sgmc-results { opacity: 0.45; pointer-events: none; }

.sgmc-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.sgmc-toolbar__count { margin: 0 auto 0 0; font-size: 15px; color: var(--sgmc-muted); }
.sgmc-toolbar__count strong { color: var(--sgmc-ink); }
.sgmc-toolbar__filters { display: none; }
.sgmc-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sgmc-muted); }
.sgmc-sort select { appearance: none; padding: 9px 38px 9px 14px; border-radius: 999px; border: 1.5px solid var(--sgmc-line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6779' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; font-size: 14px; font-weight: 600; color: var(--sgmc-ink); cursor: pointer; }
.sgmc-sort select:focus { outline: none; border-color: var(--sgmc-orange); }
.sgmc-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 20px; }
.sgmc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 14px; border-radius: 999px; background: var(--sgmc-ink); color: #fff; font-size: 13px; font-weight: 600; }
.sgmc-chip .icon { width: 14px; height: 14px; opacity: 0.7; }
.sgmc-chip:hover .icon { opacity: 1; }

/* ---------- Tarjetas de producto ---------- */
.sgmc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sgmc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sgmc-card { border-radius: var(--sgmc-radius); background: #fff; overflow: hidden; box-shadow: var(--sgmc-shadow-sm); transition: transform 0.4s var(--sgmc-ease), box-shadow 0.4s; animation: sgmc-in 0.5s var(--sgmc-ease) both; }
.sgmc-card:hover { transform: translateY(-5px); box-shadow: var(--sgmc-shadow); }
@keyframes sgmc-in { from { opacity: 0; transform: translateY(12px); } }
.sgmc-card__link { display: flex; flex-direction: column; height: 100%; }
.sgmc-card__media { position: relative; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.sgmc-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform 0.7s var(--sgmc-ease); }
.sgmc-card:hover .sgmc-card__media img { transform: scale(1.05); }
.sgmc-badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: var(--sgmc-orange); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em; }
.sgmc-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; border-top: 1px solid var(--sgmc-line); }
.sgmc-card__ref { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sgmc-muted); }
.sgmc-card__title { font-size: 16px; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 10px; }
.sgmc-dots { display: flex; align-items: center; gap: 5px; margin-bottom: 12px; flex-wrap: wrap; }
.sgmc-dot { width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(14, 23, 38, 0.18); }
.sgmc-dot--text { display: grid; place-items: center; background: var(--sgmc-sand); font-size: 9px; font-weight: 800; color: var(--sgmc-muted); }
.sgmc-dots__more { font-size: 12px; font-weight: 700; color: var(--sgmc-muted); margin-left: 2px; }
.sgmc-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.sgmc-card__price { font-size: 13px; color: var(--sgmc-muted); }
.sgmc-card__price strong { font-size: 18px; color: var(--sgmc-ink); letter-spacing: -0.02em; }
.sgmc-card__cta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--sgmc-ink); }
.sgmc-card__cta .icon { width: 16px; height: 16px; color: var(--sgmc-orange); }
.sgmc-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--sgmc-muted); white-space: nowrap; }
.sgmc-stock i { width: 8px; height: 8px; border-radius: 50%; background: #c0c4cb; }
.sgmc-stock--ok i { background: var(--sgmc-green); box-shadow: 0 0 0 3px rgba(47, 143, 91, 0.15); }
.sgmc-stock--ok { color: #1f6b43; }

.sgmc-empty { text-align: center; padding: 56px 20px; border-radius: var(--sgmc-radius); background: #fff; display: flex; flex-direction: column; align-items: center; }
.sgmc-empty .icon-card__icon { margin-bottom: 18px; }
.sgmc-empty h3 { font-size: 21px; }
.sgmc-empty p { max-width: 520px; color: var(--sgmc-muted); }
.sgmc-empty .btn-row { justify-content: center; margin-top: 8px; }
.sgmc-pagination { margin-top: 40px; }
.sgmc-pagination .page-numbers .icon { width: 18px; height: 18px; }
.sgmc-pagination .dots { background: transparent; border: 0; }

/* ---------- Ficha de producto ---------- */
.sgmc-product { padding-top: clamp(32px, 4vw, 56px); }
.sgmc-product__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.sgmc-gallery { position: sticky; top: 96px; }
.admin-bar .sgmc-gallery { top: 128px; }
.sgmc-gallery__main { border-radius: var(--sgmc-radius-lg); background: #fff; overflow: hidden; aspect-ratio: 1 / 1; box-shadow: var(--sgmc-shadow-sm); }
.sgmc-gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 5%; transition: opacity 0.25s; }
.sgmc-gallery__main img.is-loading { opacity: 0.4; }
.sgmc-gallery__thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: thin; }
.sgmc-thumb { flex: 0 0 76px; height: 76px; padding: 0; border-radius: 14px; border: 2px solid transparent; background: #fff; cursor: pointer; overflow: hidden; box-shadow: var(--sgmc-shadow-sm); transition: border-color 0.2s; }
.sgmc-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.sgmc-thumb.is-active, .sgmc-thumb:hover { border-color: var(--sgmc-orange); }

.sgmc-config { padding: clamp(22px, 3vw, 34px); border-radius: var(--sgmc-radius-lg); background: #fff; box-shadow: var(--sgmc-shadow); display: grid; gap: 22px; }
.sgmc-price-from { padding-bottom: 18px; border-bottom: 1px solid var(--sgmc-line); font-size: 14px; color: var(--sgmc-muted); }
.sgmc-price-from strong { font-size: 28px; letter-spacing: -0.03em; color: var(--sgmc-ink); }
.sgmc-scales { margin-top: 10px; }
.sgmc-scales summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 700; color: var(--sgmc-ink); font-size: 13.5px; }
.sgmc-scales summary::-webkit-details-marker { display: none; }
.sgmc-scales summary .icon { width: 15px; height: 15px; transition: transform 0.3s; }
.sgmc-scales[open] summary .icon { transform: rotate(180deg); }
.sgmc-scales table { margin-top: 10px; width: 100%; max-width: 360px; border-collapse: collapse; font-size: 13.5px; }
.sgmc-scales td { padding: 6px 0; border-bottom: 1px dashed var(--sgmc-line); color: var(--text, #1b2434); }
.sgmc-scales td:last-child { text-align: right; font-weight: 700; }
.sgmc-scales p { margin: 8px 0 0; font-size: 12.5px; }

.sgmc-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.sgmc-step__title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 0; font-size: 15.5px; font-weight: 800; color: var(--sgmc-ink); }
.sgmc-step__num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sgmc-ink); color: #fff; font-size: 13px; }
.sgmc-step__value { font-weight: 500; color: var(--sgmc-muted); }

.sgmc-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sgmc-swatch { position: relative; width: 38px; height: 38px; padding: 3px; border-radius: 50%; border: 2px solid transparent; background: #fff; cursor: pointer; transition: border-color 0.2s, transform 0.2s; }
.sgmc-swatch__dot { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(14, 23, 38, 0.18); }
.sgmc-swatch:hover { transform: translateY(-2px); }
.sgmc-swatch.is-active { border-color: var(--sgmc-orange); }
.sgmc-swatch.is-out::after { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 2px; background: rgba(14, 23, 38, 0.45); transform: rotate(45deg); border-radius: 2px; }
.sgmc-swatch--text { width: auto; height: auto; border-radius: 10px; padding: 7px 12px; border: 1.5px solid var(--sgmc-line); }
.sgmc-swatch--text.is-active { border-color: var(--sgmc-orange); background: var(--sgmc-orange-50); }
.sgmc-swatch__label { font-size: 13px; font-weight: 700; }

.sgmc-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--sgmc-line); border-radius: 14px; background: var(--sgmc-cream); overflow: hidden; }
.sgmc-qty button { width: 46px; height: 50px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--sgmc-ink); }
.sgmc-qty button:hover { background: var(--sgmc-sand); }
.sgmc-qty button .icon { width: 18px; height: 18px; }
.sgmc-qty input { width: 110px; height: 50px; border: 0; background: #fff; text-align: center; font-size: 18px; font-weight: 800; color: var(--sgmc-ink); -moz-appearance: textfield; }
.sgmc-qty input::-webkit-outer-spin-button, .sgmc-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sgmc-qty input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--sgmc-orange); }
.sgmc-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sgmc-quick button { padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--sgmc-line); background: #fff; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--sgmc-ink); }
.sgmc-quick button:hover, .sgmc-quick button.is-active { border-color: var(--sgmc-ink); background: var(--sgmc-ink); color: #fff; }

.sgmc-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.sgmc-size { display: grid; gap: 4px; padding: 10px; border-radius: 12px; border: 1.5px solid var(--sgmc-line); background: var(--sgmc-cream); text-align: center; }
.sgmc-size label { font-weight: 800; font-size: 14px; color: var(--sgmc-ink); }
.sgmc-size input { width: 100%; padding: 8px 6px; border-radius: 8px; border: 1.5px solid var(--sgmc-line); background: #fff; text-align: center; font-size: 15px; font-weight: 700; -moz-appearance: textfield; }
.sgmc-size input:focus { outline: none; border-color: var(--sgmc-orange); }
.sgmc-size small { font-size: 11px; color: var(--sgmc-muted); }
.sgmc-size.has-qty { border-color: var(--sgmc-orange); background: var(--sgmc-orange-50); }
.sgmc-sizes-total { margin: 10px 0 0; font-size: 14px; color: var(--sgmc-muted); }
.sgmc-sizes-total strong { color: var(--sgmc-ink); }
.sgmc-stock-info { margin: 10px 0 0; font-size: 13.5px; color: var(--sgmc-muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.sgmc-stock-info:empty { display: none; }
.sgmc-stock-info .ok { color: #1f6b43; font-weight: 700; }
.sgmc-stock-info .warn { color: #a15c00; font-weight: 700; }

.sgmc-toggle { display: inline-flex; flex-wrap: wrap; padding: 4px; border-radius: 999px; background: var(--sgmc-sand); gap: 4px; margin-bottom: 14px; }
.sgmc-toggle label { cursor: pointer; }
.sgmc-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.sgmc-toggle span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--sgmc-muted); transition: all 0.2s; }
.sgmc-toggle span .icon { width: 16px; height: 16px; }
.sgmc-toggle input:checked + span { background: #fff; color: var(--sgmc-ink); box-shadow: var(--sgmc-shadow-sm); }
.sgmc-toggle input:focus-visible + span { outline: 2px solid var(--sgmc-orange); }

.sgmc-areas { display: grid; gap: 10px; }
.sgmc-areas[hidden] { display: none; }
.sgmc-area { border-radius: 14px; border: 1.5px solid var(--sgmc-line); background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.sgmc-area.is-on { border-color: var(--sgmc-orange); box-shadow: 0 0 0 4px rgba(247, 106, 12, 0.08); }
.sgmc-area__head { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.sgmc-area__check { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.sgmc-area__head input { width: 19px; height: 19px; accent-color: var(--sgmc-orange); flex-shrink: 0; margin: 0; }
.sgmc-area__img { width: 88px; height: 88px; flex-shrink: 0; }

/* Miniatura que se amplía al pulsar */
.sgmc-zoom { position: relative; display: block; padding: 0; border: 1px solid var(--sgmc-line); border-radius: 12px; background: var(--sgmc-cream); cursor: zoom-in; overflow: hidden; }
.sgmc-zoom img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform 0.3s var(--sgmc-ease); }
.sgmc-zoom__icon { position: absolute; right: 5px; bottom: 5px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(14, 23, 38, 0.78); color: #fff; }
.sgmc-zoom__icon .icon { width: 14px; height: 14px; }
.sgmc-zoom:hover img { transform: scale(1.06); }
.sgmc-zoom:focus-visible { outline: 2px solid var(--sgmc-orange); outline-offset: 2px; }
.sgmc-lightbox { width: min(920px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 20px; background: #fff; box-shadow: 0 30px 80px -20px rgba(14, 23, 38, 0.55); overflow: hidden; }
.sgmc-lightbox::backdrop { background: rgba(14, 23, 38, 0.72); backdrop-filter: blur(3px); }
.sgmc-lightbox figure { margin: 0; display: grid; }
.sgmc-lightbox img { width: 100%; max-height: calc(92vh - 64px); object-fit: contain; background: var(--sgmc-cream); }
.sgmc-lightbox figcaption { padding: 16px 22px; font-size: 15px; font-weight: 700; color: var(--sgmc-ink); }
.sgmc-lightbox__close { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #fff; color: var(--sgmc-ink); box-shadow: var(--sgmc-shadow-sm); cursor: pointer; z-index: 1; }
.sgmc-lightbox__close .icon { width: 20px; height: 20px; }
.sgmc-noscroll { overflow: hidden; }

/* «Asesórame» */
.sgmc-advice { padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--sgmc-orange); background: var(--sgmc-orange-50); font-size: 14px; color: var(--sgmc-ink); }
.sgmc-advice[hidden] { display: none; }
.sgmc-advice strong { display: block; margin-bottom: 4px; }
.sgmc-advice p { margin: 0; color: #4a3020; }
.sgmc-area__txt { flex: 1; min-width: 0; display: grid; }
.sgmc-area__txt strong { font-size: 14.5px; color: var(--sgmc-ink); }
.sgmc-area__txt span { font-size: 12.5px; color: var(--sgmc-muted); }
.sgmc-area__body { display: none; padding: 4px 14px 14px; border-top: 1px dashed var(--sgmc-line); }
.sgmc-area.is-on .sgmc-area__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 14px; }
.sgmc-area__body .field { gap: 5px; }
.sgmc-area__body .field label { font-size: 12.5px; }
.sgmc-area__body .field input, .sgmc-area__body .field select { padding: 10px 12px; font-size: 14px; border-radius: 10px; }
.sgmc-area__body .field select { padding-right: 36px; background-position: right 10px center; }
.sgmc-area__body .field--full { grid-column: 1 / -1; }
.sgmc-area__size { display: flex; align-items: center; gap: 6px; }
.sgmc-area__size input { min-width: 0; width: 110px; }
.sgmc-area__body .field small { font-size: 12px; }
.sgmc-area__size span { font-size: 13px; color: var(--sgmc-muted); }
.sgmc-area__hint { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--sgmc-muted); display: flex; gap: 6px; align-items: flex-start; }
.sgmc-area__hint .icon { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--sgmc-orange); }
.sgmc-area__body .check { margin: 0; font-size: 13.5px; grid-column: 1 / -1; }

.sgmc-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--sgmc-orange-50); font-size: 13.5px; color: #7a3a07; }
.sgmc-note .icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--sgmc-orange); }
.sgmc-note p { margin: 0 0 4px; }
.sgmc-note p:last-child { margin: 0; }
.sgmc-note--top { margin: 0 0 14px; }

/* Botón «Descripción y características» de la cabecera de producto */
.sgmc-hero-meta__link { gap: 6px; text-decoration: none; transition: background 0.2s; }
.sgmc-hero-meta__link:hover { background: rgba(255, 255, 255, 0.24); }
.sgmc-hero-meta__link .icon { width: 14px; height: 14px; }
.sgmc-details { scroll-margin-top: 80px; }

/* Subida del logotipo */
.sgmc-upload { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px dashed rgba(14, 23, 38, 0.25); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.sgmc-upload:hover, .sgmc-upload.is-over { border-color: var(--sgmc-orange); background: var(--sgmc-orange-50); }
.sgmc-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.sgmc-upload input:focus-visible + .icon { outline: 2px solid var(--sgmc-orange); outline-offset: 4px; border-radius: 6px; }
.sgmc-upload > .icon { width: 26px; height: 26px; flex-shrink: 0; color: var(--sgmc-orange); }
.field .sgmc-upload > span { font-size: 14px; font-weight: 400; color: var(--sgmc-ink); line-height: 1.45; }
.field .sgmc-upload strong { font-weight: 700; }
.sgmc-upload small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--sgmc-muted); }
.sgmc-upload__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.sgmc-upload__list[hidden] { display: none; }
.sgmc-upload__list li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--sgmc-sand); font-size: 14px; }
.sgmc-upload__list li > .icon { width: 18px; height: 18px; color: var(--sgmc-orange); flex-shrink: 0; }
.sgmc-upload__list li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sgmc-upload__list small { color: var(--sgmc-muted); }
.field__error { display: none; color: #c0392b; font-size: 13px; }
.field.is-invalid .field__error:not(:empty) { display: block; }
.field.is-invalid .sgmc-upload { border-color: #d63d3d; }

.sgmc-comment summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--sgmc-ink); }
.sgmc-comment summary::-webkit-details-marker { display: none; }
.sgmc-comment summary .icon { width: 16px; height: 16px; color: var(--sgmc-orange); transition: transform 0.3s; }
.sgmc-comment[open] summary .icon { transform: rotate(45deg); }
.sgmc-comment textarea { width: 100%; margin-top: 10px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--sgmc-line); background: var(--sgmc-cream); font-size: 14.5px; resize: vertical; }
.sgmc-comment textarea:focus { outline: none; border-color: var(--sgmc-orange); background: #fff; }

.sgmc-estimate { padding: 16px 18px; border-radius: 16px; background: var(--sgmc-ink); color: rgba(255, 255, 255, 0.86); font-size: 14px; }
.sgmc-estimate[hidden] { display: none; }
.sgmc-estimate__row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.sgmc-estimate__row strong { color: #fff; font-weight: 700; white-space: nowrap; }
.sgmc-estimate__total { margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 15px; }
.sgmc-estimate__total strong { font-size: 22px; letter-spacing: -0.02em; color: #fff; }
.sgmc-estimate small { display: block; margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, 0.8); }
.sgmc-estimate .warn { color: #ffb27f; }

.sgmc-config__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sgmc-config__actions .btn--primary { flex: 1 1 240px; }
.sgmc-config__actions .btn--ghost { flex: 0 1 auto; }
.sgmc-config__actions .btn.is-busy { opacity: 0.7; pointer-events: none; }
.sgmc-config__msg { margin: -8px 0 0; font-size: 14px; font-weight: 600; min-height: 0; }
.sgmc-config__msg:empty { display: none; }
.sgmc-config__msg.is-error { color: #b42318; }
.sgmc-config__msg.is-ok { color: #1f6b43; }
.sgmc-assurance { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--sgmc-line); display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--sgmc-muted); }
.sgmc-assurance li { display: inline-flex; align-items: center; gap: 6px; }
.sgmc-assurance .icon { width: 15px; height: 15px; color: var(--sgmc-green); stroke-width: 2.5; }

/* Detalles */
.sgmc-details__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.sgmc-desc { color: var(--text, #1b2434); margin-bottom: 40px; }
.sgmc-specs { margin: 0; border-radius: var(--sgmc-radius); background: #fff; overflow: hidden; box-shadow: var(--sgmc-shadow-sm); }
.sgmc-specs div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--sgmc-line); font-size: 14.5px; }
.sgmc-specs div:last-child { border-bottom: 0; }
.sgmc-specs dt { font-weight: 700; color: var(--sgmc-ink); }
.sgmc-specs dd { margin: 0; color: var(--text, #1b2434); overflow-wrap: anywhere; }
.sgmc-area-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sgmc-area-info { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: #fff; }
.sgmc-area-info .sgmc-zoom { width: 104px; height: 104px; flex-shrink: 0; }
.sgmc-area-info div { display: grid; gap: 2px; font-size: 13px; min-width: 0; }
.sgmc-area-info strong { font-size: 14.5px; color: var(--sgmc-ink); }

/* ---------- Mi presupuesto ---------- */
.sgmc-quote__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.sgmc-quote__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sgmc-quote__head .sgmc-subtitle { margin: 0; }
.sgmc-quote__n { color: var(--sgmc-muted); font-weight: 600; }
.sgmc-item { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 16px; padding: 16px; margin-bottom: 12px; border-radius: var(--sgmc-radius); background: #fff; box-shadow: var(--sgmc-shadow-sm); animation: sgmc-in 0.4s var(--sgmc-ease) both; }
.sgmc-item__img { width: 92px; height: 92px; border-radius: 14px; object-fit: contain; background: #fff; border: 1px solid var(--sgmc-line); }
.sgmc-item__title { margin: 0 0 2px; font-size: 16.5px; line-height: 1.3; }
.sgmc-item__title a:hover { color: var(--sgmc-orange-600); }
.sgmc-item__ref { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--sgmc-muted); }
.sgmc-item__lines { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; font-size: 13.5px; color: var(--sgmc-muted); }
.sgmc-item__lines li { display: flex; gap: 6px; }
.sgmc-item__lines .icon { width: 14px; height: 14px; color: var(--sgmc-orange); flex-shrink: 0; margin-top: 3px; }
.sgmc-item__notes { margin: 6px 0 0; font-size: 13px; font-style: italic; color: var(--sgmc-muted); }
.sgmc-item__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; text-align: right; }
.sgmc-item__qty { font-size: 14px; color: var(--sgmc-muted); }
.sgmc-item__qty strong { display: block; font-size: 19px; color: var(--sgmc-ink); }
.sgmc-item__price { font-size: 13px; color: var(--sgmc-muted); }
.sgmc-item__price strong { display: block; font-size: 17px; color: var(--sgmc-ink); }
.sgmc-item__actions { display: flex; gap: 6px; }
.sgmc-icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--sgmc-line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--sgmc-muted); transition: all 0.2s; }
.sgmc-icon-btn .icon { width: 16px; height: 16px; }
.sgmc-icon-btn:hover { border-color: var(--sgmc-ink); color: var(--sgmc-ink); }
.sgmc-icon-btn--danger:hover { border-color: #d63d3d; color: #d63d3d; }
.sgmc-item--error { grid-template-columns: minmax(0, 1fr) auto; background: #fdecec; color: #8a2020; }
.sgmc-quote__total { padding: 18px 20px; border-radius: var(--sgmc-radius); background: var(--sgmc-ink); color: rgba(255, 255, 255, 0.86); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.sgmc-quote__total strong { font-size: 24px; color: #fff; letter-spacing: -0.02em; }
.sgmc-quote__total small { display: block; font-size: 12.5px; }
.sgmc-quote__total[hidden] { display: none; }
.sgmc-quote__form-wrap { position: sticky; top: 96px; }
.sgmc-quote__form { margin: 0; padding: clamp(24px, 3vw, 36px); border-radius: var(--sgmc-radius-lg); background: #fff; box-shadow: var(--sgmc-shadow); }
.sgmc-quote__form .sgmc-subtitle { margin-bottom: 4px; }
.sgmc-quote__form > .muted { font-size: 14.5px; margin-bottom: 20px; }
.sgmc-quote__form .form__notice[hidden] { display: none; }
.sgmc-quote__form .form__notice { margin: 18px 0 0; }
.sgmc-quote__form.is-disabled .form__grid, .sgmc-quote__form.is-disabled .check { opacity: 0.5; pointer-events: none; }
.sgmc-quote__done { padding: clamp(28px, 4vw, 44px); border-radius: var(--sgmc-radius-lg); background: #fff; box-shadow: var(--sgmc-shadow); text-align: center; }
.sgmc-quote__done[hidden] { display: none; }
.sgmc-quote__done-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: #e9f7ef; color: var(--sgmc-green); }
.sgmc-quote__done-icon .icon { width: 38px; height: 38px; }
.sgmc-quote__done p { color: var(--sgmc-muted); }
.sgmc-quote-empty { padding: 40px 24px; border-radius: var(--sgmc-radius); background: #fff; text-align: center; }
.sgmc-quote-empty .icon-card__icon { margin: 0 auto 16px; }
.sgmc-quote-empty p { color: var(--sgmc-muted); }
.sgmc-loading { display: flex; justify-content: center; gap: 6px; padding: 40px; }
.sgmc-loading span { width: 9px; height: 9px; border-radius: 50%; background: var(--sgmc-orange); animation: sgmc-dot 1s infinite ease-in-out; }
.sgmc-loading span:nth-child(2) { animation-delay: 0.15s; }
.sgmc-loading span:nth-child(3) { animation-delay: 0.3s; }
@keyframes sgmc-dot { 0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }

/* Editor de cantidad en la lista */
.sgmc-edit { grid-column: 1 / -1; display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--sgmc-cream); }
.sgmc-edit[hidden] { display: none; }
.sgmc-edit__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sgmc-edit__row label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--sgmc-ink); }
.sgmc-edit__row input { width: 92px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--sgmc-line); background: #fff; font-weight: 700; }

/* ---------- Presupuesto público ---------- */
.sgmc-public .form__notice { margin-bottom: 24px; }
.sgmc-public__card { padding: clamp(20px, 3vw, 36px); border-radius: var(--sgmc-radius-lg); background: #fff; box-shadow: var(--sgmc-shadow); }
.sgmc-public__table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sgmc-public__table th { text-align: left; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sgmc-muted); padding: 0 10px 12px; border-bottom: 1.5px solid var(--sgmc-ink); }
.sgmc-public__table td { padding: 16px 10px; border-bottom: 1px solid var(--sgmc-line); vertical-align: top; }
.sgmc-public__table .num { text-align: right; white-space: nowrap; }
.sgmc-public__table tfoot td { padding: 10px; border-bottom: 0; text-align: right; }
.sgmc-public__table tfoot td.num { font-weight: 700; }
.sgmc-public__grand td { font-size: 20px; font-weight: 800; color: var(--sgmc-ink); border-top: 1.5px solid var(--sgmc-ink) !important; }
.sgmc-public__product { display: flex; gap: 14px; align-items: flex-start; }
.sgmc-public__product img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; border: 1px solid var(--sgmc-line); flex-shrink: 0; }
.sgmc-public__product div { display: grid; gap: 2px; }
.sgmc-public__product strong { color: var(--sgmc-ink); }
.sgmc-public__product small { font-size: 12.5px; color: var(--sgmc-muted); }
.sgmc-public__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; align-items: center; margin-top: 24px; }
.sgmc-public__actions form { margin: 0; }
.sgmc-public__actions .btn .icon { width: 18px; height: 18px; }

/* ---------- Aviso flotante ---------- */
.sgmc-toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 140%);
	display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px);
	padding: 12px 12px 12px 16px; border-radius: 16px; background: var(--ink, #0e1726); color: #fff;
	box-shadow: 0 20px 40px -12px rgba(14, 23, 38, 0.5); font-size: 14.5px; font-weight: 600;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.sgmc-toast.is-visible { transform: translate(-50%, 0); }
.sgmc-toast img { width: 42px; height: 42px; border-radius: 10px; object-fit: contain; background: #fff; }
.sgmc-toast .btn { padding: 9px 16px; font-size: 13.5px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
	.sgmc-cat-grid, .sgmc-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
	.sgmc-quote-link { width: 46px; height: 46px; }
	.sgmc-listing { grid-template-columns: minmax(0, 1fr); }
	.sgmc-sidebar {
		position: fixed; inset: 0 auto 0 0; z-index: 130; width: min(360px, 88vw); max-height: none; height: 100%;
		padding: 0 18px 24px; background: var(--sgmc-cream); box-shadow: 20px 0 40px -20px rgba(14, 23, 38, 0.4);
		transform: translateX(-105%); transition: transform 0.35s var(--sgmc-ease); overflow-y: auto;
	}
	.admin-bar .sgmc-sidebar { top: 0; }
	.sgmc-filters-open .sgmc-sidebar { transform: none; }
	.sgmc-filters-open::after { content: ""; position: fixed; inset: 0; z-index: 125; background: rgba(14, 23, 38, 0.45); }
	.sgmc-sidebar__head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 18px 0 14px; background: var(--sgmc-cream); font-size: 18px; color: var(--sgmc-ink); }
	.sgmc-sidebar__close { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--sgmc-line); background: #fff; display: grid; place-items: center; cursor: pointer; }
	.sgmc-sidebar__close .icon { width: 18px; height: 18px; }
	.js .sgmc-filters__actions .btn { display: inline-flex; width: 100%; }
	.sgmc-filters__actions { position: sticky; bottom: -24px; padding: 12px 0 24px; background: var(--sgmc-cream); justify-items: stretch; text-align: center; }
	.sgmc-toolbar__filters { display: inline-flex; }
	.sgmc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sgmc-product__grid, .sgmc-details__grid, .sgmc-quote__grid { grid-template-columns: minmax(0, 1fr); }
	.sgmc-gallery, .sgmc-quote__form-wrap { position: static; }
	.sgmc-gallery__main { max-width: 620px; margin: 0 auto; }
	.sgmc-gallery__thumbs { justify-content: center; }
	.sgmc-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
	.sgmc-cat-grid, .sgmc-grid, .sgmc-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.sgmc-cat__body { padding: 14px 14px 16px; }
	.sgmc-cat__title { font-size: 15.5px; }
	.sgmc-cat__subs { display: none; }
	.sgmc-cat__icon { width: 36px; height: 36px; left: 10px; bottom: 10px; border-radius: 10px; }
	.sgmc-cat__icon .icon { width: 18px; height: 18px; }
	.sgmc-card__body { padding: 12px 12px 14px; }
	.sgmc-card__title { font-size: 14.5px; }
	.sgmc-card__price strong { font-size: 16px; }
	.sgmc-card__foot { flex-direction: column; align-items: flex-start; gap: 4px; }
	.sgmc-search { padding-left: 44px; }
	.sgmc-search > .icon { left: 16px; }
	.sgmc-search .btn span { display: none; }
	.sgmc-search .btn { padding: 12px 14px; }
	.sgmc-search .btn .icon { margin: 0; }
	.sgmc-toolbar__count { width: 100%; }
	.sgmc-sort span { display: none; }
	.sgmc-area.is-on .sgmc-area__body { grid-template-columns: minmax(0, 1fr); }
	.sgmc-area-list { grid-template-columns: minmax(0, 1fr); }
	.sgmc-specs div { grid-template-columns: 112px minmax(0, 1fr); }
	.sgmc-item { grid-template-columns: 64px minmax(0, 1fr); }
	.sgmc-item__img { width: 64px; height: 64px; }
	.sgmc-item__side { grid-column: 1 / -1; flex-direction: row; align-items: center; text-align: left; }
	.sgmc-public__table thead { display: none; }
	.sgmc-public__table tbody td { display: block; padding: 6px 0; border: 0; text-align: left; }
	.sgmc-public__table tbody td.num::before { content: attr(data-label); }
	.sgmc-public__table tbody tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--sgmc-line); }
	.sgmc-toast { bottom: 84px; }
}

/* Fotos de ambiente (no cuadradas o con fondo): rellenan el cuadro */
.sgmc-media--photo { background: var(--sgmc-sand); }
.sgmc-media--photo img { object-fit: cover; padding: 0; }

/* Personalización en móvil: tres opciones en columnas iguales */
@media (max-width: 560px) {
	.sgmc-toggle { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; border-radius: 14px; }
	.sgmc-toggle span { justify-content: center; padding: 10px 6px; font-size: 13px; border-radius: 10px; text-align: center; }
	.sgmc-toggle span .icon { display: none; }
	.sgmc-area__img { width: 72px; height: 72px; }
	.sgmc-area-info .sgmc-zoom { width: 84px; height: 84px; }
}

/* ==========================================================================
   Guía de selección de productos
   ========================================================================== */

/* Bloque de entrada */
.sgmc-guide-cta { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(28px, 4.5vw, 56px); border-radius: var(--radius-lg, 28px); background: var(--sgmc-ink); color: #fff; overflow: hidden; }
.sgmc-guide-cta::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(247, 106, 12, 0.35), transparent); pointer-events: none; }
.sgmc-guide-cta > * { position: relative; }
.sgmc-guide-cta .eyebrow { color: #ffb27f; }
.sgmc-guide-cta__title { margin: 0 0 14px; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -0.02em; color: #fff; }
.sgmc-guide-cta__content > p { margin: 0 0 26px; max-width: 520px; font-size: 17px; color: rgba(255, 255, 255, 0.86); }
.sgmc-guide-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.sgmc-guide-cta__meta { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.8); }
.sgmc-guide-cta__meta .icon { width: 17px; height: 17px; color: #ffb27f; }
.sgmc-guide-cta__steps { list-style: none; margin: 0; padding: 22px; display: grid; gap: 10px; border-radius: var(--sgmc-radius); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.sgmc-guide-cta__steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, 0.92); }
.sgmc-guide-cta__steps li span { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.1); font-size: 13px; font-weight: 800; color: #fff; }
.sgmc-guide-cta__steps li.is-last { margin-top: 4px; padding-top: 14px; border-top: 1px dashed rgba(255, 255, 255, 0.18); color: #ffb27f; }
.sgmc-guide-cta__steps li.is-last .icon { width: 30px; height: 18px; flex-shrink: 0; }
@media (max-width: 860px) {
	.sgmc-guide-cta { grid-template-columns: minmax(0, 1fr); }
}

/* Ventana */
.sgmg { width: min(680px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 22px; background: #fff; color: var(--sgmc-ink); box-shadow: 0 40px 90px -20px rgba(14, 23, 38, 0.55); overflow: hidden; }
.sgmg[open] { display: flex; }
.sgmg.is-form { width: min(1000px, calc(100vw - 32px)); }
.sgmg::backdrop { background: rgba(14, 23, 38, 0.66); backdrop-filter: blur(3px); }
.sgmg__box { display: flex; flex-direction: column; width: 100%; max-height: calc(100dvh - 48px); }
.sgmg__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 14px 20px; }
.sgmg__ic { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--sgmc-orange-50); color: var(--sgmc-orange); }
.sgmg__ic .icon { width: 21px; height: 21px; }
.sgmg__name { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.sgmg__name strong { font-size: 15.5px; }
.sgmg__name small { font-size: 13px; color: var(--sgmc-muted); }
.sgmg__close { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--sgmc-ink); cursor: pointer; transition: background 0.2s; }
.sgmg__close:hover { background: var(--sgmc-sand); }
.sgmg__close .icon { width: 22px; height: 22px; }
.sgmg__bar { height: 3px; background: var(--sgmc-sand); }
.sgmg__bar span { display: block; height: 100%; width: 0; background: var(--sgmc-orange); border-radius: 0 3px 3px 0; transition: width 0.45s var(--sgmc-ease); }
.sgmg__body { flex: 1; min-height: 0; overflow-y: auto; padding: 24px 24px 8px; overscroll-behavior: contain; }
.sgmg__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px 20px; border-top: 1px solid var(--sgmc-line); }
.sgmg__foot[hidden] { display: none; }
.sgmg-foot__note { font-size: 13.5px; color: var(--sgmc-muted); }
.sgmg-foot__btns { display: flex; gap: 10px; margin-left: auto; }
.sgmg__foot .btn[disabled] { opacity: 0.4; pointer-events: none; box-shadow: none; }
.sgmg__foot .btn .icon { width: 17px; height: 17px; }
.sgmg-back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--sgmc-ink); cursor: pointer; }
.sgmg-back .icon { width: 17px; height: 17px; }
.sgmg-back:hover { color: var(--sgmc-orange); }

/* Preguntas */
.sgmg-title { margin: 0 0 6px; font-size: clamp(22px, 2.6vw, 27px); line-height: 1.15; letter-spacing: -0.01em; outline: none; }
.sgmg-hint { margin: 0 0 18px; font-size: 14.5px; color: var(--sgmc-muted); }
.sgmg-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sgmg-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 12px 14px; border: 1.5px solid var(--sgmc-line); border-radius: 14px; background: #fff; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--sgmc-ink); text-align: left; cursor: pointer; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.sgmg-opt:hover { border-color: rgba(247, 106, 12, 0.5); }
.sgmg-opt:focus-visible { outline: 2px solid var(--sgmc-orange); outline-offset: 2px; }
.sgmg-opt[aria-checked="true"] { border-color: var(--sgmc-orange); background: var(--sgmc-orange-50); box-shadow: 0 0 0 3px rgba(247, 106, 12, 0.1); }
.sgmg-opt__ind { width: 22px; height: 22px; flex-shrink: 0; display: grid; place-items: center; border: 2px solid rgba(14, 23, 38, 0.25); border-radius: 50%; background: #fff; color: #fff; transition: all 0.2s; }
.sgmg-opt--checkbox .sgmg-opt__ind { border-radius: 7px; }
.sgmg-opt__ind .icon { width: 13px; height: 13px; stroke-width: 3; opacity: 0; }
.sgmg-opt[aria-checked="true"] .sgmg-opt__ind { border-color: var(--sgmc-orange); background: var(--sgmc-orange); }
.sgmg-opt[aria-checked="true"] .sgmg-opt__ind .icon { opacity: 1; }
.sgmg .field { display: grid; gap: 6px; }
.sgmg-extra { margin-top: 16px; }
.sgmg-selects { display: grid; gap: 18px; }
.sgmg-help { font-size: 13px; color: var(--sgmc-muted); line-height: 1.45; }
.sgmg-note { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--sgmc-orange-50); font-size: 14px; color: #7a3a07; }
.sgmg-note .icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--sgmc-orange); }
.sgmg input[type="date"] { max-width: 280px; }

/* Datos de contacto */
.sgmg-final { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 48px); align-items: start; padding-bottom: 8px; }
.sgmg-final__msg { padding: 28px; border-radius: var(--sgmc-radius); background: var(--sgmc-cream); }
.sgmg-final__msg p { margin: 10px 0 0; font-size: 15.5px; color: var(--text, #1b2434); }
.sgmg-final__icon { width: 52px; height: 52px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 16px; background: var(--sgmc-orange); color: #fff; }
.sgmg-final__icon .icon { width: 26px; height: 26px; }
.sgmg-form .check { margin: 14px 0 0; }
.sgmg-required { margin: 10px 0 0; font-size: 13px; color: var(--sgmc-muted); }
.sgmg-form .form__notice { margin-top: 14px; }
.sgmg-form.is-sending { opacity: 0.7; pointer-events: none; }

/* Confirmación */
.sgmg-done { max-width: 460px; margin: 0 auto; padding: 24px 0 32px; text-align: center; }
.sgmg-done__icon { width: 68px; height: 68px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: #e6f4ec; color: var(--sgmc-green, #2f8f5b); }
.sgmg-done__icon .icon { width: 34px; height: 34px; stroke-width: 2.4; }
.sgmg-done p { margin: 8px 0 26px; font-size: 16px; color: var(--text, #1b2434); }

@media (max-width: 760px) {
	.sgmg, .sgmg.is-form { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
	.sgmg__box { max-height: 100dvh; height: 100%; }
	.sgmg__body { padding: 20px 18px 8px; }
	.sgmg__foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); }
	.sgmg-foot__note { display: none; }
	.sgmg-opts, .sgmg-final { grid-template-columns: minmax(0, 1fr); }
	.sgmg-final__msg { padding: 20px; }
	.sgmg-final__icon { width: 44px; height: 44px; margin-bottom: 12px; }
	.sgmg.is-form .sgmg__foot { flex-direction: column-reverse; align-items: stretch; gap: 6px; }
	.sgmg.is-form .sgmg-foot__btns, .sgmg.is-form .sgmg-foot__btns .btn { width: 100%; justify-content: center; }
	.sgmg.is-form .sgmg-back { justify-content: center; }
}
.sgmg-form .form__notice[hidden] { display: none; }

/* Botón flotante de la guía */
.sgmg-fab { position: fixed; left: 22px; bottom: 22px; z-index: 89; display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 22px 0 8px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; background: var(--sgmc-ink); color: #fff; font: inherit; font-size: 15px; font-weight: 700; box-shadow: 0 14px 34px -10px rgba(14, 23, 38, 0.55); cursor: pointer; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity 0.4s var(--sgmc-ease), transform 0.4s var(--sgmc-ease), background 0.25s; }
.sgmg-fab.is-in { opacity: 1; transform: none; pointer-events: auto; }
.sgmg-fab.is-hidden, .sgmg-fab.is-clash { opacity: 0; transform: translateY(16px); pointer-events: none; }
.sgmg-fab:hover { background: var(--sgmc-orange); }
.sgmg-fab:focus-visible { outline: 3px solid var(--sgmc-orange); outline-offset: 3px; }
.sgmg-fab__ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--sgmc-orange); color: #fff; transition: background 0.25s; }
.sgmg-fab:hover .sgmg-fab__ic { background: rgba(255, 255, 255, 0.2); }
.sgmg-fab__ic .icon { width: 21px; height: 21px; }
@media (max-width: 760px) {
	.sgmg-fab { left: 14px; bottom: 14px; height: 54px; padding: 0 18px 0 6px; font-size: 14px; }
	.sgmg-fab__ic { width: 40px; height: 40px; }
	.sgmg-fab.is-compact { padding: 0 6px; gap: 0; }
	.sgmg-fab.is-compact .sgmg-fab__tx { display: none; }
}
@media (max-width: 400px) { .sgmg-fab__more { display: none; } }
@media print { .sgmg-fab { display: none; } }

/* Área de marcaje sin imagen en el proveedor */
.sgmc-zoom--none { display: grid; place-content: center; justify-items: center; gap: 4px; cursor: default; border-style: dashed; color: rgba(14, 23, 38, 0.35); }
.sgmc-zoom--none .icon { width: 24px; height: 24px; }
.sgmc-zoom--none small { font-size: 11px; font-weight: 600; color: var(--sgmc-muted); }
