/**
 * Intimovera — public styles (components).
 *
 * Aesthetic: wellness / premium cosmetics / trustworthy pharmacy.
 * Elegant, calm and trustworthy — NEVER explicit.
 * Mobile-first, accessible, lightweight (no frameworks).
 *
 * Design tokens (colors, type, spacing, radii, shadows…) live in
 * assets/css/charte.css — the graphic charter / single source of truth,
 * loaded before this file. Components below CONSUME var(--im-*) tokens and
 * must not hard-code raw values when a token exists.
 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--im-bg);
	color: var(--im-text);
	font-family: var(--im-font);
	font-size: 17px;
	line-height: 1.72;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a {
	color: var(--im-primary-dark);
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: underline;
}

h1, h2, h3 {
	font-family: var(--im-font-head);
	font-weight: var(--im-fw-heading);
	line-height: var(--im-lh-heading);
	letter-spacing: var(--im-track-head);
	color: var(--im-text);
}

.im-container {
	width: 100%;
	max-width: var(--im-maxw);
	margin-inline: auto;
	padding-inline: 20px;
}

.site-content {
	min-height: 40vh;
}

.im-section {
	padding-block: clamp(2rem, 5vw, 3.5rem);
}

.im-section--alt {
	background: var(--im-surface-alt);
}

.im-section-title {
	font-size: clamp(1.4rem, 3vw, 1.9rem);
	margin: 0 0 1.2rem;
}

/* Signature brand mark: every section title carries a small gold accent rule
   above it, tying the whole site together. */
.im-section-title { margin-bottom: 1.4rem; }

.im-section-title::before {
	content: "";
	display: block;
	width: 42px;
	height: 3px;
	border-radius: 3px;
	background: var(--im-gradient-gold);
	margin-bottom: 0.7rem;
}

/* Accesibilidad */
.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	width: 1px;
	height: 1px;
	overflow: hidden;
	white-space: nowrap;
	border: 0;
	padding: 0;
	margin: -1px;
}

.im-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	background: var(--im-primary);
	color: var(--im-on-primary);
	padding: 10px 16px;
	border-radius: 0 0 var(--im-radius-sm) 0;
}

.im-skip-link:focus {
	left: 0;
}

:focus-visible {
	outline: 3px solid var(--im-primary);
	outline-offset: 2px;
}

/* -------------------------------------------------- Header / nav */
.im-site-header {
	background: rgba(255, 255, 255, 0.82);
	-webkit-backdrop-filter: saturate(140%) blur(12px);
	backdrop-filter: saturate(140%) blur(12px);
	border-bottom: 1px solid transparent;
	position: sticky;
	top: 0;
	z-index: var(--im-z-header);
	transition: border-color var(--im-transition), box-shadow var(--im-transition), background var(--im-transition);
}

/* Subtle hairline + lift once the page is scrolled (added by main.js). */
.im-site-header.is-scrolled {
	background: rgba(255, 255, 255, 0.92);
	border-bottom-color: var(--im-border);
	box-shadow: var(--im-shadow-xs);
}

.im-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--im-header-h);
}

.im-site-title {
	font-family: var(--im-font-head);
	font-size: 1.45rem;
	font-weight: 600;
	color: var(--im-primary-dark);
	text-decoration: none;
	letter-spacing: 0.2px;
}

.im-nav {
	display: flex;
	align-items: center;
	margin-left: auto;
}

/* Animated hamburger → X. */
.im-nav__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--im-tap);
	height: var(--im-tap);
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0;
	color: var(--im-text);
	border-radius: var(--im-radius-pill);
	transition: background var(--im-transition);
}

.im-nav__toggle:hover { background: var(--im-surface-alt); }

.im-nav__bars,
.im-nav__bars::before,
.im-nav__bars::after {
	display: block;
	width: 24px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	content: "";
	transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.2s ease;
}

.im-nav__bars { position: relative; }
.im-nav__bars::before { transform: translateY(-7px); }
.im-nav__bars::after { transform: translateY(5px); }

.im-nav.is-open .im-nav__bars { background: transparent; }
.im-nav.is-open .im-nav__bars::before { transform: translateY(0) rotate(45deg); }
.im-nav.is-open .im-nav__bars::after { transform: translateY(-2px) rotate(-45deg); }

/* Backdrop behind the mobile drawer. */
.im-nav__backdrop {
	position: fixed;
	inset: 0;
	background: var(--im-overlay);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: calc(var(--im-z-modal) - 1);
	transition: opacity var(--im-transition-slow), visibility var(--im-transition-slow);
}
.im-nav.is-open .im-nav__backdrop {
	opacity: 0.55;
	visibility: visible;
	pointer-events: auto;
}

/* Mobile drawer panel (slides in from the right). */
.im-nav__panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(86vw, 360px);
	background: var(--im-surface);
	box-shadow: var(--im-shadow-lg);
	z-index: var(--im-z-modal);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform var(--im-transition-slow);
	overflow-y: auto;
	overscroll-behavior: contain;
}
.im-nav.is-open .im-nav__panel { transform: translateX(0); }

.im-nav__panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--im-border);
}
.im-nav__panel-brand { line-height: 0; }
.im-nav__panel-brand .im-logo { height: 34px; }

.im-nav__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	font-size: 1.7rem;
	line-height: 1;
	color: var(--im-muted);
	background: var(--im-surface-alt);
	border: 0;
	border-radius: var(--im-radius-pill);
	cursor: pointer;
	transition: background var(--im-transition), color var(--im-transition);
}
.im-nav__close:hover { background: var(--im-blush-soft); color: var(--im-text); }

.im-nav__list {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	display: flex;
	flex-direction: column;
}

.im-nav__list li { border-top: 1px solid var(--im-border); }
.im-nav__list li:first-child { border-top: 0; }

.im-nav__list a {
	display: block;
	padding: 15px 22px;
	color: var(--im-text);
	font-weight: var(--im-fw-bold);
	text-decoration: none;
	transition: background var(--im-transition), color var(--im-transition);
}

.im-nav__list a:hover,
.im-nav__list .current-menu-item > a {
	background: var(--im-blush-soft);
	color: var(--im-primary-dark);
}

.im-nav__panel-foot {
	margin-top: auto;
	padding: 18px 22px;
	border-top: 1px solid var(--im-border);
}

/* Header actions cluster (language switcher + CTA). */
.im-header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}
.im-header-cta { display: none; }
/* On mobile the language switcher lives inside the drawer foot, not the bar. */
.im-header-actions .im-langs { display: none; }

/* -------------------------------------------------- Brand logo (SVG lockup) */
.im-site-title--logo { display: inline-flex; align-items: center; line-height: 0; }
.im-logo { display: block; height: 42px; width: auto; }
.im-mark { display: block; }

/* Footer brand title with mark. */
.im-footer-title { display: inline-flex; align-items: center; gap: 10px; }
.im-footer-title .im-mark { flex: none; }

/* -------------------------------------------------- Hero */
.im-hero {
	position: relative;
	background: var(--im-gradient-hero);
	padding-block: clamp(3rem, 8vw, 5.5rem);
	text-align: center;
	overflow: hidden;
	border-bottom: 1px solid var(--im-border);
}

/* Soft decorative glows (charter: calm, premium — never neon). */
.im-hero::before,
.im-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 0.55;
	z-index: 0;
	pointer-events: none;
}
.im-hero::before {
	width: 340px;
	height: 340px;
	top: -120px;
	left: -80px;
	background: var(--im-primary-soft);
}
.im-hero::after {
	width: 300px;
	height: 300px;
	right: -90px;
	bottom: -140px;
	background: var(--im-mint);
	opacity: 0.4;
}

