/* ==========================================================================
   Canjeala — Interfaz del catálogo (Vibrant Rewards Commerce)
   --------------------------------------------------------------------------
   Todos los colores de marca salen de variables --cj-primary* / --cj-secondary*
   que imprime app\widgets\Theme por cada portal (sitios_lookandfeel).
   Los valores de :root de este archivo son solo el respaldo por defecto.
   Prefijo "cj-" para no chocar con Bootstrap/osahan del resto del sitio.
   ========================================================================== */

:root {
	/* Marca (respaldo: se sobrescriben por portal) */
	--cj-primary: #006948;
	--cj-primary-ink: #006948;
	--cj-primary-hover: #005a3d;
	--cj-primary-container: #00855d;
	--cj-on-primary: #ffffff;
	--cj-primary-soft: rgba(0, 105, 72, .08);
	--cj-primary-soft-2: rgba(0, 105, 72, .14);
	--cj-primary-border: rgba(0, 105, 72, .25);
	--cj-primary-glow: rgba(0, 105, 72, .25);
	--cj-primary-fixed: #85f8c4;
	--cj-hero-1: #006948;
	--cj-hero-2: #00855d;
	--cj-hero-3: #006398;
	--cj-secondary: #006398;
	--cj-secondary-ink: #006398;
	--cj-secondary-soft: rgba(0, 99, 152, .10);

	/* Neutros (comunes a todos los portales) */
	--cj-bg: #f8fafc;
	--cj-surface: #ffffff;
	--cj-surface-low: #f1f5f9;
	--cj-surface-high: #e2e8f0;
	--cj-border: #e2e8f0;
	--cj-border-strong: #cbd5e1;
	--cj-text: #0f172a;
	--cj-text-2: #475569;
	--cj-muted: #64748b;
	--cj-faint: #94a3b8;
	--cj-danger: #dc2626;
	--cj-danger-soft: #fef2f2;
	--cj-success: #047857;
	--cj-success-soft: #ecfdf5;
	--cj-warning: #b45309;
	--cj-warning-soft: #fffbeb;

	/* Tipografía */
	--cj-font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--cj-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	/* Forma y profundidad */
	--cj-r-sm: 6px;
	--cj-r: 8px;
	--cj-r-md: 12px;
	--cj-r-lg: 16px;
	--cj-r-pill: 9999px;
	--cj-shadow-1: 0 1px 3px rgba(15, 23, 42, .05), 0 1px 2px rgba(15, 23, 42, .03);
	--cj-shadow-2: 0 10px 15px -3px rgba(15, 23, 42, .08), 0 4px 6px -2px rgba(15, 23, 42, .04);
	--cj-shadow-3: 0 20px 25px -5px rgba(15, 23, 42, .06);
	--cj-ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- Base ---------- */
/* Contenedores grid de una columna: evita que el contenido ensanche la columna en móvil */
.cj-form-card__body, .cj-fieldset, .cj-panel, .cj-pdp__left, .cj-pdp__right, .cj-checkout__aside, .cj-benefit { grid-template-columns: minmax(0, 1fr); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.cj {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--cj-bg);
	color: var(--cj-text);
	font-family: var(--cj-font-body);
	font-size: 14px;
	line-height: 22px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.cj ::selection { background: var(--cj-primary-soft-2); }
.cj a { color: inherit; text-decoration: none; }
.cj img { max-width: 100%; display: block; }
.cj h1, .cj h2, .cj h3, .cj h4, .cj p { margin: 0; }
.cj :where(button) { font: inherit; cursor: pointer; }
.cj :focus-visible { outline: 2px solid var(--cj-secondary); outline-offset: 2px; }
.cj-main { flex: 1 0 auto; }
.cj-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cj-container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding-left: 16px;
	padding-right: 16px;
}
@media (min-width: 640px) { .cj-container { padding-left: 32px; padding-right: 32px; } }

/* Material Symbols */
.ms {
	font-family: "Material Symbols Outlined";
	font-weight: normal;
	font-style: normal;
	font-size: 20px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	direction: ltr;
	flex-shrink: 0;
	-webkit-font-feature-settings: "liga";
	font-feature-settings: "liga";
	font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
	user-select: none;
}
.ms-fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.ms-14 { font-size: 14px; } .ms-16 { font-size: 16px; } .ms-18 { font-size: 18px; }
.ms-22 { font-size: 22px; } .ms-24 { font-size: 24px; } .ms-28 { font-size: 28px; }

/* Utilidades de texto */
.cj-label {
	font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .04em;
}
.cj-eyebrow {
	font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em;
	text-transform: uppercase; color: var(--cj-primary-ink);
}
.cj-muted { color: var(--cj-muted); }

/* ---------- Botones ---------- */
.cj-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 40px; padding: 10px 18px;
	border-radius: var(--cj-r); border: 1px solid transparent;
	font-family: var(--cj-font-body); font-size: 14px; line-height: 20px; font-weight: 600;
	text-align: center; white-space: nowrap;
	transition: background-color .15s var(--cj-ease), box-shadow .15s var(--cj-ease), color .15s, border-color .15s, transform .1s;
}
.cj-btn:active { transform: scale(.99); }
.cj-btn--primary { background: var(--cj-primary); color: var(--cj-on-primary) !important; box-shadow: var(--cj-shadow-1); }
.cj-btn--primary:hover { background: var(--cj-primary-hover); box-shadow: 0 4px 12px var(--cj-primary-glow); }
.cj-btn--outline { background: var(--cj-surface); color: var(--cj-primary-ink) !important; border-color: var(--cj-primary-border); }
.cj-btn--outline:hover { background: var(--cj-primary); border-color: var(--cj-primary); color: var(--cj-on-primary) !important; }
.cj-btn--ghost { background: var(--cj-surface); color: #334155 !important; border: 1.5px solid var(--cj-border); }
.cj-btn--ghost:hover { background: var(--cj-surface-low); color: var(--cj-primary-ink) !important; }
.cj-btn--lg { min-height: 48px; padding: 12px 28px; font-size: 16px; line-height: 24px; border-radius: var(--cj-r-md); }
.cj-btn--block { display: flex; width: 100%; }
.cj-btn[disabled], .cj-btn.is-disabled { opacity: .5; pointer-events: none; }

.cj-icon-btn {
	width: 38px; height: 38px; border-radius: var(--cj-r-pill);
	display: inline-flex; align-items: center; justify-content: center;
	background: transparent; border: 0; color: var(--cj-text-2);
	transition: background-color .15s, color .15s;
}
.cj-icon-btn:hover { background: var(--cj-surface-low); color: var(--cj-primary-ink); }

/* ---------- Chips / badges ---------- */
.cj-chip {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 2px 10px; border-radius: var(--cj-r-pill);
	font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .03em;
	background: rgba(255, 255, 255, .92); color: var(--cj-text-2);
	border: 1px solid var(--cj-border);
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.cj-chip--brand { background: var(--cj-primary-soft); color: var(--cj-primary-ink); border-color: var(--cj-primary-border); }
.cj-chip--stock { background: var(--cj-success-soft); color: var(--cj-success); border-color: #a7f3d0; }
.cj-chip--warn { background: var(--cj-warning-soft); color: var(--cj-warning); border-color: #fde68a; }

.cj-badge-canje {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 14px; border-radius: var(--cj-r-pill);
	background: var(--cj-primary-soft); border: 1px solid var(--cj-primary-border);
	color: var(--cj-primary-ink); font-weight: 700; font-size: 14px; line-height: 20px;
	white-space: nowrap;
}

/* ---------- Barra superior de contacto ---------- */
.cj-topbar { background: var(--cj-surface-low); color: var(--cj-text-2); font-size: 11px; line-height: 14px; letter-spacing: .03em; }
.cj-topbar .cj-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.cj-topbar__group { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cj-topbar a, .cj-topbar span { display: inline-flex; align-items: center; gap: 6px; }
.cj-topbar a:hover { color: var(--cj-primary-ink); }
.cj-topbar strong { color: var(--cj-text); font-weight: 600; }
.cj-topbar .ms { color: var(--cj-primary-ink); }
.cj-topbar__sep { color: var(--cj-border-strong); }
.cj-topbar__official { color: var(--cj-primary-ink); }
@media (max-width: 639px) { .cj-hide-sm { display: none !important; } }

/* ---------- Header ---------- */
.cj-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--cj-surface);
	border-bottom: 1px solid var(--cj-border);
	box-shadow: var(--cj-shadow-1);
}
.cj-header__row { display: flex; align-items: center; gap: 24px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
.cj-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cj-brand__mark {
	width: 40px; height: 40px; border-radius: var(--cj-r-md);
	background: var(--cj-primary); color: var(--cj-on-primary);
	display: flex; align-items: center; justify-content: center;
	box-shadow: var(--cj-shadow-1); transition: transform .2s var(--cj-ease);
}
.cj-brand:hover .cj-brand__mark { transform: scale(1.05); }
.cj-brand__logo { max-height: 44px; max-width: 150px; width: auto; object-fit: contain; }
.cj-brand__text { display: flex; flex-direction: column; min-width: 0; }
.cj-brand__name {
	font-family: var(--cj-font-display); font-weight: 700; font-size: 18px; line-height: 22px;
	letter-spacing: -.01em; color: var(--cj-primary-ink);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px;
}
.cj-brand__sub { font-size: 10px; line-height: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--cj-muted); font-weight: 600; }

.cj-search { position: relative; flex: 1 1 auto; max-width: 420px; }
.cj-search .ms { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--cj-muted); pointer-events: none; }
.cj-search input {
	width: 100%; height: 40px; padding: 0 16px 0 42px;
	background: var(--cj-surface-low); border: 1px solid var(--cj-border); border-radius: var(--cj-r-pill);
	font: 400 13px/18px var(--cj-font-body); color: var(--cj-text);
	transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.cj-search input::placeholder { color: var(--cj-muted); }
.cj-search input:focus { outline: none; background: var(--cj-surface); border-color: var(--cj-secondary); box-shadow: 0 0 0 3px var(--cj-secondary-soft); }

.cj-nav { display: flex; align-items: center; gap: 24px; }
.cj-nav a { color: var(--cj-text-2); font-size: 14px; line-height: 22px; padding: 4px 0; border-bottom: 2px solid transparent; transition: color .15s; white-space: nowrap; }
.cj-nav a:hover { color: var(--cj-primary-ink); }
.cj-nav a.is-active { color: var(--cj-primary-ink); font-weight: 600; border-bottom-color: var(--cj-primary); }

.cj-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.cj-menu-toggle { display: none; }
.cj-mobile-panel { display: none; }

@media (max-width: 1023px) {
	.cj-nav { display: none; }
	.cj-header__row { gap: 12px; flex-wrap: wrap; }
	.cj-search { order: 10; flex-basis: 100%; max-width: none; }
	.cj-menu-toggle { display: inline-flex; }
	.cj-mobile-panel { border-top: 1px solid var(--cj-border); background: var(--cj-surface); }
	.cj-mobile-panel.is-open { display: block; }
	.cj-mobile-panel a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--cj-surface-low); color: var(--cj-text); font-weight: 500; }
	.cj-mobile-panel a .ms { color: var(--cj-primary-ink); }
}
@media (max-width: 639px) {
	.cj-badge-canje .cj-badge-canje__text { display: none; }
	.cj-badge-canje { padding: 6px 10px; }
	.cj-brand__name { max-width: 150px; font-size: 16px; }
}

/* ---------- Breadcrumbs ---------- */
.cj-crumbs { padding-top: 16px; padding-bottom: 8px; }
.cj-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .02em; color: var(--cj-muted); }
.cj-crumbs li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.cj-crumbs li + li::before { content: "/"; color: var(--cj-border-strong); }
.cj-crumbs a { display: inline-flex; align-items: center; gap: 4px; }
.cj-crumbs a:hover { color: var(--cj-primary-ink); }
.cj-crumbs li.is-active { color: var(--cj-primary-ink); font-weight: 600; }
.cj-crumbs li.is-active span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* ---------- Alertas (flash) ---------- */
.cj-alerts { display: grid; gap: 8px; padding-top: 8px; }
.cj-alert {
	display: flex; align-items: flex-start; gap: 10px;
	padding: 12px 16px; border-radius: var(--cj-r-md); border: 1px solid;
	font-size: 14px; line-height: 20px;
}
.cj-alert--error { background: var(--cj-danger-soft); border-color: #fecaca; color: #991b1b; }
.cj-alert--success { background: var(--cj-success-soft); border-color: #a7f3d0; color: #065f46; }
.cj-alert--info { background: var(--cj-secondary-soft); border-color: var(--cj-border); color: var(--cj-text); }
.cj-alert--warning { background: var(--cj-warning-soft); border-color: #fde68a; color: #92400e; }
.cj-alert__close { margin-left: auto; background: none; border: 0; color: inherit; opacity: .6; padding: 0; }
.cj-alert__close:hover { opacity: 1; }

/* ---------- Disclaimer / banners ---------- */
.cj-disclaimer { text-align: center; padding-top: 8px; }
.cj-disclaimer img { max-height: 80px; margin: 0 auto; }
.cj-banners { padding-top: 12px; }
.cj-banners__track {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
	border-radius: var(--cj-r-lg); scrollbar-width: none;
}
.cj-banners__track::-webkit-scrollbar { display: none; }
.cj-banners__track img { flex: 0 0 100%; width: 100%; scroll-snap-align: start; border-radius: var(--cj-r-lg); object-fit: cover; max-height: 360px; }

/* ---------- Hero ---------- */
.cj-hero-wrap { padding-top: 12px; padding-bottom: 12px; }
.cj-hero {
	position: relative; overflow: hidden;
	border-radius: var(--cj-r-lg);
	padding: 28px 20px;
	background: linear-gradient(100deg, var(--cj-hero-1) 0%, var(--cj-hero-2) 50%, var(--cj-hero-3) 100%);
	color: #fff;
	box-shadow: var(--cj-shadow-2);
}
.cj-hero__glow { position: absolute; border-radius: 50%; pointer-events: none; }
.cj-hero__glow--1 { right: -48px; top: -48px; width: 320px; height: 320px; background: rgba(255, 255, 255, .10); filter: blur(40px); }
.cj-hero__glow--2 { right: 160px; bottom: -80px; width: 256px; height: 256px; background: rgba(255, 255, 255, .08); filter: blur(24px); }
.cj-hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 24px; }
.cj-hero__copy { max-width: 760px; display: grid; gap: 12px; }
.cj-hero__tag {
	justify-self: start; display: inline-flex; align-items: center; gap: 8px;
	padding: 4px 12px; border-radius: var(--cj-r-pill);
	background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .22);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .04em;
}
.cj-hero__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cj-primary-fixed); }
.cj-hero__tag b { color: var(--cj-primary-fixed); }
.cj-hero h1 {
	font-family: var(--cj-font-display); font-weight: 800;
	font-size: 26px; line-height: 34px; letter-spacing: -.015em; color: #fff;
	text-wrap: balance;
}
.cj-hero p { font-size: 15px; line-height: 24px; color: rgba(255, 255, 255, .9); max-width: 640px; }
.cj-hero__stat {
	display: grid; gap: 6px; min-width: 240px; align-self: flex-start;
	padding: 18px 20px; border-radius: var(--cj-r-md);
	background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .25);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cj-hero__stat-label { display: flex; align-items: center; gap: 8px; font-size: 11px; line-height: 14px; color: rgba(255, 255, 255, .85); letter-spacing: .03em; }
