/* Best Garden Colecciones. Hereda la tipografía del tema; solo define ritmo, retícula y acento. */
.bgc-tabs,
.bgc-page,
.bgc-same,
.bgc-wa {
	--bgc-accent: #55683f; /* verde de la maqueta de ficha */
	--bgc-ink: #1f241c;
	--bgc-muted: #6b7166;
	--bgc-line: #e3e5df;
	--bgc-soft: #f4f5f1;
	color: var(--bgc-ink);
}

.bgc-page {
	max-width: 1240px;
	margin-inline: auto;
	padding: 24px 16px 64px;
}
/* En móvil y tableta la cabecera de Elementor (#141940) se monta 75px sobre el contenido (margen negativo). */
@media (max-width: 1024px) {
	.bgc-page { padding-top: 99px; }
}

.bgc-page__title {
	margin: 16px 0 24px;
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 500;
}

/* ---- Barra de pestañas / navegación entre colecciones ---- */
.bgc-tabs__list {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	scrollbar-width: none;
	border-bottom: 1px solid var(--bgc-line);
	margin-bottom: 32px;
}
.bgc-tabs__list::-webkit-scrollbar { display: none; }

.bgc-tabs__tab {
	flex: none;
	padding: 14px 18px;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--bgc-muted);
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}
.bgc-tabs__tab:hover { color: var(--bgc-ink); }
.bgc-tabs__tab[aria-selected="true"],
.bgc-tabs__tab[aria-current="page"] {
	color: var(--bgc-accent);
	border-bottom-color: var(--bgc-accent);
}
.bgc-tabs__tab:focus-visible,
.bgc-card a:focus-visible,
.bgc-cta:focus-visible,
.bgc-wa a:focus-visible,
.bgc-wa summary:focus-visible {
	outline: 2px solid var(--bgc-accent);
	outline-offset: 2px;
}

/* Sin JS todas las colecciones quedan apiladas y ninguna pestaña debe verse activa. */
.bgc-tabs:not(.is-ready) .bgc-tabs__tab { color: var(--bgc-muted); border-bottom-color: transparent; }
.bgc-tabs:not(.is-ready) .bgc-tabs__panel + .bgc-tabs__panel { margin-top: 72px; }
.bgc-tabs__panel { scroll-margin-top: 96px; }
.bgc-tabs__panel:focus { outline: none; }

/* ---- Portada de la colección ---- */
.bgc-hero {
	display: grid;
	gap: 24px;
	align-items: center;
	margin-bottom: 48px;
}
@media (min-width: 900px) {
	.bgc-hero { grid-template-columns: 1.25fr 1fr; gap: 48px; }
}
.bgc-hero__img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: var(--bgc-soft);
}
.bgc-eyebrow {
	margin: 0 0 8px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bgc-accent);
}
.bgc-eyebrow a { color: inherit; text-decoration: none; }
.bgc-eyebrow a:hover { text-decoration: underline; }
.bgc-hero__title {
	margin: 0 0 12px;
	font-size: clamp(2rem, 5vw, 3.25rem);
	line-height: 1.05;
	font-weight: 500;
}
.bgc-hero__tagline { margin: 0 0 16px; font-size: 1.15rem; font-style: italic; color: var(--bgc-muted); }
.bgc-hero__desc { max-width: 52ch; line-height: 1.6; }
.bgc-hero__meta { margin: 16px 0 24px; font-size: 0.9rem; color: var(--bgc-muted); }
.bgc-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 0; }

.bgc-collection .bgc-wa summary.bgc-cta,
.bgc-collection a.bgc-cta { /* más específico que el "a { underline }" de los temas */
	display: inline-block;
	padding: 14px 22px;
	background: var(--bgc-accent);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
}
.bgc-collection .bgc-wa summary.bgc-cta:hover,
.bgc-collection a.bgc-cta:hover { background: #46572f; color: #fff; }
.bgc-link { color: var(--bgc-ink); font-weight: 600; text-underline-offset: 4px; }

/* ---- Elegir sucursal de WhatsApp ---- */
.bgc-wa { max-width: 100%; }
.bgc-wa summary { cursor: pointer; list-style: none; }
.bgc-wa summary::-webkit-details-marker { display: none; }
.bgc-wa__hint { margin: 14px 0 6px; font-size: 0.9rem; color: var(--bgc-muted); }
.bgc-wa .bgc-wa__list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--bgc-line); background: #fff; text-align: left; }
.bgc-wa__list li + li { border-top: 1px solid var(--bgc-line); }
.bgc-wa .bgc-wa__list a { display: block; padding: 12px 16px; color: var(--bgc-ink); font-weight: 600; text-decoration: none; }
.bgc-wa .bgc-wa__list a:hover { background: var(--bgc-soft); color: var(--bgc-accent); }

/* ---- Piezas agrupadas por categoría ---- */
.bgc-group + .bgc-group { margin-top: 48px; }
.bgc-group__title {
	margin: 0 0 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--bgc-line);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.bgc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(220px, 45%), 1fr));
	gap: 28px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.bgc-card a { display: block; color: inherit; text-decoration: none; }
.bgc-card__img {
	display: block;
	aspect-ratio: 1;
	margin-bottom: 12px;
	overflow: hidden;
	background: var(--bgc-soft);
}
.bgc-card__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.bgc-card a:hover .bgc-card__img img { transform: scale(1.04); }
.bgc-card__name { display: block; font-weight: 600; line-height: 1.3; }
.bgc-card__sku { display: block; margin-top: 4px; font-size: 0.78rem; letter-spacing: 0.06em; color: var(--bgc-muted); }