.im-hero .im-container { position: relative; z-index: 1; }

/* Oversized brand mark, bled off the edge as a faint watermark motif. */
.im-hero__watermark {
	position: absolute;
	top: 50%;
	right: -120px;
	z-index: 0;
	line-height: 0;
	opacity: 0.06;
	transform: translateY(-50%) rotate(-8deg);
	pointer-events: none;
}
.im-hero__watermark .im-mark { width: clamp(280px, 42vw, 560px); height: auto; }

/* Whisper-fine paper grain for tactile, premium depth (charter: subtle). */
.im-hero__grain {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0.06;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Block so it sits on its own line above the eyebrow pill (which is
   inline-flex) and stays centered. */
.im-hero__mark { display: block; margin: 0 auto 16px; }
.im-hero__mark .im-mark { margin: 0 auto; width: clamp(58px, 11vw, 80px); height: auto; }

.im-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: var(--im-fs-sm);
	font-weight: var(--im-fw-bold);
	color: var(--im-primary-dark);
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid var(--im-blush-border);
	border-radius: var(--im-radius-pill);
	padding: 7px 16px;
	margin: 0 0 1.1rem;
}

.im-hero__eyebrow::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--im-primary);
	flex: none;
}

.im-hero__title {
	font-size: var(--im-fs-hero);
	line-height: 1.08;
	letter-spacing: -0.025em;
	margin: 0 0 0.7rem;
	color: var(--im-text);
}

/* Editorial accent: the closing phrase in italic Playfair, gold ink. Solid
   gold-dark by default (AA on the light hero); a subtle metallic gradient is
   layered in only where background-clip:text is supported. */
.im-hero__accent {
	font-style: italic;
	font-weight: 500;
	color: var(--im-primary-dark);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.im-hero__accent {
		background: linear-gradient(120deg, #9c7d36, var(--im-primary-dark));
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
	}
}

.im-hero__subtitle {
	font-size: 1.1rem;
	color: var(--im-muted);
	margin: 0 auto 1rem;
	max-width: 40ch;
}

.im-hero__intro {
	max-width: 60ch;
	margin: 0 auto;
	color: var(--im-text);
}

.im-hero__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
	justify-content: center;
	margin: 28px 0 0;
	color: var(--im-text);
	font-size: var(--im-fs-sm);
}

.im-hero__trust span {
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-weight: var(--im-fw-bold);
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid var(--im-border);
	border-radius: var(--im-radius-pill);
	padding: 7px 15px;
}
.im-hero__trust .im-icon { color: var(--im-primary-dark); flex: none; }

/* Line-art UI icons (charter §6.2): thin slate strokes by default. */
.im-icon { display: inline-block; vertical-align: middle; color: var(--im-text); }

/* -------------------------------------------------- Buttons */
.im-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-align: center;
	border-radius: var(--im-radius-pill);
	padding: 13px 26px;
	cursor: pointer;
	border: 1px solid transparent;
	-webkit-tap-highlight-color: transparent;
	transition: transform var(--im-transition), box-shadow var(--im-transition), background-color var(--im-transition), background-position 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), border-color var(--im-transition), color var(--im-transition), filter var(--im-transition);
	text-decoration: none;
	line-height: 1.2;
}

.im-btn:focus-visible { outline: 3px solid var(--im-primary); outline-offset: 3px; }

/* Primary — brushed Muted Gold. Smooth diagonal gradient (no banding), a
 * faint top rim-light for definition and a soft gold shadow for lift. A
 * translucent light stripe is parked off-screen and sweeps across on hover
 * (kept on the background layer, below the label — never glossy/neon). */
.im-btn--primary {
	background-image:
		linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.45) 50%, transparent 66%),
		var(--im-gradient-gold);
	background-size: 250% 100%, 100% 100%;
	background-position: 200% 0, 0 0;
	background-repeat: no-repeat;
	color: var(--im-on-primary);
	border-color: rgba(132, 106, 43, 0.32);
	box-shadow: 0 4px 14px rgba(197, 160, 101, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.im-btn--primary:hover,
.im-btn--primary:focus-visible {
	color: var(--im-on-primary);
	text-decoration: none;
	transform: translateY(-3px) scale(1.018);
	filter: saturate(1.07) brightness(1.04);
	background-position: -60% 0, 0 0;
	box-shadow: 0 14px 32px rgba(197, 160, 101, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.im-btn--primary:active {
	transform: translateY(-1px) scale(0.995);
	filter: brightness(0.98);
	box-shadow: 0 3px 10px rgba(197, 160, 101, 0.30), inset 0 1px 2px rgba(132, 106, 43, 0.20);
}

/* Secondary — clean outline pill on white; on hover it warms to a soft gold
 * wash, the rim turns gold and it lifts with a matching gold glow. */
.im-btn--secondary {
	background-color: var(--im-surface);
	background-image: none;
	color: var(--im-primary-dark);
	border-color: var(--im-border-gold);
	box-shadow: var(--im-shadow-xs);
}

.im-btn--secondary:hover,
.im-btn--secondary:focus-visible {
	border-color: var(--im-primary);
	background-color: var(--im-blush-soft);
	background-image: var(--im-gradient-cta);
	color: var(--im-primary-dark);
	text-decoration: none;
	transform: translateY(-3px) scale(1.018);
	box-shadow: 0 10px 24px rgba(197, 160, 101, 0.24);
}

.im-btn--secondary:active { transform: translateY(-1px) scale(0.995); box-shadow: var(--im-shadow-xs); }

.im-btn--sm {
	padding: 9px 18px;
	font-size: 0.92rem;
}

.im-btn--lg {
	padding: 16px 34px;
	font-size: 1.1rem;
	width: 100%;
}

/* -------------------------------------------------- Category grid */
.im-cat-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.im-cat-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	background: var(--im-surface);
	border: 1px solid var(--im-border);
	border-radius: var(--im-radius);
	padding: 22px;
	padding-right: 44px;
	text-decoration: none;
	color: var(--im-text);
	overflow: hidden;
	transition: box-shadow var(--im-transition), transform var(--im-transition), border-color var(--im-transition);
}

/* Soft blush wash that reveals on hover, plus a left accent rail. */
.im-cat-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--im-gradient-cta);
	opacity: 0;
	transition: opacity var(--im-transition);
	z-index: 0;
}

.im-cat-card::after {
	content: "→";
	position: absolute;
	top: 50%;
	right: 18px;
	transform: translateY(-50%) translateX(-4px);
	color: var(--im-primary-dark);
	font-size: 1.1rem;
	opacity: 0;
	transition: opacity var(--im-transition), transform var(--im-transition);
	z-index: 1;
}

.im-cat-card:hover {
	box-shadow: var(--im-shadow-md);
	transform: translateY(-3px);
	border-color: var(--im-border-gold);
	text-decoration: none;
}

.im-cat-card:hover::before { opacity: 1; }
.im-cat-card:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }

.im-cat-card__name {
	position: relative;
	z-index: 1;
	font-weight: 600;
	font-family: var(--im-font-head);
	font-size: 1.15rem;
}

.im-cat-card__count {
	position: relative;
	z-index: 1;
	color: var(--im-muted);
	font-size: 0.9rem;
}

/* -------------------------------------------------- Product grid */
.im-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

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

.im-card:hover {
	box-shadow: var(--im-shadow);
	transform: translateY(-2px);
}