.cj-hero__stat-value { font-family: var(--cj-font-display); font-size: 30px; line-height: 36px; font-weight: 800; }
.cj-hero__stat-foot { display: flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; color: var(--cj-primary-fixed); font-weight: 500; }
@media (min-width: 768px) {
	.cj-hero { padding: 40px; }
	.cj-hero__inner { flex-direction: row; align-items: center; justify-content: space-between; }
	.cj-hero__stat { align-self: center; }
	.cj-hero h1 { font-size: 36px; line-height: 44px; letter-spacing: -.02em; }
}
@media (min-width: 1200px) { .cj-hero h1 { font-size: 40px; line-height: 48px; } }

/* ---------- Categorías (fila que se expande) ---------- */
.cj-toolbar { padding-top: 24px; }
.cj-cats { display: flex; align-items: flex-start; gap: 8px; }
.cj-cats__list {
	--cj-cats-rows: 1;
	flex: 1 1 auto; min-width: 0;
	display: flex; flex-wrap: wrap; gap: 8px;
	/* Colapsado: alto exacto de N filas de pills (34px cada una + 8px de separación) */
	max-height: calc(var(--cj-cats-rows) * 34px + (var(--cj-cats-rows) - 1) * 8px);
	overflow: hidden;
	padding: 1px; margin: -1px; /* deja ver el anillo de foco */
}
@media (max-width: 639px) {
	/* Móvil: 2 filas a todo el ancho y el botón debajo */
	.cj-cats { flex-direction: column; align-items: stretch; }
	.cj-cats__list { --cj-cats-rows: 2; }
	.cj-cats__toggle { align-self: flex-start; }
	.cj-pill { padding: 0 14px; }
}
.cj-cats.is-open .cj-cats__list { max-height: none; }
.cj-pill {
	flex-shrink: 0; height: 34px; padding: 0 16px; border-radius: var(--cj-r-pill);
	display: inline-flex; align-items: center;
	background: var(--cj-surface-low); color: var(--cj-text-2);
	font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .03em; white-space: nowrap;
	border: 1px solid transparent; transition: background-color .15s, color .15s;
}
.cj-pill:hover { background: var(--cj-surface-high); color: var(--cj-text); }
.cj-pill.is-active { background: var(--cj-primary); color: var(--cj-on-primary); box-shadow: var(--cj-shadow-1); }
.cj-cats__toggle {
	flex-shrink: 0; height: 34px; padding: 0 10px 0 14px; border-radius: var(--cj-r-pill);
	display: inline-flex; align-items: center; gap: 2px;
	background: var(--cj-surface); border: 1px solid var(--cj-primary-border); color: var(--cj-primary-ink);
	font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .03em; white-space: nowrap;
	transition: background-color .15s;
}
.cj-cats__toggle:hover { background: var(--cj-primary-soft); }
.cj-cats__toggle .ms { transition: transform .2s var(--cj-ease); }
.cj-cats.is-open .cj-cats__toggle .ms { transform: rotate(180deg); }
.cj-cats__toggle[hidden] { display: none; }
.cj-toolbar__meta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
	margin-top: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--cj-border);
	font-size: 13px; color: var(--cj-muted);
}
.cj-toolbar__meta span { display: inline-flex; align-items: center; gap: 6px; }
.cj-toolbar__meta .ms { color: var(--cj-primary-ink); }
.cj-toolbar__count { color: var(--cj-text); font-weight: 600; }