/* ---- "Completa tu espacio" en la ficha de producto ---- */
/* En la plantilla de Elementor el bloque queda fuera de sus contenedores: se centra al ancho de la ficha. */
.bgc-same {
	clear: both;
	box-sizing: border-box;
	max-width: 1140px;
	margin: 56px auto;
	padding: 40px 16px 0;
	border-top: 1px solid var(--bgc-line);
}
.bgc-same__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }

/* Doble clase: el kit global de Elementor fija tamaños a h1/h2/h3 con más especificidad que una sola clase. */
.bgc-same .bgc-same__title { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 500; line-height: 1.2; }
.bgc-collection .bgc-hero__title { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.05; }
.bgc-group .bgc-group__title { font-size: 0.85rem; line-height: 1.4; }

@media (prefers-reduced-motion: reduce) {
	.bgc-card__img img { transition: none; }
}

/* ---- Ficha de producto ---- */
.bgc-ficha [hidden] { display: none; }
.bgc-ficha__top { display: grid; gap: 32px; margin-bottom: 56px; }
@media (min-width: 900px) {
	.bgc-ficha__top { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; align-items: start; }
}
.bgc-gallery__main { aspect-ratio: 3 / 2; background: #fff; border: 1px solid var(--bgc-line); }
.bgc-gallery .bgc-gallery__main img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bgc-gallery .bgc-gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.bgc-gallery__thumbs a { display: block; aspect-ratio: 1; border: 1px solid var(--bgc-line); outline-offset: 2px; }
.bgc-gallery__thumbs a[aria-current="true"] { border-color: var(--bgc-accent); box-shadow: inset 0 0 0 1px var(--bgc-accent); }
.bgc-gallery .bgc-gallery__thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bgc-ficha .bgc-ficha__title { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.08; font-weight: 500; }
.bgc-ficha__tagline { margin: 0 0 20px; font-size: 1.1rem; font-style: italic; color: var(--bgc-muted); }
.bgc-ficha__intro { line-height: 1.6; }
.bgc-ficha__configs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.bgc-ficha__configs .bgc-eyebrow { flex-basis: 100%; margin: 0; }
.bgc-ficha .bgc-ficha__configs button { padding: 10px 18px; border: 1px solid var(--bgc-line); border-radius: 0; background: #fff; color: var(--bgc-ink); font-size: 0.95rem; font-weight: 600; }
.bgc-ficha .bgc-ficha__configs button:hover { border-color: var(--bgc-accent); }
.bgc-ficha .bgc-ficha__configs button[aria-pressed="true"] { border-color: var(--bgc-accent); background: var(--bgc-accent); color: #fff; }
.bgc-ficha:not(.is-ready) .bgc-ficha__configs { display: none; } /* Sin JS se ven todas las configuraciones. */
.bgc-ficha .bgc-cta { display: block; box-sizing: border-box; padding: 16px 22px; background: var(--bgc-accent); color: #fff; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-align: center; text-transform: uppercase; text-decoration: none; }
.bgc-ficha .bgc-cta:hover { background: #46572f; }
.bgc-ficha__note { margin: 16px 0 0; font-size: 0.9rem; line-height: 1.5; color: var(--bgc-muted); }

.bgc-tabs--fill .bgc-tabs__list { gap: 0; border-bottom: 0; }
.bgc-tabs--fill .bgc-tabs__tab { flex: 1 1 50%; padding: 16px 12px; border-bottom: 0; margin: 0; background: #e9ebe6; color: var(--bgc-ink); text-align: center; }
.bgc-tabs--fill.is-ready .bgc-tabs__tab[aria-selected="true"] { background: var(--bgc-accent); color: #fff; }

.bgc-ficha__desc { max-width: 820px; margin-inline: auto; line-height: 1.65; }
.bgc-ficha__desc img { display: block; width: 100%; height: auto; margin: 24px 0; }
.bgc-ficha .bgc-ficha__h2, .bgc-ficha .bgc-ficha__desc h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; font-weight: 500; }
.bgc-ficha .bgc-ficha__h3, .bgc-ficha .bgc-ficha__desc h3 { margin: 36px 0 12px; font-size: 1.15rem; line-height: 1.3; font-weight: 600; color: var(--bgc-accent); }
.bgc-ficha section + .bgc-ficha__materials { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--bgc-line); }
.bgc-ficha .bgc-drawings, .bgc-ficha .bgc-swatches { display: grid; gap: 24px; margin: 24px 0 0; padding: 0; list-style: none; }
.bgc-ficha .bgc-drawings { grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); }
.bgc-ficha .bgc-swatches { grid-template-columns: repeat(auto-fill, minmax(min(240px, 45%), 1fr)); }
.bgc-ficha .bgc-swatches--one { grid-template-columns: minmax(0, 640px); }
.bgc-ficha figure { margin: 0; }
.bgc-ficha .bgc-drawings img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: contain; }
.bgc-ficha .bgc-swatches img { display: block; width: 100%; height: auto; }
.bgc-ficha figcaption { margin-top: 8px; font-size: 0.9rem; text-align: center; color: var(--bgc-muted); }
.bgc-ficha__bottom { max-width: 480px; margin: 48px auto 0; }