.im-card--agotado {
	opacity: 0.72;
}

.im-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--im-surface-alt);
}

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

.im-card__badge,
.im-badge {
	position: absolute;
	top: 10px;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 4px 9px;
	border-radius: 999px;
	color: var(--im-on-primary);
}

.im-badge--oferta { left: 10px; background: var(--im-accent); }
.im-badge--agotado { right: 10px; background: var(--im-muted); }

.im-card__body {
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.im-card__brand {
	margin: 0;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--im-muted);
}

.im-card__title {
	font-size: 1rem;
	margin: 0;
	font-family: var(--im-font);
	font-weight: 600;
	line-height: 1.35;
}

.im-card__title a {
	color: var(--im-text);
	text-decoration: none;
}

.im-card__price {
	margin: 2px 0 8px;
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.im-card__price-now {
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--im-primary-dark);
}

.im-card__price-old {
	color: var(--im-muted);
	text-decoration: line-through;
	font-size: 0.9rem;
}

.im-card__cta {
	margin-top: auto;
}

/* -------------------------------------------------- Toolbar / sort */
.im-grid-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--im-border);
}

.im-grid-toolbar__count {
	color: var(--im-muted);
	font-size: 0.92rem;
}

.im-grid-toolbar__sort {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-size: 0.9rem;
}

.im-sort-link {
	padding: 5px 11px;
	border-radius: 999px;
	border: 1px solid var(--im-border);
	color: var(--im-muted);
	text-decoration: none;
}

.im-sort-link.is-active {
	background: var(--im-primary);
	color: var(--im-on-primary);
	border-color: var(--im-primary);
}

/* -------------------------------------------------- Archive / header */
.im-archive,
.im-single,
.im-comparativa-page {
	padding-block: var(--im-space-xl) var(--im-section-y);
}

.im-archive__title {
	font-size: clamp(1.7rem, 5vw, 2.6rem);
	margin: 0.2em 0 0.5em;
}

.im-archive__intro {
	background: var(--im-surface);
	border: 1px solid var(--im-border);
	border-radius: var(--im-radius);
	padding: 20px 22px;
	margin-bottom: 26px;
}

.im-archive__grid {
	margin-block: var(--im-flow);
}

/* -------------------------------------------------- Prose */
.im-prose {
	max-width: 70ch;
}

.im-prose p { margin: 0 0 1em; }
.im-prose h2 { margin-top: 1.5em; }
.im-prose ul { padding-left: 1.2em; }

/* -------------------------------------------------- Breadcrumb */
.im-breadcrumb {
	font-size: 0.86rem;
	color: var(--im-muted);
	margin-bottom: 6px;
}

.im-breadcrumb__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0;
	margin: 0;
}

.im-breadcrumb__item:not(:last-child)::after {
	content: "›";
	margin-left: 6px;
	color: var(--im-border);
}

.im-breadcrumb__item a { color: var(--im-muted); }
.im-breadcrumb__item [aria-current="page"] { color: var(--im-text); font-weight: 600; }

/* -------------------------------------------------- Comparison table */
.im-comparativa {
	margin-block: var(--im-flow);
}

.im-comparativa__scroll {
	overflow-x: auto;
	border: 1px solid var(--im-border-gold); /* premium fine gold border (charter §7.2) */
	border-radius: var(--im-radius);
	background: var(--im-surface);
}

.im-comparativa__table {
	width: 100%;
	border-collapse: collapse;
	min-width: 540px;
}

.im-comparativa__table th,
.im-comparativa__table td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--im-border);
	text-align: center;
	vertical-align: middle;
}

.im-comparativa__table tbody th[scope="row"] {
	text-align: left;
	font-weight: 600;
	color: var(--im-muted);
	background: var(--im-surface-alt);
	white-space: nowrap;
}

.im-comparativa__product {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: var(--im-text);
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 600;
}

.im-comparativa__product img {
	border-radius: var(--im-radius-sm);
	width: 90px;
	height: 90px;
	object-fit: cover;
}

.im-comparativa__price { font-weight: 700; color: var(--im-primary-dark); }

/* -------------------------------------------------- Buying criteria */
.im-criterios {
	margin-block: var(--im-flow);
	background: var(--im-surface);
	border: 1px solid var(--im-border);
	border-radius: var(--im-radius);
	padding: 22px;
}

.im-criterios__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}

.im-criterios__item {
	padding-left: 30px;
	position: relative;
}

.im-criterios__item::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--im-success);
	font-weight: 700;
}

/* -------------------------------------------------- FAQ */
.im-faq { margin-block: var(--im-flow); }

.im-faq__item {
	border: 1px solid var(--im-border);
	border-radius: var(--im-radius-sm);
	background: var(--im-surface);
	margin-bottom: 10px;
	padding: 4px 16px;
}

.im-faq__q {
	cursor: pointer;
	font-weight: 600;
	padding: 12px 0;
	list-style: none;
}

.im-faq__q::-webkit-details-marker { display: none; }

.im-faq__q::before {
	content: "+";
	margin-right: 10px;
	color: var(--im-primary);
	font-weight: 700;
}

.im-faq__item[open] .im-faq__q::before { content: "–"; }

.im-faq__a { padding: 0 0 14px; color: var(--im-text); }

/* -------------------------------------------------- Chips / related */
.im-relacionados { margin-block: var(--im-flow); }

.im-relacionados__group { margin-bottom: 18px; }

.im-relacionados__label {
	font-size: 0.95rem;
	color: var(--im-muted);
	margin: 0 0 8px;
	font-family: var(--im-font);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.im-chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.im-chip {
	display: inline-block;
	padding: 7px 14px;
	background: var(--im-surface);
	border: 1px solid var(--im-border);
	border-radius: 999px;
	color: var(--im-text);
	font-size: 0.9rem;
	text-decoration: none;
}

.im-chip:hover {
	border-color: var(--im-primary);
	color: var(--im-primary-dark);
	text-decoration: none;
}

.im-chips--lg .im-chip { padding: 10px 18px; font-size: 1rem; }

/* -------------------------------------------------- Product (single) */
.im-product__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--im-space-lg);
	margin-top: 14px;
}

.im-product__media {
	position: relative;
	background: var(--im-surface);
	border: 1px solid var(--im-border);
	border-radius: var(--im-radius);
	overflow: hidden;
}

.im-product__image {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.im-product__brand {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--im-muted);
	font-size: 0.85rem;
	margin: 0 0 4px;
}

.im-product__title {
	font-size: clamp(1.5rem, 4vw, 2.1rem);
	margin: 0 0 14px;
}

.im-product__price-row {
	display: flex;
	align-items: baseline;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.im-product__price {
	font-size: 1.9rem;
	font-weight: 700;
	color: var(--im-primary-dark);
}

.im-product__price-old {
	text-decoration: line-through;
	color: var(--im-muted);
}

.im-product__stock {
	font-size: 0.85rem;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
}

.im-product__stock.is-in { background: var(--im-success-tint); color: var(--im-success); }
.im-product__stock.is-out { background: var(--im-danger-tint); color: var(--im-danger); }

.im-product__cta-note {
	font-size: 0.85rem;
	color: var(--im-muted);
	margin: 8px 0 0;
}

.im-specs-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 8px;
}

.im-specs-table th,
.im-specs-table td {
	padding: 9px 12px;
	border-bottom: 1px solid var(--im-border);
	text-align: left;
	font-size: 0.95rem;
}

.im-specs-table th {
	color: var(--im-muted);
	font-weight: 600;
	width: 42%;
}