/* ---------- Grilla de productos ---------- */
.cj-catalog { padding-top: 24px; padding-bottom: 24px; }
.cj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .cj-grid { gap: 20px; } }
@media (min-width: 768px) { .cj-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1200px) { .cj-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.cj-card {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	background: var(--cj-surface); border: 1px solid var(--cj-border); border-radius: var(--cj-r-md);
	box-shadow: var(--cj-shadow-1);
	transition: transform .2s var(--cj-ease), box-shadow .2s var(--cj-ease), border-color .2s;
}
.cj-card:hover { transform: translateY(-4px); box-shadow: var(--cj-shadow-2); border-color: var(--cj-border-strong); }
.cj-card__media {
	position: relative; aspect-ratio: 1 / 1; overflow: hidden;
	background: var(--cj-bg); display: flex; align-items: center; justify-content: center; padding: 12px;
}
.cj-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s var(--cj-ease); }
.cj-card:hover .cj-card__media img { transform: scale(1.05); }
.cj-card__media .cj-chip { position: absolute; top: 10px; right: 10px; }
.cj-card__price { position: absolute; top: 10px; left: 10px; }
.cj-card__body { display: flex; flex-direction: column; justify-content: space-between; flex: 1; gap: 12px; padding: 12px; }
@media (min-width: 640px) { .cj-card__body { padding: 16px; } }
.cj-card__title {
	font-size: 14px; line-height: 20px; font-weight: 600; color: var(--cj-text);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	min-height: 40px; transition: color .15s;
}
@media (min-width: 640px) { .cj-card__title { font-size: 16px; line-height: 24px; min-height: 48px; } }
.cj-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; } /* toda la tarjeta es clicable */
.cj-card:hover .cj-card__title { color: var(--cj-primary-ink); }
.cj-card__meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; line-height: 16px; color: var(--cj-muted); }
.cj-card__meta .ms { color: var(--cj-primary-ink); }
.cj-card__eyebrow { display: flex; align-items: center; gap: 4px; font-size: 11px; line-height: 14px; font-weight: 600; color: var(--cj-primary-ink); margin-bottom: 4px; }
.cj-card__foot { position: relative; z-index: 1; padding-top: 12px; border-top: 1px solid var(--cj-surface-high); }
.cj-card__foot .cj-btn { padding-left: 10px; padding-right: 10px; }
@media (max-width: 639px) {
	.cj-card__meta { display: none; }
	.cj-card__foot .cj-btn { min-height: 40px; font-size: 13px; }
	.cj-card__foot .cj-btn .ms { display: none; }
}

