/**
 * BuyinClip Shop — estilos base
 * 1. Tokens
 * 2. Reset y tipografía
 * 3. Layout
 * 4. Botones y formularios
 * 5. Encabezado y navegación
 * 6. Portada
 * 7. Contenido, tarjetas y widgets
 * 8. Pie de página
 * 9. Elementos flotantes (FAB, drawers, barra móvil)
 * 10. Utilidades y accesibilidad
 */

/* ============================================================ 1. Tokens */
:root {
	--bcs-primary: #6d5ef8;
	--bcs-primary-rgb: 109, 94, 248;
	--bcs-accent: #12d8a0;
	--bcs-accent-rgb: 18, 216, 160;
	--bcs-sale: #ff5c7a;
	--bcs-radius: 18px;
	--bcs-radius-sm: 12px;
	--bcs-radius-pill: 999px;
	--bcs-gradient: linear-gradient(135deg, #6d5ef8 0%, #12d8a0 100%);

	--bcs-bg: #f6f6fb;
	--bcs-surface: #ffffff;
	--bcs-surface-2: #f0f0f7;
	--bcs-ink: #14141f;
	--bcs-ink-soft: #5a5a72;
	--bcs-border: rgba(20, 20, 31, 0.09);
	--bcs-shadow-sm: 0 2px 8px rgba(20, 20, 45, 0.06);
	--bcs-shadow: 0 12px 32px rgba(20, 20, 45, 0.09);
	--bcs-shadow-lg: 0 24px 60px rgba(20, 20, 45, 0.16);
	--bcs-header-bg: rgba(255, 255, 255, 0.82);

	--bcs-container: 1240px;
	--bcs-gap: 24px;
	--bcs-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--bcs-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
	--bcs-bg: #0c0c14;
	--bcs-surface: #15151f;
	--bcs-surface-2: #1d1d2a;
	--bcs-ink: #f2f2f7;
	--bcs-ink-soft: #a1a1b8;
	--bcs-border: rgba(255, 255, 255, 0.1);
	--bcs-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
	--bcs-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
	--bcs-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
	--bcs-header-bg: rgba(21, 21, 31, 0.8);
	color-scheme: dark;
}

/* ================================================ 2. Reset y tipografía */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bcs-bg);
	color: var(--bcs-ink);
	font-family: var(--bcs-font);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	transition: background-color 0.3s var(--bcs-ease), color 0.3s var(--bcs-ease);
}

body.bcs-no-scroll {
	overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	line-height: 1.18;
	letter-spacing: -0.02em;
	font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a {
	color: var(--bcs-primary);
	text-decoration: none;
	transition: color 0.2s var(--bcs-ease), opacity 0.2s var(--bcs-ease);
}

a:hover,
a:focus {
	color: var(--bcs-primary);
	opacity: 0.82;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

ul, ol { padding-left: 1.2em; }

:focus-visible {
	outline: 3px solid rgba(var(--bcs-primary-rgb), 0.55);
	outline-offset: 2px;
	border-radius: 6px;
}

blockquote {
	margin: 1.5em 0;
	padding: 1em 1.4em;
	border-left: 4px solid var(--bcs-primary);
	background: var(--bcs-surface);
	border-radius: 0 var(--bcs-radius-sm) var(--bcs-radius-sm) 0;
}

code, pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	background: var(--bcs-surface-2);
	border-radius: 8px;
}

code { padding: 0.15em 0.4em; font-size: 0.9em; }
pre { padding: 1em; overflow-x: auto; }

table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5em;
}

th, td {
	padding: 0.75em 1em;
	border-bottom: 1px solid var(--bcs-border);
	text-align: left;
}

/* ========================================================== 3. Layout */
.bcs-container {
	width: 100%;
	max-width: var(--bcs-container);
	margin-inline: auto;
	padding-inline: 20px;
}

.site-main {
	padding-block: 40px 64px;
	min-height: 50vh;
}

.site-main--front {
	padding-top: 0;
}

.bcs-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
}

@media (min-width: 992px) {
	.bcs-layout:has(.bcs-layout__aside) {
		grid-template-columns: minmax(0, 1fr) 300px;
	}
}

.bcs-section {
	padding-block: 56px;
}

.bcs-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
	flex-wrap: wrap;
}

.bcs-section__head h2 {
	margin: 0;
}

.bcs-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 600;
	color: var(--bcs-primary);
}

.bcs-link svg {
	transition: transform 0.2s var(--bcs-ease);
}

.bcs-link:hover svg {
	transform: translateX(3px);
}

/* ============================================== 4. Botones y formularios */
.bcs-btn,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border: 0;
	border-radius: var(--bcs-radius-pill);
	background: var(--bcs-primary);
	color: #fff;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-align: center;
	transition: transform 0.18s var(--bcs-ease), box-shadow 0.18s var(--bcs-ease), background 0.18s var(--bcs-ease), opacity 0.18s var(--bcs-ease);
}

.bcs-btn:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(var(--bcs-primary-rgb), 0.32);
	color: #fff;
	opacity: 1;
}

.bcs-btn:active,
button:active {
	transform: translateY(0);
}

.bcs-btn--primary {
	background-image: var(--bcs-gradient);
	color: #fff;
}

.bcs-btn--ghost {
	background: transparent;
	color: var(--bcs-ink);
	border: 1.5px solid var(--bcs-border);
	box-shadow: none;
}

.bcs-btn--ghost:hover {
	border-color: var(--bcs-primary);
	color: var(--bcs-primary);
	box-shadow: 0 8px 20px rgba(var(--bcs-primary-rgb), 0.16);
}

.bcs-btn--light {
	background: #fff;
	color: #14141f;
}

.bcs-btn--light:hover {
	color: #14141f;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.bcs-btn--lg {
	padding: 15px 30px;
	font-size: 1.02rem;
}

.icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 50%;
	background: var(--bcs-surface-2);
	color: var(--bcs-ink);
	box-shadow: none;
}

.icon-btn:hover {
	background: rgba(var(--bcs-primary-rgb), 0.12);
	color: var(--bcs-primary);
	transform: translateY(-1px);
	box-shadow: none;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
	width: 100%;
	padding: 12px 16px;
	border: 1.5px solid var(--bcs-border);
	border-radius: var(--bcs-radius-sm);
	background: var(--bcs-surface);
	color: var(--bcs-ink);
	font: inherit;
	transition: border-color 0.2s var(--bcs-ease), box-shadow 0.2s var(--bcs-ease);
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--bcs-primary);
	box-shadow: 0 0 0 4px rgba(var(--bcs-primary-rgb), 0.15);
}

/* Buscador */
.bcs-search {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	background: var(--bcs-surface-2);
	border: 1.5px solid transparent;
	border-radius: var(--bcs-radius-pill);
	padding: 4px 4px 4px 16px;
	transition: border-color 0.2s var(--bcs-ease), background 0.2s var(--bcs-ease);
}

.bcs-search:focus-within {
	border-color: var(--bcs-primary);
	background: var(--bcs-surface);
}

.bcs-search > svg {
	flex: none;
	color: var(--bcs-ink-soft);
}

.bcs-search__input {
	flex: 1;
	border: 0;
	background: transparent;
	padding: 9px 12px;
	min-width: 0;
}

.bcs-search__input:focus {
	box-shadow: none;
}

.bcs-search__submit {
	flex: none;
	padding: 9px 20px;
	background-image: var(--bcs-gradient);
	font-size: 0.9rem;
}

/* ================================== 5. Encabezado, barra y navegación */
.bcs-topbar {
	background-image: var(--bcs-gradient);
	color: #fff;
	font-size: 0.85rem;
	text-align: center;
}

.bcs-topbar p {
	margin: 0;
	padding: 9px 0;
	font-weight: 500;
}

.site-header {
	position: relative;
	z-index: 60;
	background: var(--bcs-header-bg);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--bcs-border);
}

.has-sticky-header .site-header {
	position: sticky;
	top: 0;
}

.site-header.is-stuck {
	box-shadow: var(--bcs-shadow-sm);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 76px;
	padding-block: 12px;
}

.site-branding {
	flex: none;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Con logo el nombre va al lado, no debajo. */
.site-branding--with-logo {
	flex-direction: row;
	align-items: center;
	gap: 12px;
}

.site-branding__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.site-branding .custom-logo-link img {
	max-height: 48px;
	width: auto;
}

.site-branding--with-logo .custom-logo-link img {
	max-height: 44px;
}

@media (max-width: 782px) {
	/* En móvil el espacio manda: solo el logo. */
	.site-branding--with-logo .site-branding__text {
		display: none;
	}
}

.site-title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.site-title a {
	background-image: var(--bcs-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.site-description {
	margin: 0;
	font-size: 0.78rem;
	color: var(--bcs-ink-soft);
}

.main-navigation {
	flex: none;
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-menu li {
	position: relative;
}

.nav-menu a {
	display: block;
	padding: 10px 14px;
	border-radius: var(--bcs-radius-pill);
	color: var(--bcs-ink);
	font-weight: 600;
	font-size: 0.94rem;
	white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
	background: rgba(var(--bcs-primary-rgb), 0.1);
	color: var(--bcs-primary);
	opacity: 1;
}

.nav-menu .sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	min-width: 220px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--bcs-surface);
	border: 1px solid var(--bcs-border);
	border-radius: var(--bcs-radius);
	box-shadow: var(--bcs-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all 0.22s var(--bcs-ease);
	z-index: 10;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav-menu .sub-menu .sub-menu {
	top: -8px;
	left: calc(100% + 4px);
}

.site-header__search {
	flex: 1;
	max-width: 420px;
	margin-left: auto;
}

.header-actions {
	flex: none;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.site-header__search + .header-actions {
	margin-left: 0;
}

.nav-toggle {
	display: none;
}

.bcs-theme-toggle__moon { display: none; }
[data-theme="dark"] .bcs-theme-toggle__moon { display: inline-flex; }
[data-theme="dark"] .bcs-theme-toggle__sun { display: none; }

/* Contador del carrito */
.bcs-cart-count {
	position: absolute;
	top: -2px;
	right: -2px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--bcs-radius-pill);
	background: var(--bcs-sale);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1;
	border: 2px solid var(--bcs-surface);
	transition: transform 0.25s var(--bcs-ease);
}

.bcs-cart-count.is-empty {
	display: none;
}

.bcs-cart-count.is-bumped {
	animation: bcs-bump 0.45s var(--bcs-ease);
}

@keyframes bcs-bump {
	0%   { transform: scale(1); }
	35%  { transform: scale(1.45); }
	100% { transform: scale(1); }
}

/* Migas de pan */
.bcs-breadcrumbs {
	font-size: 0.85rem;
	color: var(--bcs-ink-soft);
	padding-block: 14px 0;
}

.bcs-breadcrumbs .bcs-container,
.bcs-breadcrumbs .woocommerce-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.bcs-breadcrumbs a {
	color: var(--bcs-ink-soft);
}

.bcs-breadcrumbs a:hover {
	color: var(--bcs-primary);
}

.bcs-breadcrumbs .sep {
	opacity: 0.5;
}

.bcs-breadcrumbs--woo {
	padding-bottom: 12px;
}

/* ======================================================== 6. Portada */
.bcs-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(48px, 7vw, 90px);
	background:
		radial-gradient(900px 420px at 8% -10%, rgba(var(--bcs-primary-rgb), 0.16), transparent 60%),
		radial-gradient(700px 380px at 100% 0%, rgba(var(--bcs-accent-rgb), 0.16), transparent 62%);
}

.bcs-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: 48px;
}

@media (min-width: 900px) {
	.bcs-hero__inner {
		grid-template-columns: 1.05fr 0.95fr;
	}
}

.bcs-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 16px;
	margin-bottom: 18px;
	border-radius: var(--bcs-radius-pill);
	background: rgba(var(--bcs-primary-rgb), 0.12);
	color: var(--bcs-primary);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.bcs-hero__title {
	margin: 0 0 16px;
	font-size: clamp(2.2rem, 5.2vw, 3.7rem);
	font-weight: 800;
	letter-spacing: -0.035em;
}

.bcs-hero__lead {
	max-width: 52ch;
	font-size: clamp(1rem, 1.4vw, 1.15rem);
	color: var(--bcs-ink-soft);
	margin-bottom: 28px;
}

.bcs-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 36px;
}

.bcs-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bcs-hero__stats li {
	display: flex;
	flex-direction: column;
}

.bcs-hero__stats strong {
	font-size: 1.3rem;
	font-weight: 800;
}

.bcs-hero__stats span {
	font-size: 0.82rem;
	color: var(--bcs-ink-soft);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.bcs-hero__media {
	position: relative;
}

.bcs-hero__img {
	width: 100%;
	height: auto;
	border-radius: calc(var(--bcs-radius) * 1.6);
	box-shadow: var(--bcs-shadow-lg);
}

/* ------------------------------------------------------- Hero apilado
 * Se activa solo cuando hay imagen de portada: el texto va centrado arriba y
 * la foto debajo, ocupando el ancho del contenedor. Sin `object-fit` ni alto
 * fijo, así que la imagen se ve entera y a su tamaño real, sin estirarla.
 */
.bcs-hero--stacked .bcs-hero__inner {
	grid-template-columns: minmax(0, 1fr);
	justify-items: center;
	text-align: center;
	gap: 44px;
}

.bcs-hero--stacked .bcs-hero__text {
	max-width: 760px;
}

.bcs-hero--stacked .bcs-hero__lead {
	margin-inline: auto;
}

.bcs-hero--stacked .bcs-hero__actions,
.bcs-hero--stacked .bcs-hero__stats {
	justify-content: center;
}

.bcs-hero--stacked .bcs-hero__stats {
	margin-bottom: 0;
}

.bcs-hero--stacked .bcs-hero__media {
	width: 100%;
}

.bcs-hero__placeholder {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 3;
	border-radius: calc(var(--bcs-radius) * 1.6);
	background: var(--bcs-surface);
	border: 1px solid var(--bcs-border);
	box-shadow: var(--bcs-shadow);
	overflow: hidden;
}

.blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(38px);
	opacity: 0.55;
	animation: bcs-float 9s ease-in-out infinite;
}

.blob--1 { width: 220px; height: 220px; background: var(--bcs-primary); top: -40px; left: -30px; }
.blob--2 { width: 200px; height: 200px; background: var(--bcs-accent); bottom: -40px; right: -20px; animation-delay: -3s; }
.blob--3 { width: 160px; height: 160px; background: var(--bcs-sale); top: 45%; left: 55%; animation-delay: -6s; }

@keyframes bcs-float {
	0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
	50%      { transform: translate3d(0, -22px, 0) scale(1.07); }
}

.bcs-hero__card {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 6px;
	text-align: center;
	padding: 28px 32px;
	border-radius: var(--bcs-radius);
	background: var(--bcs-header-bg);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--bcs-border);
	max-width: 82%;
}

