/*
 * Imprenta App: tienda, ficha, cesta, pago y cuenta dentro del marco propio.
 * Móvil: como una app (barra de pestañas abajo, tarjetas, el dato clave en grande).
 * Ordenador (≥1025px): 1300px, pestañas arriba, 2 columnas y tablas densas para agencias y talleres.
 * Los selectores de WooCommerce llevan body.iam delante para ganar a su CSS sin !important.
 */

body.iam {
	--v: #22b49a;
	--v2: #139881;
	--v3: #1c9c85;
	--v4: #3e9a8a;
	--vo: #014b42;
	--vo2: #003d36;
	--vc: #e8f7f3;
	--vc2: #d2efe8;
	--t: #1b1b1b;
	--t2: #3b3b3b;
	--t3: #5f6664;
	--g: #e9e9e9;
	--g2: #f4f6f5;
	--n: #000d1c;
	--blanco: #fff;
	--ok: #0b6b5b;
	--ok-f: #e3f6f1;
	--curso: #1d4e89;
	--curso-f: #e7f0fb;
	--aviso: #8a5a00;
	--aviso-f: #fff4db;
	--error: #a12626;
	--error-f: #fde9e9;
	--r: 14px;
	--r2: 10px;
	--sombra: 0 1px 2px rgba(0, 13, 28, .06), 0 4px 16px rgba(0, 13, 28, .06);
	--sombra2: 0 8px 30px rgba(0, 13, 28, .14);
	--f1: "Poppins", "Segoe UI", Arial, sans-serif;
	--f2: "Open Sans", "Segoe UI", Arial, sans-serif;
	--cab: 60px;
	--barra: 64px;
	margin: 0;
	background: var(--g2);
	color: var(--t);
	font: 400 15px/1.55 var(--f2);
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

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

body.iam img,
body.iam svg {
	max-width: 100%;
}

body.iam a {
	color: var(--v2);
	text-decoration: none;
}

body.iam a:hover {
	color: var(--vo);
	text-decoration: underline;
}

/* Foco sólido y oscuro (más de 3:1 sobre el fondo) para que quien usa el teclado vea dónde está. */
body.iam :focus-visible {
	outline: 3px solid var(--vo);
	outline-offset: 2px;
}

/* Sobre fondo oscuro (cabecera, «Saltar al contenido», portada, aviso flotante y franja de la demo), el foco va en blanco. */
body.iam .iam-cab :focus-visible,
body.iam .iam-saltar:focus-visible,
body.iam .iam-hero :focus-visible,
body.iam .iam-toast :focus-visible,
body.iam .iam-franja-demo :focus-visible {
	outline-color: #fff;
}

body.iam h1,
body.iam h2,
body.iam h3,
body.iam h4 {
	font-family: var(--f1);
	color: var(--t);
	line-height: 1.25;
	margin: 0 0 .5em;
	font-weight: 600;
}

body.iam h1 {
	font-size: 26px;
}

body.iam h2 {
	font-size: 18px;
}

body.iam h3 {
	font-size: 16px;
}

body.iam p {
	margin: 0 0 1em;
}

body.iam small {
	font-size: 13px;
}

body.iam .screen-reader-text,
body.iam .iam-oculto {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.iam-saltar {
	position: absolute;
	left: 8px;
	top: -60px;
	z-index: 200;
	background: var(--vo);
	color: #fff !important;
	padding: 10px 16px;
	border-radius: 8px;
	font-weight: 600;
}

.iam-saltar:focus {
	top: 8px;
}

.iam-ico {
	width: 22px;
	height: 22px;
	flex: none;
	vertical-align: middle;
}

.iam-num {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.iam-centro {
	text-align: center;
}

.iam-solo-escritorio {
	display: none !important;
}

/* ---------- Cabecera ---------- */

.iam-cab {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--vo);
	color: #fff;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 6px 20px rgba(0, 13, 28, .18);
}

.admin-bar .iam-cab {
	top: 46px;
}

.iam-cab__in {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 1300px;
	min-height: var(--cab);
	margin: 0 auto;
	padding: 8px 16px;
	flex-wrap: wrap;
}

body.iam .iam-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	text-decoration: none;
	margin-right: auto;
	min-height: 44px;
}

.iam-logo__marca {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: var(--v);
	color: var(--vo2);
}

.iam-logo__marca .iam-ico {
	width: 24px;
	height: 24px;
	stroke-width: 2.1;
}

.iam-logo__txt {
	font: 600 17px/1.05 var(--f1);
	letter-spacing: -.01em;
	display: flex;
	flex-direction: column;
}

.iam-logo__txt b {
	color: var(--v);
	font-weight: 700;
}

/* Logo de la web (Ajustes › Logo de la cabecera), para fondo oscuro. Con el body y el enlace delante: en las páginas
   de WooCommerce, «.woocommerce img { height: auto }» pesaba más y lo dejaba a su tamaño real (20/10/2026). */
body.iam .iam-logo .iam-logo__img {
	display: block;
	width: auto;
	height: 38px;
	max-width: 150px;
	object-fit: contain;
}

/*
 * Página de inicio hecha con Elementor: sus secciones van a todo el ancho (cada una lleva su propio ancho, como en la
 * web) y los títulos con la letra de la app. Los colores van en cada widget: el kit de la web no entra en el marco.
 */
.iam-contenedor--elementor {
	max-width: none;
	padding: 0;
}

.iam-elementor .elementor-widget-heading .elementor-heading-title,
.iam-elementor .elementor-widget-image-box .elementor-image-box-title,
.iam-elementor .elementor-widget-icon-box .elementor-icon-box-title,
.iam-elementor .elementor-widget-button .elementor-button {
	font-family: var(--f1);
}

.iam-elementor .elementor-widget-text-editor,
.iam-elementor .elementor-widget-image-box .elementor-image-box-description,
.iam-elementor .elementor-widget-icon-box .elementor-icon-box-description {
	font-family: var(--f2);
}

body.iam .iam-elementor a:hover {
	text-decoration: none;
}

/* Los márgenes de los títulos y párrafos de la app no entran en los widgets: el espacio lo ponen los contenedores. */
body.iam .iam-elementor .elementor-heading-title,
body.iam .iam-elementor .elementor-image-box-title,
body.iam .iam-elementor .elementor-icon-box-title {
	margin: 0;
}

body.iam .iam-elementor .elementor-widget-text-editor p:last-child,
body.iam .iam-elementor .elementor-image-box-description:last-child,
body.iam .iam-elementor .elementor-icon-box-description:last-child {
	margin-bottom: 0;
}

.iam-cab__lupa,
body.iam .iam-cab__admin,
body.iam .iam-cab__cesta {
	position: relative;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .08);
	border: 0;
	color: #fff;
	cursor: pointer;
}

.iam-cab__lupa:hover,
body.iam .iam-cab__admin:hover,
body.iam .iam-cab__cesta:hover {
	background: rgba(255, 255, 255, .16);
	color: #fff;
}

/* Botón «Panel» (solo equipo): en móvil solo el icono. */
body.iam .iam-cab__admin {
	flex: 0 0 auto;
	text-decoration: none;
}

body.iam .iam-cab__admin span {
	display: none;
}

.iam-contador {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--v);
	color: var(--vo2);
	font: 700 12px/20px var(--f1);
	text-align: center;
	box-shadow: 0 0 0 2px var(--vo);
}

.iam-cab__buscar {
	display: none;
	order: 10;
	flex: 1 0 100%;
	padding-bottom: 4px;
}

.iam-cab.is-buscando .iam-cab__buscar {
	display: block;
}

.iam-arriba {
	display: none;
}

.iam-cab--pago .iam-cab__volver {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #fff;
	font-weight: 600;
	min-height: 44px;
}

.iam-cab__seguro {
	display: none;
	align-items: center;
	gap: 6px;
	color: var(--v);
	font: 600 14px var(--f1);
}

/* ---------- Buscador ---------- */

.iam-buscar {
	position: relative;
	display: flex;
	align-items: center;
	margin: 0;
}

.iam-buscar .iam-ico {
	position: absolute;
	left: 14px;
	color: var(--t3);
	pointer-events: none;
}

body.iam .iam-buscar input[type="search"] {
	width: 100%;
	height: 46px;
	padding: 0 16px 0 46px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: #fff;
	color: var(--t);
	font: 400 15px var(--f2);
	-webkit-appearance: none;
	appearance: none;
}

body.iam .iam-buscar--peq input[type="search"] {
	height: 42px;
	border-color: #d5dbd9;
}

/* ---------- Contenido ---------- */

.iam-main {
	min-height: 60vh;
}

.iam-contenedor {
	max-width: 1300px;
	margin: 0 auto;
	padding: 16px 16px 24px;
}

.iam-titulo {
	font-size: 24px;
	margin-bottom: 8px;
}

.iam-intro {
	color: var(--t2);
	max-width: 70ch;
}

.iam-antetitulo {
	font: 600 12px/1.2 var(--f1);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--v2);
	margin: 0 0 6px;
}

.iam-nota {
	color: var(--t3);
	font-size: 13px;
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.iam-nota .iam-ico {
	width: 18px;
	height: 18px;
	margin-top: 1px;
}

.iam-centro.iam-nota {
	justify-content: center;
}

body.iam .iam-miga {
	margin: 0 0 12px;
}

body.iam .iam-miga a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 40px;
	color: var(--t2);
	font-weight: 600;
}

.iam-miga .iam-ico {
	width: 20px;
	height: 20px;
}

.iam-cols {
	display: grid;
	gap: 16px;
}

.iam-col--a,
.iam-col--b {
	min-width: 0;
}

.iam-cab-pagina {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.iam-cab-pagina .iam-titulo {
	margin: 0;
}

.iam-cab-pedido .iam-intro {
	margin: 2px 0 0;
}

.iam-bloque,
.iam-caja {
	background: #fff;
	border-radius: var(--r);
	box-shadow: var(--sombra);
	padding: 18px;
	margin-bottom: 16px;
}

.iam-bloque > h2 {
	font-size: 17px;
	margin-bottom: 12px;
}

.iam-bloque__cab {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.iam-bloque__cab h2 {
	font-size: 17px;
	margin: 0;
}

.iam-bloque__cab a {
	font-weight: 600;
	font-size: 14px;
}

/* Zona de toque de 44 px sin mover el diseño. */
@media (max-width: 1024px) {
	.iam-bloque__cab a,
	.iam-tabla--pedidos td[data-titulo="Pedido"] a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		min-width: 44px;
		margin: -11px 0;
	}

	.iam-bloque__cab a {
		justify-content: flex-end;
		margin-right: -8px;
		padding: 0 8px;
	}
}

.iam-vacio {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
	padding: 40px 16px;
	background: #fff;
	border-radius: var(--r);
	box-shadow: var(--sombra);
	color: var(--t2);
}

.iam-vacio > .iam-ico {
	width: 44px;
	height: 44px;
	color: var(--v);
}

.iam-vacio-txt {
	color: var(--t3);
	margin: 0;
}

.iam-lista {
	margin: 0;
	padding-left: 20px;
}

.iam-lista li {
	margin-bottom: 6px;
}

.iam-lista-check {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
}

.iam-lista-check li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-bottom: 10px;
}

.iam-lista-check .iam-ico {
	color: var(--v);
	width: 22px;
	height: 22px;
}

/* ---------- Botones ---------- */

body.iam .iam-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	vertical-align: middle;
	min-height: 46px;
	padding: 10px 20px;
	border: 2px solid var(--v2);
	border-radius: 12px;
	background: var(--v2);
	color: #fff;
	font: 600 15px/1.2 var(--f1);
	text-decoration: none;
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s, transform .1s;
	-webkit-appearance: none;
	appearance: none;
}

body.iam .iam-btn:hover {
	background: var(--vo);
	border-color: var(--vo);
	color: #fff;
	text-decoration: none;
}

body.iam .iam-btn:active {
	transform: translateY(1px);
}

body.iam .iam-btn[disabled],
body.iam .iam-btn.is-ocupado {
	opacity: .6;
	cursor: progress;
}

body.iam .iam-btn .iam-ico {
	width: 20px;
	height: 20px;
}

body.iam .iam-btn--sec {
	background: #fff;
	color: var(--vo);
	border-color: #cfe3de;
}

body.iam .iam-btn--sec:hover {
	background: var(--vc);
	border-color: var(--v);
	color: var(--vo);
}

body.iam .iam-btn--claro {
	background: #fff;
	border-color: #fff;
	color: var(--vo);
}

body.iam .iam-btn--claro:hover {
	background: var(--vc);
	border-color: var(--vc);
	color: var(--vo);
}

body.iam .iam-btn--peq {
	min-height: 40px;
	padding: 6px 14px;
	font-size: 14px;
	border-radius: 10px;
}

body.iam .iam-btn--grande {
	min-height: 56px;
	font-size: 17px;
	border-radius: 14px;
}

body.iam .iam-btn--bloque {
	display: flex;
	width: 100%;
}

body.iam .iam-enlace {
	background: none;
	border: 0;
	padding: 8px;
	min-height: 44px;
	color: var(--error);
	font: 600 14px var(--f2);
	text-decoration: underline;
	cursor: pointer;
}

/* ---------- Portada ---------- */

.iam-hero {
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	background: radial-gradient(circle at 85% 20%, rgba(34, 180, 154, .45), transparent 45%), linear-gradient(135deg, var(--vo) 0%, var(--vo2) 60%, var(--n) 130%);
	color: #fff;
	padding: 28px 20px;
	margin-bottom: 16px;
}

.iam-hero::after {
	content: "";
	position: absolute;
	right: -40px;
	bottom: -60px;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	border: 34px solid rgba(34, 180, 154, .18);
	pointer-events: none;
}

.iam-hero__txt {
	position: relative;
	z-index: 1;
	max-width: 640px;
}

body.iam .iam-hero h1 {
	color: #fff;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -.01em;
}

.iam-hero p {
	color: rgba(255, 255, 255, .86);
	font-size: 16px;
}

.iam-hero .iam-antetitulo {
	color: var(--v);
}

.iam-hero .iam-buscar {
	margin-top: 18px;
	max-width: 520px;
}

.iam-puertas {
	display: grid;
	gap: 12px;
	margin-bottom: 16px;
}

body.iam .iam-puerta {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 18px;
	border-radius: var(--r);
	background: #fff;
	box-shadow: var(--sombra);
	color: var(--t);
	text-decoration: none;
	border: 2px solid transparent;
	transition: border-color .15s, transform .15s;
}

body.iam .iam-puerta:hover {
	border-color: var(--v);
	color: var(--t);
	text-decoration: none;
	transform: translateY(-2px);
}

.iam-puerta__ico {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--vc);
	color: var(--v2);
	flex: none;
}

.iam-puerta__ico .iam-ico {
	width: 28px;
	height: 28px;
}

.iam-puerta__txt {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.iam-puerta__txt strong {
	font: 600 17px var(--f1);
}

.iam-puerta__txt > span {
	color: var(--t2);
	font-size: 14px;
}

.iam-puerta__txt em {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 4px;
	font: 600 14px var(--f1);
	font-style: normal;
	color: var(--v2);
}

.iam-puerta__txt em .iam-ico {
	width: 18px;
	height: 18px;
}

.iam-banda {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	padding: 16px 18px;
	border-radius: var(--r);
	background: var(--vc);
	border: 1px solid var(--vc2);
	margin-bottom: 20px;
}

.iam-banda > div {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	flex: 1 1 320px;
}

.iam-banda > div > .iam-ico {
	width: 30px;
	height: 30px;
	color: var(--v2);
}

.iam-banda p {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

/* Solo el texto del aviso: el botón lleva su texto en un <span> y tiene sus propios colores. */
.iam-banda p strong {
	font: 600 16px var(--f1);
	color: var(--vo);
}

.iam-banda p span {
	color: var(--t2);
	font-size: 14px;
}

.iam-banda--bono {
	background: linear-gradient(120deg, var(--vo), var(--v3));
	border-color: transparent;
}

.iam-banda--bono p strong,
.iam-banda--bono p span,
.iam-banda--bono > div > .iam-ico {
	color: #fff;
}

.iam-seccion {
	margin-bottom: 24px;
}

.iam-seccion__cab {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.iam-seccion__cab h2 {
	font-size: 20px;
	margin: 0;
}

.iam-seccion__cab a {
	font-weight: 600;
	font-size: 14px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	/* Con un título largo en el móvil, «Ver todo» no se parte en dos líneas. */
	flex: none;
	white-space: nowrap;
}

/* ---------- Listado y tarjetas ---------- */

.iam-filtros {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: 4px 0 16px;
}

body.iam .iam-filtro {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid #d5dbd9;
	background: #fff;
	color: var(--t2);
	font: 600 14px var(--f2);
	text-decoration: none;
	cursor: pointer;
}

body.iam .iam-filtro:hover {
	border-color: var(--v);
	color: var(--vo);
	text-decoration: none;
}

body.iam .iam-filtro.is-on {
	background: var(--vo);
	border-color: var(--vo);
	color: #fff;
}

.iam-rejilla {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

body.iam .iam-tarjeta {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--r);
	box-shadow: var(--sombra);
	overflow: hidden;
	color: var(--t);
	text-decoration: none;
	border: 2px solid transparent;
	transition: border-color .15s, transform .15s, box-shadow .15s;
}

body.iam .iam-tarjeta:hover {
	border-color: var(--v);
	transform: translateY(-2px);
	box-shadow: var(--sombra2);
	color: var(--t);
	text-decoration: none;
}

.iam-tarjeta__img {
	display: block;
	aspect-ratio: 1 / 1;
	background: linear-gradient(160deg, #f7faf9, #eaf2f0);
}

.iam-tarjeta__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.iam-tarjeta__txt {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px;
	flex: 1;
}

.iam-tarjeta__txt strong {
	font: 600 15px/1.3 var(--f1);
}

.iam-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.iam-chip {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--vc);
	color: var(--vo);
	font: 600 11px/1.6 var(--f2);
}

.iam-precio {
	font: 600 16px var(--f1);
	color: var(--vo);
	margin-top: auto;
}

.iam-precio small {
	font: 400 12px var(--f2);
	color: var(--t3);
}

.iam-precio del {
	color: var(--t3);
	font-weight: 400;
}

.iam-precio ins {
	text-decoration: none;
}

.iam-tarjeta__cta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font: 600 14px var(--f1);
	color: var(--v2);
}

.iam-tarjeta__cta .iam-ico {
	width: 18px;
	height: 18px;
}

body.iam .navigation.pagination {
	margin: 20px 0;
}

body.iam .nav-links {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
}

body.iam .nav-links .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 10px;
	background: #fff;
	box-shadow: var(--sombra);
	font-weight: 600;
}

body.iam .nav-links .page-numbers.current {
	background: var(--vo);
	color: #fff;
}

/* ---------- Ficha ---------- */

.iam-ficha__img {
	border-radius: var(--r);
	background: linear-gradient(160deg, #fff, #eaf2f0);
	box-shadow: var(--sombra);
	overflow: hidden;
	margin-bottom: 14px;
	aspect-ratio: 4 / 3;
}

.iam-ficha__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* La prenda, apaisada en el móvil: cuadrada ocupaba toda la pantalla (26/10/2026). */
.iam-ficha__img--prenda {
	aspect-ratio: 4 / 3;
	background: #fff;
}

.iam-ficha__img--prenda img {
	padding: 10px;
}

/* Ventajas del producto en píldoras sobre la foto, como una etiqueta de oferta (20/10/2026). */
.iam-ficha__img {
	position: relative;
}

body.iam .iam-pildoras {
	position: absolute;
	left: 12px;
	top: 12px;
	right: 12px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	pointer-events: none;
}

body.iam .iam-pildoras li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	margin: 0;
	padding: 5px 12px 5px 8px;
	border-radius: 999px;
	background: rgba(1, 75, 66, .9);
	color: #fff;
	font: 600 13px/1.25 var(--f1);
	box-shadow: 0 2px 8px rgba(0, 13, 28, .18);
	backdrop-filter: blur(4px);
}

body.iam .iam-pildoras li:first-child {
	background: var(--v2);
}

.iam-pildoras .iam-ico {
	flex: none;
	width: 15px;
	height: 15px;
	stroke-width: 3;
}

@media (max-width: 600px) {
	body.iam .iam-pildoras {
		left: 8px;
		top: 8px;
		gap: 4px;
	}

	body.iam .iam-pildoras li {
		padding: 3px 9px 3px 6px;
		font-size: 11.5px;
	}

	.iam-pildoras .iam-ico {
		width: 12px;
		height: 12px;
	}
}

/* En el PC el nombre de la ficha es un <p> con papel de título (un solo h1 por página): mismo aspecto que el h1. */
body.iam .iam-ficha__nombre {
	font-family: var(--f1);
	color: var(--t);
	line-height: 1.25;
	font-weight: 600;
	font-size: 24px;
	margin: 0 0 10px;
}

.iam-ficha__corta {
	color: var(--t2);
	margin-bottom: 12px;
}

.iam-ficha__corta p:last-child {
	margin-bottom: 0;
}

.iam-plegable {
	background: #fff;
	border-radius: var(--r);
	box-shadow: var(--sombra);
	margin-bottom: 10px;
	scroll-margin-top: 110px; /* «Instrucciones» lo abre y baja hasta aquí: que no quede bajo la cabecera fija. */
}

.iam-plegable summary {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 12px 16px;
	font: 600 15px var(--f1);
	cursor: pointer;
	list-style: none;
}

.iam-plegable summary::-webkit-details-marker {
	display: none;
}

.iam-plegable summary::after {
	content: "";
	width: 10px;
	height: 10px;
	margin-left: auto;
	border-right: 2px solid var(--t3);
	border-bottom: 2px solid var(--t3);
	transform: rotate(45deg) translateY(-3px);
	transition: transform .15s;
}

.iam-plegable[open] summary::after {
	transform: rotate(-135deg) translateY(-3px);
}

.iam-plegable summary .iam-ico {
	color: var(--v2);
	width: 20px;
	height: 20px;
}

.iam-plegable > :not(summary) {
	margin: 0 16px 16px;
}

/*
 * Con el body delante (20/10/2026): en la web real los estilos del tema y de WooCommerce dejaban el contenido de
 * «Descripción» y «Cómo preparar tu archivo» pegado a los bordes de la tarjeta.
 */
body.iam .iam-plegable {
	display: flow-root; /* si no, el margen de abajo del contenido se sale de la tarjeta */
}

body.iam .iam-plegable > :not(summary) {
	margin: 0 18px 18px;
	padding-top: 2px;
}

body.iam .iam-plegable > ul.iam-lista {
	padding-left: 20px;
}

body.iam .iam-plegable .iam-texto > :first-child {
	margin-top: 0;
}

body.iam .iam-plegable .iam-texto > :last-child {
	margin-bottom: 0;
}

/*
 * Ficha de impresión en el móvil: primero lo que se elige (medidas, archivo y precio) y después «Cómo se calcula el
 * precio», la descripción y cómo preparar el archivo. Antes había que bajar pantalla y media para empezar a elegir.
 * En el ordenador van en dos columnas y el configurador ya se ve sin bajar.
 */
@media (max-width: 1024px) {
	.iam-ficha--config.iam-cols {
		gap: 0;
	}

	.iam-ficha--config .iam-col--a {
		display: contents;
	}

	.iam-ficha--config .iam-col--b {
		margin-bottom: 16px;
	}

	.iam-ficha--config .iam-plegable {
		order: 2;
	}
}

.iam-reglas {
	display: grid;
	grid-template-columns: minmax(110px, auto) 1fr;
	gap: 6px 14px;
	font-size: 14px;
}

.iam-reglas dt {
	font-weight: 600;
	color: var(--vo);
}

.iam-reglas dd {
	margin: 0;
	color: var(--t2);
}

/* En el móvil no caben dos columnas: cada opción encima de su precio. */
@media (max-width: 600px) {
	.iam-reglas {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	.iam-reglas dd:not(:last-child) {
		margin-bottom: 10px;
	}
}

.iam-texto {
	color: var(--t2);
}

.iam-config,
.iam-prenda {
	background: #fff;
	border-radius: var(--r);
	box-shadow: var(--sombra);
	padding: 18px;
}

.iam-campos {
	display: grid;
	gap: 14px;
	margin-bottom: 16px;
}

.iam-campo[hidden] {
	display: none;
}

.iam-campo__et {
	display: block;
	font: 600 14px var(--f1);
	margin-bottom: 6px;
	color: var(--t);
}

.iam-campo__et small {
	font-weight: 400;
	color: var(--t3);
}

.iam-campo__ayuda {
	display: block;
	margin-top: 4px;
	color: var(--t3);
	font-size: 12.5px;
}

.iam-campo__ayuda [data-equiv]:not(:empty)::before {
	content: " · ";
}

.iam-campo__ayuda [data-equiv] {
	color: var(--vo);
	font-weight: 600;
	white-space: nowrap;
}

.iam-fijo {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 14px;
	border-radius: var(--r2);
	background: var(--g2);
	font: 600 15px var(--f1);
}

.iam-fijo small {
	font: 400 12px var(--f2);
	color: var(--t3);
}

.iam-numero {
	position: relative;
	display: flex;
	align-items: center;
	max-width: 260px;
}

body.iam .iam-numero input,
body.iam .iam-campo select,
body.iam .iam-campo textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1.5px solid #cfd8d5;
	border-radius: var(--r2);
	background: #fff;
	color: var(--t);
	font: 600 16px var(--f2);
}

body.iam .iam-numero input {
	padding-right: 46px;
	font-variant-numeric: tabular-nums;
}

body.iam .iam-campo textarea {
	font-weight: 400;
	font-size: 15px;
	min-height: 70px;
	resize: vertical;
}

body.iam .iam-numero input:focus,
body.iam .iam-campo select:focus,
body.iam .iam-campo textarea:focus {
	border-color: var(--vo);
	outline: none;
	box-shadow: 0 0 0 3px rgba(19, 152, 129, .35);
}

body.iam .iam-numero.is-mal input {
	border-color: var(--error);
	box-shadow: 0 0 0 3px rgba(161, 38, 38, .12);
}

.iam-numero em {
	position: absolute;
	right: 14px;
	color: var(--t3);
	font-style: normal;
	font-weight: 600;
	pointer-events: none;
}

.iam-segmentos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 8px;
}