/* Estado vacío */
.cj-empty {
	text-align: center; padding: 56px 24px; border: 1px dashed var(--cj-border-strong);
	border-radius: var(--cj-r-lg); background: var(--cj-surface); display: grid; gap: 12px; justify-items: center;
}
.cj-empty .ms { font-size: 44px; color: var(--cj-primary-ink); }
.cj-empty h3 { font-family: var(--cj-font-display); font-size: 18px; line-height: 26px; }

/* ---------- Cargar más (AJAX) ---------- */
.cj-catalog__restart { margin-bottom: 16px; }
.cj-more { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.cj-more__status { font-size: 13px; color: var(--cj-muted); }
.cj-more__bar { width: 220px; max-width: 70%; height: 4px; border-radius: var(--cj-r-pill); background: var(--cj-surface-high); overflow: hidden; }
.cj-more__bar span { display: block; height: 100%; background: var(--cj-primary); border-radius: inherit; transition: width .4s var(--cj-ease); }
.cj-more__btn { min-width: 240px; margin-top: 4px; }
.cj-more__btn.is-loading { pointer-events: none; }
.cj-more__btn.is-loading .ms { animation: cj-spin .8s linear infinite; }
.cj-more__error { font-size: 13px; color: var(--cj-danger); }
@keyframes cj-spin { to { transform: rotate(360deg); } }

/* Tarjetas fantasma mientras carga */
.cj-card--skeleton { pointer-events: none; }
.cj-card--skeleton .cj-sk { border-radius: var(--cj-r-sm); background: linear-gradient(90deg, var(--cj-surface-low) 25%, var(--cj-surface-high) 50%, var(--cj-surface-low) 75%); background-size: 200% 100%; animation: cj-shimmer 1.2s ease-in-out infinite; }
.cj-card--skeleton .cj-card__media { padding: 0; }
.cj-card--skeleton .cj-card__media .cj-sk { width: 100%; height: 100%; border-radius: 0; }
.cj-sk--line { height: 14px; margin-bottom: 8px; }
.cj-sk--short { width: 60%; }
.cj-sk--btn { height: 40px; border-radius: var(--cj-r) !important; }
@keyframes cj-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.cj-card--new { animation: cj-fade-in .35s var(--cj-ease) both; }
@keyframes cj-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Secciones informativas ---------- */
.cj-section { padding-top: 16px; padding-bottom: 16px; }
.cj-howto { background: var(--cj-surface-low); border: 1px solid var(--cj-border); border-radius: var(--cj-r-lg); padding: 24px 16px; }
@media (min-width: 640px) { .cj-howto { padding: 24px; } }
.cj-howto h2 { font-family: var(--cj-font-display); font-weight: 700; font-size: 18px; line-height: 26px; text-align: center; margin-bottom: 24px; }
.cj-steps-3 { display: grid; gap: 16px; }
@media (min-width: 768px) { .cj-steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.cj-step-card { display: flex; align-items: flex-start; gap: 16px; padding: 20px; background: var(--cj-surface); border: 1px solid var(--cj-border); border-radius: var(--cj-r-md); }
.cj-step-card__n {
	width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	background: var(--cj-primary-soft-2); color: var(--cj-primary-ink); font-weight: 700; font-size: 16px;
}
.cj-step-card h3, .cj-trust h3 { font-size: 16px; line-height: 24px; font-weight: 600; }
.cj-step-card p, .cj-trust p { font-size: 13px; line-height: 18px; color: var(--cj-text-2); margin-top: 4px; }

.cj-trust { display: grid; gap: 8px; padding: 16px; background: var(--cj-surface); border: 1px solid var(--cj-border); border-radius: var(--cj-r-lg); box-shadow: var(--cj-shadow-1); }
@media (min-width: 768px) { .cj-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 24px; } }
.cj-trust__item { display: flex; align-items: flex-start; gap: 16px; padding: 12px; }
.cj-trust__icon {
	width: 48px; height: 48px; border-radius: var(--cj-r-md); flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	background: var(--cj-primary-soft-2); color: var(--cj-primary-ink);
}
.cj-trust__icon--alt { background: var(--cj-secondary-soft); color: var(--cj-secondary-ink); }
.cj-trust h3 { font-weight: 700; }

/* ---------- Footer ---------- */
.cj-footer { margin-top: 48px; background: var(--cj-surface-low); border-top: 1px solid var(--cj-border); }
.cj-footer .cj-container { padding-top: 40px; padding-bottom: 32px; display: grid; gap: 28px; }
.cj-footer__top { display: grid; gap: 28px; }
@media (min-width: 768px) { .cj-footer__top { grid-template-columns: 2fr 1fr 1fr; gap: 40px; } }
.cj-footer__brand { display: grid; gap: 12px; align-content: start; }
.cj-footer__brand p { font-size: 13px; line-height: 20px; color: var(--cj-text-2); max-width: 460px; }
.cj-footer h4 { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cj-text); margin-bottom: 12px; }
.cj-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; line-height: 18px; color: var(--cj-text-2); }
.cj-footer ul a:hover { color: var(--cj-primary-ink); text-decoration: underline; }
.cj-footer__bottom {
	padding-top: 20px; border-top: 1px solid var(--cj-border);
	display: flex; flex-direction: column; gap: 12px; justify-content: space-between; align-items: flex-start;
	font-size: 12px; line-height: 18px; color: var(--cj-muted);
}
@media (min-width: 768px) { .cj-footer__bottom { flex-direction: row; align-items: center; } }
.cj-footer__bottom strong, .cj-footer__bottom a { color: var(--cj-primary-ink); font-weight: 600; }
.cj-footer__bottom span { display: inline-flex; align-items: center; gap: 4px; }