.bcs-hero__card strong { font-size: 1.05rem; }
.bcs-hero__card span { font-size: 0.85rem; color: var(--bcs-ink-soft); }

/* Categorías */
.bcs-cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: var(--bcs-gap);
}

.bcs-cat-card {
	display: grid;
	justify-items: center;
	gap: 6px;
	padding: 22px 14px;
	border-radius: var(--bcs-radius);
	background: var(--bcs-surface);
	border: 1px solid var(--bcs-border);
	color: var(--bcs-ink);
	text-align: center;
	transition: transform 0.24s var(--bcs-ease), box-shadow 0.24s var(--bcs-ease), border-color 0.24s var(--bcs-ease);
}

.bcs-cat-card:hover {
	transform: translateY(-5px);
	border-color: rgba(var(--bcs-primary-rgb), 0.4);
	box-shadow: var(--bcs-shadow);
	opacity: 1;
	color: var(--bcs-ink);
}

.bcs-cat-card__media {
	display: grid;
	place-items: center;
	width: 74px;
	height: 74px;
	border-radius: 50%;
	background: rgba(var(--bcs-primary-rgb), 0.1);
	color: var(--bcs-primary);
	overflow: hidden;
	margin-bottom: 6px;
}

.bcs-cat-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bcs-cat-card__name {
	font-weight: 700;
	line-height: 1.3;
}

.bcs-cat-card__count {
	font-size: 0.78rem;
	color: var(--bcs-ink-soft);
}

/* Franja promocional */
.bcs-promo {
	margin-block: 24px;
}

.bcs-promo__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: clamp(28px, 4vw, 52px);
	border-radius: calc(var(--bcs-radius) * 1.4);
	background-image: var(--bcs-gradient);
	color: #fff;
	box-shadow: 0 22px 50px rgba(var(--bcs-primary-rgb), 0.28);
}

.bcs-promo__inner h2 {
	margin: 6px 0 8px;
	color: #fff;
	max-width: 22ch;
}

.bcs-promo__inner p {
	margin: 0;
	opacity: 0.9;
	max-width: 46ch;
}

.bcs-promo__eyebrow {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.9;
}

/* Garantías */
.bcs-badges {
	padding-block: 40px;
	border-top: 1px solid var(--bcs-border);
}

.bcs-badges__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: var(--bcs-gap);
}

.bcs-badge {
	display: flex;
	align-items: center;
	gap: 14px;
}