.iam-segmento {
	position: relative;
	display: block;
	cursor: pointer;
}

.iam-segmento input,
.iam-marca-op input,
.iam-casilla input,
.iam-bono-op input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.iam-segmento span {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	min-height: 52px;
	height: 100%;
	padding: 10px 12px;
	border: 1.5px solid #cfd8d5;
	border-radius: var(--r2);
	background: #fff;
	transition: border-color .12s, background .12s;
}

.iam-segmento strong {
	font: 600 14px var(--f1);
}

.iam-segmento small {
	font-size: 12px;
	color: var(--t3);
	line-height: 1.35;
}

.iam-segmento input:checked + span {
	border-color: var(--v2);
	background: var(--vc);
	box-shadow: inset 0 0 0 1px var(--v2);
}

.iam-segmento input:focus-visible + span,
.iam-marca-op input:focus-visible + span,
.iam-casilla input:focus-visible + span,
.iam-bono-op input:focus-visible + span {
	outline: 3px solid var(--vo);
	outline-offset: 2px;
}

.iam-marcas {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.iam-marca-op {
	position: relative;
	cursor: pointer;
}

.iam-marca-op span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 8px 14px;
	border: 1.5px solid #cfd8d5;
	border-radius: 999px;
	background: #fff;
	font-weight: 600;
	font-size: 14px;
}

.iam-marca-op span::before {
	content: "";
	width: 16px;
	height: 16px;
	border-radius: 5px;
	border: 1.5px solid #9aa7a3;
	background: #fff;
}

.iam-marca-op input:checked + span {
	border-color: var(--v2);
	background: var(--vc);
}

.iam-marca-op input:checked + span::before {
	border-color: var(--v2);
	background: var(--v2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.iam-casilla,
.iam-bono-op {
	position: relative;
	display: block;
	cursor: pointer;
}

.iam-casilla > span,
.iam-bono-op > span {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 14px 12px 50px;
	border: 1.5px solid #cfd8d5;
	border-radius: var(--r2);
	background: #fff;
	position: relative;
	min-height: 52px;
	justify-content: center;
}

.iam-casilla > span::before,
.iam-bono-op > span::before {
	content: "";
	position: absolute;
	left: 14px;
	top: 50%;
	width: 24px;
	height: 24px;
	margin-top: -12px;
	border-radius: 7px;
	border: 1.5px solid #9aa7a3;
	background: #fff;
}

.iam-casilla input:checked + span,
.iam-bono-op input:checked + span {
	border-color: var(--v2);
	background: var(--vc);
}

.iam-casilla input:checked + span::before,
.iam-bono-op input:checked + span::before {
	border-color: var(--v2);
	background: var(--v2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.iam-casilla strong,
.iam-bono-op strong {
	font: 600 14px var(--f1);
}

.iam-casilla em {
	font-style: normal;
	color: var(--v2);
}

.iam-casilla small,
.iam-bono-op small {
	color: var(--t3);
	font-size: 12.5px;
	line-height: 1.4;
}

.iam-bono-op {
	margin: 12px 0;
}

.iam-bono-op > span {
	border-color: var(--v);
	border-style: dashed;
}

.iam-bono-op.is-falta small {
	color: var(--error);
	font-weight: 600;
}

.iam-bono-info {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 12px 0;
	padding: 12px 14px;
	border-radius: var(--r2);
	background: var(--vc);
	font-size: 14px;
	color: var(--vo);
}

.iam-editando {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: var(--r2);
	background: var(--vc);
	font-size: 14px;
	color: var(--vo);
}

.iam-editando .iam-ico {
	flex: none;
	margin-top: 2px;
	color: var(--v2);
}

.iam-editando a {
	font-weight: 700;
	white-space: nowrap;
}

.iam-bono-info .iam-ico {
	color: var(--v2);
}

.iam-bono-info a {
	font-weight: 700;
}

/* Subida de archivos */

.iam-subir {
	margin-bottom: 16px;
}

/* Compacta (20/10/2026): icono a la izquierda y los dos textos apilados, para que no ocupe media pantalla. */
body.iam .iam-subir__zona {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	column-gap: 12px;
	row-gap: 1px;
	align-items: center;
	min-height: 52px;
	padding: 9px 14px;
	border: 2px dashed #b9cbc6;
	border-radius: var(--r);
	background: #fbfdfc;
	text-align: left;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}

.iam-subir__zona:hover,
.iam-subir__zona.is-encima {
	border-color: var(--v);
	background: var(--vc);
}

.iam-subir__zona .iam-ico {
	grid-row: 1 / 3;
	width: 28px;
	height: 28px;
	color: var(--v2);
}

.iam-subir__zona strong {
	font: 600 15px/1.3 var(--f1);
}

.iam-subir__zona span {
	color: var(--t3);
	font-size: 12.5px;
	line-height: 1.35;
}

.iam-subir.is-mal .iam-subir__zona {
	border-color: var(--error);
}

.iam-subir__lista {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.iam-subir__lista li {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 4px 10px;
	padding: 10px 12px;
	border-radius: var(--r2);
	background: var(--g2);
	font-size: 14px;
}

.iam-subir__lista li > .iam-ico {
	color: var(--v2);
}

.iam-subir__lista b {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.iam-subir__lista small {
	grid-column: 2 / 4;
	color: var(--t3);
}

.iam-subir__lista li.is-mal small {
	color: var(--error);
	font-weight: 600;
}

.iam-subir__lista li.is-ok small {
	color: var(--ok);
	font-weight: 600;
}

.iam-subir__barra {
	grid-column: 1 / -1;
	height: 6px;
	border-radius: 999px;
	background: #dfe7e4;
	overflow: hidden;
}

.iam-subir__barra i {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--v), var(--v2));
	transition: width .2s;
}

.iam-subir__lista button {
	border: 0;
	background: none;
	color: var(--t3);
	min-width: 40px;
	min-height: 40px;
	border-radius: 10px;
	cursor: pointer;
	display: grid;
	place-items: center;
}

.iam-subir__lista button:hover {
	background: #e3e8e6;
	color: var(--error);
}

/* En la lista de archivos de las pegatinas: la resolución de cada uno y cuál se está viendo en la vista previa. */
.iam-subir__lista li[data-vista] {
	cursor: pointer;
}

.iam-subir__lista li[data-vista]:focus-visible {
	outline: 2px solid var(--vo);
	outline-offset: 2px;
}

.iam-subir__lista li.is-vista {
	background: var(--vc);
	box-shadow: inset 0 0 0 2px var(--v);
}

.iam-subir__lista small.iam-subir__res {
	font-weight: 600;
}

.iam-subir__lista small.iam-subir__res.is-ok {
	color: var(--ok);
}

.iam-subir__lista small.iam-subir__res.is-aviso {
	color: var(--aviso);
}

.iam-subir__lista small.iam-subir__res.is-mal {
	color: var(--error);
}

.iam-subir__lista small.iam-subir__res.is-info {
	color: var(--t3);
	font-weight: 400;
}

/*
 * Vista previa de pegatinas (pegatina.js): el diseño sobre la pegatina, con su forma y su tamaño, en un tapete de
 * cuadros de 1 cm y con una tarjeta al lado para comparar. En el ordenador sustituye a la foto del producto; en el
 * móvil va debajo de la subida y solo sale cuando ya hay un diseño.
 */

.iam-pegatina {
	margin: 0 0 16px;
}

.iam-col--a > .iam-pegatina {
	background: #fff;
	border-radius: var(--r);
	box-shadow: var(--sombra);
	padding: 18px;
	margin-bottom: 14px;
}

body.iam .iam-pegatina[hidden],
body.iam .iam-pegatina [hidden] {
	display: none;
}

.iam-pegatina__cab {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px 12px;
	margin-bottom: 12px;
}

body.iam .iam-pegatina__cab .iam-apartado__tit {
	margin: 0;
}

.iam-pegatina__medida {
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--vc);
	color: var(--vo);
	font: 600 13px/1.3 var(--f1);
}

.iam-pegatina__medida:empty {
	display: none;
}

.iam-pegatina__escena {
	position: relative;
	width: min(100%, calc(var(--alto-max, 340px) * var(--ar, 1.5)));
	aspect-ratio: var(--ar, 1.5);
	margin: 0 auto;
	border-radius: var(--r2);
	overflow: hidden;
	background-color: #f3f8f6;
	background-image: linear-gradient(to right, rgba(1, 75, 66, .13) 1px, transparent 1px), linear-gradient(to bottom, rgba(1, 75, 66, .13) 1px, transparent 1px);
	background-size: var(--cx, 10%) var(--cy, 10%);
	box-shadow: inset 0 0 0 1px rgba(1, 75, 66, .12);
	transition: box-shadow .15s;
}

.iam-pegatina__escena.is-encima {
	box-shadow: inset 0 0 0 3px var(--v);
}

.iam-pegatina__pieza,
.iam-pegatina__tarjeta {
	position: absolute;
	transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease, border-radius .25s ease;
}

.iam-pegatina__pieza {
	overflow: hidden;
	border-radius: 2px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(1, 75, 66, .55), 0 2px 4px rgba(0, 13, 28, .16), 0 10px 22px rgba(0, 13, 28, .12);
}

.iam-pegatina__pieza.is-redonda {
	border-radius: 50%;
}

body.iam .iam-pegatina__pieza img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
}

body.iam .iam-pegatina__vacio {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	margin: 0;
	padding: 4px;
	background: repeating-linear-gradient(135deg, #fff 0 7px, #eef7f4 7px 14px);
	color: var(--v2);
	font: 600 13px/1.2 var(--f1);
	text-align: center;
	cursor: pointer;
}

.iam-pegatina__vacio .iam-ico {
	width: 24px;
	height: 24px;
}

.iam-pegatina__tipo {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	background: var(--g2);
	color: var(--vo);
	font: 700 18px/1 var(--f1);
	letter-spacing: .04em;
}

.iam-pegatina__segura {
	position: absolute;
	border: 1.5px dashed rgba(1, 75, 66, .5);
	border-radius: inherit;
	pointer-events: none;
}

.iam-pegatina__tarjeta {
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	padding: 6px 8px;
	border-radius: 3.7% / 5.9%;
	background: linear-gradient(135deg, #fbfcfc, #e2e9e8);
	box-shadow: 0 0 0 1px rgba(0, 13, 28, .14), 0 2px 6px rgba(0, 13, 28, .08);
	color: var(--t3);
	font: 600 11px/1.25 var(--f2);
}

.iam-pegatina__tarjeta::before {
	content: "";
	position: absolute;
	left: 9%;
	top: 28%;
	width: 13%;
	height: 17%;
	border-radius: 3px;
	background: linear-gradient(135deg, #e6dcb8, #cbbd8c);
	box-shadow: inset 0 0 0 1px rgba(0, 13, 28, .12);
}

.iam-pegatina__leyenda {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 16px;
	margin: 10px 0 0;
	padding: 0;
	color: var(--t3);
	font-size: 13px;
}

.iam-pegatina__leyenda li {
	display: flex;
	align-items: center;
	gap: 6px;
}

.iam-pegatina__leyenda i {
	flex: none;
	width: 14px;
	height: 14px;
}

.iam-pegatina__leyenda .is-cuadro {
	background: #f3f8f6;
	box-shadow: inset 0 0 0 1px rgba(1, 75, 66, .3);
}

.iam-pegatina__leyenda .is-segura {
	border: 1.5px dashed rgba(1, 75, 66, .6);
	border-radius: 50%;
}

.iam-pegatina__estado {
	margin: 10px 0 0;
	padding: 10px 12px;
	border-radius: var(--r2);
	background: var(--g2);
	color: var(--t2);
	font-size: 14px;
	line-height: 1.45;
}

.iam-pegatina__estado.is-ok {
	background: var(--ok-f);
	color: var(--ok);
}

.iam-pegatina__estado.is-aviso {
	background: var(--aviso-f);
	color: var(--aviso);
}

.iam-pegatina__estado.is-mal {
	background: var(--error-f);
	color: var(--error);
}

.iam-pegatina__cual {
	margin: 6px 0 0;
	color: var(--t3);
	font-size: 13px;
}

/*
 * Vista del lienzo (lienzo.js): con bastidor, el cuadro en una pared con un sofá de 2 m, girado en 3D para que se vea
 * el canto, y se «cuelga» al cambiar de foto o de medida; en bobina, la tela que se desenrolla con el rollo en la punta.
 */

.iam-lienzo__escena {
	position: relative;
	width: min(100%, calc(var(--alto-max, 340px) * var(--ar, 1)));
	aspect-ratio: var(--ar, 1);
	margin: 0 auto;
	border-radius: var(--r2);
	overflow: hidden;
	background: linear-gradient(180deg, #f6f4ef, #ebe7df);
	box-shadow: inset 0 0 0 1px rgba(1, 75, 66, .12);
	transition: box-shadow .15s;
}

/* El suelo. */
.iam-lienzo__escena::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: var(--suelo, 6%);
	background: linear-gradient(180deg, #d9cfc0, #cbbfad);
	box-shadow: 0 -1px 0 rgba(0, 13, 28, .08);
}

.iam-lienzo__escena.is-encima {
	box-shadow: inset 0 0 0 3px var(--v);
}

.iam-lienzo__escena.is-bobina {
	background-color: #f3f8f6;
	background-image: linear-gradient(to right, rgba(1, 75, 66, .13) 1px, transparent 1px), linear-gradient(to bottom, rgba(1, 75, 66, .13) 1px, transparent 1px);
	background-size: var(--cx, 10%) var(--cy, 10%);
}

.iam-lienzo__escena.is-bobina::after,
.iam-lienzo__escena.is-bobina .iam-lienzo__cuadro,
.iam-lienzo__escena.is-bobina .iam-lienzo__sofa,
.iam-lienzo__escena:not(.is-bobina) .iam-lienzo__tira,
.iam-lienzo__escena:not(.is-bobina) .iam-lienzo__rollo {
	display: none;
}

.iam-lienzo__cuadro,
.iam-lienzo__sofa {
	position: absolute;
	transition: left .3s ease, top .3s ease, width .3s ease, height .3s ease;
}

.iam-lienzo__cuadro {
	z-index: 1;
	perspective: 1400px;
	filter: drop-shadow(0 10px 12px rgba(0, 13, 28, .22));
}

.iam-lienzo__giro {
	position: absolute;
	inset: 0;
	transform-style: preserve-3d;
	transform: rotateY(-21deg);
}

.iam-lienzo__cuadro.is-colgar .iam-lienzo__giro {
	animation: iam-colgar 1.1s cubic-bezier(.2, .8, .25, 1);
}

@keyframes iam-colgar {
	0% {
		opacity: 0;
		transform: translateY(-18%) rotateX(14deg) rotateY(-48deg);
	}
	55% {
		opacity: 1;
		transform: translateY(2%) rotateX(-2deg) rotateY(-8deg);
	}
	80% {
		transform: translateY(-1%) rotateY(-24deg);
	}
	100% {
		transform: rotateY(-21deg);
	}
}

.iam-lienzo__frente {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: #fbfaf7;
	box-shadow: inset 0 0 0 1px rgba(0, 13, 28, .1);
}

/* Trama de la tela, muy suave, por encima de la foto. */
.iam-lienzo__frente::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .035) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .03) 0 1px, transparent 1px 3px), linear-gradient(110deg, rgba(255, 255, 255, .16), transparent 45%);
}

body.iam .iam-lienzo__frente img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/* El canto derecho del bastidor, con el borde de la foto oscurecido. */
.iam-lienzo__lado {
	position: absolute;
	top: 0;
	left: 100%;
	width: var(--fondo, 6%);
	height: 100%;
	transform-origin: left center;
	transform: rotateY(90deg);
	background-color: #e9e4da;
	background-size: auto 100%;
	background-position: right center;
}

.iam-lienzo__lado::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 13, 28, .32), rgba(0, 13, 28, .45));
}

.iam-lienzo__sofa {
	z-index: 0;
}

.iam-lienzo__sofa i {
	position: absolute;
	background: #b9c9c4;
	box-shadow: inset 0 -6px 10px rgba(0, 13, 28, .08);
}

.iam-lienzo__sofa .is-respaldo {
	left: 6%;
	right: 6%;
	top: 0;
	height: 55%;
	border-radius: 14px 14px 4px 4px;
	background: #c6d4d0;
}

.iam-lienzo__sofa .is-asiento {
	left: 4%;
	right: 4%;
	top: 45%;
	height: 38%;
	border-radius: 10px;
}

.iam-lienzo__sofa .is-brazo {
	left: 0;
	top: 30%;
	width: 9%;
	height: 53%;
	border-radius: 12px 12px 6px 6px;
	background: #adbfba;
}

.iam-lienzo__sofa .is-brazo.is-dcho {
	left: auto;
	right: 0;
}

/* Las patas. */
.iam-lienzo__sofa::before,
.iam-lienzo__sofa::after {
	content: "";
	position: absolute;
	bottom: 0;
	width: 2.5%;
	height: 17%;
	background: #8a7a66;
	border-radius: 0 0 2px 2px;
}

.iam-lienzo__sofa::before {
	left: 8%;
}

.iam-lienzo__sofa::after {
	right: 8%;
}

.iam-lienzo__tira {
	position: absolute;
	overflow: hidden;
	background: #fbfaf7;
	box-shadow: 0 0 0 1px rgba(0, 13, 28, .12), 0 6px 14px rgba(0, 13, 28, .12);
}