/* ==========================================================================
   Detalle de producto
   ========================================================================== */
.cj-pdp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 16px; padding-bottom: 32px; }
@media (min-width: 1024px) { .cj-pdp { grid-template-columns: 7fr 5fr; gap: 32px; } }
.cj-pdp__left, .cj-pdp__right { display: grid; gap: 20px; min-width: 0; }
@media (min-width: 1024px) { .cj-pdp__right { position: sticky; top: 96px; } }

.cj-stage {
	position: relative; overflow: hidden;
	background: var(--cj-surface); border: 1px solid var(--cj-border); border-radius: var(--cj-r-md);
	box-shadow: var(--cj-shadow-1);
	display: flex; align-items: center; justify-content: center;
	min-height: 320px; padding: 48px 16px;
}
@media (min-width: 768px) { .cj-stage { min-height: 480px; padding: 32px; } }
.cj-stage__badges { position: absolute; top: 16px; left: 16px; z-index: 2; display: grid; gap: 8px; justify-items: start; }
.cj-stage__frame { width: 100%; max-width: 420px; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; transition: transform .3s var(--cj-ease); }
.cj-stage:hover .cj-stage__frame { transform: scale(1.04); }
.cj-stage__frame img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--cj-r); filter: drop-shadow(0 4px 8px rgba(15, 23, 42, .08)); }
.cj-stage__nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	width: 40px; height: 40px; border-radius: 50%;
	background: rgba(255, 255, 255, .92); border: 1px solid var(--cj-border); color: var(--cj-text-2);
	display: flex; align-items: center; justify-content: center; box-shadow: var(--cj-shadow-1);
}
.cj-stage__nav:hover { color: var(--cj-primary-ink); border-color: var(--cj-primary-border); }
.cj-stage__nav--prev { left: 12px; } .cj-stage__nav--next { right: 12px; }

.cj-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .cj-thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } }
.cj-thumb {
	aspect-ratio: 1 / 1; padding: 8px; border-radius: var(--cj-r);
	background: var(--cj-surface); border: 1px solid var(--cj-border);
	display: flex; align-items: center; justify-content: center;
	transition: transform .15s var(--cj-ease), border-color .15s;
}
.cj-thumb:hover { transform: translateY(-2px); border-color: var(--cj-primary-border); }
.cj-thumb.is-active { border: 2px solid var(--cj-primary); }
.cj-thumb img { width: 100%; height: 100%; object-fit: contain; }

.cj-pillars { display: grid; gap: 12px; }
@media (min-width: 640px) { .cj-pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.cj-pillar { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: var(--cj-surface); border: 1px solid var(--cj-border); border-radius: var(--cj-r); }
.cj-pillar__icon { width: 36px; height: 36px; border-radius: var(--cj-r); flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--cj-primary-soft-2); color: var(--cj-primary-ink); }
.cj-pillar h4 { font-size: 14px; line-height: 18px; font-weight: 600; }
.cj-pillar p { font-size: 12px; line-height: 16px; color: var(--cj-muted); margin-top: 2px; }

.cj-panel { background: var(--cj-surface); border: 1px solid var(--cj-border); border-radius: var(--cj-r-md); box-shadow: var(--cj-shadow-1); padding: 20px; display: grid; gap: 20px; }
@media (min-width: 640px) { .cj-panel { padding: 24px; } }
.cj-panel__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.cj-panel__ref { font-size: 11px; line-height: 14px; color: var(--cj-muted); }
.cj-panel__ref b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 500; color: var(--cj-text); }
.cj-panel h1 {
	font-family: var(--cj-font-display); font-weight: 700; color: var(--cj-text);
	font-size: 24px; line-height: 32px; letter-spacing: -.01em; text-wrap: balance;
}
@media (min-width: 640px) { .cj-panel h1 { font-size: 30px; line-height: 38px; letter-spacing: -.02em; } }