.bcs-badge__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: rgba(var(--bcs-primary-rgb), 0.12);
	color: var(--bcs-primary);
}

.bcs-badge strong { display: block; font-size: 0.96rem; }
.bcs-badge span { font-size: 0.84rem; color: var(--bcs-ink-soft); }

/* ==================================== 7. Contenido, tarjetas y widgets */
.page-header {
	margin-bottom: 32px;
}

.page-title {
	margin: 0 0 8px;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	font-size: 0.85rem;
	color: var(--bcs-ink-soft);
}

.entry-content > * + * {
	margin-top: 1.1em;
}

.entry-content img,
.bcs-page__thumb img,
.bcs-single__thumb img {
	border-radius: var(--bcs-radius);
}

.bcs-page__thumb,
.bcs-single__thumb {
	margin: 0 0 28px;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--bcs-gap);
}

.post-card {
	display: flex;
	flex-direction: column;
	background: var(--bcs-surface);
	border: 1px solid var(--bcs-border);
	border-radius: var(--bcs-radius);
	overflow: hidden;
	transition: transform 0.24s var(--bcs-ease), box-shadow 0.24s var(--bcs-ease);
}

.post-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--bcs-shadow);
}

.post-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--bcs-surface-2);
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--bcs-ease);
}

.post-card:hover .post-card__media img {
	transform: scale(1.06);
}

.post-card__placeholder {
	display: grid;
	place-items: center;
	height: 100%;
	color: var(--bcs-ink-soft);
}

.post-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px;
}

.post-card__title {
	margin: 0;
	font-size: 1.12rem;
}

.post-card__title a {
	color: var(--bcs-ink);
}

.post-card__title a:hover {
	color: var(--bcs-primary);
	opacity: 1;
}

.post-card__excerpt {
	margin: 0;
	font-size: 0.92rem;
	color: var(--bcs-ink-soft);
}

/* Widgets */
.widget-area {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.widget {
	padding: 22px;
	background: var(--bcs-surface);
	border: 1px solid var(--bcs-border);
	border-radius: var(--bcs-radius);
}

.widget-title {
	margin: 0 0 14px;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget li + li {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid var(--bcs-border);
}

.widget a {
	color: var(--bcs-ink);
}

.widget a:hover {
	color: var(--bcs-primary);
	opacity: 1;
}

/* Paginación */
.pagination,
.woocommerce-pagination {
	margin-top: 44px;
}

.pagination .nav-links,
.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	padding: 0;
	margin: 0;
	list-style: none;
	border: 0;
}

.pagination .page-numbers,
.woocommerce-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border-radius: var(--bcs-radius-pill);
	background: var(--bcs-surface);
	border: 1px solid var(--bcs-border);
	color: var(--bcs-ink);
	font-weight: 600;
}

.woocommerce-pagination ul li {
	border: 0 !important;
	margin: 0 !important;
}

.pagination .page-numbers.current,
.woocommerce-pagination .page-numbers.current {
	background-image: var(--bcs-gradient);
	border-color: transparent;
	color: #fff;
}

.pagination .page-numbers:hover,
.woocommerce-pagination .page-numbers:hover {
	border-color: var(--bcs-primary);
	color: var(--bcs-primary);
	opacity: 1;
}

/* Estados vacíos / avisos */
.bcs-empty,
.bcs-notice,
.bcs-404 {
	display: grid;
	justify-items: center;
	gap: 14px;
	text-align: center;
	padding: clamp(36px, 6vw, 72px) 24px;
	background: var(--bcs-surface);
	border: 1px solid var(--bcs-border);
	border-radius: calc(var(--bcs-radius) * 1.3);
}

.bcs-empty .bcs-search,
.bcs-404 .bcs-search {
	max-width: 460px;
}

.bcs-empty__icon {
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: rgba(var(--bcs-primary-rgb), 0.12);
	color: var(--bcs-primary);
}

.bcs-404__code {
	font-size: clamp(4rem, 12vw, 7rem);
	font-weight: 900;
	line-height: 1;
	background-image: var(--bcs-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Navegación entre entradas y comentarios */
.post-navigation .nav-links {
	display: grid;
	gap: 16px;
	margin-top: 40px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.post-navigation a {
	display: block;
	padding: 18px 20px;
	border-radius: var(--bcs-radius);
	background: var(--bcs-surface);
	border: 1px solid var(--bcs-border);
	color: var(--bcs-ink);
	font-weight: 600;
}

.nav-label {
	display: block;
	font-size: 0.76rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--bcs-ink-soft);
	font-weight: 700;
}

.comments-area {
	margin-top: 48px;
	padding: 28px;
	background: var(--bcs-surface);
	border: 1px solid var(--bcs-border);
	border-radius: var(--bcs-radius);
}

.comment-list {
	list-style: none;
	padding: 0;
	margin: 0 0 28px;
}

.comment-list .children {
	list-style: none;
	padding-left: 22px;
}

.comment-body {
	padding: 16px 0;
	border-bottom: 1px solid var(--bcs-border);
}

.comment-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 0.9rem;
}

.comment-form p {
	margin-bottom: 16px;
}

/* ================================================== 8. Pie de página */
.site-footer {
	margin-top: 40px;
	padding-block: 52px 24px;
	background: var(--bcs-surface);
	border-top: 1px solid var(--bcs-border);
}

.site-footer__widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 36px;
	padding-bottom: 36px;
}

.site-footer__widgets--empty {
	grid-template-columns: 1fr;
}

.site-footer .widget {
	padding: 0;
	background: transparent;
	border: 0;
}

.site-footer__brand .site-title {
	font-size: 1.5rem;
}

/*
 * El logo del pie necesita ganar a `.site-branding .custom-logo-link img`
 * (0,2,1), por eso el selector va encadenado. Se le da bastante más altura que
 * al de la cabecera porque suele ser la versión con el nombre incluido, y a
 * 48 px un logo cuadrado con texto apilado no se lee.
 */