.im-product__description { margin-top: 0; }
.im-similares { margin-top: var(--im-flow); }

/* -------------------------------------------------- Disclosure / age */
.im-disclosure {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	background: var(--im-surface-alt);
	border: 1px solid var(--im-border);
	border-radius: var(--im-radius-sm);
	padding: 12px 16px;
	font-size: 0.85rem;
	color: var(--im-muted);
	margin-block: 18px;
}

.im-disclosure__icon { color: var(--im-primary); font-weight: 700; }
.im-disclosure__text { margin: 0; }

.im-aviso-edad {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.82rem;
	color: var(--im-muted);
	border-top: 1px solid var(--im-blush-border);
	padding-top: 16px;
	margin-top: 16px;
}

.im-aviso-edad__badge {
	background: var(--im-primary);
	color: var(--im-on-primary);
	font-weight: 700;
	border-radius: 6px;
	padding: 2px 8px;
	font-size: 0.78rem;
}

/* -------------------------------------------------- Pagination */
.im-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin-top: 28px;
}

.im-pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--im-border);
	border-radius: var(--im-radius-sm);
	color: var(--im-text);
	text-decoration: none;
}

.im-pagination .current {
	background: var(--im-primary);
	color: var(--im-on-primary);
	border-color: var(--im-primary);
}

/* -------------------------------------------------- Empty */
.im-empty {
	background: var(--im-surface);
	border: 1px dashed var(--im-border);
	border-radius: var(--im-radius);
	padding: 28px;
	text-align: center;
	color: var(--im-muted);
}

/* -------------------------------------------------- Age gate */
.im-agegate-backdrop {
	position: fixed;
	inset: 0;
	background: var(--im-overlay);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 20px;
}

.im-agegate {
	/* Full-screen slate interstitial (charter §8.1): the box sits on the
	   near-solid slate backdrop, white text, no competing surface. */
	background: transparent;
	color: var(--im-on-dark);
	max-width: 460px;
	width: 100%;
	padding: 32px 28px;
	text-align: center;
}

.im-agegate h2 {
	margin-top: 0;
	color: var(--im-on-dark);
}

.im-agegate p { color: var(--im-dark-text); }

.im-agegate__actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-top: 22px;
	flex-wrap: wrap;
}

/* Secondary "Salir" button reads on the dark slate backdrop. */
.im-agegate .im-btn--secondary {
	color: var(--im-on-dark);
	border-color: rgba(255, 255, 255, 0.4);
}
.im-agegate .im-btn--secondary:hover {
	border-color: var(--im-on-dark);
}

/* -------------------------------------------------- Footer (Intimo Blush) */
.im-site-footer {
	position: relative;
	background: linear-gradient(180deg, var(--im-blush-soft), var(--im-blush));
	color: var(--im-text);
	margin-top: 64px;
	padding-block: 48px 28px;
}

/* Thin gold accent rule across the top edge of the footer. */
.im-site-footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--im-gradient-gold);
}

.im-site-footer a { color: var(--im-primary-dark); }
.im-site-footer a:hover { color: var(--im-text); }

.im-footer-title {
	font-family: var(--im-font-head);
	font-size: 1.35rem;
	color: var(--im-text);
}

.im-footer-tagline {
	color: var(--im-text);
	margin: 8px 0 0;
	font-size: 0.95rem;
	font-style: italic;
}

.im-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 22px;
}

.im-footer-copy {
	font-size: 0.82rem;
	color: var(--im-muted);
	margin: 0;
	max-width: 70ch;
}

.im-footer-top {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 0.82rem;
	font-weight: var(--im-fw-bold);
	color: var(--im-primary-dark);
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid var(--im-blush-border);
	border-radius: var(--im-radius-pill);
	padding: 7px 15px;
	white-space: nowrap;
	transition: background var(--im-transition), transform var(--im-transition);
}
.im-footer-top:hover { background: #fff; transform: translateY(-1px); text-decoration: none; }

/* -------------------------------------------------- Breakpoints */
@media (min-width: 600px) {
	.im-grid { grid-template-columns: repeat(3, 1fr); }
	.im-cat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 782px) {
	.im-nav__toggle,
	.im-nav__backdrop,
	.im-nav__panel-head,
	.im-nav__panel-foot { display: none; }

	/* Drawer collapses back into an inline horizontal menu. */
	.im-nav__panel {
		position: static;
		width: auto;
		transform: none;
		background: transparent;
		box-shadow: none;
		overflow: visible;
		flex-direction: row;
	}

	.im-nav__list {
		flex-direction: row;
		padding: 0;
		gap: 2px;
	}

	.im-nav__list li { border: 0; }

	.im-nav__list a {
		position: relative;
		padding: 8px 14px;
		border-radius: var(--im-radius-sm);
		font-size: 0.96rem;
		font-weight: var(--im-fw-bold);
	}

	.im-nav__list a::after {
		content: "";
		position: absolute;
		left: 14px;
		right: 14px;
		bottom: 3px;
		height: 2px;
		border-radius: 2px;
		background: var(--im-primary);
		transform: scaleX(0);
		transform-origin: left center;
		transition: transform var(--im-transition);
	}

	.im-nav__list a:hover,
	.im-nav__list .current-menu-item > a,
	.im-nav__list .current-menu-parent > a {
		background: transparent;
		color: var(--im-primary-dark);
	}

	.im-nav__list a:hover::after,
	.im-nav__list .current-menu-item > a::after,
	.im-nav__list .current-menu-parent > a::after { transform: scaleX(1); }

	.im-header-cta { display: inline-flex; }
	.im-header-actions .im-langs { display: flex; }

	.im-grid { grid-template-columns: repeat(4, 1fr); }
	.im-cat-grid { grid-template-columns: repeat(4, 1fr); }

	.im-product__layout {
		grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.86fr);
		gap: var(--im-space-xl);
		align-items: start;
		grid-template-areas:
			"media info"
			"specs info"
			"desc  info";
	}
	.im-product__media { grid-area: media; }
	.im-product__info {
		grid-area: info;
		position: sticky;
		top: calc(var(--im-header-h) + var(--im-space-md));
		align-self: start;
	}
	.im-product__specs { grid-area: specs; }
	.im-product__description { grid-area: desc; }
}

@media (min-width: 1024px) {
	.im-product__layout { grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: clamp(2rem, 4vw, 3.5rem); }
}

/* -------------------------------------------------- Body scroll lock (mobile menu) */
body.im-no-scroll { overflow: hidden; }

/* -------------------------------------------------- Language switcher */
.im-langs {
	list-style: none;
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
}

.im-lang {
	display: inline-block;
	padding: 4px 9px;
	border-radius: var(--im-radius-pill);
	font-size: var(--im-fs-sm);
	font-weight: var(--im-fw-bold);
	color: var(--im-muted);
	text-decoration: none;
	border: 1px solid var(--im-border);
}

.im-lang.is-current {
	background: var(--im-primary);
	color: var(--im-on-primary);
	border-color: var(--im-primary);
}

/* Inside the dark footer column, soften the switcher. */
.im-site-footer .im-lang { color: var(--im-text); border-color: var(--im-blush-border); }

/* -------------------------------------------------- Submenu (nav dropdowns) */
.im-submenu-toggle {
	background: none;
	border: 0;
	cursor: pointer;
	color: inherit;
	padding: 0 8px;
}