.cj-benefit { display: grid; gap: 14px; padding: 18px; background: var(--cj-surface-low); border: 1px solid var(--cj-border); border-radius: var(--cj-r-md); }
.cj-benefit__head { display: flex; align-items: center; gap: 12px; }
.cj-benefit__icon { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--cj-primary); color: var(--cj-on-primary); box-shadow: var(--cj-shadow-1); }
.cj-benefit__kicker { display: block; font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--cj-primary-ink); }
.cj-benefit__title { display: block; font-family: var(--cj-font-display); font-size: 18px; line-height: 26px; font-weight: 700; }
.cj-benefit__box { display: grid; gap: 6px; padding: 12px 14px; background: var(--cj-surface); border: 1px solid var(--cj-primary-border); border-radius: var(--cj-r); }
.cj-benefit__line { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 18px; color: var(--cj-text-2); }
.cj-benefit__line--strong { color: var(--cj-primary-ink); font-weight: 600; font-size: 14px; line-height: 20px; }
.cj-benefit__line .ms { margin-top: -1px; }
.cj-benefit__ship { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: var(--cj-r); background: var(--cj-surface); font-size: 13px; line-height: 18px; color: var(--cj-text-2); }
.cj-benefit__ship .ms { color: var(--cj-primary-ink); }
.cj-benefit__ship strong { color: var(--cj-text); }
.cj-panel__cta { display: grid; gap: 10px; }
.cj-panel__note { font-size: 11px; line-height: 15px; color: var(--cj-muted); text-align: center; }

.cj-support { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; background: var(--cj-surface); border: 1px solid var(--cj-border); border-radius: var(--cj-r-md); box-shadow: var(--cj-shadow-1); }
.cj-support__info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cj-support__icon { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--cj-primary-soft-2); color: var(--cj-primary-ink); }
.cj-support h4 { font-size: 14px; line-height: 20px; font-weight: 600; }
.cj-support p { font-size: 12px; line-height: 16px; color: var(--cj-muted); }
.cj-support .cj-btn { min-height: 36px; padding: 8px 14px; font-size: 12px; }

/* Pestañas */
.cj-tabs { background: var(--cj-surface); border: 1px solid var(--cj-border); border-radius: var(--cj-r-md); box-shadow: var(--cj-shadow-1); overflow: hidden; margin-bottom: 48px; }
.cj-tabs__list { display: flex; gap: 24px; padding: 0 16px; border-bottom: 1px solid var(--cj-border); overflow-x: auto; scrollbar-width: none; }
.cj-tabs__list::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .cj-tabs__list { gap: 32px; padding: 0 32px; } }
.cj-tab {
	display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
	padding: 16px 0 12px; background: none; border: 0; border-bottom: 2px solid transparent;
	font-size: 15px; line-height: 22px; font-weight: 600; color: var(--cj-muted);
	transition: color .15s, border-color .15s;
}
.cj-tab:hover { color: var(--cj-text); }
.cj-tab[aria-selected="true"] { color: var(--cj-primary-ink); border-bottom-color: var(--cj-primary); }
.cj-tabpanel { padding: 20px 16px; }
@media (min-width: 640px) { .cj-tabpanel { padding: 32px; } }
.cj-tabpanel[hidden] { display: none; }
.cj-prose { color: var(--cj-text-2); font-size: 14px; line-height: 24px; overflow-wrap: anywhere; }
.cj-prose p, .cj-prose ul, .cj-prose ol { margin: 0 0 12px; }
.cj-prose h3 { font-family: var(--cj-font-display); font-size: 20px; line-height: 28px; font-weight: 600; color: var(--cj-text); margin: 0 0 12px; }
.cj-prose img { height: auto; border-radius: var(--cj-r); }
.cj-prose table { width: 100%; border-collapse: collapse; }
.cj-prose td, .cj-prose th { border: 1px solid var(--cj-border); padding: 6px 10px; }
.cj-sedes { display: grid; gap: 12px; }
@media (min-width: 768px) { .cj-sedes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cj-sede { padding: 16px; border: 1px solid var(--cj-border); border-radius: var(--cj-r); background: var(--cj-surface-low); display: grid; gap: 6px; font-size: 13px; line-height: 18px; color: var(--cj-text-2); }
.cj-sede h4 { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--cj-text); }
.cj-sede span { display: flex; gap: 6px; align-items: flex-start; }
.cj-sede .ms { color: var(--cj-primary-ink); }

.cj-related { padding-bottom: 32px; }
.cj-related__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.cj-related__head h2 { font-family: var(--cj-font-display); font-size: 22px; line-height: 28px; font-weight: 600; margin-top: 4px; }
.cj-link { display: inline-flex; align-items: center; gap: 4px; color: var(--cj-primary-ink) !important; font-weight: 600; font-size: 15px; }
.cj-link:hover { text-decoration: underline; }

/* ==========================================================================
   Proceso de canje (stepper + formularios)
   ========================================================================== */
.cj-stepper-wrap { background: var(--cj-surface); border-bottom: 1px solid var(--cj-border); padding: 24px 0; }
.cj-stepper { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.cj-stepper__item { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 4px; }
.cj-stepper__item::before {
	content: ""; position: absolute; top: 19px; left: -50%; right: 50%; height: 3px;
	background: var(--cj-surface-high); z-index: 0;
}
.cj-stepper__item:first-child::before { display: none; }
.cj-stepper__item.is-done::before, .cj-stepper__item.is-active::before { background: var(--cj-primary); }
.cj-stepper__link { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 1; }
.cj-stepper__circle {
	width: 40px; height: 40px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--cj-surface); border: 2px solid var(--cj-border-strong); color: var(--cj-faint);
	font-weight: 700; font-size: 14px;
	transition: background-color .2s, border-color .2s;
}
.cj-stepper__item.is-active .cj-stepper__circle { background: var(--cj-primary); border-color: var(--cj-primary); color: var(--cj-on-primary); box-shadow: 0 0 0 4px var(--cj-primary-soft-2); }
.cj-stepper__item.is-done .cj-stepper__circle { background: var(--cj-primary); border-color: var(--cj-primary); color: var(--cj-on-primary); }
.cj-stepper__label { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--cj-muted); }
.cj-stepper__sub { font-size: 10px; line-height: 12px; color: var(--cj-faint); }
.cj-stepper__item.is-active .cj-stepper__label { color: var(--cj-primary-ink); font-weight: 700; }
.cj-stepper__item.is-done .cj-stepper__label { color: var(--cj-text); }
a.cj-stepper__link:hover .cj-stepper__label { color: var(--cj-primary-ink); }
@media (max-width: 639px) { .cj-stepper__sub { display: none; } .cj-stepper__label { font-size: 11px; line-height: 14px; } }

.cj-checkout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 32px; padding-bottom: 32px; }
@media (min-width: 1024px) { .cj-checkout { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px; } }
.cj-checkout__aside { display: grid; gap: 20px; }
@media (min-width: 1024px) { .cj-checkout__aside { position: sticky; top: 96px; } }