.site-branding--footer .custom-logo-link img,
.site-footer__brand .bcs-footer-logo {
	max-height: 110px;
	width: auto;
}

@media (max-width: 782px) {
	.site-branding--footer .custom-logo-link img,
	.site-footer__brand .bcs-footer-logo {
		max-height: 84px;
	}
}

.bcs-social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.bcs-social a {
	display: inline-block;
	padding: 7px 14px;
	border-radius: var(--bcs-radius-pill);
	background: var(--bcs-surface-2);
	color: var(--bcs-ink);
	font-size: 0.85rem;
	font-weight: 600;
}

.bcs-social a:hover {
	background-image: var(--bcs-gradient);
	color: #fff;
	opacity: 1;
}

/* Fila de políticas legales */
.site-footer__legal {
	padding-top: 22px;
	border-top: 1px solid var(--bcs-border);
}

.legal-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.legal-menu li {
	position: relative;
}

.legal-menu li + li::before {
	content: "";
	position: absolute;
	left: -12px;
	top: 50%;
	width: 3px;
	height: 3px;
	margin-top: -1.5px;
	border-radius: 50%;
	background: var(--bcs-border);
}

.legal-menu a {
	color: var(--bcs-ink-soft);
	font-size: 0.86rem;
	font-weight: 500;
}

.legal-menu a:hover,
.legal-menu .current-menu-item > a {
	color: var(--bcs-primary);
	opacity: 1;
}

.legal-note {
	margin: 12px 0 0;
	font-size: 0.8rem;
	line-height: 1.55;
	color: var(--bcs-ink-soft);
	opacity: 0.8;
	max-width: 80ch;
}

.site-footer__legal + .site-footer__bottom {
	border-top: 0;
	padding-top: 16px;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 22px;
	border-top: 1px solid var(--bcs-border);
	font-size: 0.86rem;
	color: var(--bcs-ink-soft);
}

.site-footer__copy { margin: 0; }

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu a {
	color: var(--bcs-ink-soft);
	font-weight: 500;
}

/* ============================================== 9. Elementos flotantes */
.bcs-fabs {
	position: fixed;
	bottom: 26px;
	z-index: 90;
	display: flex;
	flex-direction: column;
	gap: 12px;
	pointer-events: none;
}

.bcs-fabs--right { right: 22px; align-items: flex-end; }
.bcs-fabs--left  { left: 22px;  align-items: flex-start; }

.bcs-fab {
	position: relative;
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	gap: 0;
	width: 58px;
	height: 58px;
	padding: 0;
	border: 0;
	border-radius: var(--bcs-radius-pill);
	background: var(--bcs-surface);
	color: var(--bcs-ink);
	box-shadow: var(--bcs-shadow);
	cursor: pointer;
	overflow: hidden;
	justify-content: center;
	transition: width 0.34s var(--bcs-ease), transform 0.24s var(--bcs-ease), box-shadow 0.24s var(--bcs-ease), opacity 0.24s var(--bcs-ease), background 0.24s var(--bcs-ease);
}

.bcs-fab svg { flex: none; }

.bcs-fab__label {
	max-width: 0;
	opacity: 0;
	white-space: nowrap;
	font-weight: 700;
	font-size: 0.92rem;
	transition: max-width 0.34s var(--bcs-ease), opacity 0.2s var(--bcs-ease), margin 0.34s var(--bcs-ease);
}

.bcs-fab:hover,
.bcs-fab:focus-visible {
	width: auto;
	padding-inline: 20px;
	transform: translateY(-3px);
	box-shadow: var(--bcs-shadow-lg);
	opacity: 1;
}

.bcs-fab:hover .bcs-fab__label,
.bcs-fab:focus-visible .bcs-fab__label {
	max-width: 200px;
	opacity: 1;
	margin-left: 10px;
}

.bcs-fab--whatsapp {
	background: #25d366;
	color: #fff;
}

.bcs-fab--cart {
	background-image: var(--bcs-gradient);
	color: #fff;
}

.bcs-fab--cart .bcs-cart-count {
	top: 4px;
	right: 4px;
	border-color: transparent;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12);
}

.bcs-fab--top {
	width: 48px;
	height: 48px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px);
}

.bcs-fab--top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.bcs-fab--top:hover {
	width: 48px;
	padding-inline: 0;
	transform: translateY(-3px);
}

/* Barra inferior móvil */
.bcs-mobile-bar {
	display: none;
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: 12px;
	z-index: 88;
	padding: 8px 6px;
	border-radius: 22px;
	background: var(--bcs-header-bg);
	backdrop-filter: saturate(180%) blur(18px);
	-webkit-backdrop-filter: saturate(180%) blur(18px);
	border: 1px solid var(--bcs-border);
	box-shadow: var(--bcs-shadow-lg);
	transition: transform 0.32s var(--bcs-ease);
}

.bcs-mobile-bar.is-hidden {
	transform: translateY(140%);
}

.bcs-mobile-bar__item {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 6px 2px;
	background: transparent;
	border: 0;
	border-radius: 16px;
	color: var(--bcs-ink-soft);
	font-size: 0.68rem;
	font-weight: 600;
	box-shadow: none;
	cursor: pointer;
}

.bcs-mobile-bar__item:hover,
.bcs-mobile-bar__item.is-active {
	color: var(--bcs-primary);
	background: rgba(var(--bcs-primary-rgb), 0.1);
	transform: none;
	box-shadow: none;
	opacity: 1;
}

.bcs-mobile-bar__item .bcs-cart-count {
	top: 2px;
	right: calc(50% - 22px);
	border-color: transparent;
}

@media (max-width: 782px) {
	.bcs-mobile-bar {
		display: flex;
	}

	body {
		padding-bottom: 82px;
	}

	.bcs-fabs {
		bottom: 92px;
	}
}