/* Desktop: show submenus as hover/focus dropdowns; hide the mobile caret. */
@media (min-width: 782px) {
	.im-submenu-toggle { display: none; }

	.im-nav__list .menu-item-has-children { position: relative; }

	.im-nav__list .sub-menu {
		list-style: none;
		margin: 0;
		padding: 8px;
		position: absolute;
		top: calc(100% + 6px);
		left: 0;
		min-width: 220px;
		background: var(--im-surface);
		border: 1px solid var(--im-border);
		border-radius: var(--im-radius);
		box-shadow: var(--im-shadow-md);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity var(--im-transition), transform var(--im-transition), visibility var(--im-transition);
		z-index: var(--im-z-header);
	}

	.im-nav__list .menu-item-has-children:hover > .sub-menu,
	.im-nav__list .menu-item-has-children:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.im-nav__list .sub-menu a { padding: 9px 12px; border-radius: var(--im-radius-sm); font-weight: 500; }
	.im-nav__list .sub-menu a::after { display: none; }
	.im-nav__list .sub-menu a:hover { background: var(--im-blush-soft); }
}

/* Mobile: submenus collapsed by default, expanded via the caret button. */
@media (max-width: 781px) {
	.im-nav__list .sub-menu {
		list-style: none;
		margin: 0;
		padding: 0 0 0 16px;
		display: none;
	}
	.im-nav__list .menu-item-has-children.is-open > .sub-menu { display: block; }
	.im-nav__list .menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
	.im-nav__list .menu-item-has-children > a { flex: 1; }
	.im-nav__list .menu-item-has-children > .sub-menu { flex-basis: 100%; }
}

/* -------------------------------------------------- Hero CTA */
.im-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-top: 22px;
}

/* Full width on phones; side by side (auto) from sm up. */
.im-hero__cta .im-btn,
.im-hero__cta .im-btn--lg { width: 100%; }

@media (min-width: 600px) {
	.im-hero__cta .im-btn,
	.im-hero__cta .im-btn--lg { width: auto; }
}

/* -------------------------------------------------- Features / value props */
.im-features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.im-feature {
	display: flex;
	flex-direction: column;
	gap: 4px;
	background: var(--im-surface);
	border: 1px solid var(--im-border);
	border-radius: var(--im-radius);
	padding: 22px;
	transition: box-shadow var(--im-transition), transform var(--im-transition), border-color var(--im-transition);
}

.im-feature:hover {
	box-shadow: var(--im-shadow-md);
	transform: translateY(-3px);
	border-color: var(--im-border-gold);
}

.im-feature__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: var(--im-radius-pill);
	background: linear-gradient(150deg, var(--im-mint), var(--im-blush-soft));
	color: var(--im-text);
	margin-bottom: 10px;
}
.im-feature__icon .im-icon { color: var(--im-primary-dark); }
.im-feature__title { font-family: var(--im-font-head); font-weight: var(--im-fw-bold); font-size: 1.08rem; }
.im-feature__text { color: var(--im-muted); font-size: var(--im-fs-sm); margin-top: 2px; }

/* -------------------------------------------------- CTA band */
.im-cta-band {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 18px;
	align-items: flex-start;
	background: var(--im-gradient-cta);
	border: 1px solid var(--im-blush-border);
	border-radius: var(--im-radius);
	padding: clamp(26px, 4vw, 40px);
	overflow: hidden;
}

.im-cta-band::before {
	content: "";
	position: absolute;
	width: 220px;
	height: 220px;
	right: -70px;
	top: -90px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
	filter: blur(10px);
	pointer-events: none;
}

.im-cta-band > * { position: relative; z-index: 1; }
.im-cta-band__text h2 { margin: 0 0 6px; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.im-cta-band__text p { margin: 0; color: var(--im-text); opacity: 0.85; max-width: 52ch; }

/* -------------------------------------------------- Footer columns */
.im-footer-cols {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--im-blush-border);
}

.im-footer-col__title {
	font-family: var(--im-font-head);
	font-size: 1.08rem;
	color: var(--im-text);
	margin: 0 0 14px;
}

.im-footer-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.im-footer-list a {
	display: inline-block;
	font-size: 0.95rem;
	transition: transform var(--im-transition), color var(--im-transition);
}
.im-footer-list a:hover { transform: translateX(3px); }

.im-footer-blurb { color: var(--im-muted); font-size: var(--im-fs-sm); margin: 12px 0 0; max-width: 40ch; }
.im-footer-col--brand .im-footer-title .im-mark { flex: none; }

/* -------------------------------------------------- Generic page template */
.im-page { padding-block: 28px 48px; }
.im-page__title { font-size: var(--im-fs-h1); margin: 0.2em 0 0.6em; }
.im-page__content { } /* prose handled by .im-prose */
.im-page__children { margin-top: 32px; }

/* -------------------------------------------------- 404 */
.im-404 { padding-block: 0 56px; text-align: center; }

.im-404__head {
	position: relative;
	background: var(--im-gradient-hero);
	border: 1px solid var(--im-border);
	border-radius: var(--im-radius);
	padding: clamp(2.2rem, 6vw, 3.6rem) 24px;
	margin-top: 32px;
	overflow: hidden;
}

.im-404__head::before {
	content: "";
	position: absolute;
	width: 280px;
	height: 280px;
	top: -120px;
	right: -80px;
	border-radius: 50%;
	background: var(--im-primary-soft);
	filter: blur(60px);
	opacity: 0.5;
	pointer-events: none;
}
.im-404__head > * { position: relative; z-index: 1; }

.im-404__code {
	font-family: var(--im-font-head);
	font-weight: 600;
	font-size: clamp(4.5rem, 18vw, 9rem);
	line-height: 0.9;
	margin: 0 0 0.1em;
	background: var(--im-gradient-gold);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--im-primary);
}
.im-404__title { font-size: var(--im-fs-h1); margin: 0 0 0.4em; }
.im-404__lead { color: var(--im-muted); max-width: 52ch; margin: 0 auto 1.4em; }

.im-404__search { max-width: 440px; margin: 0 auto; }
.im-404__search form { display: flex; gap: 8px; align-items: stretch; }
.im-404__search label { flex: 1; min-width: 0; display: block; margin: 0; }
.im-404__search .search-field,
.im-404__search input[type="search"],
.im-404__search input[type="text"] {
	width: 100%;
	flex: 1;
	min-width: 0;
	padding: 12px 16px;
	border: 1px solid var(--im-border);
	border-radius: var(--im-radius-pill);
	background: var(--im-surface);
	font: inherit;
	color: var(--im-text);
}
.im-404__search .search-field:focus { outline: none; border-color: var(--im-primary); box-shadow: 0 0 0 3px var(--im-success-tint); }
.im-404__search .search-submit,
.im-404__search input[type="submit"],
.im-404__search button[type="submit"] {
	flex: none;
	padding: 12px 22px;
	border: 0;
	border-radius: var(--im-radius-pill);
	background: var(--im-gradient-gold);
	color: var(--im-on-primary);
	font-weight: 600;
	cursor: pointer;
	box-shadow: var(--im-shadow-gold);
}

.im-404__section { margin-top: 48px; text-align: left; }
.im-404__home { margin-top: 40px; }

/* -------------------------------------------------- Responsive */
/* On phones every CTA button spans the full width for easy thumb reach. */
@media (max-width: 599px) {
	.im-btn { display: flex; width: 100%; }
}

@media (min-width: 600px) {
	.im-features { grid-template-columns: repeat(2, 1fr); }
	.im-cta-band { flex-direction: row; align-items: center; justify-content: space-between; }
	.im-cta-band .im-btn { flex: none; }
}