.iam-lienzo__tira.is-cortada {
	-webkit-mask: linear-gradient(90deg, #000 92%, transparent);
	mask: linear-gradient(90deg, #000 92%, transparent);
}

body.iam .iam-lienzo__tira img {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	max-width: none;
	object-fit: contain;
	object-position: left center;
}

.iam-lienzo__tira-vacio {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	background: repeating-linear-gradient(135deg, #fff 0 7px, #eef7f4 7px 14px);
	color: var(--v2);
	font: 600 13px/1.2 var(--f1);
}

.iam-lienzo__tira-vacio .iam-ico {
	width: 24px;
	height: 24px;
}

/* El rollo: un cilindro de pie en la punta de la tela. */
.iam-lienzo__rollo {
	position: absolute;
	z-index: 1;
	border-radius: 999px / 10px;
	background: linear-gradient(90deg, #cfc8bb, #fbfaf7 35%, #e6e0d5 60%, #a99f8f);
	box-shadow: 0 4px 10px rgba(0, 13, 28, .2);
}

.iam-lienzo__escena.is-desenrollar .iam-lienzo__tira {
	animation: iam-desenrollar 1.2s cubic-bezier(.3, .7, .3, 1);
}

.iam-lienzo__escena.is-desenrollar .iam-lienzo__rollo {
	animation: iam-rollo 1.2s cubic-bezier(.3, .7, .3, 1);
}

@keyframes iam-desenrollar {
	from {
		clip-path: inset(0 100% 0 0);
	}
	to {
		clip-path: inset(0 0 0 0);
	}
}

@keyframes iam-rollo {
	from {
		left: var(--rollo0, 0);
	}
}

.iam-pegatina__leyenda .is-sofa {
	border-radius: 4px 4px 2px 2px;
	background: #b9c9c4;
}

.iam-pegatina__leyenda .is-canto {
	background: linear-gradient(90deg, #fbfaf7 55%, #6b6559 55%);
	box-shadow: inset 0 0 0 1px rgba(0, 13, 28, .2);
}

.iam-pegatina__leyenda .is-tela {
	background: #fbfaf7;
	box-shadow: inset 0 0 0 1px rgba(0, 13, 28, .25);
}

@media (prefers-reduced-motion: reduce) {
	.iam-lienzo__cuadro,
	.iam-lienzo__sofa {
		transition: none;
	}

	.iam-lienzo__cuadro.is-colgar .iam-lienzo__giro,
	.iam-lienzo__escena.is-desenrollar .iam-lienzo__tira,
	.iam-lienzo__escena.is-desenrollar .iam-lienzo__rollo {
		animation: none;
	}
}

/*
 * Montaje de la plancha DTF (montaje.js): las piezas anidadas en la plancha de 55 cm, a escala, con cuadros de 1, 5 o
 * 10 cm según el zoom. Lo que pasa del largo elegido sale en rojo. Sale cuando hay algún diseño subido.
 */

.iam-montaje {
	margin: 0 0 16px;
}

.iam-col--a > .iam-montaje {
	background: #fff;
	border-radius: var(--r);
	box-shadow: var(--sombra);
	padding: 18px;
	margin-bottom: 14px;
}

body.iam .iam-montaje[hidden],
body.iam .iam-montaje [hidden],
body.iam .iam-montaje:not(.is-con-diseno) {
	display: none;
}

.iam-montaje__marco {
	max-height: 560px;
	overflow: auto;
	padding: 6px;
	border-radius: var(--r2);
	background: #eef3f1;
	overscroll-behavior: contain;
}

.iam-montaje__plancha {
	position: relative;
	margin: 0 auto;
	background-color: #fff;
	background-image: linear-gradient(to right, rgba(1, 75, 66, .1) 1px, transparent 1px), linear-gradient(to bottom, rgba(1, 75, 66, .1) 1px, transparent 1px);
	background-size: var(--cuadro, 10px) var(--cuadro, 10px);
	box-shadow: 0 0 0 1px rgba(1, 75, 66, .35), 0 6px 18px rgba(0, 13, 28, .1);
	transition: width .3s ease, height .3s ease;
}

.iam-montaje__fuera {
	position: absolute;
	left: 0;
	right: 0;
	background: repeating-linear-gradient(135deg, rgba(200, 30, 30, .08) 0 8px, rgba(200, 30, 30, .16) 8px 16px);
	border-top: 2px dashed var(--error);
	pointer-events: none;
}

.iam-montaje__pieza {
	position: absolute;
	overflow: hidden;
	background: rgba(1, 75, 66, .05);
	box-shadow: 0 0 0 1px rgba(1, 75, 66, .35);
	transition: left .45s cubic-bezier(.2, .8, .2, 1), top .45s cubic-bezier(.2, .8, .2, 1), width .45s cubic-bezier(.2, .8, .2, 1), height .45s cubic-bezier(.2, .8, .2, 1), opacity .3s;
}

.iam-montaje__pieza.is-entra {
	opacity: 0;
}

.iam-montaje__pieza.is-fuera {
	box-shadow: 0 0 0 2px var(--error);
}

.iam-montaje__pieza.is-sin-vista {
	background: repeating-linear-gradient(135deg, #fff 0 6px, #eef7f4 6px 12px);
}

body.iam .iam-montaje__pieza img {
	position: absolute;
	top: 0;
	left: 0;
	max-width: none;
	object-fit: fill;
	transform-origin: 0 0;
}

body.iam .iam-montaje__pieza.is-sin-vista img {
	display: none;
}

.iam-montaje__uso {
	margin: 8px 0 0;
	color: var(--t3);
	font-size: 13px;
	text-align: center;
}

.iam-montaje__uso:empty {
	display: none;
}

.iam-montaje__acciones {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.iam-montaje__acciones .iam-btn {
	flex: 1 1 200px;
}

/* Ancho y unidades de cada diseño, en su fila de la lista de archivos. */
.iam-montaje__ctl {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	padding-top: 6px;
	border-top: 1px solid #e3eae8;
}

.iam-montaje__ctl.is-cargando {
	opacity: .5;
	pointer-events: none;
}

.iam-montaje__ctl label {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 13px;
	color: var(--t3);
}

body.iam .iam-montaje__ctl input {
	width: 62px;
	min-height: 36px;
	padding: 4px 8px;
	border: 1px solid #cfdcd8;
	border-radius: 8px;
	background: #fff;
	font: 600 14px var(--f2);
	color: var(--t);
}

.iam-montaje__ctl i {
	font-style: normal;
}

.iam-montaje__uds {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* «Rellenar»: tantas unidades de este diseño como quepan en el largo elegido. */
body.iam .iam-montaje__rellenar {
	min-height: 36px;
	padding: 4px 14px;
	border: 1px solid var(--v);
	border-radius: 999px;
	background: var(--vc);
	color: var(--vo);
	font: 600 13px var(--f1);
	cursor: pointer;
	transition: background .15s, color .15s;
}

body.iam .iam-montaje__rellenar:hover,
body.iam .iam-montaje__rellenar:focus-visible {
	background: var(--v2);
	color: #fff;
}

.iam-montaje__alto {
	font-style: normal;
	font-size: 13px;
	color: var(--t3);
	margin-right: auto;
}

@media (min-width: 1025px) {
	.iam-ficha--pegatina .iam-ficha__img,
	.iam-ficha--montaje .iam-ficha__img,
	.iam-ficha--lienzo .iam-ficha__img {
		display: none;
	}

	.iam-pegatina__escena,
	.iam-lienzo__escena {
		--alto-max: 440px;
	}
}

@media (max-width: 1024px) {
	.iam-pegatina:not(.is-con-diseno) {
		display: none;
	}

	.iam-pegatina__tarjeta {
		padding: 4px 6px;
		font-size: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.iam-pegatina__pieza,
	.iam-pegatina__tarjeta {
		transition: none;
	}
}

/* Caja del precio */

.iam-caja-precio {
	border-radius: var(--r);
	background: linear-gradient(140deg, var(--vo), var(--vo2));
	color: #fff;
	padding: 16px 18px;
	margin: 4px 0 12px;
}

.iam-caja-precio.is-cargando {
	opacity: .75;
}

.iam-caja-precio__total {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.iam-caja-precio__total span {
	font: 600 13px var(--f1);
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--v);
}

.iam-caja-precio__total strong {
	font: 700 32px/1.1 var(--f1);
	font-variant-numeric: tabular-nums;
	margin-left: auto;
}

.iam-caja-precio__total small {
	color: rgba(255, 255, 255, .75);
}

.iam-caja-precio__cant {
	margin: 4px 0 8px;
	color: rgba(255, 255, 255, .8);
	font-size: 13px;
	text-align: right;
}

.iam-desglose {
	list-style: none;
	margin: 0;
	padding: 8px 0 0;
	border-top: 1px solid rgba(255, 255, 255, .15);
	font-size: 13.5px;
}

.iam-desglose li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 3px 0;
	color: rgba(255, 255, 255, .88);
}

.iam-desglose b {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.iam-siguiente[hidden] {
	display: none;
}

.iam-siguiente {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 10px 0 0;
	padding: 8px 10px;
	border-radius: 10px;
	background: rgba(34, 180, 154, .2);
	font-size: 13px;
	color: #fff;
}

.iam-siguiente .iam-ico {
	width: 18px;
	height: 18px;
	color: var(--v);
}

.iam-avisos {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	font-size: 13px;
	color: #ffe6a6;
}

.iam-avisos:empty {
	display: none;
}

.iam-error {
	margin: 0 0 12px;
	padding: 10px 14px;
	border-radius: var(--r2);
	background: var(--error-f);
	color: var(--error);
	font-weight: 600;
	font-size: 14px;
}

.iam-error[hidden] {
	display: none;
}

.iam-config [data-anadir] b {
	margin-left: auto;
	padding-left: 12px;
	font-variant-numeric: tabular-nums;
}

.iam-config [data-anadir] b:empty {
	display: none;
}

/* Ficha por apartados (DTF, como la web real): cada paso con su título, la tabla de precios y el tamaño total. */

.iam-ficha__desde {
	margin: -4px 0 14px;
	color: var(--t2);
	font-size: 15px;
}

.iam-ficha__desde strong {
	font: 700 22px var(--f1);
	color: var(--vo);
	font-variant-numeric: tabular-nums;
}

.iam-ficha__desde small {
	color: var(--t3);
	font-size: 13px;
}

.iam-apartado {
	padding: 16px 0;
	border-top: 1px solid var(--g);
}

.iam-ficha__desde + .iam-apartado,
.iam-ficha__nombre + .iam-apartado {
	border-top: 0;
	padding-top: 4px;
}

body.iam .iam-apartado__tit {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	font: 600 16px/1.3 var(--f1);
	color: var(--vo);
}

.iam-apartado__tit::before {
	content: "";
	flex: none;
	width: 4px;
	height: 18px;
	border-radius: 2px;
	background: var(--v);
}

.iam-apartado .iam-campos,
.iam-apartado .iam-subir {
	margin-bottom: 0;
}

.iam-campos--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
}

/*
 * «Descargar información»: en el ordenador, en la columna izquierda bajo la foto (el formulario de la derecha queda
 * más corto); en el móvil, antes del formulario, como en la web real. Instrucciones y plantilla, cada una en su tarjeta.
 */
.iam-descargar {
	background: #fff;
	border-radius: var(--r);
	box-shadow: var(--sombra);
	padding: 16px;
	margin-bottom: 10px;
}

.iam-descargar__lista {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 10px;
}

body.iam .iam-descargar__item {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	column-gap: 12px;
	align-content: center;
	min-height: 64px;
	padding: 10px 14px;
	border: 1px solid #cfe3de;
	border-radius: var(--r2);
	background: #fff;
	color: var(--vo);
	text-decoration: none;
	transition: background .15s, border-color .15s;
}

body.iam .iam-descargar__item:hover {
	background: var(--vc);
	border-color: var(--v);
	color: var(--vo);
}

body.iam .iam-descargar__item:focus-visible {
	outline: 3px solid var(--vo);
	outline-offset: 2px;
}

.iam-descargar__item .iam-ico {
	grid-row: 1 / 3;
	align-self: center;
	width: 40px;
	height: 40px;
	padding: 9px;
	border-radius: 50%;
	background: var(--vc2);
	color: var(--v2);
}

.iam-descargar__item span {
	font: 600 15px/1.3 var(--f1);
}

.iam-descargar__item small {
	font-size: 13px;
	line-height: 1.35;
	color: var(--t3);
}

body.iam .iam-tramos {
	width: 100%;
	margin: 0;
	border: 1px solid #dde7e4;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--r2);
	overflow: hidden;
	font-size: 14px;
}

body.iam .iam-tramos th,
body.iam .iam-tramos td {
	padding: 9px 12px;
	border: 0;
	border-top: 1px solid #e8efed;
	background: #fff;
	text-align: left;
	vertical-align: middle;
}

body.iam .iam-tramos thead th {
	border-top: 0;
	background: var(--g2);
	font: 600 12px var(--f1);
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--t3);
}

body.iam .iam-tramos tbody th {
	font-weight: 600;
	color: var(--t);
}

body.iam .iam-tramos td,
body.iam .iam-tramos thead th:last-child {
	text-align: right;
	white-space: nowrap;
}

body.iam .iam-tramos td {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--vo);
}

body.iam .iam-tramos tr.is-on th,
body.iam .iam-tramos tr.is-on td {
	background: var(--vc);
}

.iam-tramos tr.is-on th::after {
	content: "Tu precio";
	display: inline-block;
	margin-left: 8px;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--v2);
	color: #fff;
	font: 600 11px/1.6 var(--f1);
	vertical-align: 1px;
}

.iam-tramos__nota {
	margin: 8px 0 0;
}

/* Precio por metro lineal en la columna izquierda, bajo «Descargar información» (20/10/2026). */
.iam-precios-tabla .iam-apartado__tit {
	margin-bottom: 10px;
}

.iam-total-medida {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin: 12px 0 0;
	padding: 10px 14px;
	border-radius: var(--r2);
	background: var(--vc);
	color: var(--vo);
	font-size: 14px;
}

.iam-total-medida strong {
	font: 700 16px var(--f1);
	font-variant-numeric: tabular-nums;
}

.iam-apartado--precio .iam-caja-precio {
	margin-top: 0;
}

.iam-apartado--precio {
	padding-bottom: 4px;
}

/* Bonos */

.iam-ficha--bono .iam-cab-pagina {
	display: block;
}

.iam-saldo-linea {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--vc);
	color: var(--vo);
	font-size: 14px;
}

.iam-saldo-linea .iam-ico {
	color: var(--v2);
	width: 20px;
	height: 20px;
}

.iam-bonos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 12px;
	margin: 16px 0 24px;
}

.iam-bono {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px;
	border-radius: var(--r);
	background: #fff;
	box-shadow: var(--sombra);
	border: 2px solid transparent;
}

.iam-bono.is-on {
	border-color: var(--v);
	box-shadow: var(--sombra2);
}

.iam-bono__m {
	font: 700 40px/1 var(--f1);
	color: var(--vo);
}

.iam-bono__m small {
	font-size: 18px;
	color: var(--t3);
}

.iam-bono__precio {
	font: 600 20px var(--f1);
}

.iam-bono__precio small {
	font: 400 12px var(--f2);
	color: var(--t3);
}

.iam-bono__pm {
	color: var(--t2);
	font-size: 14px;
}

.iam-bono__pm b {
	color: var(--ok);
}

.iam-bono__ref {
	color: var(--t3);
	font-size: 12px;
}

.iam-bono__env {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	font-size: 13px;
	font-weight: 600;
	color: var(--v2);
}

.iam-bono__env .iam-ico {
	width: 18px;
	height: 18px;
}

.iam-bono .iam-btn {
	margin-top: auto;
}

.iam-pasos {
	background: #fff;
	border-radius: var(--r);
	box-shadow: var(--sombra);
	padding: 18px;
}

.iam-pasos ol,
.iam-como ol,
.iam-gracias__pasos {
	counter-reset: paso;
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

.iam-pasos li,
.iam-como li,
.iam-gracias__pasos li {
	counter-increment: paso;
	position: relative;
	padding: 2px 0 12px 42px;
	color: var(--t2);
}

.iam-pasos li::before,
.iam-como li::before,
.iam-gracias__pasos li::before {
	content: counter(paso);
	position: absolute;
	left: 0;
	top: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--vc);
	color: var(--vo);
	font: 700 14px/28px var(--f1);
	text-align: center;
}

.iam-pasos strong,
.iam-como strong,
.iam-gracias__pasos strong {
	color: var(--t);
}

/* Prendas (formulario de variaciones de WooCommerce) */

.iam-prenda__precio {
	font: 600 22px var(--f1);
	color: var(--vo);
	margin-bottom: 8px;
}

body.iam .iam-prenda table.variations {
	width: 100%;
	border: 0;
	margin: 0 0 12px;
	border-collapse: collapse;
}

/* La tabla y su tbody, en bloque también: como tabla crecían al ancho del carrusel de colores y ensanchaban la página. */
body.iam .iam-prenda table.variations,
body.iam .iam-prenda table.variations tbody {
	display: block;
	max-width: 100%;
}

body.iam .iam-prenda table.variations tr {
	display: block;
	margin-bottom: 10px;
}

body.iam .iam-prenda table.variations th,
body.iam .iam-prenda table.variations td {
	display: block;
	padding: 0;
	border: 0;
	text-align: left;
	background: none;
	line-height: 1.4;
}

body.iam .iam-prenda table.variations th label {
	font: 600 14px var(--f1);
	margin-bottom: 6px;
	display: block;
}

body.iam .iam-prenda table.variations select {
	width: 100%;
	min-height: 48px;
	padding: 8px 12px;
	border: 1.5px solid #cfd8d5;
	border-radius: var(--r2);
	background-color: #fff;
	font: 600 15px var(--f2);
	color: var(--t);
}

body.iam .iam-prenda .reset_variations {
	display: inline-block;
	margin-top: 6px;
	font-size: 13px;
}

body.iam .iam-prenda .single_variation_wrap {
	margin-top: 8px;
}

body.iam .iam-prenda .woocommerce-variation-price .price {
	font: 600 20px var(--f1);
	color: var(--vo);
}

/* Con un diseño guardado, lo que cuesta cada prenda con él (prenda + recargo): lo mismo que cobrará la cesta. */
body.iam .iam-prenda .iam-con-diseno {
	margin: 2px 0 0;
	font-size: 14px;
	color: var(--t2);
}

body.iam .iam-prenda .iam-con-diseno strong {
	font: 600 17px var(--f1);
	color: var(--vo);
}

body.iam .iam-prenda .woocommerce-variation-add-to-cart,
body.iam .iam-prenda form.cart:not(.variations_form) {
	display: flex;
	gap: 10px;
	align-items: stretch;
	flex-wrap: wrap;
	margin-top: 12px;
}

body.iam .quantity .qty {
	width: 90px;
	min-height: 52px;
	padding: 8px;
	border: 1.5px solid #cfd8d5;
	border-radius: var(--r2);
	text-align: center;
	font: 600 16px var(--f2);
}

body.iam .iam-prenda .single_add_to_cart_button {
	flex: 1;
	min-height: 52px;
}

/* Colores en círculos: el desplegable sigue ahí para WooCommerce, escondido cuando los círculos funcionan. */
body.iam .iam-prenda table.variations td.iam-colores-listo select {
	position: absolute !important;
	width: 1px;
	height: 1px;
	min-height: 0;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.iam-colores {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 -4px;
}

.iam-color {
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	cursor: pointer;
}

.iam-color::before {
	content: "";
	position: absolute;
	inset: 7px;
	border-radius: 50%;
	background: var(--c, #fff);
	box-shadow: inset 0 0 0 1px rgba(0, 13, 28, .22);
}

/* Color sin tono conocido: rayas, y el nombre en el título y debajo al elegirlo. */
.iam-color--sin::before {
	background: repeating-linear-gradient(45deg, #dfe5e3 0 4px, #fff 4px 8px);
}

.iam-color[aria-checked="true"]::after {
	content: "";
	position: absolute;
	inset: 2px;
	border: 2.5px solid var(--vo);
	border-radius: 50%;
}

.iam-color:hover::before {
	box-shadow: inset 0 0 0 1px rgba(0, 13, 28, .22), 0 0 0 2px var(--vc2);
}

.iam-color:focus-visible {
	outline: 3px solid var(--vo);
	outline-offset: 0;
}

.iam-color.is-no {
	cursor: not-allowed;
}

.iam-color.is-no::before {
	opacity: .35;
}

.iam-color.is-no::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 8px;
	right: 8px;
	height: 2px;
	margin-top: -1px;
	background: var(--t3);
	transform: rotate(-45deg);
}

/* Círculos más pequeños (26/10/2026): con 50 colores eran una pared que empujaba todo hacia abajo. */
.iam-colores {
	gap: 2px;
	margin: 0 -3px;
}

.iam-color {
	width: 32px;
	height: 32px;
}

.iam-color::before {
	inset: 5px;
}

.iam-color[aria-checked="true"]::after {
	inset: 1px;
	border-width: 2px;
}

.iam-color.is-no::after {
	left: 6px;
	right: 6px;
}

/* Si no caben en tres filas: tres filas que se deslizan de lado, con flechas a los lados (app.js, colores()). Siempre
   dentro de su columna: el carril no pasa del ancho de la celda. */
body.iam .iam-prenda table.variations td {
	min-width: 0;
	max-width: 100%;
}

.iam-colores-carril.is-slider {
	display: flex;
	align-items: center;
	gap: 4px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.iam-colores.is-slider {
	position: relative;
	flex: 1;
	min-width: 0;
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: repeat(3, 32px);
	grid-auto-columns: 32px;
	margin: 0;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.iam-colores.is-slider::-webkit-scrollbar {
	display: none;
}

.iam-colores.is-slider .iam-color {
	scroll-snap-align: start;
}

.iam-colores-flecha {
	display: none;
}

body.iam .iam-colores-carril.is-slider .iam-colores-flecha {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	min-height: 0;
	padding: 0;
	border: 1px solid #d5dbd9;
	border-radius: 50%;
	background: #fff;
	color: var(--vo);
	cursor: pointer;
}

body.iam .iam-colores-carril.is-slider .iam-colores-flecha:hover:not(:disabled) {
	border-color: var(--vo);
}

body.iam .iam-colores-carril.is-slider .iam-colores-flecha:disabled {
	opacity: .3;
	cursor: default;
}

.iam-colores__nombre {
	margin: 4px 0 0;
	font: 600 14px var(--f1);
	color: var(--t2);
}

/* Lados de la prenda bajo la foto grande. */
.iam-lados {
	display: flex;
	gap: 10px;
	margin: -4px 0 16px;
}

/* Hasta cuatro lados (delante, detrás y los dos costados): en el móvil encogen para caber en una fila. */
.iam-lado {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	flex: 0 1 104px;
	min-width: 0;
	padding: 6px 6px 8px;
	border: 1.5px solid var(--g);
	border-radius: var(--r2);
	background: #fff;
	font: 600 13px/1.25 var(--f1);
	color: var(--t2);
	cursor: pointer;
}

.iam-lado img {
	width: 100%;
	max-width: 88px;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	border-radius: 8px;
	background: var(--g2);
}

/* La foto de perfil, dada la vuelta, es el lado derecho. */
img.iam-espejo {
	transform: scaleX(-1);
}

.iam-lado span {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.iam-lado small {
	font: 600 11px var(--f2);
	color: var(--v2);
}

.iam-lado small:empty {
	display: none;
}

.iam-lado:hover {
	border-color: var(--v);
}

.iam-lado.is-on {
	border-color: var(--v2);
	box-shadow: inset 0 0 0 1px var(--v2);
	color: var(--vo);
}

.iam-lado:focus-visible {
	outline: 3px solid var(--vo);
	outline-offset: 2px;
}

.iam-lanzador {
	margin: 12px 0;
}

.iam-lanzador__vacio,
.iam-lanzador__hecho {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
	padding: 14px;
	border: 2px dashed var(--v);
	border-radius: var(--r);
	background: var(--vc);
}

.iam-lanzador__hecho[hidden],
.iam-lanzador__vacio[hidden] {
	display: none;
}

.iam-lanzador__vacio > .iam-ico {
	width: 36px;
	height: 36px;
	color: var(--v2);
}

.iam-lanzador__vacio > span,
.iam-lanzador__hecho > p {
	display: flex;
	flex-direction: column;
	flex: 1 1 180px;
	margin: 0;
}

.iam-lanzador strong {
	font: 600 15px var(--f1);
}

.iam-lanzador small {
	color: var(--t2);
	font-size: 13px;
}

/* Vistas previas del diseño guardado: una por lado, y al pulsar se ve en la foto grande. */
.iam-lanzador__previas {
	display: flex;
	flex: 1 1 100%;
	gap: 8px;
}

.iam-lanzador__previa {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	flex: 0 1 108px;
	min-width: 0;
	padding: 4px 4px 6px;
	border: 1.5px solid transparent;
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--sombra);
	font: 600 12px var(--f1);
	color: var(--t2);
	text-align: center;
	cursor: pointer;
}

.iam-lanzador__previa img {
	width: 100%;
	max-width: 96px;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	border-radius: 8px;
}

.iam-lanzador__previa.is-vacio img {
	opacity: .5;
}

.iam-lanzador__previa.is-on {
	border-color: var(--v2);
	color: var(--vo);
}

.iam-lanzador__previa:focus-visible {
	outline: 3px solid var(--vo);
	outline-offset: 2px;
}

/* ---------- Pedido por tallas (tallas.js): una fila por color con una casilla por talla ---------- */

/* La talla, la cantidad y el botón de una sola prenda: con la tabla sobran. */
body.iam .iam-prenda .variations_form.iam-tallas-activa .single_variation_wrap,
body.iam .iam-prenda .variations_form .iam-tallas-oculta {
	display: none !important;
}

.iam-tallas {
	margin: 4px 0 0;
	padding: 16px;
	border-radius: var(--r);
	background: #fff;
	box-shadow: var(--sombra);
}

.iam-tallas[hidden],
.iam-tallas__vacio[hidden] {
	display: none;
}

.iam-tallas__titulo {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	font: 600 17px/1.3 var(--f1);
	color: var(--vo);
}

.iam-tallas__titulo .iam-ico {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	color: var(--v2);
}

.iam-tallas__ayuda,
.iam-tallas__vacio {
	margin: 0 0 12px;
	font-size: 14px;
	color: var(--t2);
}

.iam-tallas__vacio {
	padding: 14px;
	border: 1.5px dashed #cfd8d5;
	border-radius: var(--r2);
	text-align: center;
}

.iam-tallas__filas {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.iam-tallas__fila {
	padding: 12px;
	border: 1.5px solid var(--g);
	border-radius: var(--r2);
	background: var(--g2);
}

/* La fila del color que está elegido arriba (el de las fotos). */
.iam-tallas__fila.is-elegido {
	border-color: var(--v2);
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--v2);
}

.iam-tallas__cab {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.iam-tallas__muestra {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--c, #fff);
	box-shadow: inset 0 0 0 1px rgba(0, 13, 28, .22);
}

.iam-tallas__muestra--sin {
	background: repeating-linear-gradient(45deg, #dfe5e3 0 4px, #fff 4px 8px);
}

.iam-tallas__nombre {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
}

.iam-tallas__nombre strong {
	font: 600 15px/1.3 var(--f1);
	color: var(--t);
}

.iam-tallas__nombre small {
	font-size: 13px;
	color: var(--t3);
}

body.iam .iam-tallas__quitar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	margin: -6px -6px -6px 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--t3);
	cursor: pointer;
}

body.iam .iam-tallas__quitar:hover {
	background: var(--error-f);
	color: var(--error);
}

body.iam .iam-tallas__quitar:focus-visible {
	outline: 3px solid var(--vo);
	outline-offset: 0;
}

.iam-tallas__quitar .iam-ico {
	width: 20px;
	height: 20px;
}

/* Tres tallas por fila en el móvil; en el ordenador, todas en una si caben. */
.iam-tallas__celdas {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
	gap: 8px;
}

.iam-tallas__celda {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	margin: 0;
	text-align: center;
}

.iam-tallas__talla {
	font: 600 13px/1.2 var(--f1);
	color: var(--t2);
}

body.iam .iam-tallas__celda input {
	width: 100%;
	min-width: 0;
	height: 46px;
	margin: 0;
	padding: 6px 4px;
	border: 1.5px solid #cfd8d5;
	border-radius: var(--r2);
	background: #fff;
	font: 600 16px var(--f2);
	color: var(--t);
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

body.iam .iam-tallas__celda input::-webkit-outer-spin-button,
body.iam .iam-tallas__celda input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

body.iam .iam-tallas__celda input:focus {
	outline: none;
	border-color: var(--vo);
	box-shadow: 0 0 0 3px rgba(19, 152, 129, .35);
}

/* Con un número puesto, la casilla se ve rellena. */
body.iam .iam-tallas__celda input:not(:placeholder-shown) {
	border-color: var(--v2);
	background: var(--vc);
	color: var(--vo);
}

.iam-tallas__celda.is-no {
	opacity: .45;
}

body.iam .iam-tallas__celda.is-no input {
	background: var(--g2);
	cursor: not-allowed;
}

.iam-tallas__pc {
	font-size: 11px;
	color: var(--t3);
}

.iam-tallas__pc:empty,
.iam-tallas__sub:empty,
.iam-tallas__error:empty {
	display: none;
}

.iam-tallas__sub {
	margin: 8px 0 0;
	font: 600 13px var(--f1);
	color: var(--vo);
	text-align: right;
}

.iam-tallas__resumen {
	margin-top: 14px;
}

.iam-tallas__total {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 2px 8px;
	margin: 0;
	font: 600 15px var(--f1);
}

.iam-tallas__total span {
	flex: 1 1 auto;
}

.iam-tallas__total strong {
	font: 700 22px var(--f1);
	color: var(--vo);
}

.iam-tallas__total small {
	font-size: 13px;
	color: var(--t3);
}

.iam-tallas__desglose {
	margin: 2px 0 0;
	font-size: 13px;
	color: var(--t2);
}

.iam-tallas__error {
	margin: 10px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--error);
}

body.iam .iam-tallas__anadir {
	width: 100%;
	min-height: 52px;
	margin-top: 12px;
}

/* Lo que falta para el siguiente tramo del precio por cantidad, junto al total. */
.iam-tallas__siguiente {
	margin: 10px 0 0;
	padding: 10px 12px;
	border-radius: var(--r2);
	background: var(--vc);
	font: 600 14px/1.4 var(--f1);
	color: var(--vo);
}

.iam-tallas__siguiente[hidden] {
	display: none;
}

/* Precio por cantidad: la tabla de tramos, al final del pedido por tallas o sola debajo de la ficha. */
.iam-cantidad {
	margin-top: 18px;
}

.iam-cantidad__titulo {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	font: 600 15px/1.3 var(--f1);
	color: var(--vo);
}

.iam-cantidad__titulo .iam-ico {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	color: var(--v2);
}

.iam-cantidad__desc {
	margin-right: 6px;
	font: 600 13px var(--f1);
	color: var(--t2);
}

/* La etiqueta «Tu precio» en una pieza: si no cabe al lado del tramo, baja entera. */
.iam-cantidad .iam-tramos tr.is-on th::after {
	white-space: nowrap;
}

.iam-cantidad__nota {
	margin: 8px 0 0;
}

.iam-cantidad-caja {
	margin: 16px 0 0;
	padding: 16px;
	border-radius: var(--r);
	background: #fff;
	box-shadow: var(--sombra);
}

.iam-cantidad-caja .iam-cantidad {
	margin: 0;
}

/* ---------- Pedido por tallas compacto (26/10/2026): con 9 tallas y dos colores medía ~1500 px ---------- */

.iam-tallas {
	padding: 14px 12px;
}

.iam-tallas__titulo {
	font-size: 16px;
}

.iam-tallas__ayuda {
	margin-bottom: 10px;
	font-size: 13px;
	line-height: 1.45;
}

.iam-tallas__filas {
	gap: 8px;
}

.iam-tallas__fila {
	padding: 8px 8px 10px;
}

/* Color, nombre, «desde», subtotal y quitar en una sola línea. */
.iam-tallas__cab {
	gap: 8px;
	margin-bottom: 6px;
}

.iam-tallas__muestra {
	flex-basis: 22px;
	width: 22px;
	height: 22px;
}

.iam-tallas__nombre {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 6px;
}

.iam-tallas__nombre strong {
	font-size: 14px;
}

.iam-tallas__nombre small {
	font-size: 12px;
}

.iam-tallas__cab .iam-tallas__sub {
	flex: none;
	margin: 0;
	font-size: 13px;
	white-space: nowrap;
}

body.iam .iam-tallas__quitar {
	flex-basis: 32px;
	width: 32px;
	height: 32px;
	margin: -4px -2px -4px 0;
}

.iam-tallas__quitar .iam-ico {
	width: 16px;
	height: 16px;
}

/* Todas las tallas en una fila en el ordenador (hasta 9); en el móvil, dos filas. */
.iam-tallas__celdas {
	grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
	gap: 4px;
}

.iam-tallas__celda {
	gap: 2px;
}

.iam-tallas__talla {
	font-size: 11.5px;
}

body.iam .iam-tallas__celda input {
	height: 38px;
	padding: 4px 2px;
	border-radius: 8px;
	font-size: 15px;
}

.iam-tallas__pc {
	font-size: 10.5px;
	line-height: 1.2;
	white-space: nowrap;
}

.iam-tallas__resumen {
	margin-top: 12px;
}

.iam-tallas__siguiente {
	margin-top: 8px;
	padding: 8px 10px;
	font-size: 13px;
}

body.iam .iam-tallas__anadir {
	min-height: 48px;
	margin-top: 10px;
}

/* Precio por cantidad en recuadros, todos en una línea (antes una tabla de 5 filas). */
.iam-cantidad {
	margin-top: 14px;
}

body.iam .iam-cantidad .iam-tramos {
	display: block;
	border: 0;
	border-radius: 0;
	overflow: visible;
}

body.iam .iam-cantidad .iam-tramos thead {
	display: none;
}

body.iam .iam-cantidad .iam-tramos tbody {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
	gap: 4px;
	padding-top: 8px;
}

body.iam .iam-cantidad .iam-tramos tr {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	padding: 7px 2px 6px;
	border: 1px solid #dde7e4;
	border-radius: 8px;
	background: #fff;
}

body.iam .iam-cantidad .iam-tramos th,
body.iam .iam-cantidad .iam-tramos td {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	text-align: center;
	white-space: nowrap;
}

body.iam .iam-cantidad .iam-tramos th {
	font: 600 11.5px/1.2 var(--f1);
	color: var(--t2);
}

body.iam .iam-cantidad .iam-tramos td {
	font-size: 14px;
}

body.iam .iam-cantidad .iam-cantidad__desc {
	display: block;
	margin: 0;
	font-size: 11px;
}

body.iam .iam-cantidad .iam-tramos tr.is-on {
	border-color: var(--v2);
	background: var(--vc);
}

body.iam .iam-cantidad .iam-tramos tr.is-on th,
body.iam .iam-cantidad .iam-tramos tr.is-on td {
	background: none;
}

/* «Tu precio», como una pestaña encima del recuadro. */
.iam-cantidad .iam-tramos tr.is-on th::after {
	position: absolute;
	top: -8px;
	left: 50%;
	margin: 0;
	padding: 0 6px;
	font-size: 10px;
	transform: translateX(-50%);
}

.iam-cantidad__nota {
	font-size: 12px;
}

/* En el móvil el subtotal del color baja a su línea, a la derecha: si no, aprieta el nombre. */
@media (max-width: 600px) {
	.iam-tallas__cab {
		flex-wrap: wrap;
		row-gap: 2px;
	}

	body.iam .iam-tallas__quitar {
		order: 2;
	}

	.iam-tallas__cab .iam-tallas__sub {
		order: 3;
		flex-basis: 100%;
		text-align: right;
	}

	.iam-tallas__cab .iam-tallas__sub:empty {
		display: none;
	}
}

/* Mientras se prepara el diseño en cada color no se cambia de color ni de cantidad. */
body.iam-tallas-ocupado .variations_form,
body.iam-tallas-ocupado .iam-lados,
body.iam-tallas-ocupado .iam-tallas__filas {
	pointer-events: none;
	opacity: .65;
}

/* ---------- Editor de prendas ---------- */

body.iam.iam-editor-abierto {
	overflow: hidden;
}

.iam-editor {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: stretch;
	justify-content: center;
	background: rgba(0, 13, 28, .6);
}

.iam-editor[hidden] {
	display: none;
}

.iam-editor__caja {
	display: grid;
	grid-template-rows: auto 1fr auto;
	width: 100%;
	max-width: 1180px;
	background: #fff;
	overflow: hidden;
}

.iam-editor__cab {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-bottom: 1px solid var(--g);
}

.iam-editor__cab h2 {
	margin: 0;
	font-size: 17px;
	flex: 1;
}

.iam-editor__cerrar {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 12px;
	background: var(--g2);
	color: var(--t);
	cursor: pointer;
}

.iam-editor__cuerpo {
	display: grid;
	grid-template-rows: auto 1fr;
	min-height: 0;
	overflow: auto;
}

.iam-editor__zona {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 12px;
	background: linear-gradient(160deg, #f7faf9, #e6efec);
}

/* Nada encoge: el lienzo ya se mide para caber (si las pestañas, que se desplazan de lado, pudieran encoger, se aplastarían). */
.iam-editor__zona > * {
	flex-shrink: 0;
}

.iam-editor__vistas {
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: #fff;
	box-shadow: var(--sombra);
}

.iam-editor__vistas button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 4px 16px 4px 4px;
	border: 0;
	border-radius: 999px;
	background: none;
	font: 600 14px var(--f1);
	color: var(--t2);
	cursor: pointer;
}

/* Miniatura de cada lado con lo que lleva puesto. */
.iam-editor__vistas img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--g2);
	object-fit: contain;
}

.iam-editor__vistas b {
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--vc2);
	color: var(--vo);
	font: 700 12px/22px var(--f1);
	text-align: center;
}

.iam-editor__vistas b:empty {
	display: none;
}

.iam-editor__vistas button.is-on {
	background: var(--vo);
	color: #fff;
}

.iam-editor__vistas button.is-on img {
	background: #fff;
}

.iam-editor__vistas button.is-on b {
	background: #fff;
}

/* Con más de dos vistas (delante, detrás y mangas): rejilla de botones con la miniatura encima del nombre. */
.iam-editor__vistas.is-muchas {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(64px, 112px);
	max-width: 100%;
	border-radius: 18px;
	overflow-x: auto;
}

.iam-editor__vistas.is-muchas button {
	position: relative;
	flex-direction: column;
	justify-content: flex-start;
	gap: 2px;
	padding: 4px 4px 6px;
	border-radius: 14px;
	font-size: 12px;
	line-height: 1.2;
	text-align: center;
}

.iam-editor__vistas.is-muchas img {
	width: 44px;
	height: 44px;
}

.iam-editor__vistas.is-muchas b {
	position: absolute;
	top: 2px;
	right: 4px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	font-size: 11px;
	line-height: 18px;
}

@media (max-width: 600px) {
	.iam-editor__vistas.is-muchas {
		width: 100%;
		grid-auto-columns: minmax(64px, 1fr);
	}

	.iam-editor__vistas.is-muchas img {
		width: 40px;
		height: 40px;
	}
}

.iam-editor__lienzo {
	width: 100%;
	max-width: 900px;
	aspect-ratio: 1 / 1;
	position: relative;
}

.iam-editor__lienzo .canvas-container {
	margin: 0 auto;
}

.iam-editor__medida {
	margin: 0; /* el margen de los párrafos del tema hacía sobresalir el cuerpo de la ventana (barra de desplazamiento) */
	font: 600 13px var(--f1);
	color: var(--vo);
	min-height: 20px;
}

.iam-editor__panel {
	display: grid;
	gap: 14px;
	align-content: start;
	padding: 14px;
}

.iam-editor__grupo h3 {
	font-size: 14px;
	margin: 0 0 8px;
}

.iam-editor__fila {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}

body.iam .iam-editor__panel input[type="text"],
body.iam .iam-editor__panel select {
	flex: 1 1 160px;
	min-height: 44px;
	padding: 8px 12px;
	border: 1.5px solid #cfd8d5;
	border-radius: var(--r2);
	font: 400 15px var(--f2);
}

body.iam .iam-editor__panel input[type="color"] {
	width: 48px;
	height: 44px;
	padding: 2px;
	border: 1.5px solid #cfd8d5;
	border-radius: var(--r2);
	background: #fff;
}

.iam-editor__elementos {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
}

.iam-editor__elementos li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 6px 6px 12px;
	border-radius: var(--r2);
	background: var(--g2);
	font-size: 13.5px;
}

.iam-editor__elementos li.is-sel {
	background: var(--vc);
	box-shadow: inset 0 0 0 1.5px var(--v2);
}

.iam-editor__elementos li span {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.iam-editor__elementos li b {
	font-weight: 600;
	color: var(--vo);
	white-space: nowrap;
}

.iam-editor__elementos button {
	min-width: 40px;
	min-height: 40px;
	border: 0;
	border-radius: 10px;
	background: #fff;
	color: var(--t2);
	cursor: pointer;
	display: grid;
	place-items: center;
}

.iam-editor__elementos button:hover {
	color: var(--error);
}

.iam-editor__ayuda {
	margin: 0;
	font-size: 13px;
	color: var(--t3);
}

.iam-editor__pie {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--g);
	background: #fff;
}

.iam-editor__recargo {
	flex: 1 1 200px;
	display: flex;
	flex-direction: column;
	font-size: 13px;
	color: var(--t2);
}

.iam-editor__recargo strong {
	font: 700 20px var(--f1);
	color: var(--vo);
}

.iam-editor__error {
	flex: 1 1 100%;
	margin: 0;
	color: var(--error);
	font-weight: 600;
	font-size: 14px;
}

.iam-editor__error:empty {
	display: none;
}

/* Móvil: el precio a lo ancho con el desglose en dos líneas (al tocarlo se ve entero) y los dos botones juntos debajo;
   con cuatro zonas el desglose ocupaba cinco líneas y «Guardar diseño» caía solo a otra fila. */
@media (max-width: 600px) {
	.iam-editor__pie {
		gap: 8px 10px;
	}

	.iam-editor__recargo {
		flex: 1 1 100%;
		cursor: pointer;
	}

	.iam-editor__recargo small {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
	}

	.iam-editor__recargo.is-abierto small {
		display: block;
		-webkit-line-clamp: unset;
		overflow: visible;
	}

	.iam-editor__pie > .iam-btn {
		flex: 1 1 0;
	}
}

/* ---------- Cesta, pago, pagar pedido y gracias (WooCommerce clásico dentro del marco) ---------- */

/* Precio por cantidad: el precio de siempre tachado, encima del del tramo. */
body.iam .woocommerce table.cart td.product-price del {
	display: block;
	font-weight: 400;
	color: var(--t3);
}

body.iam .woocommerce table.cart td.product-price ins {
	text-decoration: none;
}

.iam-pagina {
	max-width: 1300px;
	margin: 0 auto;
}

body.iam .woocommerce-message,
body.iam .woocommerce-info,
body.iam .woocommerce-error,
body.iam .woocommerce-notices-wrapper > div {
	list-style: none;
	margin: 0 0 16px;
	padding: 14px 16px 14px 18px;
	border: 0;
	border-left: 5px solid var(--v);
	border-radius: var(--r2);
	background: #fff;
	box-shadow: var(--sombra);
	color: var(--t);
	font-size: 14.5px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
}

body.iam .woocommerce-message::before,
body.iam .woocommerce-info::before,
body.iam .woocommerce-error::before {
	display: none;
}

body.iam .woocommerce-message::after,
body.iam .woocommerce-info::after,
body.iam .woocommerce-error::after {
	display: none;
}

body.iam .woocommerce-info {
	border-left-color: var(--curso);
}

body.iam .woocommerce-error {
	border-left-color: var(--error);
	background: #fff8f8;
	flex-direction: column;
	align-items: flex-start;
}

body.iam .woocommerce-error li {
	margin: 0;
}

body.iam .woocommerce-message .button,
body.iam .woocommerce-info .button {
	order: 2;
	float: none;
}

/* Avisos con el formato de bloques de WooCommerce (temas de bloques): icono, texto y botón en una fila. */
body.iam .wc-block-components-notice-banner {
	flex-wrap: nowrap;
	justify-content: flex-start;
}

body.iam .wc-block-components-notice-banner:focus {
	outline: none;
}

body.iam .wc-block-components-notice-banner > svg {
	flex: none;
}

body.iam .wc-block-components-notice-banner__content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
}

/* WooCommerce lo deja como un enlace sin relleno (con !important); aquí es un botón secundario. */
body.iam .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward {
	order: 2;
	float: none;
	min-height: 40px;
	padding: 6px 16px !important;
	border: 2px solid #cfe3de;
	border-radius: 10px;
	background: #fff !important;
	color: var(--vo) !important;
	opacity: 1;
	font: 600 14px/1.2 var(--f1);
	text-decoration: none;
	white-space: nowrap;
}

body.iam .woocommerce a.button,
body.iam .woocommerce button.button,
body.iam .woocommerce input.button,
body.iam .woocommerce #respond input#submit,
body.iam a.button,
body.iam button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 18px;
	border: 2px solid #cfe3de;
	border-radius: 12px;
	background: #fff;
	color: var(--vo);
	font: 600 15px/1.2 var(--f1);
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
}

body.iam .woocommerce a.button:hover,
body.iam .woocommerce button.button:hover,
body.iam .woocommerce input.button:hover,
body.iam a.button:hover,
body.iam button.button:hover {
	background: var(--vc);
	border-color: var(--v);
	color: var(--vo);
	text-decoration: none;
}

body.iam .woocommerce a.button.alt,
body.iam .woocommerce button.button.alt,
body.iam .woocommerce input.button.alt,
body.iam .woocommerce a.checkout-button,
body.iam .woocommerce #place_order,
body.iam button.single_add_to_cart_button {
	background: var(--v2);
	border-color: var(--v2);
	color: #fff;
}

body.iam .woocommerce a.button.alt:hover,
body.iam .woocommerce button.button.alt:hover,
body.iam .woocommerce input.button.alt:hover,
body.iam .woocommerce a.checkout-button:hover,
body.iam .woocommerce #place_order:hover,
body.iam button.single_add_to_cart_button:hover {
	background: var(--vo);
	border-color: var(--vo);
	color: #fff;
}

body.iam .woocommerce button.button:disabled,
body.iam .woocommerce button.button:disabled[disabled],
body.iam .woocommerce button.button.disabled {
	opacity: .5;
	padding: 10px 18px;
	cursor: not-allowed;
}

/* Apagado (p. ej. «Añadir a la cesta» hasta elegir color y talla): en su verde, no en el lila de WooCommerce. En la ficha
   la clase «woocommerce» está en el mismo body, así que aquí no se pide; con body.iam ya gana a la de WooCommerce. */
body.iam button.button.alt:disabled,
body.iam button.button.alt:disabled[disabled],
body.iam button.button.alt.disabled,
body.iam button.button.alt:disabled:hover,
body.iam button.button.alt:disabled[disabled]:hover,
body.iam button.button.alt.disabled:hover {
	background: var(--v2);
	border-color: var(--v2);
	color: #fff;
}

/* Encendido (ya con color y talla) pasaba lo mismo: «.woocommerce button.button.alt» de WooCommerce ganaba a
   «body.iam button.single_add_to_cart_button» y el botón salía morado en las prendas normales (Adrián, 30-10). */
body.iam.woocommerce button.button.alt.single_add_to_cart_button {
	background: var(--v2);
	border-color: var(--v2);
	color: #fff;
}

body.iam.woocommerce button.button.alt.single_add_to_cart_button:not(:disabled):not(.disabled):hover {
	background: var(--vo);
	border-color: var(--vo);
	color: #fff;
}

body.iam .woocommerce form .form-row {
	padding: 0;
	margin: 0 0 12px;
}

body.iam .woocommerce form .form-row label {
	display: block;
	font: 600 13.5px var(--f1);
	margin-bottom: 5px;
	line-height: 1.4;
	color: var(--t);
}

body.iam .woocommerce form .form-row .required {
	color: var(--error);
	text-decoration: none;
}

body.iam .woocommerce form .form-row .optional {
	font-weight: 400;
	color: var(--t3);
}

body.iam .woocommerce form .form-row input.input-text,
body.iam .woocommerce form .form-row textarea,
body.iam .woocommerce form .form-row select,
body.iam .woocommerce input.input-text,
body.iam .woocommerce-page input.input-text,
body.iam .select2-container .select2-selection--single {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1.5px solid #cfd8d5;
	border-radius: var(--r2);
	background: #fff;
	color: var(--t);
	font: 400 15px/1.4 var(--f2);
	box-shadow: none;
}

body.iam .select2-container .select2-selection--single {
	display: flex;
	align-items: center;
	padding: 0 10px;
}

body.iam .select2-container .select2-selection--single .select2-selection__rendered {
	padding-left: 4px;
	line-height: 46px;
	color: var(--t);
}

body.iam .select2-container .select2-selection--single .select2-selection__arrow {
	height: 46px;
	right: 6px;
}

body.iam .woocommerce form .form-row input.input-text:focus,
body.iam .woocommerce form .form-row textarea:focus,
body.iam .woocommerce input.input-text:focus {
	border-color: var(--vo);
	outline: none;
	box-shadow: 0 0 0 3px rgba(19, 152, 129, .35);
}

body.iam .woocommerce form .form-row.woocommerce-invalid input.input-text,
body.iam .woocommerce form .form-row.woocommerce-invalid select {
	border-color: var(--error);
}

body.iam .woocommerce form .form-row.woocommerce-validated input.input-text {
	border-color: #9fd5c8;
}

body.iam .woocommerce-billing-fields__field-wrapper,
body.iam .woocommerce-shipping-fields__field-wrapper,
body.iam .woocommerce-address-fields__field-wrapper,
body.iam .woocommerce-additional-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 14px;
}