.cj-form-card { background: var(--cj-surface); border: 1px solid var(--cj-border); border-radius: var(--cj-r-lg); box-shadow: var(--cj-shadow-3); overflow: hidden; }
.cj-form-card__head { padding: 24px 20px; border-bottom: 1px solid var(--cj-surface-low); }
@media (min-width: 640px) { .cj-form-card__head { padding: 32px; } }
.cj-form-card__head h1 { font-family: var(--cj-font-display); font-weight: 700; font-size: 24px; line-height: 32px; letter-spacing: -.01em; }
@media (min-width: 640px) { .cj-form-card__head h1 { font-size: 30px; line-height: 38px; letter-spacing: -.02em; } }
.cj-form-card__head p { margin-top: 6px; font-size: 14px; line-height: 22px; color: var(--cj-muted); }
.cj-form-card__body { padding: 24px 20px; display: grid; gap: 32px; }
@media (min-width: 640px) { .cj-form-card__body { padding: 32px; } }

.cj-fieldset { display: grid; gap: 20px; }
.cj-fieldset + .cj-fieldset { padding-top: 24px; border-top: 1px solid var(--cj-surface-low); }
.cj-fieldset__title { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--cj-surface-low); }
.cj-fieldset__title .ms { color: var(--cj-primary-ink); }
.cj-fieldset__title h2 { font-size: 16px; line-height: 24px; font-weight: 700; letter-spacing: -.01em; }
.cj-fieldset__note { font-size: 12px; line-height: 18px; color: var(--cj-muted); display: flex; gap: 6px; align-items: flex-start; }

.cj-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) {
	.cj-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cj-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Campos generados por ActiveForm (.form-group / .control-label / .form-control / .help-block) */
.cj-form .form-group { margin: 0; display: flex; flex-direction: column; }
.cj-form .control-label, .cj-form .cj-field-label {
	display: block; margin-bottom: 6px;
	font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #334155;
}
.cj-form .required > .control-label::after { content: " *"; color: var(--cj-danger); }
.cj-form .form-control,
.cj-form select,
.cj-form input[type="text"], .cj-form input[type="email"], .cj-form input[type="tel"], .cj-form input[type="number"] {
	width: 100%; height: 46px; padding: 0 14px;
	background: var(--cj-surface); border: 1px solid var(--cj-border-strong); border-radius: var(--cj-r);
	font: 500 14px/20px var(--cj-font-body); color: var(--cj-text);
	box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none; appearance: none;
}
.cj-form select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2364748b' stroke-width='1.8'%3E%3Cpath d='M6 8l4 4 4-4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.cj-form .form-control::placeholder { color: var(--cj-faint); font-weight: 400; }
.cj-form .form-control:focus, .cj-form select:focus { outline: none; border-color: var(--cj-secondary); box-shadow: 0 0 0 3px var(--cj-secondary-soft); }
.cj-form .has-error .form-control, .cj-form .has-error select { border-color: var(--cj-danger); box-shadow: 0 0 0 3px rgba(220, 38, 38, .10); }
.cj-form .has-success .form-control { border-color: #10b981; }
.cj-form .help-block { margin: 4px 0 0; min-height: 0; font-size: 12px; line-height: 16px; color: var(--cj-danger); }
.cj-form .help-block:empty { display: none; }
.cj-form .cj-hint { margin-top: 4px; font-size: 11px; line-height: 15px; color: var(--cj-muted); display: flex; gap: 4px; align-items: center; }
.cj-form .field-optional .control-label::after { content: "Opcional"; float: right; color: var(--cj-faint); font-weight: 600; letter-spacing: .04em; }
@media (min-width: 640px) { .cj-form .cj-doc { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; } }

/* Checkbox de términos */
.cj-terms { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: var(--cj-r-md); background: var(--cj-bg); border: 1px solid var(--cj-border); cursor: pointer; transition: background-color .15s; }
.cj-terms:hover { background: var(--cj-surface-low); }
.cj-terms input[type="checkbox"] { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--cj-primary); cursor: pointer; }
.cj-terms span { font-size: 13px; line-height: 20px; color: var(--cj-text-2); }
.cj-terms a { color: var(--cj-primary-ink); font-weight: 600; text-decoration: underline; }
.cj-form .field-personaldataform-terms .help-block { margin-top: 6px; }

/* Captcha */
.cj-captcha { display: grid; gap: 12px; }
.cj-captcha__img { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cj-captcha__img img { height: 50px; border: 1px solid var(--cj-border); border-radius: var(--cj-r); background: #fff; cursor: pointer; }
.cj-captcha__img small { font-size: 12px; color: var(--cj-muted); }
.cj-code-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; letter-spacing: .12em; font-size: 16px !important; }
.cj-code-input::placeholder { font-family: var(--cj-font-body); letter-spacing: normal; font-size: 14px; }

.cj-form-actions { padding-top: 24px; border-top: 1px solid var(--cj-surface-low); display: flex; flex-direction: column-reverse; gap: 12px; }
@media (min-width: 640px) { .cj-form-actions { flex-direction: row; align-items: center; justify-content: space-between; } }
.cj-form-actions .cj-btn--lg { width: 100%; }
@media (min-width: 640px) { .cj-form-actions .cj-btn { width: auto; } }

/* Resumen lateral */
.cj-summary { background: var(--cj-surface); border: 1px solid var(--cj-border); border-radius: var(--cj-r-lg); box-shadow: var(--cj-shadow-1); padding: 24px; }
.cj-summary__head { padding-bottom: 16px; border-bottom: 1px solid var(--cj-surface-low); }
.cj-summary__head h2 { font-size: 16px; line-height: 24px; font-weight: 700; }
.cj-summary__head p { margin-top: 4px; display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: var(--cj-muted); }
.cj-summary__head .ms { color: var(--cj-primary-ink); }
.cj-summary__product { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--cj-surface-low); }
.cj-summary__thumb { width: 80px; height: 80px; flex-shrink: 0; padding: 6px; border-radius: var(--cj-r-md); border: 1px solid var(--cj-border); background: var(--cj-bg); display: flex; align-items: center; justify-content: center; }
.cj-summary__thumb img { width: 100%; height: 100%; object-fit: contain; }
.cj-summary__ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 14px; color: var(--cj-faint); text-transform: uppercase; }
.cj-summary__kicker { display: block; margin-top: 2px; font-size: 11px; line-height: 14px; font-weight: 600; color: var(--cj-muted); }
.cj-summary__name { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--cj-text); }
.cj-summary__name a:hover { color: var(--cj-primary-ink); }
.cj-summary__list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; font-size: 12px; line-height: 16px; }
.cj-summary__list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--cj-text-2); }
.cj-summary__list li > span:first-child { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.cj-summary__list .ms { color: var(--cj-faint); }
.cj-summary__list b { font-weight: 600; color: var(--cj-text); text-align: right; }
.cj-summary__covered { padding: 2px 8px; border-radius: var(--cj-r-sm); background: var(--cj-primary-soft); border: 1px solid var(--cj-primary-border); color: var(--cj-primary-ink); font-weight: 700; font-size: 11px; text-align: right; }

.cj-help { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--cj-r-lg); background: linear-gradient(135deg, var(--cj-primary-soft-2), var(--cj-primary-soft)); border: 1px solid var(--cj-primary-border); }
.cj-help__icon { width: 40px; height: 40px; border-radius: var(--cj-r-md); flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--cj-primary); color: var(--cj-on-primary); box-shadow: 0 4px 10px var(--cj-primary-glow); }
.cj-help h3 { font-size: 14px; line-height: 20px; font-weight: 700; }
.cj-help p { margin-top: 2px; font-size: 12px; line-height: 18px; color: var(--cj-text-2); }
.cj-help .cj-btn { margin-top: 12px; min-height: 34px; padding: 6px 14px; font-size: 12px; }