@media (min-width: 782px) {
	.im-features { grid-template-columns: repeat(4, 1fr); }
	.im-footer-cols { grid-template-columns: 2fr 1fr 1fr; }
	.im-footer-cols:has(.im-footer-col:nth-child(4)) { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ============================================================================
 * BRAND SYSTEM — site-wide identity polish (consumes charter tokens only).
 * Applies the Intimovera signature — gold accents, the "iv" mark, a Playfair
 * editorial voice — consistently across category, product, comparison and
 * content pages so every screen feels unmistakably on-brand.
 * ========================================================================= */

::selection { background: var(--im-primary-soft); color: var(--im-text); }

/* --- Page header (category / facet / comparison / catalog / content) ------ */
.im-archive__header,
.im-page__header {
	margin-bottom: 1.6rem;
	padding-bottom: 1.4rem;
	border-bottom: 1px solid var(--im-border);
}

.im-archive__title,
.im-page__title {
	font-size: clamp(1.9rem, 5vw, 2.9rem);
	letter-spacing: var(--im-track-head);
	margin: 0;
}

/* Branded kicker: the brand mark + a small-caps gold label above the H1. */
.im-page-kicker {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 0.55rem;
	font-size: var(--im-fs-sm);
	font-weight: var(--im-fw-bold);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--im-primary-dark);
}
.im-page-kicker .im-mark { flex: none; width: 9px; height: 9px; }

/* Content pages (legal/about/guides) carry no kicker → a gold rule brands them. */
.im-page__header .im-page__title::before {
	content: "";
	display: block;
	width: 42px;
	height: 3px;
	border-radius: 3px;
	background: var(--im-gradient-gold);
	margin-bottom: 0.8rem;
}

/* --- Editorial intro (the anti-thin-content block) — make it a feature ----- */
.im-archive__intro {
	border: 1px solid var(--im-blush-border);
	border-left: 3px solid var(--im-primary);
	background: linear-gradient(180deg, var(--im-blush-soft), var(--im-surface) 60%);
	border-radius: var(--im-radius);
	padding: clamp(18px, 3vw, 26px);
}
.im-archive__intro > :first-child { margin-top: 0; }
.im-archive__intro > :last-child { margin-bottom: 0; }
/* First line reads as a lead. */
.im-archive__intro > p:first-of-type { font-size: var(--im-fs-lg); color: var(--im-text); }

/* --- Prose: branded links, headings, lists, quotes ------------------------ */
.im-prose a {
	color: var(--im-primary-dark);
	text-decoration: underline;
	text-decoration-color: var(--im-border-gold);
	text-underline-offset: 3px;
	transition: text-decoration-color var(--im-transition);
}
.im-prose a:hover { text-decoration-color: var(--im-primary); }

.im-prose h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
.im-prose h2::before {
	content: "";
	display: inline-block;
	width: 22px;
	height: 2px;
	vertical-align: middle;
	margin-right: 10px;
	border-radius: 2px;
	background: var(--im-primary);
}
.im-prose h3 { color: var(--im-primary-dark); }

.im-prose ul { list-style: none; padding-left: 0; }
.im-prose ul li { position: relative; padding-left: 26px; margin-bottom: 0.4em; }
.im-prose ul li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 0.62em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--im-primary);
}

.im-prose blockquote {
	margin: 1.4em 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--im-primary);
	color: var(--im-muted);
	font-style: italic;
}

/* --- Product card: premium framing + brand price -------------------------- */
.im-card__media { overflow: hidden; }
.im-card__media img { transition: transform var(--im-transition-slow); }
.im-card:hover .im-card__media img { transform: scale(1.05); }

.im-card__brand { color: var(--im-primary-dark); }
.im-card__price-now { font-size: 1.2rem; }

.im-card__cta { width: 100%; }
.im-card:hover .im-card__cta { border-color: var(--im-primary); background-color: var(--im-blush-soft); }

/* --- Product card refinement (zone 1): air + advancing-arrow CTA ----------- */
.im-card__body { padding: var(--im-space-md); gap: var(--im-space-xs); }
.im-card__cta { gap: var(--im-space-xs); }
.im-card__cta::after { content: "→"; transition: transform var(--im-transition); }
.im-card:hover .im-card__cta::after { transform: translateX(3px); }

/* --- Comparison table: branded header, zebra, hover ----------------------- */
.im-comparativa__scroll { box-shadow: var(--im-shadow); }
.im-comparativa__table thead th { background: linear-gradient(180deg, var(--im-blush-soft), var(--im-surface)); }
.im-comparativa__table tbody tr:hover td { background: var(--im-blush-soft); }
.im-comparativa__product img { border: 1px solid var(--im-border); }
.im-comparativa__name { font-family: var(--im-font); }

/* --- FAQ: branded accordion ----------------------------------------------- */
.im-faq__item { transition: border-color var(--im-transition), box-shadow var(--im-transition); }
.im-faq__item[open] { border-color: var(--im-border-gold); box-shadow: var(--im-shadow); }
.im-faq__q { transition: color var(--im-transition); }
.im-faq__q:hover { color: var(--im-primary-dark); }
.im-faq__q::before {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin-right: 12px;
	border-radius: 50%;
	background: var(--im-blush-soft);
	color: var(--im-primary-dark);
	font-size: 1rem;
	line-height: 1;
	vertical-align: -3px;
}
.im-faq__item[open] .im-faq__q::before { background: var(--im-primary); color: var(--im-on-primary); }

/* --- Buying criteria: branded panel, two columns, disc checks ------------- */
.im-criterios {
	background: linear-gradient(180deg, var(--im-blush-soft), var(--im-surface) 70%);
	border-color: var(--im-blush-border);
}
.im-criterios__item { padding-left: 34px; }
.im-criterios__item::before {
	content: "✓";
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--im-success-tint);
	color: var(--im-success);
	font-size: 0.78rem;
	font-weight: 700;
}

/* --- Chips: gold hover fill ----------------------------------------------- */
.im-chip { transition: background var(--im-transition), border-color var(--im-transition), color var(--im-transition), transform var(--im-transition); }
.im-chip:hover {
	background: var(--im-blush-soft);
	border-color: var(--im-primary);
	color: var(--im-primary-dark);
	transform: translateY(-1px);
}

/* --- Breadcrumb: gold separators + current ------------------------------- */
.im-breadcrumb { margin-bottom: 14px; }
.im-breadcrumb__item:not(:last-child)::after { color: var(--im-border-gold); }
.im-breadcrumb__item [aria-current="page"] { color: var(--im-primary-dark); }

/* --- Disclosure: gold info marker ----------------------------------------- */
.im-disclosure { border-left: 3px solid var(--im-border-gold); }
.im-disclosure__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	flex: none;
	border-radius: 50%;
	background: var(--im-primary-soft);
	color: var(--im-primary-dark);
	font-size: 0.78rem;
}

/* --- Single product: premium price, media, specs -------------------------- */
.im-product__price { font-size: clamp(1.9rem, 4vw, 2.3rem); }
.im-product__media { background: linear-gradient(180deg, var(--im-surface-alt), var(--im-surface)); }
.im-product__cta .im-btn { width: 100%; }
.im-specs-table tbody tr:nth-child(even) { background: var(--im-surface-alt); }
.im-comparativa-page__more { margin-top: 22px; font-weight: var(--im-fw-bold); }