/* Paneles deslizantes (carrito / filtros) */
.bcs-drawer {
	position: fixed;
	inset: 0;
	z-index: 120;
	visibility: hidden;
	pointer-events: none;
}

.bcs-drawer.is-open {
	visibility: visible;
	pointer-events: auto;
}

.bcs-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 20, 0.5);
	backdrop-filter: blur(2px);
	opacity: 0;
	transition: opacity 0.3s var(--bcs-ease);
}

.bcs-drawer.is-open .bcs-drawer__backdrop {
	opacity: 1;
}

.bcs-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(410px, 92vw);
	display: flex;
	flex-direction: column;
	background: var(--bcs-bg);
	box-shadow: var(--bcs-shadow-lg);
	transform: translateX(100%);
	transition: transform 0.36s var(--bcs-ease);
}

.bcs-drawer.is-open .bcs-drawer__panel {
	transform: translateX(0);
}

.bcs-drawer--left .bcs-drawer__panel {
	right: auto;
	left: 0;
	transform: translateX(-100%);
}

.bcs-drawer--left.is-open .bcs-drawer__panel {
	transform: translateX(0);
}

.bcs-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--bcs-border);
	background: var(--bcs-surface);
}

.bcs-drawer__head h2 {
	margin: 0;
	font-size: 1.1rem;
}

.bcs-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
}

.bcs-drawer__body .widget {
	padding: 0;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--bcs-border);
	padding-bottom: 18px;
	margin-bottom: 18px;
	border-radius: 0;
}

/* Capa de búsqueda */
.bcs-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 130;
	display: grid;
	place-items: start center;
	padding: 18vh 20px 20px;
	background: rgba(10, 10, 20, 0.55);
	backdrop-filter: blur(8px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.28s var(--bcs-ease), visibility 0.28s var(--bcs-ease);
}

.bcs-search-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.bcs-search-overlay__inner {
	position: relative;
	width: min(640px, 100%);
	padding: 26px;
	border-radius: calc(var(--bcs-radius) * 1.3);
	background: var(--bcs-surface);
	box-shadow: var(--bcs-shadow-lg);
	transform: translateY(-14px);
	transition: transform 0.32s var(--bcs-ease);
}

.bcs-search-overlay.is-open .bcs-search-overlay__inner {
	transform: translateY(0);
}

.bcs-search-overlay__close {
	position: absolute;
	top: -18px;
	right: -8px;
	background: var(--bcs-surface);
	box-shadow: var(--bcs-shadow-sm);
}

/* Barra de compra flotante */
.bcs-sticky-buy {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 85;
	padding: 10px 0;
	background: var(--bcs-header-bg);
	backdrop-filter: saturate(180%) blur(16px);
	-webkit-backdrop-filter: saturate(180%) blur(16px);
	border-top: 1px solid var(--bcs-border);
	transform: translateY(110%);
	transition: transform 0.36s var(--bcs-ease);
}

.bcs-sticky-buy.is-visible {
	transform: translateY(0);
}

.bcs-sticky-buy__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.bcs-sticky-buy__product {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.bcs-sticky-buy__product img {
	width: 46px;
	height: 46px;
	object-fit: cover;
	border-radius: 12px;
	flex: none;
}

.bcs-sticky-buy__product strong {
	display: block;
	font-size: 0.94rem;
	line-height: 1.3;
}

.bcs-sticky-buy__product .price {
	font-size: 0.9rem;
	color: var(--bcs-primary);
	font-weight: 700;
}

.bcs-sticky-buy .bcs-btn {
	flex: none;
}

@media (max-width: 782px) {
	.bcs-sticky-buy {
		bottom: 82px;
	}

	.bcs-sticky-buy__product strong {
		max-width: 42vw;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
}

.bcs-anchor {
	display: block;
	position: relative;
	top: -110px;
	visibility: hidden;
}

/* Aviso emergente "añadido al carrito" */
.bcs-toast {
	position: fixed;
	left: 50%;
	bottom: 26px;
	z-index: 140;
	transform: translate(-50%, 24px);
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 22px;
	border-radius: var(--bcs-radius-pill);
	background: var(--bcs-ink);
	color: var(--bcs-bg);
	font-weight: 600;
	box-shadow: var(--bcs-shadow-lg);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.28s var(--bcs-ease), transform 0.28s var(--bcs-ease);
}

.bcs-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

@media (max-width: 782px) {
	.bcs-toast { bottom: 100px; }
}

/* ========================================= 9b. Banner de cookies */
.bcs-cookies {
	position: fixed;
	z-index: 150;
	width: min(430px, calc(100vw - 32px));
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.32s var(--bcs-ease), transform 0.32s var(--bcs-ease);
}

.bcs-cookies[hidden] {
	display: none;
}

.bcs-cookies.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.bcs-cookies--left  { left: 22px; bottom: 26px; }
.bcs-cookies--right { right: 22px; bottom: 26px; }

.bcs-cookies--bar {
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
}

.bcs-cookies__inner {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 22px;
	border-radius: calc(var(--bcs-radius) * 1.2);
	background: var(--bcs-header-bg);
	backdrop-filter: saturate(180%) blur(18px);
	-webkit-backdrop-filter: saturate(180%) blur(18px);
	border: 1px solid var(--bcs-border);
	box-shadow: var(--bcs-shadow-lg);
}

.bcs-cookies--bar .bcs-cookies__inner {
	width: 100%;
	max-width: var(--bcs-container);
	margin-inline: auto;
	align-items: center;
	flex-wrap: wrap;
	border-radius: 0;
	border-inline: 0;
	border-bottom: 0;
}

.bcs-cookies__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: rgba(var(--bcs-primary-rgb), 0.12);
	color: var(--bcs-primary);
}

.bcs-cookies__content {
	flex: 1;
	min-width: 220px;
}

.bcs-cookies__title {
	margin: 0 0 6px;
	font-size: 1.02rem;
}

.bcs-cookies__text {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.55;
	color: var(--bcs-ink-soft);
}

.bcs-cookies__policy {
	font-weight: 600;
	white-space: nowrap;
}

.bcs-cookies__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	width: 100%;
}