body.iam .woocommerce-billing-fields__field-wrapper .form-row,
body.iam .woocommerce-shipping-fields__field-wrapper .form-row,
body.iam .woocommerce-address-fields__field-wrapper .form-row,
body.iam .woocommerce-additional-fields__field-wrapper .form-row {
	float: none;
	width: auto;
	grid-column: 1 / -1;
}

body.iam .woocommerce-billing-fields__field-wrapper .form-row-first,
body.iam .woocommerce-shipping-fields__field-wrapper .form-row-first,
body.iam .woocommerce-address-fields__field-wrapper .form-row-first {
	grid-column: 1;
}

body.iam .woocommerce-billing-fields__field-wrapper .form-row-last,
body.iam .woocommerce-shipping-fields__field-wrapper .form-row-last,
body.iam .woocommerce-address-fields__field-wrapper .form-row-last {
	grid-column: 2;
}

body.iam .woocommerce table.shop_table {
	width: 100%;
	margin: 0 0 16px;
	border: 0;
	border-radius: var(--r);
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
	box-shadow: var(--sombra);
	overflow: hidden;
	font-size: 14.5px;
}

body.iam .woocommerce table.shop_table th,
body.iam .woocommerce table.shop_table td {
	padding: 12px 14px;
	border: 0;
	border-top: 1px solid var(--g);
	vertical-align: middle;
	line-height: 1.45;
}

