/*!
 * CLICKMEX Premium Storefront — estilos base (mobile first).
 * Todo está acotado a .cmx-psf para no afectar al resto del sitio ni a Astra.
 */

/* ---------- Base y aislamiento ---------- */
body.cmx-psf-canvas {
	margin: 0;
	background: var(--cmx-white);
	color: var(--cmx-text);
	font-family: var(--cmx-font);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.cmx-psf {
	font-family: var(--cmx-font);
	color: var(--cmx-text);
	font-size: 15px;
	line-height: 1.55;
	-webkit-text-size-adjust: 100%;
}
.cmx-psf--embedded {
	background: var(--cmx-white);
	overflow-x: clip;
}
.cmx-psf *,
.cmx-psf *::before,
.cmx-psf *::after { box-sizing: border-box; }
/* Los temas (Astra incluido) asignan fuentes a elementos sueltos; dentro del storefront todo hereda Poppins. */
.cmx-psf * { font-family: inherit; }
.cmx-psf img { max-width: 100%; height: auto; display: block; }
.cmx-psf ul { list-style: none; margin: 0; padding: 0; }
.cmx-psf li { margin: 0; }
.cmx-psf p { margin: 0; }
.cmx-psf a { color: inherit; text-decoration: none; }
.cmx-psf h1, .cmx-psf h2, .cmx-psf h3 {
	font-family: var(--cmx-font);
	color: inherit;
	margin: 0;
	line-height: 1.15;
	letter-spacing: -.01em;
	text-transform: none;
}
.cmx-psf button { font-family: var(--cmx-font); }
.cmx-psf :focus-visible {
	outline: 3px solid var(--cmx-turquoise);
	outline-offset: 2px;
	border-radius: 6px;
}
.cmx-psf .cmx-icon { width: 22px; height: 22px; flex: none; }

.cmx-container {
	width: 100%;
	max-width: var(--cmx-container);
	margin: 0 auto;
	padding-left: var(--cmx-gutter);
	padding-right: var(--cmx-gutter);
}
.cmx-sr-only,
.cmx-psf .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}
.cmx-skip-link {
	position: absolute; left: 12px; top: -48px; z-index: 1000;
	background: var(--cmx-dark); color: #fff !important;
	padding: 10px 16px; border-radius: var(--cmx-radius-sm);
	transition: top .2s;
}
.cmx-skip-link:focus { top: 12px; }
.cmx-main:focus { outline: none; }

@media (max-width: 1023.98px) { .cmx-psf .cmx-hide-mobile { display: none !important; } }
@media (min-width: 1024px) { .cmx-psf .cmx-hide-desktop { display: none !important; } }