.bcs-cookies--bar .bcs-cookies__actions {
	width: auto;
	margin-top: 0;
	flex: none;
}

.bcs-cookies__actions .bcs-btn {
	flex: 1;
	min-width: 130px;
	padding: 11px 18px;
	font-size: 0.9rem;
}

.bcs-cookies--bar .bcs-cookies__actions .bcs-btn {
	flex: none;
}

.bcs-cookies__prefs-link {
	width: 100%;
	padding: 4px;
	background: transparent;
	color: var(--bcs-ink-soft);
	font-size: 0.84rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	box-shadow: none;
}

.bcs-cookies__prefs-link:hover {
	background: transparent;
	color: var(--bcs-primary);
	transform: none;
	box-shadow: none;
}

.bcs-cookies--bar .bcs-cookies__prefs-link {
	width: auto;
}

/* Modal de preferencias */
.bcs-cookies-modal {
	position: fixed;
	inset: 0;
	z-index: 160;
	display: grid;
	place-items: center;
	padding: 20px;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.28s var(--bcs-ease), visibility 0.28s var(--bcs-ease);
}

.bcs-cookies-modal.is-open {
	visibility: visible;
	opacity: 1;
}

.bcs-cookies-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 20, 0.55);
	backdrop-filter: blur(4px);
}

.bcs-cookies-modal__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(560px, 100%);
	max-height: min(80vh, 660px);
	border-radius: calc(var(--bcs-radius) * 1.3);
	background: var(--bcs-surface);
	box-shadow: var(--bcs-shadow-lg);
	transform: translateY(-12px) scale(0.98);
	transition: transform 0.3s var(--bcs-ease);
	overflow: hidden;
}

.bcs-cookies-modal.is-open .bcs-cookies-modal__panel {
	transform: translateY(0) scale(1);
}

.bcs-cookies-modal__head,
.bcs-cookies-modal__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 22px;
}

.bcs-cookies-modal__head {
	border-bottom: 1px solid var(--bcs-border);
}

.bcs-cookies-modal__head h2 {
	margin: 0;
	font-size: 1.12rem;
}

.bcs-cookies-modal__body {
	flex: 1;
	overflow-y: auto;
	padding: 8px 22px 16px;
}

.bcs-cookies-modal__foot {
	border-top: 1px solid var(--bcs-border);
	background: var(--bcs-surface-2);
}

.bcs-cookies-modal__foot .bcs-btn {
	flex: 1;
	padding: 12px 18px;
	font-size: 0.92rem;
}

.bcs-cookie-cat {
	padding: 16px 0;
	border-bottom: 1px solid var(--bcs-border);
}

.bcs-cookie-cat:last-child {
	border-bottom: 0;
}

.bcs-cookie-cat__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	cursor: pointer;
}

.bcs-cookie-cat__label {
	font-weight: 700;
}

.bcs-cookie-cat__desc {
	margin: 6px 0 0;
	font-size: 0.86rem;
	line-height: 1.5;
	color: var(--bcs-ink-soft);
	max-width: 46ch;
}

/* Interruptor */
.bcs-switch {
	position: relative;
	flex: none;
	display: inline-block;
	width: 46px;
	height: 26px;
}

.bcs-switch input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.bcs-switch__track {
	position: absolute;
	inset: 0;
	border-radius: var(--bcs-radius-pill);
	background: var(--bcs-surface-2);
	border: 1.5px solid var(--bcs-border);
	transition: background 0.24s var(--bcs-ease), border-color 0.24s var(--bcs-ease);
	pointer-events: none;
}

.bcs-switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	background: var(--bcs-surface);
	box-shadow: var(--bcs-shadow-sm);
	transition: transform 0.24s var(--bcs-ease);
}

.bcs-switch input:checked + .bcs-switch__track {
	background-image: var(--bcs-gradient);
	border-color: transparent;
}

.bcs-switch input:checked + .bcs-switch__track::after {
	transform: translateX(20px);
}

.bcs-switch input:disabled + .bcs-switch__track {
	opacity: 0.6;
}

.bcs-switch input:disabled {
	cursor: not-allowed;
}

.bcs-switch input:focus-visible + .bcs-switch__track {
	outline: 3px solid rgba(var(--bcs-primary-rgb), 0.55);
	outline-offset: 2px;
}

/* Mientras se pide el consentimiento, los FAB no compiten por la atención. */
body.bcs-cookies-open .bcs-fabs,
body.bcs-cookies-open .bcs-sticky-buy {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s var(--bcs-ease);
}

/* Enlace del pie para reabrir preferencias */
.bcs-cookies-reopen {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	background: transparent;
	color: var(--bcs-ink-soft);
	font-size: 0.86rem;
	font-weight: 500;
	box-shadow: none;
}

.bcs-cookies-reopen:hover {
	background: transparent;
	color: var(--bcs-primary);
	transform: none;
	box-shadow: none;
}

@media (max-width: 782px) {
	.bcs-cookies--left,
	.bcs-cookies--right {
		left: 12px;
		right: 12px;
		bottom: 96px;
		width: auto;
	}

	.bcs-cookies--bar .bcs-cookies__inner {
		padding-bottom: 92px;
	}

	.bcs-cookies__inner {
		padding: 18px;
	}
}

/* =========================================== 10. Responsive y accesibilidad */
@media (max-width: 1100px) {
	.site-header__search {
		display: none;
	}
}