body.iam .woocommerce table.shop_table thead th {
	border-top: 0;
	background: var(--g2);
	font: 600 12.5px var(--f1);
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--t2);
}

body.iam .woocommerce table.shop_table tfoot th,
body.iam .woocommerce table.shop_table tfoot td {
	font-weight: 600;
}

body.iam .woocommerce table.shop_table .order-total th,
body.iam .woocommerce table.shop_table .order-total td {
	font: 700 17px var(--f1);
	color: var(--vo);
}

body.iam .woocommerce table.shop_table .order-total small,
body.iam .woocommerce table.shop_table .includes_tax {
	font: 400 12px var(--f2);
	color: var(--t3);
}

body.iam .woocommerce table.cart img,
body.iam .woocommerce table.shop_table img {
	width: 64px;
	height: 64px;
	object-fit: contain;
	border-radius: 10px;
	background: var(--g2);
}

body.iam .iam-miniatura-diseno {
	position: relative;
	display: block;
	width: 64px;
	height: 64px;
	border-radius: 10px;
	background: var(--g2);
	overflow: hidden;
}

body.iam .woocommerce table.shop_table .iam-miniatura-diseno img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	border-radius: 0;
	background: none;
}

body.iam .woocommerce table.cart .product-name a {
	font: 600 15px var(--f1);
	color: var(--t);
}

body.iam .woocommerce table.cart .variation,
body.iam .woocommerce table.shop_table .wc-item-meta {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2px 8px;
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--t2);
	list-style: none;
	padding: 0;
}

body.iam .woocommerce table.cart .variation dt,
body.iam .woocommerce table.shop_table .wc-item-meta .wc-item-meta-label {
	float: none;
	margin: 0;
	font-weight: 600;
	color: var(--t);
}

body.iam .woocommerce table.cart .variation dd,
body.iam .woocommerce table.cart .variation dd p {
	margin: 0;
	padding: 0;
}

body.iam .woocommerce table.shop_table .wc-item-meta li {
	display: contents;
}

body.iam .woocommerce table.shop_table .wc-item-meta p {
	display: inline;
	margin: 0;
}

body.iam .woocommerce a.remove {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	color: var(--t3) !important;
	font-size: 22px;
	font-weight: 400;
	background: var(--g2);
}

body.iam .woocommerce a.remove:hover {
	background: var(--error-f);
	color: var(--error) !important;
}

body.iam .woocommerce table.cart td.actions {
	background: var(--g2);
}

body.iam .woocommerce table.cart td.actions .coupon {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	float: none;
}

body.iam .woocommerce table.cart td.actions .coupon .input-text {
	width: 200px;
	float: none;
	margin: 0;
}

body.iam .woocommerce table.cart td.actions > .button {
	float: right;
}

.iam-linea-bono {
	display: inline-block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 600;
}

/* Cambiar una línea con configuración: vuelve a su ficha con lo guardado. */
body.iam .iam-linea-editar {
	display: flex;
	width: fit-content;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--v2);
	text-decoration: none;
}

body.iam .iam-linea-editar .iam-ico {
	width: 15px;
	height: 15px;
}

body.iam .iam-linea-editar:hover span {
	text-decoration: underline;
}

.iam-aviso-bono {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 14px 16px;
	margin-bottom: 16px;
	border-radius: var(--r);
	background: var(--vc);
	border: 1px solid var(--vc2);
	color: var(--vo);
}

.iam-aviso-bono .iam-ico {
	color: var(--v2);
}

.iam-aviso-bono p {
	margin: 0;
}

.iam-aviso-bono--falta {
	background: var(--aviso-f);
	border-color: #f0d9a6;
	color: var(--aviso);
}

.iam-aviso-bono--falta .iam-ico {
	color: var(--aviso);
}

body.iam .woocommerce .cart-collaterals .cart_totals,
body.iam .woocommerce-page .cart-collaterals .cart_totals {
	float: none;
	width: 100%;
}

body.iam .cart_totals h2 {
	font-size: 18px;
}

body.iam .woocommerce-shipping-methods {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.iam .woocommerce-shipping-methods li {
	margin: 0 0 6px;
	display: flex;
	gap: 8px;
	align-items: flex-start;
	text-align: left;
}

body.iam .woocommerce-shipping-methods input[type="radio"] {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: var(--v2);
}

body.iam .woocommerce-shipping-destination,
body.iam .woocommerce-shipping-calculator {
	font-size: 13px;
	color: var(--t3);
}

body.iam .wc-proceed-to-checkout {
	padding: 4px 0 0;
}

body.iam .wc-proceed-to-checkout a.checkout-button {
	display: flex;
	width: 100%;
	min-height: 56px;
	font-size: 17px;
	margin: 0;
}

body.iam .woocommerce-form-coupon-toggle .woocommerce-info,
body.iam .woocommerce-form-login-toggle .woocommerce-info {
	justify-content: flex-start;
}

body.iam form.checkout_coupon,
body.iam form.woocommerce-form-login {
	border: 0;
	border-radius: var(--r);
	background: #fff;
	box-shadow: var(--sombra);
	padding: 16px;
	margin: 0 0 16px;
}

body.iam #customer_details,
body.iam #order_review {
	background: #fff;
	border-radius: var(--r);
	box-shadow: var(--sombra);
	padding: 18px;
	margin-bottom: 16px;
}

body.iam .woocommerce .col2-set .col-1,
body.iam .woocommerce .col2-set .col-2,
body.iam .woocommerce-page .col2-set .col-1,
body.iam .woocommerce-page .col2-set .col-2 {
	float: none;
	width: 100%;
	max-width: none;
}

body.iam #customer_details .col-2 {
	margin-top: 8px;
}

body.iam #customer_details h3,
body.iam #order_review_heading {
	font-size: 18px;
	margin: 0 0 12px;
}

body.iam #ship-to-different-address {
	font-size: 15px;
}

body.iam #ship-to-different-address label {
	display: flex;
	gap: 8px;
	align-items: center;
	cursor: pointer;
}

body.iam #order_review table.shop_table {
	box-shadow: none;
	border: 1px solid var(--g);
}

/* Resumen del pago como lista: el producto y sus datos a lo ancho, el importe a la derecha, las formas de envío debajo de su título. */
body.iam .woocommerce table.woocommerce-checkout-review-order-table,
body.iam .woocommerce table.woocommerce-checkout-review-order-table thead,
body.iam .woocommerce table.woocommerce-checkout-review-order-table tbody,
body.iam .woocommerce table.woocommerce-checkout-review-order-table tfoot {
	display: block;
}

body.iam .woocommerce table.woocommerce-checkout-review-order-table tr {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 16px;
	padding: 12px 14px;
	border-top: 1px solid var(--g);
}

body.iam .woocommerce table.woocommerce-checkout-review-order-table thead tr {
	border-top: 0;
	background: var(--g2);
}

body.iam .woocommerce table.woocommerce-checkout-review-order-table th,
body.iam .woocommerce table.woocommerce-checkout-review-order-table td {
	display: block;
	padding: 0;
	border: 0;
	background: none;
}

body.iam .woocommerce table.woocommerce-checkout-review-order-table .product-name {
	flex: 1 1 0;
	min-width: 0;
}

body.iam .woocommerce table.woocommerce-checkout-review-order-table .product-total,
body.iam .woocommerce table.woocommerce-checkout-review-order-table tfoot td {
	text-align: right;
}

body.iam .woocommerce table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td {
	flex: 1 1 100%;
	text-align: left;
}

body.iam .woocommerce-checkout #payment,
body.iam #payment {
	background: var(--g2);
	border-radius: var(--r);
}

body.iam #payment ul.payment_methods {
	padding: 14px;
	border-bottom: 1px solid var(--g);
	list-style: none;
	margin: 0;
}

body.iam #payment ul.payment_methods li {
	margin: 0 0 8px;
	padding: 12px 14px;
	border-radius: var(--r2);
	background: #fff;
	border: 1.5px solid #dfe6e3;
	line-height: 1.4;
}

body.iam #payment ul.payment_methods li:has(input:checked) {
	border-color: var(--v2);
	box-shadow: inset 0 0 0 1px var(--v2);
}

body.iam #payment ul.payment_methods li > input {
	width: 18px;
	height: 18px;
	margin: 0 8px 0 0;
	vertical-align: middle;
	accent-color: var(--v2);
}

body.iam #payment ul.payment_methods li > label {
	display: inline;
	font: 600 15px var(--f1);
	cursor: pointer;
}

body.iam #payment div.payment_box {
	margin: 10px 0 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--g2);
	color: var(--t2);
	font-size: 13.5px;
}

body.iam #payment div.payment_box::before {
	display: none;
}

body.iam #payment div.form-row {
	padding: 14px;
	margin: 0;
}

body.iam #payment #place_order {
	float: none;
	width: 100%;
	min-height: 58px;
	font-size: 18px;
	border-radius: 14px;
}

body.iam .woocommerce-terms-and-conditions-wrapper {
	font-size: 13px;
	color: var(--t3);
}

body.iam .woocommerce-privacy-policy-text p {
	margin-bottom: 10px;
}

body.iam .blockUI.blockOverlay {
	background: rgba(255, 255, 255, .7) !important;
}

/* Pagar pedido: la tabla del pedido y la de pago */

body.iam .iam-pagina--pagar form#order_review {
	background: #fff;
	border-radius: var(--r);
	box-shadow: var(--sombra);
	padding: 18px;
}

body.iam .iam-pagina--pagar form#order_review > table.shop_table {
	box-shadow: none;
	border: 1px solid var(--g);
}

/* Gracias */

.iam-gracias {
	text-align: center;
	background: #fff;
	border-radius: 20px;
	box-shadow: var(--sombra);
	padding: 28px 20px;
	margin-bottom: 16px;
}

.iam-gracias__ico {
	display: inline-grid;
	place-items: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--vc);
	color: var(--v2);
	margin-bottom: 8px;
}

.iam-gracias__ico .iam-ico {
	width: 40px;
	height: 40px;
	stroke-width: 2.4;
}

.iam-gracias h1 {
	font-size: 26px;
}

.iam-gracias__pasos {
	display: inline-block;
	text-align: left;
	margin: 8px auto 16px;
	max-width: 520px;
}

.iam-gracias__acciones {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
	margin: 0;
}

body.iam .iam-pagina--gracias .woocommerce-notice--success,
body.iam .iam-pagina--gracias .woocommerce-thankyou-order-received {
	display: none;
}

body.iam ul.woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

body.iam ul.woocommerce-order-overview li {
	flex: 1 1 150px;
	margin: 0;
	padding: 12px 14px;
	border: 0;
	border-radius: var(--r2);
	background: #fff;
	box-shadow: var(--sombra);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--t3);
}

body.iam ul.woocommerce-order-overview li strong {
	display: block;
	margin-top: 2px;
	font: 600 15px var(--f1);
	text-transform: none;
	letter-spacing: 0;
	color: var(--t);
}

body.iam .woocommerce-order-details,
body.iam .woocommerce-customer-details,
body.iam .woocommerce-bacs-bank-details {
	margin-bottom: 16px;
}

/* Gracias: facturación y envío, una al lado de otra en PC. */
body.iam .woocommerce-customer-details .col2-set.addresses {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
}

body.iam .woocommerce-customer-details .col2-set.addresses::before,
body.iam .woocommerce-customer-details .col2-set.addresses::after {
	content: none;
	display: none;
}