.cj-guarantees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.cj-guarantee { padding: 12px 6px; background: var(--cj-surface); border: 1px solid var(--cj-border); border-radius: var(--cj-r-md); display: grid; gap: 2px; justify-items: center; }
.cj-guarantee .ms { color: var(--cj-primary-ink); margin-bottom: 2px; }
.cj-guarantee h4 { font-size: 11px; line-height: 14px; font-weight: 700; }
.cj-guarantee span { font-size: 10px; line-height: 12px; color: var(--cj-faint); }

/* Confirmación */
.cj-done { max-width: 720px; margin: 32px auto; text-align: center; background: var(--cj-surface); border: 1px solid var(--cj-border); border-radius: var(--cj-r-lg); box-shadow: var(--cj-shadow-3); padding: 40px 20px; display: grid; gap: 16px; justify-items: center; }
@media (min-width: 640px) { .cj-done { padding: 56px 48px; } }
.cj-done__icon { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--cj-primary-soft-2); color: var(--cj-primary-ink); box-shadow: 0 0 0 10px var(--cj-primary-soft); }
.cj-done__icon .ms { font-size: 44px; }
.cj-done h1 { font-family: var(--cj-font-display); font-size: 26px; line-height: 34px; font-weight: 800; letter-spacing: -.015em; text-wrap: balance; }
.cj-done p { font-size: 15px; line-height: 24px; color: var(--cj-text-2); max-width: 520px; }
.cj-done__next { width: 100%; display: grid; gap: 10px; text-align: left; margin: 8px 0; }
@media (min-width: 640px) { .cj-done__next { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cj-done__next div { padding: 14px; border-radius: var(--cj-r-md); background: var(--cj-bg); border: 1px solid var(--cj-border); font-size: 12px; line-height: 17px; color: var(--cj-text-2); display: grid; gap: 6px; }
.cj-done__next .ms { color: var(--cj-primary-ink); }
.cj-done__next b { color: var(--cj-text); font-size: 13px; }

/* ==========================================================================
   Páginas legales (site/condiciones)
   ========================================================================== */
.cj-legal { padding-top: 24px; padding-bottom: 64px; }
.cj-legal__head { max-width: 780px; display: grid; gap: 14px; padding: 8px 0 36px; }
.cj-legal__head h1 { font-family: var(--cj-font-display); font-weight: 700; font-size: 28px; line-height: 36px; letter-spacing: -.015em; text-wrap: balance; }
@media (min-width: 640px) { .cj-legal__head h1 { font-size: 36px; line-height: 44px; letter-spacing: -.02em; } }
.cj-legal__head p { color: var(--cj-text-2); font-size: 16px; line-height: 27px; }
.cj-legal__meta { font-size: 13px !important; color: var(--cj-muted) !important; }
.cj-legal__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 1024px) { .cj-legal__layout { grid-template-columns: 270px minmax(0, 1fr); gap: 48px; } }
.cj-legal__toc { background: var(--cj-surface); border: 1px solid var(--cj-border); border-radius: var(--cj-r-md); padding: 22px 24px; }
@media (min-width: 1024px) { .cj-legal__toc { position: sticky; top: 96px; } }
.cj-legal__toc h2 { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cj-muted); margin-bottom: 14px; }
.cj-legal__toc ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; font-size: 14px; line-height: 20px; color: var(--cj-muted); }
.cj-legal__toc a { color: var(--cj-text-2); }
.cj-legal__toc a:hover { color: var(--cj-primary-ink); text-decoration: underline; }
@media (max-width: 1023px) { .cj-legal__toc ol { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.cj-legal__body { background: var(--cj-surface); border: 1px solid var(--cj-border); border-radius: var(--cj-r-lg); box-shadow: var(--cj-shadow-1); padding: 28px 22px; max-width: 840px; font-size: 15px; line-height: 27px; }
@media (min-width: 640px) { .cj-legal__body { padding: 48px 56px; font-size: 16px; line-height: 28px; } }
.cj-legal__body h2 { font-family: var(--cj-font-display); font-size: 21px; line-height: 30px; font-weight: 700; color: var(--cj-text); margin: 44px 0 16px; padding-top: 40px; border-top: 1px solid var(--cj-border); scroll-margin-top: 96px; }
.cj-legal__body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.cj-legal__body p { margin: 0 0 16px; }
.cj-legal__body ul, .cj-legal__body ol { margin: 0 0 18px; }
.cj-legal__body ul, .cj-legal__body ol { padding-left: 24px; }
.cj-legal__body li { margin-bottom: 12px; padding-left: 4px; }
.cj-legal__body li::marker { color: var(--cj-primary-ink); }
.cj-legal__body a { color: var(--cj-primary-ink); text-decoration: underline; }
.cj-legal__body strong { color: var(--cj-text); }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.cj *, .cj *::before, .cj *::after { transition: none !important; animation: none !important; }
}