@media (max-width: 991px) {
	.nav-toggle {
		display: inline-flex;
	}

	.main-navigation {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: min(340px, 88vw);
		z-index: 125;
		padding: 88px 20px 28px;
		background: var(--bcs-surface);
		box-shadow: var(--bcs-shadow-lg);
		transform: translateX(100%);
		transition: transform 0.34s var(--bcs-ease);
		overflow-y: auto;
	}

	.main-navigation.is-open {
		transform: translateX(0);
	}

	.nav-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.nav-menu a {
		padding: 13px 16px;
		border-radius: 14px;
	}

	.nav-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		border-left: 2px solid var(--bcs-border);
		border-radius: 0;
		margin-left: 14px;
		padding: 0 0 0 6px;
	}

	.bcs-nav-backdrop {
		position: fixed;
		inset: 0;
		z-index: 124;
		background: rgba(10, 10, 20, 0.5);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s var(--bcs-ease), visibility 0.3s var(--bcs-ease);
	}

	.bcs-nav-backdrop.is-open {
		opacity: 1;
		visibility: visible;
	}
}

@media (max-width: 600px) {
	.hide-on-mobile { display: none; }
	.bcs-section { padding-block: 40px; }
	.site-header__inner { min-height: 64px; gap: 10px; }
	.bcs-hero__stats { gap: 20px; }
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	left: 16px;
	top: 16px;
	z-index: 200;
	padding: 12px 20px;
	background: var(--bcs-surface);
	border-radius: var(--bcs-radius-pill);
	box-shadow: var(--bcs-shadow);
	font-weight: 700;
}

.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); max-width: none; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==================================================
   8-bis. Pie de pagina moderno (tarjeta flotante) */

.site-footer {
	margin-top: 56px;
	padding-block: 0 28px;
	background: transparent;
	border-top: 0;
}

.site-footer__card {
	position: relative;
	overflow: hidden;
	padding: 46px clamp(20px, 4vw, 52px) 26px;
	border: 1px solid var(--bcs-border);
	border-radius: calc(var(--bcs-radius) + 10px);
	background: var(--bcs-surface);
	box-shadow: var(--bcs-shadow-lg);
}

.site-footer__card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background-image: var(--bcs-gradient);
}

.site-footer__card::after {
	content: "";
	position: absolute;
	top: -150px;
	right: -120px;
	width: 360px;
	height: 360px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--bcs-primary-rgb), 0.15), transparent 68%);
	pointer-events: none;
}

.site-footer__card > * {
	position: relative;
	z-index: 1;
}

.site-footer__top {
	display: grid;
	grid-template-columns: minmax(260px, 1.1fr) minmax(280px, 1fr);
	gap: 32px clamp(24px, 5vw, 64px);
	align-items: start;
	padding-bottom: 34px;
	border-bottom: 1px solid var(--bcs-border);
}

.footer-brand__text {
	margin: 14px 0 0;
	max-width: 46ch;
	color: var(--bcs-ink-soft);
	font-size: 0.94rem;
	line-height: 1.6;
}

.footer-news {
	padding: 24px;
	border: 1px solid var(--bcs-border);
	border-radius: var(--bcs-radius);
	background: var(--bcs-surface-2);
}

.footer-news__title { margin: 0 0 6px; font-size: 1.12rem; }
.footer-news__sub { margin: 0 0 16px; font-size: 0.9rem; color: var(--bcs-ink-soft); }
.footer-news__form { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

.footer-news__field {
	flex: 1 1 190px;
	min-width: 0;
	padding: 13px 18px;
	border: 1px solid var(--bcs-border);
	border-radius: var(--bcs-radius-pill);
	background: var(--bcs-surface);
	color: var(--bcs-ink);
	font-family: inherit;
	font-size: 0.94rem;
}

.footer-news__field::placeholder { color: var(--bcs-ink-soft); opacity: 0.75; }

.footer-news__btn {
	flex: 0 0 auto;
	padding: 13px 26px;
	border: 0;
	border-radius: var(--bcs-radius-pill);
	background-image: var(--bcs-gradient);
	color: #fff;
	font-family: inherit;
	font-size: 0.94rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.24s var(--bcs-ease), box-shadow 0.24s var(--bcs-ease);
}

.footer-news__btn:hover { transform: translateY(-2px); box-shadow: var(--bcs-shadow); }
.footer-news__note { margin: 12px 0 0; font-size: 0.78rem; color: var(--bcs-ink-soft); opacity: 0.85; }

.footer-news__msg {
	margin: 0 0 12px;
	padding: 10px 14px;
	border-radius: var(--bcs-radius-sm);
	font-size: 0.88rem;
	font-weight: 600;
}

.footer-news__msg--ok { background: rgba(var(--bcs-accent-rgb), 0.18); color: var(--bcs-ink); }
.footer-news__msg--err { background: rgba(255, 92, 122, 0.18); color: var(--bcs-ink); }

.site-footer__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 30px clamp(20px, 4vw, 48px);
	padding: 34px 0;
}

.footer-col__title {
	margin: 0 0 14px;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bcs-ink-soft);
}

.footer-col ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.footer-col a { color: var(--bcs-ink); font-size: 0.94rem; font-weight: 500; }
.footer-col a:hover, .footer-col a:focus { color: var(--bcs-primary); opacity: 1; }

.footer-contact li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--bcs-ink-soft);
	font-size: 0.94rem;
	line-height: 1.45;
}

.footer-contact__ico { flex: none; display: inline-flex; margin-top: 2px; color: var(--bcs-primary); }
.footer-col--widgets .widget { padding: 0; background: transparent; border: 0; }

.site-footer__card .site-footer__legal { padding-top: 22px; }
.site-footer__card .site-footer__bottom { padding-top: 18px; }

@media (max-width: 860px) {
	.site-footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.site-footer__card { padding: 34px 20px 22px; border-radius: var(--bcs-radius); }
	.footer-news { padding: 20px; }
	.footer-news__btn { flex: 1 1 100%; }
}