@media (min-width: 769px) {
	body.iam .woocommerce-customer-details .col2-set.addresses {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

body.iam .woocommerce-customer-details address {
	border: 0;
	border-radius: var(--r);
	background: #fff;
	box-shadow: var(--sombra);
	padding: 16px;
	font-style: normal;
}

body.iam .woocommerce-bacs-bank-details .wc-bacs-bank-details {
	list-style: none;
	padding: 16px;
	margin: 0;
	border-radius: var(--r);
	background: #fff;
	box-shadow: var(--sombra);
}

/* ---------- Cuenta (app) ---------- */

.iam-saludo {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.iam-saludo h1 {
	font-size: 26px;
	margin: 0;
}

.iam-saldos {
	display: grid;
	gap: 12px;
}

.iam-saldo {
	display: grid;
	grid-template-columns: 96px 1fr;
	grid-template-areas: "anillo txt" "anillo acc";
	align-items: center;
	column-gap: 14px;
	row-gap: 8px;
	position: relative;
	padding: 12px;
	border-radius: var(--r);
	background: var(--g2);
}

.iam-saldo.is-vacio {
	opacity: .8;
}

.iam-anillo {
	grid-area: anillo;
	width: 96px;
	height: 96px;
	transform: rotate(-90deg);
}

.iam-anillo circle {
	fill: none;
	stroke-width: 9;
}

.iam-anillo__fondo {
	stroke: #dbe6e3;
}

.iam-anillo__valor {
	stroke: var(--v);
	stroke-linecap: round;
	transition: stroke-dasharray .6s;
}

/* En la misma celda que el anillo: así sigue centrado aunque la tarjeta crezca (botones en dos líneas). */
.iam-saldo__num {
	grid-area: anillo;
	align-self: center;
	width: 96px;
	height: 96px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.iam-saldo__num strong {
	font: 700 24px var(--f1);
	color: var(--vo);
	font-variant-numeric: tabular-nums;
}

.iam-saldo__num.is-largo strong {
	font-size: 17px;
}

.iam-saldo__num.is-muy-largo strong {
	font-size: 15px;
}

.iam-saldo__num small {
	font: 600 12px var(--f1);
	color: var(--t3);
	margin-top: 2px;
}

.iam-saldo__txt {
	grid-area: txt;
	display: flex;
	flex-direction: column;
	gap: 1px;
	font-size: 13px;
	color: var(--t3);
	align-self: end;
}

.iam-saldo__txt b {
	font: 600 15px var(--f1);
	color: var(--t);
}

.iam-saldo__acc {
	grid-area: acc;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	align-self: start;
}

.iam-envios {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 12px 0 0;
	font-size: 13.5px;
	color: var(--t2);
}

.iam-envios .iam-ico {
	color: var(--v2);
}

.iam-sin-bono {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.iam-sin-bono > .iam-ico {
	width: 36px;
	height: 36px;
	color: var(--v2);
}

.iam-sin-bono h2 {
	font-size: 17px;
}

.iam-sin-bono p {
	color: var(--t2);
	font-size: 14px;
}

.iam-accesos {
	display: grid;
	gap: 10px;
}

body.iam .iam-acceso {
	display: flex;
	gap: 12px;
	align-items: center;
	min-height: 64px;
	padding: 12px 14px;
	border-radius: var(--r2);
	background: var(--g2);
	color: var(--t);
	text-decoration: none;
	border: 1.5px solid transparent;
}

body.iam .iam-acceso:hover {
	border-color: var(--v);
	background: var(--vc);
	color: var(--t);
	text-decoration: none;
}

.iam-acceso > .iam-ico {
	width: 30px;
	height: 30px;
	color: var(--v2);
}

.iam-acceso span {
	display: flex;
	flex-direction: column;
}

.iam-acceso b {
	font: 600 15px var(--f1);
}

.iam-acceso small {
	color: var(--t3);
}

body.iam .iam-pedido-mini {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: var(--r2);
	background: var(--g2);
	color: var(--t);
	text-decoration: none;
	margin-bottom: 12px;
}

body.iam .iam-pedido-mini:hover {
	background: var(--vc);
	color: var(--t);
	text-decoration: none;
}

.iam-pedido-mini span:first-child {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.iam-pedido-mini b {
	font: 600 15px var(--f1);
}

.iam-pedido-mini small {
	color: var(--t3);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.iam-estado {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--g);
	color: var(--t2);
	font: 600 12.5px/1.3 var(--f2);
	white-space: nowrap;
}

.iam-estado::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}

.iam-estado--ok {
	background: var(--ok-f);
	color: var(--ok);
}

.iam-estado--curso {
	background: var(--curso-f);
	color: var(--curso);
}

.iam-estado--aviso {
	background: var(--aviso-f);
	color: var(--aviso);
}

.iam-estado--error {
	background: var(--error-f);
	color: var(--error);
}

.iam-tiempo {
	list-style: none;
	margin: 4px 0 12px;
	padding: 0;
	display: grid;
	gap: 0;
}

.iam-tiempo li {
	position: relative;
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding-bottom: 12px;
	color: var(--t3);
}

.iam-tiempo li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 13px;
	top: 28px;
	bottom: 0;
	width: 2px;
	background: #dbe3e1;
}

.iam-tiempo li.is-hecho:not(:last-child)::after {
	background: var(--v);
}

.iam-tiempo__punto {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 2px solid #cbd5d2;
	background: #fff;
	flex: none;
}

.iam-tiempo li.is-hecho .iam-tiempo__punto {
	background: var(--v);
	border-color: var(--v);
	color: #fff;
}

.iam-tiempo li.is-actual .iam-tiempo__punto {
	box-shadow: 0 0 0 5px rgba(34, 180, 154, .22);
}

.iam-tiempo__punto .iam-ico {
	width: 16px;
	height: 16px;
	stroke-width: 3;
}

.iam-tiempo__txt {
	display: flex;
	flex-direction: column;
	padding-top: 3px;
}

.iam-tiempo__txt b {
	font: 600 14px var(--f1);
}

.iam-tiempo li.is-hecho .iam-tiempo__txt b {
	color: var(--t);
}

.iam-tiempo li.is-actual .iam-tiempo__txt b {
	color: var(--vo);
}

.iam-tiempo li.is-parado .iam-tiempo__punto {
	background: var(--error-f);
	border-color: var(--error);
	color: var(--error);
}

.iam-tiempo li.is-parado .iam-tiempo__txt b {
	color: var(--error);
}

.iam-tiempo__txt small {
	font-size: 12px;
}

.iam-atajos {
	display: grid;
	gap: 6px;
}

body.iam .iam-atajo {
	display: flex;
	gap: 12px;
	align-items: center;
	width: 100%;
	min-height: 52px;
	padding: 10px 14px;
	border: 0;
	border-radius: var(--r2);
	background: var(--g2);
	color: var(--t);
	font: 600 14.5px var(--f2);
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

body.iam .iam-atajo[hidden] {
	display: none;
}

body.iam .iam-atajo:hover {
	background: var(--vc);
	color: var(--vo);
	text-decoration: none;
}

.iam-atajo .iam-ico {
	color: var(--v2);
}

body.iam .iam-atajo::after {
	content: "";
	width: 8px;
	height: 8px;
	margin-left: auto;
	border-right: 2px solid #9aa7a3;
	border-top: 2px solid #9aa7a3;
	transform: rotate(45deg);
}

body.iam .iam-atajo--salir,
body.iam .iam-atajo--salir .iam-ico {
	color: var(--error);
}

.iam-acciones {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

/* Tablas densas (pedidos, movimientos) */

.iam-herramientas {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.iam-herramientas .iam-buscar {
	flex: 1 1 260px;
}

.iam-herramientas .iam-filtros {
	margin: 0;
}

.iam-tabla-envoltura {
	border-radius: var(--r);
	background: #fff;
	box-shadow: var(--sombra);
	overflow: hidden;
}

@supports (overflow: clip) {
	.iam-tabla-envoltura {
		overflow: clip;
	}
}

.iam-bloque .iam-tabla-envoltura {
	box-shadow: none;
	border: 1px solid var(--g);
}

.iam-tabla {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.iam-tabla thead {
	display: none;
}

.iam-tabla tbody tr {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 4px 12px;
	padding: 12px 14px;
	border-top: 1px solid var(--g);
}

.iam-tabla tbody tr:first-child {
	border-top: 0;
}

.iam-tabla tbody tr[hidden] {
	display: none;
}

.iam-tabla td {
	padding: 0;
	border: 0;
	min-width: 0;
}

.iam-tabla--pedidos td[data-titulo="Fecha"],
.iam-tabla--pedidos td[data-titulo="Productos"],
.iam-tabla--pedidos .iam-tabla__acc {
	grid-column: 1 / -1;
}

.iam-tabla--pedidos td[data-titulo="Fecha"] {
	order: 3;
	font-size: 12.5px;
	color: var(--t3);
}

.iam-tabla--pedidos td[data-titulo="Productos"] {
	order: 2;
	color: var(--t2);
}

.iam-tabla--pedidos td[data-titulo="Estado"] {
	order: 4;
}

.iam-tabla--pedidos td[data-titulo="Total"] {
	order: 5;
	font: 600 15px var(--f1);
	align-self: center;
}

.iam-tabla--pedidos .iam-tabla__acc {
	order: 6;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.iam-tabla--movs td[data-titulo="Concepto"] {
	grid-column: 1 / -1;
	order: 1;
}

.iam-tabla--movs td[data-titulo="Fecha"] {
	order: 2;
	font-size: 12.5px;
	color: var(--t3);
}

.iam-mov__bono {
	display: block;
	margin-top: 2px;
	font-size: 12.5px;
	color: var(--t3);
}

.iam-tabla--movs td[data-titulo="Cantidad"] {
	order: 2;
	grid-row: 2;
	grid-column: 2;
	align-self: center;
	font: 700 16px var(--f1);
}

body.iam .iam-fuerte {
	font: 600 15px var(--f1);
	color: var(--vo);
}

.iam-tabla__prod {
	overflow-wrap: anywhere;
}

.iam-neg {
	color: var(--error);
}

.iam-pos {
	color: var(--ok);
}

.iam-tipo {
	display: inline-block;
	margin-right: 4px;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--g);
	font: 600 11.5px/1.6 var(--f2);
	color: var(--t2);
	vertical-align: 1px;
}

.iam-tipo--compra,
.iam-tipo--migracion {
	background: var(--ok-f);
	color: var(--ok);
}

.iam-tipo--gasto {
	background: var(--curso-f);
	color: var(--curso);
}

.iam-tipo--devolucion {
	background: var(--aviso-f);
	color: var(--aviso);
}

.iam-tipo--caducidad {
	background: var(--error-f);
	color: var(--error);
}

/* Pedido */

.iam-lineas {
	list-style: none;
	margin: 0;
	padding: 0;
}

.iam-linea {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 4px 12px;
	padding: 12px 0;
	border-top: 1px solid var(--g);
}

.iam-linea:first-child {
	border-top: 0;
	padding-top: 0;
}

.iam-linea > img {
	width: 56px;
	height: 56px;
	object-fit: contain;
	border-radius: 10px;
	background: var(--g2);
}

body.iam .iam-linea > .iam-miniatura-diseno {
	width: 56px;
	height: 56px;
}

body.iam .iam-miniatura-diseno img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	border-radius: 0;
	background: none;
}

.iam-linea__txt b {
	font: 600 15px var(--f1);
}

.iam-linea__ops {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2px 8px;
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--t2);
}

.iam-linea__ops dt {
	font-weight: 600;
	color: var(--t);
}

.iam-linea__ops dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.iam-linea__total {
	grid-column: 2;
	font: 600 15px var(--f1);
	color: var(--vo);
}

.iam-archivos {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	display: grid;
	gap: 6px;
}

body.iam .iam-archivos a {
	display: flex;
	gap: 8px;
	align-items: center;
	min-height: 44px;
	padding: 8px 12px;
	border-radius: var(--r2);
	background: var(--g2);
	color: var(--t);
	font-size: 13.5px;
	font-weight: 600;
}

body.iam .iam-archivos a:hover {
	background: var(--vc);
	text-decoration: none;
}

.iam-archivos .iam-ico {
	color: var(--v2);
	width: 20px;
	height: 20px;
}

.iam-archivos span {
	flex: 1;
	overflow-wrap: anywhere;
}

.iam-archivos small {
	color: var(--t3);
	font-weight: 400;
}

.iam-previas {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.iam-previas figure {
	margin: 0;
	text-align: center;
	font-size: 12px;
	color: var(--t3);
}

.iam-previas img {
	display: block;
	width: 120px;
	height: 120px;
	object-fit: contain;
	border-radius: var(--r2);
	background: var(--g2);
	margin-bottom: 4px;
}

.iam-totales {
	width: 100%;
	border-collapse: collapse;
	font-size: 14.5px;
}

.iam-totales th,
.iam-totales td {
	padding: 8px 0;
	border-top: 1px solid var(--g);
	text-align: left;
	vertical-align: top;
}

.iam-totales td {
	text-align: right;
}

.iam-totales tr:first-child th,
.iam-totales tr:first-child td {
	border-top: 0;
}

.iam-totales th {
	font-weight: 600;
	color: var(--t2);
}

.iam-totales--order_total th,
.iam-totales--order_total td {
	font: 700 17px var(--f1);
	color: var(--vo);
}

.iam-totales small {
	display: block;
	font-size: 12px;
	font-weight: 400;
	color: var(--t3);
}

body.iam .iam-direccion {
	font-style: normal;
	color: var(--t2);
	line-height: 1.6;
}

.iam-nif {
	margin: 8px 0 0;
	font-size: 14px;
}

.iam-aviso-txt {
	color: var(--aviso);
	font-weight: 600;
}

/* Entrar */

.iam-entrar {
	align-items: start;
}

.iam-entrar__txt h1 {
	font-size: 26px;
}

body.iam .iam-entrar__form h2 {
	font-size: 20px;
}

body.iam .iam-entrar__form .u-columns {
	display: grid;
	gap: 20px;
}

body.iam .iam-entrar__form .u-column1,
body.iam .iam-entrar__form .u-column2 {
	float: none;
	width: 100%;
}

body.iam .woocommerce form.login,
body.iam .woocommerce form.register {
	border: 0;
	padding: 0;
	margin: 0;
	box-shadow: none;
	background: none;
}

body.iam .woocommerce-form-login__rememberme {
	display: flex !important;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px !important;
	font-weight: 400 !important;
}

body.iam .woocommerce-form-login__submit {
	width: 100%;
	background: var(--v2) !important;
	border-color: var(--v2) !important;
	color: #fff !important;
}

body.iam .woocommerce-LostPassword {
	margin-top: 10px;
	font-size: 14px;
}

/* Pantallas de WooCommerce dentro de la app (datos, direcciones) */

body.iam .iam-pantalla--wc .woocommerce-MyAccount-content,
body.iam .iam-pantalla--wc .woocommerce-MyAccount-navigation {
	float: none;
	width: 100%;
}

body.iam .iam-pantalla--wc .woocommerce-MyAccount-navigation {
	display: none;
}

body.iam .iam-pantalla--wc fieldset {
	border: 1px solid var(--g);
	border-radius: var(--r2);
	padding: 14px;
	margin: 12px 0;
}

body.iam .iam-pantalla--wc legend {
	font: 600 15px var(--f1);
	padding: 0 6px;
}

/* ---------- Pie y pestañas ---------- */

.iam-pie {
	max-width: 1300px;
	margin: 0 auto;
	padding: 16px 16px calc(var(--barra) + 28px + env(safe-area-inset-bottom));
	text-align: center;
	font-size: 13px;
	color: var(--t3);
}

.iam-pie p {
	margin: 0 0 6px;
}

.iam-pie span {
	color: var(--aviso);
	font-weight: 600;
}

/* Contacto y enlaces legales: en verde oscuro para que se lean bien sobre el gris del fondo. */
body.iam .iam-pie a,
body.iam .iam-subir__ayuda a {
	color: var(--vo);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.iam-pie__contacto {
	color: var(--t2);
}

.iam-pie__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2px 16px;
	margin: 0 0 6px;
	padding: 0;
	list-style: none;
}

.iam-pie__legal li {
	margin: 0;
}

.iam-pie__legal a {
	display: inline-block;
	padding: 6px 0;
}

.iam-subir__ayuda {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--t3);
}

body.iam-v-pago .iam-pie,
body.iam-v-pagar .iam-pie {
	padding-bottom: 24px;
}

.iam-pestanas {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, .97);
	border-top: 1px solid var(--g);
	box-shadow: 0 -6px 24px rgba(0, 13, 28, .08);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

body.iam .iam-pestana {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: 52px;
	border-radius: 12px;
	color: var(--t3);
	font: 600 11.5px/1.2 var(--f1);
	text-decoration: none;
}

body.iam .iam-pestana:hover {
	color: var(--vo);
	text-decoration: none;
}

body.iam .iam-pestana.is-on {
	color: var(--vo);
}

body.iam .iam-pestanas .iam-pestana.is-on .iam-ico {
	background: var(--vc);
	color: var(--v2);
}

.iam-pestanas .iam-ico {
	width: 48px;
	height: 28px;
	padding: 3px 12px;
	border-radius: 999px;
	transition: background .15s;
}

.iam-pestanas .iam-contador {
	top: 2px;
	right: calc(50% - 26px);
	box-shadow: 0 0 0 2px #fff;
}

/* Aviso flotante (IAM.aviso): arriba, bajo la cabecera, para no tapar el botón de añadir ni la barra de pestañas. */

.iam-toast {
	position: fixed;
	left: 50%;
	top: calc(var(--cab) + 12px);
	z-index: 1100;
	max-width: min(92vw, 460px);
	padding: 12px 18px;
	border-radius: 12px;
	background: var(--n);
	color: #fff;
	font-size: 14px;
	box-shadow: var(--sombra2);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, -12px);
	transition: opacity .2s, transform .2s;
}

.admin-bar .iam-toast {
	top: calc(var(--cab) + 58px);
}

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

/* ---------- Tableta ---------- */

@media (min-width: 600px) {
	.iam-rejilla {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.iam-puertas {
		grid-template-columns: 1fr 1fr;
	}

	.iam-accesos {
		grid-template-columns: 1fr 1fr;
	}

	.iam-saldos {
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	}

	body.iam .iam-hero h1 {
		font-size: 34px;
	}

	.iam-hero {
		padding: 40px 36px;
	}
}

/* ---------- Ordenador ---------- */

@media (min-width: 1025px) {
	body.iam {
		--cab: 72px;
		font-size: 15px;
	}

	.admin-bar .iam-cab {
		top: 32px;
	}

	.admin-bar .iam-toast {
		top: calc(var(--cab) + 44px);
	}

	.iam-solo-escritorio {
		display: revert !important;
	}

	body.iam .iam-btn.iam-solo-escritorio {
		display: inline-flex !important;
	}

	body.iam h1.iam-solo-escritorio {
		display: block !important;
	}

	.iam-solo-movil {
		display: none !important;
	}

	.iam-cab__in {
		flex-wrap: nowrap;
		gap: 20px;
		padding: 10px 24px;
	}

	.iam-logo {
		margin-right: 0;
	}

	.iam-cab__buscar {
		display: block;
		order: 0;
		flex: 0 1 360px;
		padding: 0;
	}

	.iam-cab__lupa {
		display: none !important;
	}

	body.iam .iam-cab__admin {
		display: flex;
		align-items: center;
		gap: 8px;
		width: auto;
		padding: 0 14px;
		font-size: 14px;
		font-weight: 600;
	}

	body.iam .iam-cab__admin .iam-ico {
		width: 20px;
		height: 20px;
	}

	body.iam .iam-cab__admin span {
		display: inline;
	}

	.iam-arriba {
		display: flex;
		gap: 4px;
		margin-left: auto;
	}

	body.iam .iam-arriba .iam-pestana {
		flex-direction: row;
		gap: 8px;
		min-height: 44px;
		padding: 8px 14px;
		border-radius: 10px;
		color: rgba(255, 255, 255, .82);
		font-size: 14px;
	}

	body.iam .iam-arriba .iam-pestana .iam-ico {
		width: 20px;
		height: 20px;
	}

	body.iam .iam-arriba .iam-pestana:hover {
		background: rgba(255, 255, 255, .08);
		color: #fff;
	}

	body.iam .iam-arriba .iam-pestana.is-on {
		background: rgba(34, 180, 154, .18);
		color: #fff;
		box-shadow: inset 0 -3px 0 var(--v);
	}

	.iam-arriba .iam-contador {
		position: static;
		box-shadow: none;
		margin-left: 2px;
	}

	.iam-cab--pago .iam-cab__in {
		justify-content: space-between;
	}

	.iam-cab__seguro {
		display: inline-flex;
	}

	.iam-pestanas {
		display: none;
	}

	.iam-pie {
		padding-bottom: 32px;
	}

	.iam-contenedor {
		padding: 24px 24px 40px;
	}

	.iam-titulo {
		font-size: 28px;
	}

	.iam-cols {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
		gap: 24px;
		align-items: start;
	}

	.iam-ficha.iam-cols {
		grid-template-columns: minmax(0, 1fr) 460px;
	}

	.iam-ficha .iam-col--b {
		position: sticky;
		top: calc(var(--cab) + 16px);
	}

	.admin-bar .iam-ficha .iam-col--b {
		top: calc(var(--cab) + 48px);
	}

	.iam-ficha__img {
		aspect-ratio: 16 / 10;
	}

	/* En ordenador, baja de alto (antes ~770 px): la información se ve sin bajar. */
	.iam-ficha__img--prenda {
		aspect-ratio: auto;
		height: clamp(320px, 56vh, 500px);
	}

	.iam-ficha .iam-lado {
		flex-basis: 84px;
	}

	.iam-ficha .iam-lado img {
		max-width: 64px;
	}

	.iam-rejilla {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 16px;
	}

	.iam-hero {
		padding: 56px 56px;
	}

	body.iam .iam-hero h1 {
		font-size: 42px;
	}

	.iam-saludo h1 {
		font-size: 30px;
	}

	/* Tablas de verdad en ordenador */
	.iam-tabla thead {
		display: table-header-group;
	}

	.iam-tabla tbody tr {
		display: table-row;
		padding: 0;
		border: 0;
	}

	.iam-tabla th,
	.iam-tabla td {
		display: table-cell;
		padding: 11px 14px;
		border-top: 1px solid var(--g);
		text-align: left;
		vertical-align: middle;
	}

	.iam-tabla thead th {
		border-top: 0;
		background: var(--g2);
		font: 600 12px var(--f1);
		text-transform: uppercase;
		letter-spacing: .05em;
		color: var(--t2);
		white-space: nowrap;
	}

	/* Títulos de la tabla fijos al bajar. Solo con «overflow: clip» en la envoltura: con «hidden» la envoltura
	   pasa a ser la que «desplaza» y los títulos bajaban 72 px dentro de la tabla, tapando el primer pedido. */
	@supports (overflow: clip) {
		.iam-tabla thead th {
			position: sticky;
			top: var(--cab);
			z-index: 1;
		}

		.admin-bar .iam-tabla thead th {
			top: calc(var(--cab) + 32px);
		}
	}

	.iam-tabla tbody tr:hover td {
		background: #f8fbfa;
	}

	.iam-tabla .iam-num,
	.iam-tabla--pedidos td[data-titulo="Total"],
	.iam-tabla--movs td[data-titulo="Cantidad"] {
		text-align: right;
	}

	.iam-tabla--pedidos td[data-titulo="Fecha"] {
		font-size: 14px;
		color: var(--t2);
		white-space: nowrap;
	}

	.iam-tabla--pedidos td[data-titulo="Total"],
	.iam-tabla--movs td[data-titulo="Cantidad"] {
		font-size: 15px;
		white-space: nowrap;
	}

	.iam-tabla--movs td[data-titulo="Fecha"] {
		font-size: 14px;
		color: var(--t2);
		white-space: nowrap;
	}

	.iam-mov__bono {
		font-size: 13px;
	}

	/* A la izquierda, para que «Ver» y «Repetir» caigan en la misma columna aunque falte «Factura». */
	.iam-tabla--pedidos .iam-tabla__acc {
		display: table-cell;
		white-space: nowrap;
		text-align: left;
		margin: 0;
	}

	.iam-tabla__acc .iam-btn {
		margin-left: 4px;
	}

	.iam-tabla__prod {
		max-width: 420px;
	}

	.iam-tiempo {
		grid-auto-flow: column;
		grid-auto-columns: 1fr;
	}

	.iam-tiempo li {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 6px;
		padding: 0 4px;
	}

	.iam-tiempo li:not(:last-child)::after {
		left: calc(50% + 16px);
		right: calc(-50% + 16px);
		top: 13px;
		bottom: auto;
		width: auto;
		height: 2px;
	}

	.iam-tiempo__txt {
		padding-top: 0;
	}

	.iam-tiempo__txt b {
		font-size: 13px;
	}

	.iam-col--b .iam-tiempo,
	.iam-bloque .iam-col--b .iam-tiempo {
		grid-auto-flow: row;
	}

	/* En la columna estrecha la línea de tiempo vuelve a ser vertical, con su raya vertical (la horizontal se salía). */
	.iam-col--b .iam-tiempo li {
		flex-direction: row;
		align-items: flex-start;
		text-align: left;
		gap: 12px;
		padding: 0 0 12px;
	}

	.iam-col--b .iam-tiempo li:not(:last-child)::after {
		left: 13px;
		right: auto;
		top: 28px;
		bottom: 0;
		width: 2px;
		height: auto;
	}

	.iam-col--b .iam-tiempo__txt {
		padding-top: 3px;
	}

	/* Cesta en 2 columnas */
	body.iam .iam-pagina--cesta > .woocommerce {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 400px;
		gap: 24px;
		align-items: start;
	}

	body.iam .iam-pagina--cesta > .woocommerce > .woocommerce-notices-wrapper,
	body.iam .iam-pagina--cesta > .woocommerce > .iam-aviso-bono,
	body.iam .iam-pagina--cesta > .woocommerce > .wc-empty-cart-message,
	body.iam .iam-pagina--cesta > .woocommerce > .cart-empty,
	body.iam .iam-pagina--cesta > .woocommerce > .return-to-shop {
		grid-column: 1 / -1;
	}

	body.iam .iam-pagina--cesta .cart-collaterals {
		position: sticky;
		top: calc(var(--cab) + 16px);
		background: #fff;
		border-radius: var(--r);
		box-shadow: var(--sombra);
		padding: 18px;
	}

	body.iam .iam-pagina--cesta .cart-collaterals table.shop_table {
		box-shadow: none;
		border: 1px solid var(--g);
	}

	/* Pago en 2 columnas: datos a la izquierda, resumen y pago a la derecha */
	body.iam form.checkout.woocommerce-checkout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 460px;
		/* La fila 3 (1fr) se queda con el alto que sobra de los datos; si no, se repartía y abría un hueco bajo «Tu pedido». */
		grid-template-rows: auto auto 1fr;
		column-gap: 24px;
		align-items: start;
	}

	/* Fila 1: avisos de error (si los hay). Filas 2 y 3: datos a la izquierda; título y resumen a la derecha. */
	body.iam form.checkout > .woocommerce-NoticeGroup {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	body.iam form.checkout #customer_details {
		grid-column: 1;
		grid-row: 2 / span 2;
	}

	body.iam form.checkout #order_review_heading {
		grid-column: 2;
		grid-row: 2;
		margin: 0;
		padding: 18px 18px 0;
		background: #fff;
		border-radius: var(--r) var(--r) 0 0;
	}

	body.iam form.checkout #order_review {
		grid-column: 2;
		grid-row: 3;
		border-radius: 0 0 var(--r) var(--r);
		padding-top: 8px;
	}

	body.iam .iam-pagina--pagar form#order_review {
		max-width: 820px;
	}

	.iam-entrar.iam-cols {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 48px;
		padding-top: 24px;
	}

	body.iam .iam-entrar__form .u-columns {
		grid-template-columns: 1fr;
	}

	/* Más ancha y más alta (Adrián, 12-11): casi toda la pantalla, hasta 1680 px; el lienzo crece con el alto. */
	.iam-editor {
		align-items: center;
		padding: 16px;
	}

	.iam-editor__caja {
		max-width: min(1680px, calc(100vw - 32px));
		height: min(1100px, calc(100vh - 32px));
		border-radius: 20px;
		box-shadow: var(--sombra2);
	}

	/* Con la barra de WordPress (administradores), la ventana empieza debajo de ella y no se tapa la cabecera. */
	.admin-bar .iam-editor {
		top: 32px;
	}

	.admin-bar .iam-editor__caja {
		height: min(1100px, calc(100vh - 64px));
	}

	/* Una fila del alto justo de la ventana: si el panel crece (varios elementos), se desplaza él y el lienzo no se mueve. */
	.iam-editor__cuerpo {
		grid-template-columns: minmax(0, 1fr) 400px;
		grid-template-rows: minmax(0, 1fr);
	}

	.iam-editor__panel {
		border-left: 1px solid var(--g);
		overflow: auto;
	}

	.iam-editor__zona {
		justify-content: center;
	}
}

@media (max-width: 1024px) {
	.iam-editor__caja {
		height: 100%;
		max-height: 100dvh;
	}
}

/* Cesta en móvil (mismo corte que WooCommerce): cada línea es una tarjeta con foto, datos, quitar arriba y cantidad + subtotal abajo. */
@media (max-width: 768px) {
	body.iam .woocommerce table.cart tr.cart_item {
		display: grid;
		grid-template-columns: 64px minmax(0, 1fr) auto 44px;
		grid-template-areas:
			"foto nombre nombre quitar"
			"foto cantidad total total";
		gap: 10px 12px;
		align-items: center;
		padding: 14px;
		border-top: 1px solid var(--g);
	}

	body.iam .woocommerce table.cart tbody tr.cart_item:first-child {
		border-top: 0;
	}

	body.iam .woocommerce table.cart tr.cart_item td {
		display: block;
		min-width: 0;
		padding: 0;
		border: 0;
		background: none;
		text-align: left !important;
	}

	body.iam .woocommerce table.cart tr.cart_item td::before {
		content: none;
		display: none;
	}

	body.iam .woocommerce table.cart tr.cart_item td.product-thumbnail {
		display: block;
		grid-area: foto;
		align-self: start;
	}

	body.iam .woocommerce table.cart tr.cart_item td.product-name {
		grid-area: nombre;
		align-self: start;
		padding-top: 2px;
	}

	body.iam .woocommerce table.cart tr.cart_item td.product-remove {
		grid-area: quitar;
		align-self: start;
	}

	body.iam .woocommerce table.cart tr.cart_item a.remove {
		width: 44px;
		height: 44px;
	}

	body.iam .woocommerce table.cart tr.cart_item td.product-price {
		display: none;
	}

	body.iam .woocommerce table.cart tr.cart_item td.product-quantity {
		grid-area: cantidad;
	}

	body.iam .woocommerce table.cart tr.cart_item td.product-quantity .qty {
		width: 76px;
		min-height: 44px;
	}

	body.iam .woocommerce table.cart tr.cart_item td.product-subtotal {
		grid-area: total;
		text-align: right !important;
		font: 700 16px var(--f1);
		color: var(--t);
	}

	/* Los datos de la línea, cada uno en su renglón («Ancho: 55 cm»): en dos columnas no caben. */
	body.iam .woocommerce table.cart .variation {
		display: block;
	}

	body.iam .woocommerce table.cart .variation dt,
	body.iam .woocommerce table.cart .variation dd,
	body.iam .woocommerce table.cart .variation dd p {
		display: inline;
	}

	body.iam .woocommerce table.cart .variation dd::after {
		content: "";
		display: block;
	}

	body.iam .woocommerce .cart_totals tr.woocommerce-shipping-totals td::before {
		float: none;
		display: block;
		margin: 0 0 8px;
		text-align: left;
	}

	body.iam .woocommerce .cart_totals tr.woocommerce-shipping-totals td {
		text-align: left !important;
	}

	body.iam .woocommerce-shipping-methods li {
		min-height: 32px;
	}

	body.iam .woocommerce-shipping-destination,
	body.iam .woocommerce-shipping-calculator {
		text-align: left;
	}
}

/* Con JS la cesta se actualiza sola al cambiar la cantidad: el botón sobra. */
body.iam-cesta-auto .woocommerce-cart-form table.cart td.actions button[name="update_cart"] {
	display: none;
}

@media (max-width: 480px) {
	body.iam .woocommerce-billing-fields__field-wrapper,
	body.iam .woocommerce-shipping-fields__field-wrapper,
	body.iam .woocommerce-address-fields__field-wrapper {
		grid-template-columns: 1fr;
	}

	body.iam .woocommerce-billing-fields__field-wrapper .form-row-first,
	body.iam .woocommerce-billing-fields__field-wrapper .form-row-last,
	body.iam .woocommerce-shipping-fields__field-wrapper .form-row-first,
	body.iam .woocommerce-shipping-fields__field-wrapper .form-row-last,
	body.iam .woocommerce-address-fields__field-wrapper .form-row-first,
	body.iam .woocommerce-address-fields__field-wrapper .form-row-last {
		grid-column: 1;
	}

	body.iam .woocommerce table.cart td.actions .coupon .input-text {
		width: 100%;
	}

	body.iam .woocommerce table.cart td.actions > .button {
		float: none;
		width: 100%;
		margin-top: 8px;
	}

	.iam-caja-precio__total strong {
		font-size: 28px;
	}
}

/* ---------- Inicio (portada de la app) y tienda ---------- */

.iam-hero__botones {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.iam-hero__botones .iam-btn {
	flex: 1 1 auto;
}

body.iam .iam-btn--hueco {
	background: transparent;
	border-color: rgba(255, 255, 255, .55);
	color: #fff;
}

body.iam .iam-btn--hueco:hover {
	background: rgba(255, 255, 255, .12);
	border-color: #fff;
	color: #fff;
}

/* Tres productos de muestra a la derecha del hero: solo en ordenador (en el móvil están más abajo). */
.iam-vitrina {
	display: none;
}

.iam-resumen {
	display: grid;
	gap: 10px;
	margin-bottom: 16px;
}

body.iam .iam-resumen__item {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 64px;
	padding: 12px 14px;
	border: 2px solid transparent;
	border-radius: var(--r);
	background: #fff;
	box-shadow: var(--sombra);
	color: var(--t);
	text-decoration: none;
	transition: border-color .15s;
}

body.iam .iam-resumen__item:hover {
	border-color: var(--v);
	color: var(--t);
	text-decoration: none;
}

.iam-resumen__item > .iam-ico:first-child {
	flex: none;
	width: 40px;
	height: 40px;
	padding: 8px;
	border-radius: 12px;
	background: var(--vc);
	color: var(--v2);
}

.iam-resumen__txt {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

.iam-resumen__item small {
	color: var(--t3);
	font-size: 13px;
}

.iam-resumen__item b {
	font: 600 15px/1.3 var(--f1);
}

.iam-resumen__item > .iam-ico:last-child {
	flex: none;
	width: 20px;
	height: 20px;
	color: var(--v2);
}

.iam-resumen__item .iam-estado {
	flex: none;
}

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

.iam-funciona__paso {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 16px;
	border-radius: var(--r);
	background: #fff;
	box-shadow: var(--sombra);
}

.iam-funciona__ico {
	position: relative;
	display: grid;
	place-items: center;
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--vc);
	color: var(--v2);
}

.iam-funciona__ico .iam-ico {
	width: 26px;
	height: 26px;
}

.iam-funciona__ico b {
	position: absolute;
	top: -6px;
	right: -6px;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--vo);
	color: #fff;
	font: 700 12px/1 var(--f1);
	box-shadow: 0 0 0 2px #fff;
}

.iam-funciona__txt {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.iam-funciona__txt strong {
	font: 600 16px/1.3 var(--f1);
}

.iam-funciona__txt span {
	color: var(--t2);
	font-size: 14px;
}

.iam-cta-cuenta {
	display: grid;
	gap: 18px;
	align-items: center;
	margin-bottom: 24px;
	padding: 24px 20px;
	border-radius: 20px;
	background: #fff;
	box-shadow: var(--sombra);
}

.iam-cta-cuenta h2 {
	font-size: 22px;
	margin: 0;
}

.iam-cta-cuenta .iam-lista-check {
	margin-top: 14px;
}

.iam-cta-cuenta .iam-lista-check li:last-child {
	margin-bottom: 0;
}

.iam-tienda-cab {
	display: grid;
	gap: 12px;
	margin-bottom: 8px;
}

.iam-tienda-cab .iam-titulo {
	margin-bottom: 4px;
}

.iam-tienda-cab .iam-intro {
	margin: 0;
}

body.iam .iam-tienda-cab .iam-buscar input[type="search"] {
	border-color: #d5dbd9;
}

/* Resumen de la cuenta: la inicial lleva al perfil (datos, direcciones y NIF). */
.iam-saludo__acc {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: none;
}

body.iam .iam-avatar {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--vo);
	box-shadow: 0 0 0 3px var(--vc2);
	color: #fff;
	font: 600 18px/1 var(--f1);
	text-decoration: none;
}

body.iam .iam-avatar:hover {
	background: var(--v2);
	color: #fff;
	text-decoration: none;
}

@media (max-width: 599px) {
	/* Las categorías de la tienda se deslizan en una fila, como en una app. */
	.iam-filtros--tienda {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin-right: -16px;
		margin-left: -16px;
		padding: 0 16px 4px;
		scrollbar-width: none;
	}

	.iam-filtros--tienda::-webkit-scrollbar {
		display: none;
	}

	.iam-filtros--tienda .iam-filtro {
		flex: none;
	}
}

@media (min-width: 600px) {
	.iam-resumen,
	.iam-funciona__lista {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.iam-cta-cuenta {
		grid-template-columns: minmax(0, 1fr) auto;
		padding: 28px 32px;
	}

	.iam-hero__botones .iam-btn {
		flex: none;
	}
}

@media (min-width: 1025px) {
	.iam-hero--inicio {
		display: grid;
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		gap: 40px;
		align-items: center;
	}

	.iam-vitrina {
		position: relative;
		z-index: 1;
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 14px;
		padding-top: 18px;
	}

	body.iam .iam-vitrina__item {
		display: flex;
		flex-direction: column;
		gap: 6px;
		padding: 10px 10px 12px;
		border-radius: 16px;
		background: #fff;
		box-shadow: 0 14px 34px rgba(0, 13, 28, .28);
		color: var(--t);
		text-decoration: none;
		transition: transform .15s;
	}

	body.iam .iam-vitrina__item:nth-child(2) {
		transform: translateY(-18px);
	}

	body.iam .iam-vitrina__item:hover {
		color: var(--t);
		text-decoration: none;
		transform: translateY(-4px);
	}

	body.iam .iam-vitrina__item:nth-child(2):hover {
		transform: translateY(-22px);
	}

	.iam-vitrina__item img {
		display: block;
		width: 100%;
		height: auto;
		aspect-ratio: 1 / 1;
		object-fit: contain;
		border-radius: 10px;
		background: linear-gradient(160deg, #f7faf9, #eaf2f0);
	}

	.iam-vitrina__item b {
		font: 600 13px/1.3 var(--f1);
	}

	.iam-vitrina__item .iam-precio {
		font-size: 13px;
	}

	.iam-funciona__lista {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 16px;
	}

	.iam-funciona__paso {
		flex-direction: column;
		padding: 20px;
	}

	.iam-cta-cuenta {
		padding: 36px 44px;
	}

	.iam-cta-cuenta h2 {
		font-size: 26px !important;
	}
}

/* ---------- Listado de la tienda: filtros de categoría y marca, más productos al bajar ---------- */

.iam-listado__n {
	margin: 0 0 10px;
	color: var(--t2);
	font: 600 13px var(--f2);
}

/* El número de productos y, a la derecha, el orden (30-10). */
.iam-listado__barra {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin: 0 0 12px;
}

.iam-listado__barra .iam-listado__n {
	margin: 0;
}

.iam-orden {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.iam-orden label {
	color: var(--t2);
	font: 600 13px var(--f2);
	white-space: nowrap;
}

body.iam .iam-orden select {
	min-height: 40px;
	max-width: 100%;
	margin: 0;
	padding: 0 34px 0 12px;
	border: 1px solid var(--g);
	border-radius: var(--r2);
	background: var(--blanco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23139881' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
	color: var(--t);
	font: 600 14px var(--f2);
	cursor: pointer;
	appearance: none;
}

body.iam .iam-orden select:hover,
body.iam .iam-orden select:focus-visible {
	border-color: var(--v2);
}

body.iam .iam-orden select:focus-visible {
	outline: 2px solid var(--v2);
	outline-offset: 2px;
}

/* minmax(0, 1fr): sin esto, una fila de filtros que no cabe ensancha toda la página en el móvil. */
.iam-lateral {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
	margin-bottom: 16px;
}

.iam-lateral__grupo {
	min-width: 0;
}

.iam-lateral__tit {
	margin: 0 0 6px;
	color: var(--t2);
	font: 700 12px var(--f2);
	letter-spacing: .06em;
	text-transform: uppercase;
}

.iam-lateral .iam-filtros {
	margin: 0;
}

body.iam .iam-filtro__n {
	margin-left: 6px;
	color: inherit;
	font-weight: 500;
	opacity: .65;
}

.iam-mas {
	display: flex;
	justify-content: center;
	padding: 24px 0 8px;
}

.iam-mas.is-cargando .iam-btn {
	opacity: .6;
	pointer-events: none;
}

.iam-contenedor [data-iam-productos],
.iam-contenedor .iam-seccion {
	transition: opacity .15s;
}

.iam-contenedor.is-cambiando [data-iam-productos],
.iam-contenedor.is-cambiando .iam-seccion {
	opacity: .45;
}

body.iam .iam-titulo:focus {
	outline: none;
}

@media (max-width: 1024px) {
	/* En móvil y tableta cada grupo de filtros es una fila que se desliza, encima de los productos. */
	.iam-lateral .iam-filtros {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin-right: -16px;
		margin-left: -16px;
		padding: 0 16px 4px;
		scrollbar-width: none;
	}

	.iam-lateral .iam-filtros::-webkit-scrollbar {
		display: none;
	}

	.iam-lateral .iam-filtro {
		flex: none;
	}

	.iam-lateral__tit {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

@media (min-width: 1025px) {
	/* En ordenador, columna fija a la izquierda y cinco productos por fila. */
	.iam-listado__cuerpo.is-lateral {
		display: grid;
		grid-template-columns: 220px minmax(0, 1fr);
		gap: 28px;
		align-items: start;
	}

	.iam-lateral {
		position: sticky;
		top: calc(var(--cab) + 20px);
		gap: 18px;
		max-height: calc(100vh - var(--cab) - 40px);
		overflow-y: auto;
		margin: 0;
		padding: 18px 14px;
		border-radius: var(--r);
		background: #fff;
		box-shadow: var(--sombra);
	}

	.admin-bar .iam-lateral {
		top: calc(var(--cab) + 52px);
		max-height: calc(100vh - var(--cab) - 72px);
	}

	.iam-lateral .iam-filtros {
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 2px;
	}

	body.iam .iam-lateral .iam-filtro {
		justify-content: space-between;
		min-height: 36px;
		padding: 6px 10px;
		border: 0;
		border-radius: 8px;
		background: transparent;
		color: var(--t);
		font-weight: 500;
		text-align: left;
	}

	body.iam .iam-lateral .iam-filtro:hover {
		background: #f2f5f4;
		color: var(--vo);
	}

	body.iam .iam-lateral .iam-filtro.is-on {
		background: var(--vo);
		color: #fff;
		font-weight: 600;
	}

	body.iam-v-tienda .iam-rejilla,
	body.iam-v-categoria .iam-rejilla,
	body.iam-v-buscar .iam-rejilla {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 14px;
	}
}

/* ---------- Portada: carrusel del hero (Carrusel anidado de Elementor Pro) ---------- */

/* Las diapositivas van redondeadas: el carrusel también, para que el deslizamiento no asome por las esquinas. */
body.iam .elementor-widget-n-carousel .e-n-carousel {
	border-radius: 20px;
}

body.iam .elementor-widget-n-carousel .elementor-swiper-button {
	color: rgba(255, 255, 255, .8);
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.iam .elementor-widget-n-carousel .elementor-swiper-button svg {
	fill: currentColor;
}

body.iam .elementor-widget-n-carousel .swiper-pagination-bullet-active {
	background: #fff;
}

/* En el móvil se pasa con el dedo: las flechas tapaban el texto. */
@media (max-width: 767px) {
	body.iam .elementor-widget-n-carousel .elementor-swiper-button {
		display: none;
	}
}

/* ---------- Cabecera del ordenador: Textil, perfil solo con icono y megamenú (Tienda, Bonos) ---------- */

body.iam .iam-arriba .iam-pestana--icono {
	padding: 8px 12px;
}

.iam-mega-item {
	display: flex;
}

.iam-mega {
	display: none;
}

@media (min-width: 1025px) {
	.iam-mega {
		display: block;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		padding: 0 16px;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-6px);
		transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
		pointer-events: none;
	}

	.iam-mega-item.is-abierto .iam-mega {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity .16s ease, transform .16s ease;
		pointer-events: auto;
	}

	/* Puente invisible entre la pestaña y el panel: al bajar el ratón no se cierra. */
	.iam-mega::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: -14px;
		height: 14px;
	}

	.iam-mega__in {
		display: flex;
		gap: 24px;
		max-width: 1268px;
		margin: 8px auto 0;
		padding: 22px 24px;
		background: #fff;
		color: var(--t);
		border-radius: 0 0 var(--r2, 16px) var(--r2, 16px);
		box-shadow: 0 18px 40px rgba(0, 13, 28, .2);
	}

	.iam-mega__cols {
		flex: 1;
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
		gap: 18px 24px;
	}

	.iam-mega__tit {
		display: block;
		margin-bottom: 8px;
		color: var(--vo);
		font-family: var(--f1);
		font-weight: 600;
		font-size: 15px;
		text-decoration: none;
	}

	.iam-mega ul {
		list-style: none;
		margin: 0;
		padding: 0;
		display: grid;
		gap: 2px;
	}

	.iam-mega li a {
		display: flex;
		justify-content: space-between;
		align-items: baseline;
		gap: 10px;
		padding: 6px 8px;
		margin: 0 -8px;
		border-radius: 8px;
		color: var(--t2);
		font-size: 14px;
		text-decoration: none;
	}

	.iam-mega li a:hover,
	.iam-mega li a:focus-visible {
		background: var(--vc);
		color: var(--vo);
	}

	.iam-mega li small {
		color: var(--t3);
		font-size: 12px;
		white-space: nowrap;
	}

	.iam-mega li a.iam-mega__todo {
		justify-content: flex-start;
		align-items: center;
		gap: 4px;
		font-weight: 600;
		color: var(--v2);
	}

	.iam-mega__todo .iam-ico {
		width: 14px;
		height: 14px;
	}

	.iam-mega__lado {
		display: grid;
		gap: 10px;
		align-content: start;
	}

	.iam-mega__in > .iam-mega__promo,
	.iam-mega__lado .iam-mega__promo {
		width: 240px;
	}

	.iam-mega__promo {
		align-self: start;
		display: grid;
		grid-template-columns: 30px 1fr;
		gap: 2px 10px;
		align-content: start;
		padding: 14px;
		border-radius: var(--r);
		background: var(--g2);
		color: var(--t);
		text-decoration: none;
		font-size: 13px;
		line-height: 1.4;
	}

	.iam-mega__promo:hover {
		background: var(--vc);
	}

	.iam-mega__promo .iam-ico {
		grid-row: span 2;
		width: 26px;
		height: 26px;
		color: var(--v2);
	}

	.iam-mega__promo strong {
		font-family: var(--f1);
		font-size: 14px;
	}

	.iam-mega__promo span {
		color: var(--t3);
	}

	.iam-mega__promo--bono {
		background: var(--vo);
		color: #fff;
	}

	.iam-mega__promo--bono:hover {
		background: var(--vo2);
	}

	.iam-mega__promo--bono span {
		color: rgba(255, 255, 255, .8);
	}

	.iam-mega__promo--bono .iam-ico {
		color: var(--v);
	}

	/* Textil: los colores llevan su muestra delante del nombre. */
	.iam-mega li a:has(> i) {
		justify-content: flex-start;
		align-items: center;
	}

	.iam-mega__colores i {
		flex: 0 0 auto;
		width: 14px;
		height: 14px;
		border-radius: 50%;
		background: var(--c);
		box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2);
	}
}

/* ---------- Listado: filtros de color y de precio ---------- */

.iam-lateral__tit small {
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}

.iam-filtro--color i {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--c);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2);
}

body.iam .iam-filtro--color,
body.iam .iam-lateral .iam-filtro--color {
	gap: 8px;
	justify-content: flex-start;
}

body.iam .iam-filtro--color .iam-filtro__n {
	margin-left: auto;
}

/* Ordenador: los colores en dos columnas, para que Precio y Categoría se vean sin desplazar el lateral. */
@media (min-width: 1025px) {
	.iam-lateral .iam-filtros:has(> .iam-filtro--color) {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2px 4px;
	}

	body.iam .iam-lateral .iam-filtro--color {
		width: 100%;
		min-height: 32px;
		padding: 4px 8px;
		font-size: 13px;
		gap: 6px;
	}

	body.iam .iam-lateral .iam-filtro--color .iam-filtro__n {
		margin-left: auto;
		font-size: 11px;
	}
}

/* ---------- Página de los bonos de metros ---------- */

.iam-bonos-cab {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 28px 22px;
	margin-bottom: 20px;
	border-radius: 20px;
	color: #fff;
	background: radial-gradient(circle at top right, rgba(34, 180, 154, .5), rgba(34, 180, 154, 0) 45%), linear-gradient(135deg, var(--vo), var(--n));
	overflow: hidden;
}

.iam-bonos-cab__txt {
	flex: 1 1 auto;
	display: grid;
	gap: 12px;
}

.iam-bonos-cab .iam-antetitulo {
	color: var(--v);
	margin: 0;
}

.iam-bonos-cab .iam-titulo {
	color: #fff;
	margin: 0;
}

.iam-bonos-cab__txt > p {
	margin: 0;
	color: rgba(255, 255, 255, .86);
	max-width: 60ch;
}

.iam-bonos-cab__ventajas {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.iam-bonos-cab__ventajas li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .1);
	font-size: 13px;
}

.iam-bonos-cab__ventajas .iam-ico {
	width: 16px;
	height: 16px;
	color: var(--v);
}

.iam-bonos-cab__botones {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding-top: 4px;
}

.iam-bonos-cab__foto {
	display: none;
}

.iam-bonos-grupo {
	margin: 18px 0 10px;
	font-size: 16px;
	color: var(--t2);
}

.iam-bonos-grupo:first-of-type {
	margin-top: 0;
}

.iam-tarjeta__img {
	position: relative;
}

.iam-tarjeta__insignia {
	position: absolute;
	left: 8px;
	top: 8px;
	padding: 4px 9px;
	border-radius: 999px;
	background: var(--vo);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
}

.iam-ejemplos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
}

.iam-ejemplo {
	margin: 0;
	background: #fff;
	border-radius: var(--r);
	box-shadow: var(--sombra);
	overflow: hidden;
}

.iam-ejemplo img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
	background: linear-gradient(160deg, #f7faf9, #eaf2f0);
}

.iam-ejemplo figcaption {
	display: grid;
	gap: 4px;
	padding: 12px 14px 14px;
	font-size: 14px;
	color: var(--t3);
}

.iam-ejemplo figcaption strong {
	color: var(--t);
	font-family: var(--f1);
	font-size: 15px;
}

.iam-bonos-pasos ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
	counter-reset: paso;
}

.iam-bonos-pasos li {
	display: grid;
	gap: 6px;
	align-content: start;
	padding: 16px;
	background: #fff;
	border-radius: var(--r);
	box-shadow: var(--sombra);
	font-size: 14px;
	color: var(--t3);
}

.iam-bonos-pasos li strong {
	color: var(--t);
	font-family: var(--f1);
	font-size: 15px;
}

.iam-bonos-pasos__n {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--vc);
	color: var(--v2);
	margin-bottom: 4px;
}