/* ---------- Botones ---------- */
.cmx-psf .cmx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 22px;
	border: 2px solid transparent;
	border-radius: var(--cmx-radius-pill);
	font-family: var(--cmx-font);
	font-size: 15px;
	font-weight: var(--cmx-fw-semibold);
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s var(--cmx-ease), color .2s, transform .2s var(--cmx-ease), box-shadow .2s;
	-webkit-tap-highlight-color: transparent;
}
.cmx-psf .cmx-btn .cmx-icon { width: 18px; height: 18px; }
.cmx-psf .cmx-btn:active { transform: translateY(1px) scale(.99); }
.cmx-psf .cmx-btn--orange { background: var(--cmx-orange); color: #fff; box-shadow: 0 8px 20px rgba(255, 107, 61, .30); }
.cmx-psf .cmx-btn--orange:hover { background: var(--cmx-orange-600); color: #fff; }
.cmx-psf .cmx-btn--blue { background: var(--cmx-blue); color: #fff; }
.cmx-psf .cmx-btn--blue:hover { background: var(--cmx-blue-800); color: #fff; }
.cmx-psf .cmx-btn--white { background: #fff; color: var(--cmx-blue); }
.cmx-psf .cmx-btn--white:hover { background: var(--cmx-white); color: var(--cmx-blue); }
.cmx-psf .cmx-btn--outline { background: transparent; color: var(--cmx-blue); border-color: var(--cmx-blue); }
.cmx-psf .cmx-btn--outline:hover { background: var(--cmx-blue-50); }
.cmx-psf .cmx-btn--ghost { background: var(--cmx-white); color: var(--cmx-muted); border-color: var(--cmx-border); }
.cmx-psf .cmx-btn--block { display: flex; width: 100%; }
.cmx-psf .cmx-btn--lg { min-height: 52px; padding: 14px 26px; font-size: 16px; white-space: nowrap; }
.cmx-psf .cmx-btn--sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }

/* Estados nativos de WooCommerce al añadir al carrito */
.cmx-psf .cmx-btn.loading { opacity: .75; pointer-events: none; }
.cmx-psf .cmx-btn.loading .cmx-icon { animation: cmx-spin .8s linear infinite; }
.cmx-psf .cmx-btn.added { background: var(--cmx-turquoise-600); box-shadow: none; }
.cmx-psf .added_to_cart {
	display: block;
	margin-top: 8px;
	text-align: center;
	font-size: 13px;
	font-weight: var(--cmx-fw-semibold);
	color: var(--cmx-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}
@keyframes cmx-spin { to { transform: rotate(360deg); } }

.cmx-psf .cmx-icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 44px;
	min-height: 44px;
	padding: 0 6px;
	margin: 0;
	/* !important: algunos temas pintan todos los <button> con selectores muy específicos. */
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--cmx-blue) !important;
	font-size: 14px;
	font-weight: var(--cmx-fw-medium);
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	border-radius: var(--cmx-radius-sm);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.cmx-psf .cmx-icon-btn:hover,
.cmx-psf .cmx-icon-btn:focus-visible { background: var(--cmx-blue-50) !important; color: var(--cmx-blue) !important; }
.cmx-psf .cmx-icon-btn .cmx-icon { width: 24px; height: 24px; }

.cmx-link-arrow {
	display: inline-flex; align-items: center; gap: 6px;
	color: var(--cmx-blue) !important;
	font-weight: var(--cmx-fw-semibold);
	font-size: 14px;
	white-space: nowrap;
}
.cmx-psf .cmx-link-arrow .cmx-icon { width: 18px; height: 18px; transition: transform .2s; }
.cmx-link-arrow:hover .cmx-icon { transform: translateX(3px); }

/* ---------- Logo ---------- */
.cmx-logo {
	display: inline-flex;
	align-items: flex-end;
	gap: 0;
	color: var(--cmx-blue);
	line-height: 1;
	flex: none;
}
.cmx-logo__img { height: 34px; width: auto !important; max-width: 180px; object-fit: contain; }
.cmx-logo__mark { width: 40px; height: 35px; margin-right: -4px; margin-bottom: 1px; color: var(--cmx-blue); }
.cmx-logo__word {
	font-family: var(--cmx-font);
	font-weight: var(--cmx-fw-black);
	font-size: 25px;
	letter-spacing: -.035em;
	line-height: .9;
}
.cmx-logo__lick { color: var(--cmx-blue); }
.cmx-logo__mex { color: var(--cmx-turquoise); }
.cmx-logo--light { color: #fff; }
.cmx-logo--light .cmx-logo__mark,
.cmx-logo--light .cmx-logo__lick { color: #fff; }

/* ---------- Barra superior ---------- */
.cmx-announce {
	background: var(--cmx-blue-900);
	color: #fff;
	font-size: 12.5px;
	font-weight: var(--cmx-fw-medium);
}
.cmx-announce__list {
	position: relative;
	display: grid;
	min-height: 36px;
	align-items: center;
	justify-items: center;
}
.cmx-announce__item {
	grid-area: 1 / 1;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .35s, transform .35s;
	text-align: center;
}
.cmx-announce__item.is-active { opacity: 1; transform: none; }
.cmx-psf .cmx-announce .cmx-icon { width: 17px; height: 17px; color: var(--cmx-turquoise); }

/* ---------- Cabecera ---------- */
.cmx-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background: #fff;
	box-shadow: 0 1px 0 var(--cmx-border);
	transition: box-shadow .2s;
}
.admin-bar .cmx-header { top: 46px; }
.cmx-header.is-scrolled { box-shadow: 0 6px 18px rgba(15, 23, 42, .08); }
.cmx-header__bar {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas:
		"logo actions"
		"search search";
	align-items: center;
	column-gap: 12px;
	row-gap: 10px;
	padding-top: 10px;
	padding-bottom: 12px;
}
.cmx-header__bar > .cmx-logo { grid-area: logo; }
.cmx-header__actions {
	grid-area: actions;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 2px;
}
.cmx-search {
	grid-area: search;
	position: relative;
	display: flex;
	align-items: center;
	margin: 0;
}
.cmx-psf .cmx-search__input {
	width: 100%;
	height: 44px;
	margin: 0;
	padding: 0 16px 0 44px;
	border: 1.5px solid var(--cmx-border);
	border-radius: var(--cmx-radius-pill);
	background: var(--cmx-white);
	color: var(--cmx-dark);
	font-family: var(--cmx-font);
	font-size: 16px; /* evita zoom en iOS */
	box-shadow: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .2s, background .2s;
}
.cmx-psf .cmx-search__input::placeholder { color: #8A93A8; }
/* !important: los temas pintan los botones de su color; aquí manda la marca. */
.cmx-psf .cmx-search__submit:hover, .cmx-psf .cmx-search__submit:focus { background: var(--cmx-blue-800) !important; color: #fff !important; }
.cmx-psf .cmx-search__input:focus { border-color: var(--cmx-turquoise); background: #fff; }
.cmx-psf .cmx-search__icon {
	position: absolute; left: 15px; top: 50%;
	width: 19px; height: 19px;
	transform: translateY(-50%);
	color: var(--cmx-muted);
	pointer-events: none;
}
.cmx-psf .cmx-search__submit {
	position: absolute; right: 4px; top: 4px; bottom: 4px;
	margin: 0;
	padding: 0 16px;
	border: 0 !important;
	box-shadow: none !important;
	text-transform: none;
	letter-spacing: 0;
	line-height: 1;
	border-radius: var(--cmx-radius-pill);
	background: var(--cmx-blue) !important;
	color: #fff !important;
	font-size: 14px;
	font-weight: var(--cmx-fw-semibold);
	cursor: pointer;
	display: none;
}
.cmx-cart-link__icon { position: relative; display: inline-flex; }
.cmx-cart-count {
	position: absolute;
	top: -7px; right: -9px;
	min-width: 19px; height: 19px;
	padding: 0 5px;
	border-radius: 10px;
	background: var(--cmx-orange);
	color: #fff;
	font-size: 11px;
	font-weight: var(--cmx-fw-bold);
	line-height: 19px;
	text-align: center;
	box-shadow: 0 0 0 2px #fff;
	transition: transform .25s var(--cmx-ease);
}
.cmx-cart-count.is-empty { background: var(--cmx-muted); opacity: .0; transform: scale(.4); }
.cmx-cart-count.is-bump { animation: cmx-bump .45s var(--cmx-ease); }
@keyframes cmx-bump { 40% { transform: scale(1.35); } }

.cmx-nav { border-top: 1px solid var(--cmx-border); }
.cmx-nav__list { display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: center; }
.cmx-nav__list > li { position: relative; }
.cmx-nav__list > li > a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	font-size: 14.5px;
	font-weight: var(--cmx-fw-medium);
	color: var(--cmx-dark);
	position: relative;
}
.cmx-nav__list > li > a::after {
	content: "";
	position: absolute; left: 0; right: 0; bottom: 10px;
	height: 2px; border-radius: 2px;
	background: var(--cmx-turquoise);
	transform: scaleX(0);
	transition: transform .2s var(--cmx-ease);
}
.cmx-nav__list > li > a:hover,
.cmx-nav__list > li.current-menu-item > a { color: var(--cmx-blue); }
.cmx-nav__list > li > a:hover::after,
.cmx-nav__list > li.current-menu-item > a::after { transform: scaleX(1); }
.cmx-nav__list .sub-menu {
	position: absolute; top: 100%; left: -16px; z-index: 5;
	min-width: 220px;
	padding: 8px;
	background: #fff;
	border-radius: var(--cmx-radius);
	box-shadow: var(--cmx-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s, transform .18s, visibility .18s;
}
.cmx-nav__list li:hover > .sub-menu,
.cmx-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.cmx-nav__list .sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.cmx-nav__list .sub-menu a:hover { background: var(--cmx-blue-50); color: var(--cmx-blue); }

/* Menú móvil */
.cmx-drawer[hidden] { display: none; }
.cmx-drawer { position: fixed; inset: 0; z-index: 9999; }
.cmx-drawer__overlay {
	position: absolute; inset: 0;
	background: rgba(6, 31, 75, .55);
	opacity: 0; transition: opacity .25s;
}
.cmx-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0;
	width: min(88vw, 360px);
	display: flex; flex-direction: column;
	background: #fff;
	box-shadow: var(--cmx-shadow-lg);
	transform: translateX(100%);
	transition: transform .3s var(--cmx-ease);
}
.cmx-drawer.is-open .cmx-drawer__overlay { opacity: 1; }
.cmx-drawer.is-open .cmx-drawer__panel { transform: none; }
.cmx-drawer__head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 12px 12px 12px 16px;
	border-bottom: 1px solid var(--cmx-border);
}
.cmx-drawer__nav { flex: 1; overflow-y: auto; padding: 8px 8px 16px; }
.cmx-drawer__list a {
	display: flex; align-items: center;
	min-height: 50px;
	padding: 0 12px;
	border-radius: var(--cmx-radius-sm);
	font-size: 16px;
	font-weight: var(--cmx-fw-medium);
	color: var(--cmx-dark);
}
.cmx-drawer__list a:hover,
.cmx-drawer__list .current-menu-item > a { background: var(--cmx-blue-50); color: var(--cmx-blue); }
.cmx-drawer__list .sub-menu { padding-left: 14px; }
.cmx-drawer__list .sub-menu a { min-height: 42px; font-size: 15px; color: var(--cmx-muted); }
.cmx-drawer__foot { display: grid; gap: 10px; padding: 16px; border-top: 1px solid var(--cmx-border); }
html.cmx-lock, html.cmx-lock body { overflow: hidden; }

/* ---------- Hero ---------- */
.cmx-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	color: #fff;
	background:
		radial-gradient(120% 90% at 85% 10%, rgba(0, 209, 178, .20) 0%, rgba(0, 209, 178, 0) 45%),
		linear-gradient(135deg, var(--cmx-blue) 0%, var(--cmx-blue-800) 55%, var(--cmx-blue-900) 100%);
}
.cmx-hero__deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cmx-shape { position: absolute; display: block; }
.cmx-shape--ring {
	width: 340px; height: 340px; right: -120px; top: -140px;
	border-radius: 50%;
	border: 46px solid rgba(255, 255, 255, .05);
}
.cmx-shape--blob-t {
	width: 220px; height: 160px; left: -90px; bottom: -70px;
	background: var(--cmx-turquoise);
	border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%;
	opacity: .9;
}
.cmx-shape--blob-o {
	width: 90px; height: 70px; left: 64px; bottom: -40px;
	background: var(--cmx-orange);
	border-radius: 50% 50% 45% 55% / 60% 55% 45% 40%;
	opacity: .95;
}
.cmx-shape--dots {
	width: 120px; height: 72px; right: 8%; bottom: 18px;
	background-image: radial-gradient(rgba(255, 255, 255, .22) 1.6px, transparent 1.8px);
	background-size: 14px 14px;
}
.cmx-hero__inner {
	position: relative;
	display: grid;
	gap: 18px;
	padding-top: 28px;
	padding-bottom: 40px;
}
.cmx-hero__copy { position: relative; z-index: 2; }
.cmx-hero__title {
	font-size: clamp(1.6rem, 7.2vw, 2.1rem);
	font-weight: var(--cmx-fw-bold);
	color: #fff !important;
	line-height: 1.12;
}
.cmx-hero__subtitle {
	margin-top: 10px !important;
	font-size: 14.5px;
	color: rgba(255, 255, 255, .86);
	max-width: 34ch;
}
.cmx-hero__copy .cmx-btn { margin-top: 18px; }

/* Con imagen: en móvil la imagen se ubica a la derecha, detrás del texto (como la referencia). */
.cmx-hero.has-image .cmx-hero__inner { min-height: 300px; padding-bottom: 32px; }
.cmx-hero.has-image .cmx-hero__copy { max-width: 60%; }
.cmx-hero.has-image .cmx-hero__media {
	position: absolute;
	right: -4%; bottom: 0;
	width: 52%;
	height: 100%;
	display: flex; align-items: flex-end; justify-content: flex-end;
	z-index: 1;
}
.cmx-hero__img {
	width: 100%;
	height: 100% !important;
	max-height: 320px;
	object-fit: contain;
	object-position: right bottom;
	filter: drop-shadow(0 18px 30px rgba(6, 31, 75, .35));
}
.cmx-hero.has-image .cmx-hero__products { display: none; }

.cmx-hero__brandmark { display: none; }

.cmx-hero__products { display: grid; gap: 12px; }
.cmx-hero-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	background: #fff;
	color: var(--cmx-dark) !important;
	border-radius: var(--cmx-radius);
	box-shadow: var(--cmx-shadow-lg);
	transition: transform .25s var(--cmx-ease);
}
.cmx-hero-card:hover { transform: translateY(-3px); }
.cmx-hero-card__img {
	flex: none; width: 76px; height: 76px;
	border-radius: 12px; overflow: hidden;
	background: var(--cmx-white);
}
.cmx-hero-card__img img { width: 100%; height: 100% !important; object-fit: cover; }
.cmx-hero-card__body { display: grid; gap: 4px; min-width: 0; }
.cmx-hero-card__name {
	font-size: 14px; font-weight: var(--cmx-fw-semibold); line-height: 1.3;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cmx-hero-card--2, .cmx-hero-card--3 { display: none; }

/* ---------- Precios (marcado nativo de WooCommerce) ---------- */
.cmx-price {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px;
	font-size: 18px;
	font-weight: var(--cmx-fw-bold);
	color: var(--cmx-blue);
	line-height: 1.2;
}
.cmx-price > .amount,
.cmx-price > .woocommerce-Price-amount { color: var(--cmx-blue); }
.cmx-price del {
	order: 2;
	color: #8A93A8;
	font-size: 13.5px;
	font-weight: var(--cmx-fw-medium);
	opacity: 1;
	text-decoration-thickness: 1.5px;
}
.cmx-price ins { order: 1; text-decoration: none; background: none; color: var(--cmx-blue); }
.cmx-hero-card .cmx-price { font-size: 15px; }

/* ---------- Secciones ---------- */
.cmx-section { padding-top: var(--cmx-section-gap); }
.cmx-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}
.cmx-section__title {
	font-size: clamp(1.25rem, 5vw, 1.75rem);
	font-weight: var(--cmx-fw-bold);
	color: var(--cmx-dark) !important;
}
.cmx-section__subtitle { margin-top: 4px !important; color: var(--cmx-muted); font-size: 14px; }

/* ---------- Beneficios ---------- */
.cmx-benefits { background: #fff; border-bottom: 1px solid var(--cmx-border); }
.cmx-benefits__list { display: grid; grid-template-columns: repeat(2, 1fr); }
.cmx-benefit {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 8px;
	min-width: 0;
}
.cmx-benefits__list > li:nth-child(odd) { padding-left: 0; }
.cmx-benefits__list > li:nth-child(n + 3) { border-top: 1px solid var(--cmx-border); }
.cmx-benefits__list > li:nth-child(even) { border-left: 1px solid var(--cmx-border); padding-left: 12px; }
.cmx-benefits__list--1, .cmx-benefits__list--3 { grid-template-columns: 1fr; }
.cmx-benefits__list--1 > li, .cmx-benefits__list--3 > li { border-left: 0 !important; padding-left: 0 !important; }
.cmx-benefits__list--3 > li + li { border-top: 1px solid var(--cmx-border); }
.cmx-benefit__icon {
	flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px;
	border-radius: 12px;
	background: var(--cmx-turquoise-50);
	color: var(--cmx-blue);
}
.cmx-psf .cmx-benefit__icon .cmx-icon { width: 23px; height: 23px; }
.cmx-benefit__text { display: grid; line-height: 1.25; min-width: 0; }
.cmx-benefit__text strong { font-size: 13px; font-weight: var(--cmx-fw-semibold); color: var(--cmx-dark); }
.cmx-benefit__text small { font-size: 11.5px; color: var(--cmx-muted); }

/* ---------- Categorías ---------- */
.cmx-categories__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px 10px;
}
.cmx-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
	color: var(--cmx-dark) !important;
	-webkit-tap-highlight-color: transparent;
}
.cmx-cat__media {
	display: flex; align-items: center; justify-content: center;
	width: 64px; height: 64px;
	border-radius: 50%;
	overflow: hidden;
	background: #fff;
	color: var(--cmx-blue);
	border: 1.5px solid var(--cmx-border);
	box-shadow: var(--cmx-shadow-sm);
	transition: transform .25s var(--cmx-ease), border-color .2s, box-shadow .25s, background .2s;
}
.cmx-psf .cmx-cat__media .cmx-icon { width: 28px; height: 28px; }
.cmx-cat__media.has-image { border-color: transparent; }
.cmx-cat__media img { width: 100%; height: 100% !important; object-fit: cover; }
.cmx-cat__name {
	font-size: 12px;
	font-weight: var(--cmx-fw-medium);
	line-height: 1.25;
	overflow-wrap: anywhere;
}
.cmx-cat:hover .cmx-cat__media,
.cmx-cat:focus-visible .cmx-cat__media {
	transform: translateY(-3px);
	border-color: var(--cmx-turquoise);
	box-shadow: 0 10px 22px rgba(0, 209, 178, .22);
}
.cmx-cat--more .cmx-cat__media { background: var(--cmx-blue-50); }

/* ---------- Productos ---------- */
.cmx-products__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
.cmx-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #fff;
	border-radius: var(--cmx-radius);
	box-shadow: var(--cmx-shadow-sm);
	overflow: hidden;
	transition: transform .25s var(--cmx-ease), box-shadow .25s;
}
.cmx-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--cmx-white);
	overflow: hidden;
}
.cmx-card__media img,
.cmx-card__img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform .5s var(--cmx-ease);
}
.cmx-card:hover .cmx-card__media img { transform: scale(1.04); }
.cmx-card.is-out-of-stock .cmx-card__media img { opacity: .55; filter: grayscale(.4); }
.cmx-badge {
	position: absolute; top: 10px; left: 10px; z-index: 2;
	padding: 4px 9px;
	border-radius: 7px;
	font-size: 11.5px;
	font-weight: var(--cmx-fw-bold);
	line-height: 1.3;
	letter-spacing: .01em;
}
.cmx-badge--sale { background: var(--cmx-orange); color: #fff; }
.cmx-badge--muted { left: auto; right: 10px; background: var(--cmx-dark); color: #fff; }
.cmx-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	padding: 12px;
}
.cmx-card__title {
	font-size: 13.5px !important;
	font-weight: var(--cmx-fw-semibold) !important;
	line-height: 1.35 !important;
	color: var(--cmx-dark) !important;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	min-height: 2.7em;
}
.cmx-card__title a:hover { color: var(--cmx-blue); }
.cmx-card__rating { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--cmx-muted); white-space: nowrap; }
.cmx-stars { position: relative; display: inline-block; flex: none; line-height: 0; white-space: nowrap; }
.cmx-stars__base, .cmx-stars__fill { display: inline-flex; gap: 1px; }
.cmx-stars svg { display: inline-block; flex: none; width: 13px; height: 13px; }
.cmx-stars__base svg { fill: #D7DEEA; }
.cmx-stars__fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; }
.cmx-stars__fill svg { fill: #FFB020; }
.cmx-card__actions { margin-top: auto; padding-top: 2px; }
.cmx-btn__short { display: none; }
@media (max-width: 479.98px) {
	.cmx-btn__long { display: none; }
	.cmx-btn__short { display: inline; }
}
.cmx-psf .cmx-card .cmx-btn {
	min-height: 44px;
	padding: 10px 12px;
	border-radius: 12px;
	font-size: 13.5px;
	box-shadow: none;
}

/* ---------- Banners ---------- */
.cmx-banners__grid { display: grid; gap: 14px; }
.cmx-banner {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 240px;
	overflow: hidden;
	isolation: isolate;
	border-radius: var(--cmx-radius-lg);
	color: #fff;
}
.cmx-banner--blue { background: linear-gradient(135deg, var(--cmx-blue) 0%, var(--cmx-blue-900) 100%); }
.cmx-banner--turquoise { background: linear-gradient(160deg, var(--cmx-turquoise) 0%, var(--cmx-turquoise-600) 100%); color: var(--cmx-blue); }
.cmx-banner--orange { background: linear-gradient(160deg, var(--cmx-orange) 0%, var(--cmx-orange-600) 100%); }
.cmx-banner__deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cmx-banner__deco span { position: absolute; display: block; border-radius: 55% 45% 60% 40% / 50% 55% 45% 50%; }
.cmx-banner__deco span:first-child { width: 180px; height: 140px; right: -50px; top: -50px; }
.cmx-banner__deco span:last-child { width: 120px; height: 90px; left: -40px; bottom: -40px; }
.cmx-banner--blue .cmx-banner__deco span:first-child { background: var(--cmx-turquoise); opacity: .9; }
.cmx-banner--blue .cmx-banner__deco span:last-child { background: var(--cmx-orange); }
.cmx-banner--turquoise .cmx-banner__deco span:first-child { background: rgba(255, 255, 255, .25); }
.cmx-banner--turquoise .cmx-banner__deco span:last-child { background: var(--cmx-blue); opacity: .9; }
.cmx-banner--orange .cmx-banner__deco span:first-child { background: rgba(255, 255, 255, .2); }
.cmx-banner--orange .cmx-banner__deco span:last-child { background: var(--cmx-blue); opacity: .9; }
.cmx-banner__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 24px 20px;
	max-width: 100%;
}
.cmx-banner.has-image .cmx-banner__content { max-width: 64%; }
.cmx-banner__brand .cmx-logo__mark { width: 28px; height: 25px; }
.cmx-banner__brand .cmx-logo__word { font-size: 17px; }
.cmx-banner__brand .cmx-logo__img { height: 22px; }
.cmx-banner--turquoise .cmx-banner__brand .cmx-logo__mark,
.cmx-banner--turquoise .cmx-banner__brand .cmx-logo__lick { color: var(--cmx-blue); }
.cmx-banner--turquoise .cmx-banner__brand .cmx-logo__mex,
.cmx-banner--orange .cmx-banner__brand .cmx-logo__mex { color: #fff; }
.cmx-banner__title {
	font-size: clamp(1.35rem, 6vw, 1.9rem);
	font-weight: var(--cmx-fw-bold);
	color: inherit !important;
	line-height: 1.12;
}
.cmx-banner__subtitle { font-size: 14px; opacity: .9; max-width: 36ch; }
.cmx-banner .cmx-btn { margin-top: 6px; }
.cmx-psf .cmx-banner--orange .cmx-btn--white { color: var(--cmx-orange-600); }
.cmx-banner__media {
	position: absolute;
	right: 0; bottom: 0;
	width: 46%;
	height: 100%;
	display: flex; align-items: flex-end; justify-content: flex-end;
	z-index: 1;
}
.cmx-banner__media img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: center top;
}