/* --- Single product refinement (zone 2): premium buy panel + assurances --- */
.im-product__buybox {
	margin-top: var(--im-space-md);
	padding: var(--im-space-lg);
	background: linear-gradient(180deg, var(--im-blush-soft), var(--im-surface) 72%);
	border: 1px solid var(--im-blush-border);
	border-radius: var(--im-radius);
	box-shadow: var(--im-shadow);
}
.im-product__buybox .im-product__price-row { margin-bottom: var(--im-space-md); }
.im-product__buybox .im-product__cta { margin: 0; }
.im-product__assurances {
	list-style: none;
	margin: var(--im-space-md) 0 0;
	padding: var(--im-space-md) 0 0;
	border-top: 1px solid var(--im-blush-border);
	display: flex;
	flex-wrap: wrap;
	gap: var(--im-space-xs) var(--im-space-lg);
}
.im-product__assurances li {
	display: inline-flex;
	align-items: center;
	gap: var(--im-space-xs);
	font-size: var(--im-fs-sm);
	font-weight: var(--im-fw-bold);
	color: var(--im-text);
}
.im-product__assurances .im-icon { color: var(--im-primary-dark); flex: none; }

/* --- Comparison table refinement (zone 3): best column + sticky labels ----- */
/* Row labels stay readable while the table scrolls horizontally (mobile). */
.im-comparativa__table th[scope="row"],
.im-comparativa__rowhead {
	position: sticky;
	left: 0;
	z-index: 1;
}
.im-comparativa__rowhead { background: var(--im-surface); z-index: 2; }

/* Featured "best choice" column: soft gold wash + top accent + ribbon. */
.im-comparativa__table tbody td:nth-child(2) { background: var(--im-primary-tint); }
.im-comparativa__table tbody tr:hover td:nth-child(2) { background: var(--im-primary-tint-2); }
.im-comparativa__table thead th.im-comparativa__col--best {
	background: var(--im-primary-tint-2);
	box-shadow: inset 0 3px 0 var(--im-primary);
}
.im-comparativa__ribbon {
	display: inline-block;
	margin-bottom: var(--im-space-xs);
	padding: 3px 12px;
	border-radius: var(--im-radius-pill);
	background: var(--im-gradient-gold);
	color: var(--im-on-primary);
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Action row: full-width compact CTAs per product. */
.im-comparativa__cta-row td { padding-block: var(--im-space-md); }
.im-comparativa__cta-row .im-btn { width: 100%; padding-inline: var(--im-space-sm); font-size: var(--im-fs-sm); }

@media (min-width: 600px) {
	.im-criterios__list { grid-template-columns: 1fr 1fr; gap: 12px 28px; }
}

/* ============================================================================
 * EDITORIAL HOME — branded section openers, dark manifesto band, methodology
 * steps and a premium footer moment. Token-driven; ties the home into one
 * confident, magazine-like composition.
 * ========================================================================= */

/* Centered section opener: mark kicker + serif title + lede. */
.im-sec-head {
	max-width: 62ch;
	margin: 0 auto clamp(1.3rem, 3vw, 2rem);
	text-align: center;
}
.im-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 0.7rem;
	font-size: var(--im-fs-sm);
	font-weight: var(--im-fw-bold);
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--im-primary-dark);
}
.im-kicker__mark { line-height: 0; }
.im-kicker__mark .im-mark { width: 9px; height: 9px; }
.im-manifesto__mark .im-mark { width: 12px; height: 12px; }
.im-sec-head__title {
	font-size: clamp(1.7rem, 4vw, 2.5rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin: 0;
}
.im-sec-head__lede {
	max-width: 52ch;
	margin: 0.8rem auto 0;
	color: var(--im-muted);
	font-size: var(--im-fs-lg);
}

/* Warm section variant for rhythm. */
.im-section--blush { background: linear-gradient(180deg, var(--im-blush-soft), var(--im-bg)); }
.im-section--blush .im-chips { justify-content: center; }

/* --- Dark manifesto band -------------------------------------------------- */
.im-manifesto {
	position: relative;
	overflow: hidden;
	background: var(--im-gradient-warm);
	color: var(--im-text);
	text-align: center;
	padding-block: clamp(3rem, 6vw, 4.75rem);
}
.im-manifesto__watermark {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(-6deg);
	opacity: 0.1;
	z-index: 0;
	line-height: 0;
	pointer-events: none;
}
.im-manifesto .im-container { position: relative; z-index: 1; }
.im-manifesto__mark { display: inline-block; line-height: 0; margin-bottom: 18px; }
.im-manifesto__kicker {
	margin: 0 0 1.2rem;
	font-size: var(--im-fs-sm);
	font-weight: var(--im-fw-bold);
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--im-primary-dark);
}
.im-manifesto__quote {
	font-family: var(--im-font-head);
	font-style: italic;
	font-weight: 500;
	font-size: clamp(1.5rem, 4vw, 2.4rem);
	line-height: 1.34;
	letter-spacing: -0.01em;
	max-width: 28ch;
	margin: 0 auto;
	color: var(--im-text);
}
.im-manifesto__by {
	margin: 1.5rem 0 0;
	font-size: var(--im-fs-sm);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--im-muted);
}

/* --- Methodology steps ---------------------------------------------------- */
.im-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}
.im-step {
	position: relative;
	background: var(--im-surface);
	border: 1px solid var(--im-border);
	border-radius: var(--im-radius);
	padding: 26px 24px;
	transition: box-shadow var(--im-transition), transform var(--im-transition), border-color var(--im-transition);
}
.im-step:hover {
	box-shadow: var(--im-shadow-md);
	transform: translateY(-3px);
	border-color: var(--im-border-gold);
}
.im-step__num {
	display: block;
	font-family: var(--im-font-head);
	font-weight: 600;
	font-size: 2.6rem;
	line-height: 1;
	color: var(--im-primary-dark);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.im-step__num {
		background: var(--im-gradient-gold);
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
	}
}
.im-step__icon {
	position: absolute;
	top: 28px;
	right: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--im-radius-pill);
	background: linear-gradient(150deg, var(--im-mint), var(--im-blush-soft));
	color: var(--im-primary-dark);
}
.im-step__title { margin: 12px 0 6px; font-size: 1.18rem; }
.im-step__text { margin: 0; color: var(--im-muted); font-size: var(--im-fs-sm); }

/* --- Footer brand row ----------------------------------------------------- */
.im-footer-brandrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 28px;
	padding-bottom: 26px;
	margin-bottom: 30px;
	border-bottom: 1px solid var(--im-blush-border);
}
.im-footer-brand { line-height: 0; }
.im-footer-brand .im-logo { height: 46px; width: auto; }
.im-footer-statement {
	margin: 0;
	font-family: var(--im-font-head);
	font-style: italic;
	font-size: clamp(1.15rem, 2.6vw, 1.6rem);
	line-height: 1.3;
	color: var(--im-text);
	max-width: 32ch;
}