.iam-bonos-pasos__n .iam-ico {
	width: 22px;
	height: 22px;
}

.iam-bonos-pasos__n b {
	position: absolute;
	right: -6px;
	top: -6px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--vo);
	color: #fff;
	font-size: 11px;
	line-height: 20px;
	text-align: center;
}

.iam-pie-nota {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--t3);
}

.iam-pie-nota .iam-ico {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
}

.iam-calc__in {
	display: grid;
	gap: 16px;
	padding: 18px;
	background: #fff;
	border-radius: var(--r);
	box-shadow: var(--sombra);
}

.iam-calc__form {
	display: grid;
	gap: 12px;
	min-width: 0;
}

.iam-calc__form .iam-intro {
	margin: 0;
}

.iam-calc .iam-filtros {
	flex-wrap: wrap;
	overflow: visible;
}

.iam-calc__ejemplos small {
	color: var(--t3);
	font-weight: 400;
}

.iam-calc__campos {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.iam-calc__campos label {
	display: grid;
	gap: 4px;
	font-size: 13px;
	color: var(--t3);
}

body.iam .iam-calc__campos input {
	width: 100%;
	min-height: 44px;
	padding: 8px 10px;
	border: 1px solid var(--g);
	border-radius: 10px;
	font-size: 16px;
	color: var(--t);
}

.iam-calc__res {
	display: grid;
	gap: 6px;
	padding: 14px;
	border-radius: var(--r);
	background: var(--vc);
}

.iam-calc__res p {
	margin: 0;
}

.iam-calc__dato strong {
	font-family: var(--f1);
	font-size: 22px;
	color: var(--vo);
}

.iam-calc__bono a {
	color: var(--v2);
	font-weight: 600;
}

.iam-calc__hoja {
	margin: 0;
	display: grid;
	justify-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--t3);
}