/* ---------- Pie ---------- */
.cmx-footer {
	position: relative;
	overflow: hidden;
	margin-top: 56px;
	padding: 44px 0 0;
	background: linear-gradient(160deg, var(--cmx-blue) 0%, var(--cmx-blue-900) 100%);
	color: rgba(255, 255, 255, .82);
	font-size: 14px;
}
.cmx-footer__deco {
	position: absolute; right: -70px; top: -60px;
	width: 220px; height: 170px;
	border-radius: 55% 45% 60% 40% / 50% 55% 45% 50%;
	background: var(--cmx-turquoise);
	opacity: .14;
	pointer-events: none;
}
.cmx-footer__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 20px;
}
.cmx-footer__brand { grid-column: 1 / -1; display: grid; gap: 12px; }
.cmx-footer__brand p { max-width: 42ch; }
.cmx-footer__tagline { color: var(--cmx-turquoise); font-weight: var(--cmx-fw-semibold); letter-spacing: .06em; }
.cmx-footer__title {
	margin-bottom: 12px !important;
	font-size: 15px !important;
	font-weight: var(--cmx-fw-semibold) !important;
	color: #fff !important;
}
.cmx-footer__list { display: grid; gap: 4px; }
.cmx-footer__list a,
.cmx-footer__list span {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 32px;
	color: rgba(255, 255, 255, .82) !important;
}
.cmx-footer__list a:hover { color: #fff !important; }
.cmx-psf .cmx-footer__list .cmx-icon { width: 17px; height: 17px; color: var(--cmx-turquoise); }
.cmx-footer__contact { grid-column: 1 / -1; }
.cmx-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 32px;
	padding: 18px 0 22px;
	border-top: 1px solid rgba(255, 255, 255, .14);
	font-size: 13px;
}

/* ---------- Modo incrustado dentro de Astra ---------- */
.cmx-psf--embedded .cmx-announce--inline { border-radius: 0; }
.cmx-psf--embedded > .cmx-section:last-child { padding-bottom: var(--cmx-section-gap); }
.cmx-psf--canvas .cmx-main > .cmx-section:last-child { padding-bottom: 8px; }

/* ---------- Accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
	.cmx-psf *, .cmx-psf *::before, .cmx-psf *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}
