/* ==========================================================================
   Bohemian & Chic — Microdetalles editoriales
   ==========================================================================
   Detalles diferenciadores documentados en docs/03-DESIGN.md §11:
   - Tarjeta cosida (border dashed sutil hover) en cards "Muebles con Historia".
   - Sello editorial SVG estampado con rotación −3°.
   - Flourish ornamental ❦ entre secciones de blog/storytelling.
   ========================================================================== */

/* ── Tarjeta cosida (Muebles con Historia) ─────────────── */
.bc-product-card[data-historia="true"] .bc-product-card__media {
	position: relative;
}

.bc-product-card[data-historia="true"] .bc-product-card__media::after {
	content: '';
	position: absolute;
	inset: 6px;
	border: 1px dashed rgba(139, 46, 38, 0);
	pointer-events: none;
	transition: border-color var(--bc-transition);
}

.bc-product-card[data-historia="true"] .bc-product-card__link:hover .bc-product-card__media::after,
.bc-product-card[data-historia="true"] .bc-product-card__link:focus-visible .bc-product-card__media::after {
	border-color: rgba(139, 46, 38, 0.42);
}

@media (prefers-reduced-motion: reduce) {
	.bc-product-card[data-historia="true"] .bc-product-card__media::after {
		transition: none;
	}
}

/* ── Sello editorial ───────────────────────────────────── */
.bc-stamp {
	position: absolute;
	width: 96px;
	height: 96px;
	pointer-events: none;
	opacity: 0.85;
	mix-blend-mode: multiply;
	transition: opacity var(--bc-transition), transform var(--bc-transition);
}

.bc-stamp--top-right {
	top: var(--bc-space-xs);
	right: var(--bc-space-xs);
}

.bc-stamp--top-left {
	top: var(--bc-space-xs);
	left: var(--bc-space-xs);
}

.bc-product-card__link:hover .bc-stamp,
.bc-product-card__link:focus-visible .bc-stamp {
	opacity: 1;
	transform: rotate(2deg) scale(1.04);
}

@media (max-width: 768px) {
	.bc-stamp { width: 72px; height: 72px; }
}

/* ── Flourish ornamental entre secciones ──────────────── */
.bc-flourish {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--bc-space-sm);
	padding-block: var(--bc-space-md);
	color: var(--bc-text-muted);
	font-family: var(--bc-font-display);
	font-style: italic;
	font-size: 1.5rem;
	font-weight: var(--bc-fw-light);
}

.bc-flourish::before,
.bc-flourish::after {
	content: '';
	flex: 1;
	max-width: 80px;
	height: 1px;
	background: var(--bc-border);
}

/* ── Background parallax host (utility) ───────────────── */
[data-parallax-host] {
	position: relative;
	overflow: hidden;
}

/* Extender el fondo para que el desplazamiento no descubra bordes.
   El parallax aplica translateY de hasta ~±vph * speed, así que
   con speed máx 0.18 y vph 92vh, el desplazamiento ronda los ±10% del host. */
[data-parallax-host] [data-parallax="bg"] {
	inset: -12% 0 -12% 0 !important; /* sobreescribe el inset:0 del componente */
	height: 124%;
	will-change: auto; /* JS añade will-change cuando entra al viewport */
}

@media (prefers-reduced-motion: reduce) {
	[data-parallax-host] [data-parallax="bg"] {
		transform: none !important;
		inset: 0 !important;
		height: 100%;
	}
}