.iam-calc__hoja svg {
	width: 100%;
	max-width: 180px;
	height: auto;
}

.iam-calc__fondo {
	fill: var(--g2);
	stroke: var(--g);
	stroke-width: .4;
}

.iam-calc__pieza {
	fill: var(--v);
	fill-opacity: .75;
}

.iam-trucos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
}

.iam-truco {
	display: flex;
	gap: 12px;
	padding: 14px;
	background: #fff;
	border-radius: var(--r);
	box-shadow: var(--sombra);
}

.iam-truco > .iam-ico {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	color: var(--v2);
}

.iam-truco p {
	margin: 0;
	display: grid;
	gap: 4px;
	font-size: 14px;
	color: var(--t3);
}

.iam-truco strong {
	color: var(--t);
}

.iam-bonos-fin {
	margin-top: 8px;
}

@media (min-width: 768px) {
	.iam-calc__in {
		grid-template-columns: minmax(0, 1fr) 200px;
		align-items: start;
	}
}

@media (min-width: 1025px) {
	.iam-bonos-cab {
		padding: 40px 44px;
	}

	.iam-bonos-cab__foto {
		display: block;
		flex: 0 0 40%;
	}

	.iam-bonos-cab__foto img {
		display: block;
		width: 100%;
		height: auto;
		border-radius: 14px;
	}
}

/* ---------- Visor de la imagen subida ---------- */

body.iam .iam-ficha img[src^="blob:"] {
	cursor: zoom-in;
}

html.iam-sin-scroll {
	overflow: hidden;
}

.iam-visor {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 56px 16px 24px;
	background: rgba(0, 13, 28, .85);
	cursor: zoom-out;
}

.iam-visor img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	/* Cuadros como los de un editor: así se ve lo transparente del PNG. */
	background: repeating-conic-gradient(#e9e9e9 0% 25%, #fff 0% 50%) 50% / 20px 20px;
	border-radius: 8px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
	cursor: default;
}

body.iam .iam-visor__cerrar {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

/* Con el dedo, nada por debajo de 44 px; con ratón se queda compacto. */
@media (max-width: 1024px), (pointer: coarse) {
	body.iam .iam-miga a,
	body.iam .iam-btn--peq,
	body.iam .iam-filtro,
	.iam-editor__vistas button {
		min-height: 44px;
	}

	.iam-editor__elementos button,
	.iam-subir__lista button {
		min-width: 44px;
		min-height: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.iam *,
	body.iam *::before,
	body.iam *::after {
		transition: none !important;
		animation: none !important;
	}
}

/* ---------- Pedido por tallas plegable (27/10/2026): el particular empieza con una o dos prendas, el profesional con la tabla ---------- */

body.iam .iam-tallas__abrir {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font: inherit;
	color: inherit;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
}

body.iam .iam-tallas__abrir:hover,
body.iam .iam-tallas__abrir:focus {
	background: none;
	color: inherit;
}

body.iam .iam-tallas__abrir:focus-visible,
body.iam .iam-prenda .iam-tallas-una:focus-visible {
	outline: 3px solid var(--vo);
	outline-offset: 3px;
}

.iam-tallas__nombre {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.iam-tallas__nombre small {
	font: 400 13px/1.35 var(--f1);
	color: var(--t2);
}

.iam-tallas__flecha {
	flex: 0 0 10px;
	width: 10px;
	height: 10px;
	margin: 0 6px 4px auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s;
}

[aria-expanded="true"] > .iam-tallas__flecha {
	margin-bottom: -4px;
	transform: rotate(-135deg);
}

.iam-tallas__cuerpo {
	margin-top: 10px;
}

.iam-tallas__cuerpo[hidden] {
	display: none;
}

/* Plegada: solo la cabecera, como una pestaña cerrada debajo del botón de añadir. */
.iam-tallas.is-plegada {
	margin-top: 12px;
	padding: 10px 12px;
	border: 1.5px solid var(--g);
	box-shadow: none;
}

.iam-tallas.is-plegada .iam-tallas__titulo {
	margin: 0;
}

/* Con la tabla abierta, la vuelta a una o dos prendas: una barra plegada en el sitio de la cantidad y el botón. */
body.iam .iam-prenda .iam-tallas-una {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 44px;
	margin: 6px 0 10px;
	padding: 10px 12px;
	border: 1.5px solid var(--g);
	border-radius: var(--r2);
	background: #fff;
	box-shadow: none;
	font: 500 14px/1.35 var(--f1);
	color: var(--vo);
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
}

body.iam .iam-prenda .iam-tallas-una:hover,
body.iam .iam-prenda .iam-tallas-una:focus {
	border-color: var(--v2);
	background: #fff;
	color: var(--vo);
}

body.iam .iam-prenda .iam-tallas-una[hidden] {
	display: none !important;
}

/* ---------- «Personaliza tu prenda» compacto (27/10/2026): una fila, con el botón al lado ---------- */

body.iam .iam-lanzador {
	margin: 8px 0 10px;
}

body.iam .iam-lanzador__vacio {
	flex-wrap: nowrap;
	gap: 10px;
	padding: 8px 8px 8px 12px;
	border-width: 1.5px;
	border-radius: var(--r2);
}

body.iam .iam-lanzador__vacio > .iam-ico {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
}

body.iam .iam-lanzador__vacio > span {
	flex: 1 1 auto;
	min-width: 0;
	line-height: 1.3;
}

body.iam .iam-lanzador__vacio strong {
	font-size: 14px;
}

body.iam .iam-lanzador__vacio small {
	font-size: 12px;
}

body.iam .iam-lanzador__vacio .iam-btn {
	flex: 0 0 auto;
	min-height: 44px;
	padding: 0 14px;
	font-size: 14px;
	white-space: nowrap;
}

/* ---------- Facturas (app.php, iam_pantalla_facturas) ---------- */

.iam-cab-pagina__acc {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.iam-fac-quien {
	margin-bottom: 14px;
}

.iam-tabla--facturas td[data-titulo="Fecha"],
.iam-tabla--facturas td[data-titulo="Cliente"],
.iam-tabla--facturas .iam-tabla__acc {
	grid-column: 1 / -1;
}

.iam-tabla--facturas td[data-titulo="Pedido"] {
	display: none;
}

.iam-tabla--facturas td[data-titulo="Fecha"] {
	order: 3;
	font-size: 12.5px;
	color: var(--t3);
}

.iam-tabla--facturas td[data-titulo="Cliente"] {
	order: 2;
	color: var(--t2);
}

.iam-tabla--facturas td[data-titulo="Importe"] {
	order: 1;
	font: 600 15px var(--f1);
	white-space: nowrap;
}

.iam-tabla--facturas td[data-titulo="Número"] {
	order: 0;
}

.iam-tabla--facturas .iam-tabla__acc {
	order: 6;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.iam-fac-visor {
	max-width: 826px;
	margin: 0 auto;
	border-radius: 14px;
	overflow: hidden;
	background: #f4f6f5;
	border: 1px solid var(--g);
}

.iam-fac-visor iframe {
	display: block;
	width: 100%;
	aspect-ratio: 794 / 1140;
	border: 0;
}

.iam-fac-abrir {
	text-align: center;
}

@media (min-width: 1025px) {
	.iam-tabla--facturas td[data-titulo="Pedido"] {
		display: table-cell;
	}

	.iam-tabla--facturas td[data-titulo="Fecha"] {
		font-size: 14px;
		color: var(--t2);
		white-space: nowrap;
	}

	.iam-tabla--facturas .iam-tabla__acc {
		display: table-cell;
		white-space: nowrap;
		margin: 0;
	}
}

/*
 * El resto de la web en el marco (iam_marco_paginas, 02-11): páginas de WordPress y entradas del blog a ancho de
 * lectura, listado del blog en tarjetas y página de error. Las páginas de Elementor van como la portada.
 */
.iam-doc {
	max-width: 760px;
	margin: 0 auto 24px;
	background: #fff;
	border-radius: var(--r);
	box-shadow: var(--sombra);
	padding: 20px 18px;
}

.iam-doc .iam-miga {
	margin-bottom: 10px;
}

.iam-doc__fecha {
	color: var(--t3);
	font-size: 13px;
	margin: 0 0 16px;
}

.iam-doc__foto {
	margin: 0 -18px 20px;
}

.iam-doc__foto img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 420px;
	object-fit: cover;
}

.iam-doc__texto {
	font-family: var(--f2);
	font-size: 16px;
	line-height: 1.7;
	color: var(--t2);
	overflow-wrap: anywhere;
}

body.iam .iam-doc__texto h2,
body.iam .iam-doc__texto h3,
body.iam .iam-doc__texto h4 {
	font-family: var(--f1);
	color: var(--t);
	line-height: 1.3;
	margin: 28px 0 10px;
}

body.iam .iam-doc__texto h2 {
	font-size: 21px;
}

body.iam .iam-doc__texto h3 {
	font-size: 18px;
}

body.iam .iam-doc__texto a {
	color: var(--v2);
	text-decoration: underline;
}

.iam-doc__texto img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

.iam-doc__texto table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	display: block;
	overflow-x: auto;
}

.iam-doc__texto th,
.iam-doc__texto td {
	border-bottom: 1px solid var(--g);
	padding: 8px;
	text-align: left;
}

.iam-doc__fin {
	max-width: 760px;
	margin: 0 auto;
}

.iam-doc__fin h2 {
	font-size: 19px;
	margin-bottom: 12px;
}

.iam-entradas {
	display: grid;
	gap: 16px;
	margin-bottom: 24px;
}

body.iam .iam-entrada {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--r);
	box-shadow: var(--sombra);
	overflow: hidden;
	color: var(--t);
	text-decoration: none;
}

.iam-entrada__foto img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	object-fit: cover;
}

.iam-entrada__txt {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px;
}

.iam-entrada__txt small {
	color: var(--t3);
	font-size: 12px;
}

.iam-entrada__txt strong {
	font: 600 17px/1.35 var(--f1);
}

.iam-entrada__txt > span {
	color: var(--t2);
	font-size: 14px;
}

.iam-entrada__txt em {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font: 600 14px/1 var(--f1);
	font-style: normal;
	color: var(--v2);
	margin-top: 4px;
}

.iam-entrada__txt em .iam-ico {
	width: 16px;
	height: 16px;
}

.iam-no-encontrada {
	margin-bottom: 16px;
}

.iam-no-encontrada .iam-titulo {
	margin: 4px 0 0;
}

.iam-no-encontrada .iam-buscar {
	width: 100%;
	max-width: 480px;
	margin-top: 8px;
}

.iam-no-encontrada__contacto {
	justify-content: center;
	text-align: center;
	flex-wrap: wrap;
}

@media (min-width: 700px) {
	.iam-entradas {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1025px) {
	.iam-doc {
		padding: 36px 48px;
	}

	.iam-doc__foto {
		margin: 0 -48px 24px;
	}

	.iam-entradas {
		grid-template-columns: repeat(3, 1fr);
	}
}

/*
 * Formulario de Elementor Pro dentro del marco (02-11; p. ej. agencias y profesionales): tarjeta, campos y botón de
 * la app. Solo CSS: el formulario y su envío siguen siendo los de Elementor.
 */
body.iam .iam-elementor .elementor-widget-form {
	background: #fff;
	border-radius: var(--r);
	box-shadow: var(--sombra);
	padding: 20px 16px;
}

body.iam .iam-elementor .elementor-widget-form .elementor-form-fields-wrapper {
	row-gap: 14px;
}

body.iam .iam-elementor .elementor-widget-form .elementor-field-group .elementor-field-label {
	margin-bottom: 6px;
	padding: 0;
	color: var(--t);
	font: 600 14px/1.3 var(--f1);
}

body.iam .iam-elementor .elementor-widget-form .elementor-mark-required .elementor-field-label::after {
	color: var(--v2);
}

body.iam .iam-elementor .elementor-widget-form .elementor-field-group .elementor-field-textual {
	min-height: 48px;
	padding: 12px 14px;
	border: 1.5px solid var(--g) !important;
	border-radius: var(--r2) !important;
	background: var(--g2) !important;
	color: var(--t) !important;
	font: 400 16px/1.4 var(--f2);
	box-shadow: none;
	transition: border-color .15s, background .15s, box-shadow .15s;
}

body.iam .iam-elementor .elementor-widget-form .elementor-field-group textarea.elementor-field-textual {
	min-height: 120px;
	resize: vertical;
}

body.iam .iam-elementor .elementor-widget-form .elementor-field-group .elementor-field-textual::placeholder {
	color: var(--t3);
	opacity: 1;
}

body.iam .iam-elementor .elementor-widget-form .elementor-field-group .elementor-field-textual:focus {
	outline: none;
	border-color: var(--v) !important;
	background: #fff !important;
	box-shadow: 0 0 0 3px var(--vc2);
}

body.iam .iam-elementor .elementor-widget-form .e-form__buttons .elementor-button {
	width: 100%;
	min-height: 50px;
	padding: 12px 20px;
	border: 2px solid var(--v2) !important;
	border-radius: 12px !important;
	background: var(--v2) !important;
	color: #fff !important;
	font: 600 16px/1.2 var(--f1);
	transition: background .15s, border-color .15s;
}

body.iam .iam-elementor .elementor-widget-form .e-form__buttons .elementor-button:hover,
body.iam .iam-elementor .elementor-widget-form .e-form__buttons .elementor-button:focus-visible {
	background: var(--vo) !important;
	border-color: var(--vo) !important;
}

body.iam .iam-elementor .elementor-widget-form .elementor-message {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: var(--r2);
	font: 500 14px/1.4 var(--f2);
}

body.iam .iam-elementor .elementor-widget-form .elementor-message-success {
	background: var(--vc);
	color: var(--ok);
}

body.iam .iam-elementor .elementor-widget-form .elementor-message-danger,
body.iam .iam-elementor .elementor-widget-form .elementor-error .elementor-field-textual {
	border-color: var(--error) !important;
}

@media (min-width: 1025px) {
	body.iam .iam-elementor .elementor-widget-form {
		padding: 28px 28px 24px;
	}
}

/* Agencias (45675): la franja «Rellena la información necesaria» y el título, con la letra y las esquinas de la app. */
body.iam .iam-elementor .elementor-45675 .elementor-element-4aac609 {
	border-radius: var(--r) var(--r) 0 0;
	overflow: hidden;
}

body.iam .iam-elementor .elementor-45675 .elementor-element-29e7508 {
	font-family: var(--f1) !important;
	font-weight: 600;
}

@media (max-width: 767px) {
	body.iam .iam-elementor .elementor-45675 .elementor-element-685a94c .elementor-heading-title {
		font-size: 26px !important;
		line-height: 1.25 !important;
	}

	body.iam .iam-elementor .elementor-45675 .elementor-element-29e7508 {
		font-size: 16px;
	}
}

/*
 * Páginas comerciales hechas con la app (comerciales.php, 02-11): agencias y profesionales, impresión digital y bonos.
 */
.iam-comercial .iam-hero__botones {
	margin-top: 18px;
}

.iam-comercial .iam-seccion {
	margin-bottom: 22px;
}

.iam-ventajas {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.iam-ventaja {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	column-gap: 12px;
	align-items: start;
	background: #fff;
	border-radius: var(--r);
	box-shadow: var(--sombra);
	padding: 16px;
}

.iam-ventaja__ico {
	grid-row: span 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--vc);
	color: var(--vo);
}

.iam-ventaja__ico .iam-ico {
	width: 22px;
	height: 22px;
}

.iam-ventaja strong {
	font: 600 15.5px/1.3 var(--f1);
	color: var(--t);
}

.iam-ventaja > span:last-child {
	color: var(--t2);
	font-size: 14px;
	line-height: 1.45;
}

.iam-usos {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.iam-usos a {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 12px;
	align-items: center;
	min-height: 56px;
	padding: 12px 16px;
	background: #fff;
	border-radius: var(--r);
	box-shadow: var(--sombra);
	color: var(--t);
	text-decoration: none;
}

.iam-usos a:hover {
	box-shadow: var(--sombra2);
	text-decoration: none;
}

.iam-usos strong {
	font: 600 15px/1.3 var(--f1);
}

.iam-usos span {
	grid-column: 1;
	color: var(--t3);
	font-size: 13.5px;
	line-height: 1.4;
}

.iam-usos .iam-ico {
	grid-column: 2;
	grid-row: 1 / span 2;
	color: var(--v2);
}

.iam-preguntas .iam-plegable .iam-texto {
	padding: 0 16px 14px;
}

.iam-preguntas .iam-plegable .iam-texto p {
	margin: 0;
}

.iam-ancla {
	scroll-margin-top: 90px;
}

.iam-form-pro {
	scroll-margin-top: 80px;
	background: #fff;
	border-radius: var(--r);
	box-shadow: var(--sombra);
	padding: 20px 16px;
	margin-bottom: 22px;
}

.iam-form-pro__cab h2 {
	margin: 0 0 6px;
}

.iam-form-pro__cab p:last-child {
	color: var(--t2);
	margin-bottom: 16px;
}

.iam-form-pro__campos {
	display: grid;
	gap: 14px;
	margin-bottom: 18px;
}

.iam-form-pro__campos label {
	display: block;
	margin: 0;
}

body.iam .iam-form-pro input[type="text"],
body.iam .iam-form-pro input[type="tel"],
body.iam .iam-form-pro input[type="email"],
body.iam .iam-form-pro textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	min-height: 48px;
	padding: 12px 14px;
	border: 1.5px solid var(--g);
	border-radius: var(--r2);
	background: var(--g2);
	color: var(--t);
	font: 400 16px/1.4 var(--f2);
	transition: border-color .15s, background .15s, box-shadow .15s;
}

body.iam .iam-form-pro textarea {
	min-height: 120px;
	resize: vertical;
}

body.iam .iam-form-pro input:focus,
body.iam .iam-form-pro textarea:focus {
	outline: none;
	border-color: var(--v);
	background: #fff;
	box-shadow: 0 0 0 3px var(--vc2);
}

.iam-form-pro__trampa {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.iam-form-pro__ok,
.iam-form-pro__error {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 12px 14px;
	border-radius: var(--r2);
	margin-bottom: 16px;
}

.iam-form-pro__ok {
	background: var(--vc);
	color: var(--ok);
}

.iam-form-pro__error {
	background: #fbeaea;
	color: var(--error);
}

.iam-form-pro__nota {
	margin: 10px 0 0;
	color: var(--t3);
	font-size: 13px;
	text-align: center;
}

.iam-form-pro__contacto {
	margin: 14px 0 0;
	text-align: center;
}

@media (min-width: 700px) {
	.iam-ventajas {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.iam-usos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.iam-form-pro__campos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.iam-form-pro__ancho {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1025px) {
	.iam-ventajas {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.iam-comercial--agencias .iam-funciona__lista {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.iam-form-pro {
		padding: 32px 36px 28px;
	}

	.iam-form-pro .iam-btn--bloque {
		max-width: 360px;
		margin: 0 auto;
	}
}