@media (min-width: 600px) {
	.im-steps { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================================
 * EDITORIAL REFINEMENT — less "template", more magazine. Strips the boxed,
 * pastel-disc, all-centered look: gold line icons (no discs), plain labels
 * instead of pills, hairline rules instead of cards, and airier rhythm.
 * ========================================================================= */

/* Confident but controlled vertical rhythm (not cavernous). */
.im-section { padding-block: clamp(2.5rem, 4.5vw, 4.25rem); }

/* Hero: editorial labels, not pills. */
.im-hero__eyebrow {
	background: none;
	border: 0;
	padding: 0;
	letter-spacing: 0.22em;
	color: var(--im-primary-dark);
}
.im-hero__eyebrow::before { display: none; }

.im-hero__trust { gap: 10px 28px; }
.im-hero__trust span {
	background: none;
	border: 0;
	padding: 0;
	color: var(--im-muted);
	font-weight: 500;
}

/* Watermark: a deliberate, cropped corner motif rather than a floating shape. */
.im-hero__watermark {
	top: auto;
	bottom: -16%;
	right: -5%;
	transform: rotate(-6deg);
	opacity: 0.08;
}
.im-hero__watermark .im-mark { width: clamp(320px, 48vw, 660px); }

/* Value props: borderless, left-aligned, gold line icons, a fine top rule. */
.im-features { gap: 30px 36px; }
.im-feature {
	background: none;
	border: 0;
	border-top: 1px solid var(--im-border-gold);
	border-radius: 0;
	padding: 18px 0 0;
	text-align: left;
}
.im-feature:hover { box-shadow: none; transform: none; }
.im-feature__icon {
	width: auto;
	height: auto;
	margin-bottom: 14px;
	background: none;
	border-radius: 0;
	color: var(--im-primary-dark);
}
.im-feature__icon .im-icon { width: 32px; height: 32px; stroke-width: 1.5; }
.im-feature__title { font-size: 1.12rem; }

/* Methodology: borderless columns led by oversized gold numerals + a top rule. */
.im-step {
	background: none;
	border: 0;
	border-top: 2px solid var(--im-border-gold);
	border-radius: 0;
	padding: 20px 0 0;
}
.im-step:hover { box-shadow: none; transform: none; border-top-color: var(--im-primary); }
.im-step__num { font-size: 3.1rem; }
.im-step__icon { display: none; }
.im-step__title { margin-top: 14px; }

/* ============================================================================
 * MOTION — tasteful entrances (only with JS + when motion is welcome).
 * Gated on the `.js` class (set before paint) so no-JS visitors never see a
 * hidden state, and fully disabled under prefers-reduced-motion below.
 * ========================================================================= */

/* Hero: staggered fade-up as the page settles. */
.js .im-hero__mark,
.js .im-hero__eyebrow,
.js .im-hero__title,
.js .im-hero__intro,
.js .im-hero__cta,
.js .im-hero__trust {
	animation: im-rise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.js .im-hero__eyebrow { animation-delay: 0.06s; }
.js .im-hero__title { animation-delay: 0.12s; }
.js .im-hero__intro { animation-delay: 0.20s; }
.js .im-hero__cta { animation-delay: 0.28s; }
.js .im-hero__trust { animation-delay: 0.36s; }

@keyframes im-rise {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}

/* Reveal-on-scroll: blocks ease in as they enter the viewport (class added by
   main.js, which also skips this entirely under reduced motion). */
.js .im-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: opacity, transform;
}
.js .im-reveal.is-in { opacity: 1; transform: none; }

/* Respect reduced-motion preferences (and never leave content hidden). */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { transition: none !important; animation: none !important; }
	.js .im-reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================================
 * HEADER NAV REFINEMENT (zone 5) — editorial medium weight + a touch of
 * tracking on the desktop primary nav (consumes the charter weight token).
 * ========================================================================= */
@media (min-width: 782px) {
	.im-nav__list a { font-weight: var(--im-fw-medium); letter-spacing: 0.01em; }
}

/* ============================================================================
 * WOOCOMMERCE — on-brand restyle for the SOLD (dropshipping) catalog.
 * Consumes charter tokens only; no template overrides. Mirrors the affiliate
 * .im-card / .im-btn language so shop and guide feel like one site. Wrapped in
 * .woocommerce selectors → zero effect when the plugin is inactive.
 * ========================================================================= */

/* Shop loop — align with the affiliate product grid rhythm. */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--im-space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none; } /* kill legacy float clearfix */

.woocommerce ul.products li.product {
	width: auto;
	margin: 0;
	float: none;
	background: var(--im-surface);
	border: 1px solid var(--im-border);
	border-radius: var(--im-radius);
	overflow: hidden;
	padding: 0 0 var(--im-space-md);
	transition: box-shadow var(--im-transition), transform var(--im-transition), border-color var(--im-transition);
}
.woocommerce ul.products li.product:hover {
	box-shadow: var(--im-shadow-md);
	transform: translateY(-3px);
	border-color: var(--im-border-gold);
}
.woocommerce ul.products li.product a img {
	margin: 0 0 var(--im-space-sm);
	border-radius: 0;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--im-font);
	font-weight: var(--im-fw-bold);
	font-size: 1rem;
	line-height: 1.35;
	padding: 0 var(--im-space-md);
	color: var(--im-text);
}
.woocommerce ul.products li.product .price {
	display: block;
	padding: var(--im-space-2xs) var(--im-space-md) 0;
	color: var(--im-primary-dark);
	font-weight: 700;
	font-size: 1.2rem;
}
.woocommerce ul.products li.product .price del { color: var(--im-muted); font-weight: 400; font-size: 0.9rem; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }

/* Sale flash → reuse the rose "oferta" badge language. */
.woocommerce span.onsale {
	min-height: 0;
	min-width: 0;
	margin: 0;
	padding: 4px 9px;
	border-radius: var(--im-radius-pill);
	background: var(--im-accent);
	color: var(--im-on-primary);
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1.4;
}

/* Buttons — map Woo's .button onto the gold primary CTA. */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--im-space-xs);
	font-family: var(--im-font);
	font-weight: 600;
	letter-spacing: 0.01em;
	border-radius: var(--im-radius-pill);
	padding: 13px 26px;
	border: 1px solid rgba(132, 106, 43, 0.32);
	background: var(--im-gradient-gold);
	color: var(--im-on-primary);
	box-shadow: 0 4px 14px rgba(197, 160, 101, 0.30);
	transition: transform var(--im-transition), box-shadow var(--im-transition), filter var(--im-transition);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	color: var(--im-on-primary);
	transform: translateY(-2px);
	filter: saturate(1.06) brightness(1.03);
	box-shadow: 0 12px 28px rgba(197, 160, 101, 0.42);
}
.woocommerce ul.products li.product .button { margin: var(--im-space-sm) var(--im-space-md) 0; }

/* Single product — brand the price and align titles with the affiliate page. */
.woocommerce div.product .product_title { font-family: var(--im-font-head); font-weight: var(--im-fw-heading); }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--im-primary-dark); font-weight: 700; }

/* Notices / messages — soft, on-palette (never alarming red). */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-top-color: var(--im-primary);
	border-radius: var(--im-radius-sm);
	background: var(--im-surface-alt);
}

/* Star ratings in the brand gold. */
.woocommerce .star-rating span::before,
.woocommerce p.stars a::before { color: var(--im-primary); }

@media (min-width: 600px) {
	.woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 782px) {
	.woocommerce ul.products { grid-template-columns: repeat(4, 1fr); gap: var(--im-space-md); }
}

/* ============================================================================
 * FOOTER LANGUAGE SWITCHER — the switcher now lives in the footer (organic
 * traffic lands on a localized URL; the header stays focused on the CTA).
 * ========================================================================= */
.im-footer-langs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--im-space-sm);
	padding-bottom: var(--im-space-md);
	margin-bottom: var(--im-space-md);
	border-bottom: 1px solid var(--im-blush-border);
}
.im-footer-langs__label {
	font-size: var(--im-fs-sm);
	font-weight: var(--im-fw-bold);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--im-primary-dark);
}
/* The footer switcher is always visible (no header media-query hiding it). */
.im-footer-langs .im-langs { display: flex; flex-wrap: wrap; }
.im-footer-langs .im-lang.is-current { background: var(--im-primary); color: var(--im-on-primary); border-color: var(--im-primary); }
