/* AC14 Catálogos — visor de hojear (diseño propio) */
.ac14vc, #ac14vc-print {
	--vc-acento: #cf2e2e;
	--vc-tinta: #1a1a1a;
	--vc-mesa: #e9e5df;
	--vc-papel: #fffefb;
	--vc-linea: #e4e0d9;
}
#ac14vc-print *, #ac14vc-print *::before, #ac14vc-print *::after { box-sizing: border-box; }
.ac14vc-cel > * { pointer-events: none; }
.ac14vc {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: var(--ac14vc-h, calc(100vh - 160px));
	min-height: 480px;
	background:
		radial-gradient(120% 90% at 50% 0%, #f4f1ec 0%, var(--vc-mesa) 60%, #ddd8d0 100%);
	color: var(--vc-tinta);
	font-family: inherit;
	overflow: hidden;
	-webkit-tap-highlight-color: transparent;
}
.ac14vc *, .ac14vc *::before, .ac14vc *::after { box-sizing: border-box; }
.ac14vc--incrustado { border-radius: 0; box-shadow: none; }
.ac14vc:fullscreen { height: 100vh; border-radius: 0; }
.ac14vc-pagina { width: 100%; max-width: none; padding: 0; margin: 0; }
.ac14vc-vacio { padding: 24px; text-align: center; color: #666; }

/* ---- Mesa y libro ---- */
.ac14vc { --vc-lat: 68px; }
.ac14vc__cuerpo { position: relative; flex: 1; min-height: 0; display: flex; }
.ac14vc__mesa { position: relative; flex: 1; min-width: 0; min-height: 0; overflow: auto; padding: 10px; display: flex; }
.ac14vc__libro { margin: auto; flex: none; position: relative; }
.ac14vc__paginas { width: 100%; height: 100%; }
.ac14vc__libro.es-portada .ac14vc__paginas { transform: translateX(-25%); }
.ac14vc__libro.es-contra .ac14vc__paginas { transform: translateX(25%); }
.ac14vc__lado {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
	width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(26,26,26,.78); color: #fff; display: grid; place-items: center;
	opacity: 0;
}
.ac14vc__lado--prev { left: 10px; }
.ac14vc__lado--next { right: 10px; }
.ac14vc:hover .ac14vc__lado { opacity: 1; }
.ac14vc__lado:hover { background: var(--vc-acento); }
@media (hover: none) { .ac14vc__lado { display: none; } }

/* ---- Página ---- */
.ac14vc-pg { background: var(--vc-papel); overflow: hidden; }
.ac14vc-pg__in { container-type: inline-size; position: relative; width: 100%; height: 100%; }
.ac14vc-pg--tapa .ac14vc-pg__in, .ac14vc-pg--contra .ac14vc-pg__in { background: #2b2b2b; }
.ac14vc-pg--tapa img, .ac14vc-pg--contra img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.ac14vc-tapa-gen { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(160deg, #2b2b2b, #111); color: #fff; text-align: center; padding: 10cqw; }
.ac14vc-tapa-gen span { font-size: 9cqw; font-weight: 800; letter-spacing: .02em; line-height: 1.1; border-top: .8cqw solid var(--vc-acento); padding-top: 4cqw; }

/* Hoja interior con marco: arriba 3,5 cm (cabecera), lados 0,7 cm, abajo 1,5 cm (logos).
   --mm = 1 mm real de la página (ancho del contenedor ÷ ancho del formato en mm). */
.ac14vc-hoja {
	--mm: calc(100cqw / var(--pw, 210));
	--marco: #cf2e2e;
	position: absolute; inset: 0;
	display: flex; flex-direction: column;
	padding: calc(35 * var(--mm)) calc(7 * var(--mm)) calc(15 * var(--mm));
	background: var(--fondo, none) center / cover no-repeat, var(--marco);
	-webkit-print-color-adjust: exact; print-color-adjust: exact;
}

/* Cabecera: ocupa los 35 mm superiores; solo la imagen opcional */
.ac14vc-cab { position: absolute; left: 0; right: 0; top: 0; height: calc(35 * var(--mm)); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: .4cqw; padding: 0 calc(7 * var(--mm)) calc(4 * var(--mm)); color: #fff; }
.ac14vc-cab__fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
/* Zona de productos: rejilla con líneas finas (borde exterior y separadores), sin huecos entre celdas */
.ac14vc-rej { --vc-rejilla: #c9c3b8; position: relative; z-index: 1; flex: 1; min-height: 0; display: grid; gap: 1px; padding: 1px; background: var(--vc-rejilla); grid-template-columns: repeat(var(--c), minmax(0, 1fr)); grid-template-rows: repeat(var(--f), minmax(0, 1fr)); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ac14vc-cel-vacia { background: #fff; min-width: 0; min-height: 0; }

/* Pie: 15 mm inferiores. Los dos logos (PNG, sin fondo) centrados y separados; el número de página a la derecha */
.ac14vc-pie { position: absolute; left: 0; right: 0; bottom: 0; height: calc(15 * var(--mm)); padding: 0 calc(7 * var(--mm)); display: flex; align-items: center; justify-content: center; gap: calc(10 * var(--mm)); z-index: 1; }
.ac14vc-pie__logo { flex: 0 1 auto; min-width: 0; height: calc(8 * var(--mm)); display: flex; align-items: center; justify-content: center; }
.ac14vc-pie__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; background: none; padding: 0; border-radius: 0; -webkit-user-drag: none; user-select: none; }
.ac14vc-pie__num { position: absolute; right: calc(7 * var(--mm)); top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; min-width: 5cqw; padding: .4cqw 1.5cqw; background: #fff; color: var(--vc-tinta); border-radius: 99cqw; font-size: 2.1cqw; }
.ac14vc-pie__num b { font-weight: 800; color: var(--vc-tinta); }

/* ---- Celda de producto ---- */
.ac14vc-cel {
	container-type: inline-size;
	position: relative; display: flex; flex-direction: column; align-items: stretch; text-align: left;
	min-width: 0; min-height: 0; margin: 0; padding: 5%; cursor: pointer;
	background: #fff; border: 0; border-radius: 0; color: inherit; font: inherit;
	}
.ac14vc .ac14vc-cel, .ac14vc .ac14vc-cel:hover, .ac14vc .ac14vc-cel:focus, .ac14vc .ac14vc-cel:active { background: #fff !important; color: inherit !important; box-shadow: none; text-decoration: none; }
.ac14vc .ac14vc-cel:hover, .ac14vc .ac14vc-cel:focus-visible { outline: 2px solid var(--vc-acento); outline-offset: -2px; } /* sin cambio de fondo al pasar el ratón: solo el marco */
.ac14vc-cel__img { flex: 1 1 0; min-height: 0; position: relative; margin-bottom: 2cqw; overflow: hidden; }
.ac14vc-cel__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; -webkit-user-drag: none; user-select: none; }
/* El nombre se ve ENTERO (hasta 3 líneas, letra algo menor) y nunca lo tapa ni lo recorta la imagen: la que cede espacio es la imagen */
.ac14vc-cel__nombre { position: relative; z-index: 1; flex: none; font-size: 6.4cqw; line-height: 1.2; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; min-height: 2.4em; background: #fff; }
.ac14vc-cel__pie { display: flex; align-items: baseline; justify-content: space-between; gap: 3cqw; margin-top: 2cqw; }
.ac14vc-cel__pie.con-precio { min-height: 18.5cqw; align-items: flex-end; }
.ac14vc-cel__ref { flex: 0 1 auto; align-self: flex-end; font-size: 8cqw; font-weight: 700; line-height: 1.3; padding: .8cqw 3cqw; border-radius: 3px; background: #cf2e2e; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ac14vc-cel__precios { display: flex; flex-direction: column; align-items: flex-end; margin-left: auto; line-height: 1; }
.ac14vc-cel__precio { font-size: 10.5cqw; font-weight: 800; color: var(--vc-acento); line-height: 1; white-space: nowrap; }
.ac14vc-cel__tachado { font-size: 6.4cqw; font-weight: 500; color: #999; text-decoration: line-through; line-height: 1.1; white-space: nowrap; margin-bottom: .8cqw; }
.ac14vc-cel__aviso { font-size: 6cqw; font-weight: 700; color: #8a857c; text-transform: uppercase; margin-left: auto; }
.ac14vc-cel.es-descat .ac14vc-cel__img { opacity: .45; filter: grayscale(1); }
.ac14vc-cel.es-resalte { animation: ac14vc-pulso 1s ease-in-out 2; outline: 2px solid var(--vc-acento); outline-offset: -2px; }
@keyframes ac14vc-pulso { 50% { outline-color: transparent; } }
/* Cinta de esquina (etiqueta de la columna B) */
.ac14vc-cinta {
	position: absolute; top: 0; right: 0; max-width: 78%; padding: 2.2cqw 6cqw 2.2cqw 8cqw;
	background: var(--vc-acento); color: #fff; font-size: 6.4cqw; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Etiqueta NUEVO (columna B = «Nuevo»): rojo vivo y en la esquina izquierda, para distinguirla de las demás cintas */
.ac14vc-cinta.es-nuevo {
	right: auto; left: 0; padding: 2.4cqw 8cqw 2.4cqw 6cqw; background: #e30613; font-size: 7cqw; letter-spacing: .06em;
	clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
/* Precio «desde» (columna D) */
.ac14vc-cel__desde { font-size: 6.8cqw; font-weight: 700; color: #333; line-height: 1; text-transform: lowercase; margin-bottom: .8cqw; }
.ac14vc-var__desde { font-size: .62em; font-weight: 600; color: #6b675f; text-transform: lowercase; margin-right: .2em; }
.ac14vc-precio-desde { font-size: .55em; font-weight: 600; color: #6b675f; margin-right: .2em; }

/* ---- Barra lateral derecha (controles) ---- */
.ac14vc__barra {
	flex: none; width: var(--vc-lat); z-index: 35;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	padding: 8px 0; background: #1a1a1a; color: #fff; overflow-y: auto; overflow-x: hidden;
}
.ac14vc-bt { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; padding: 0; }
.ac14vc-bt:hover, .ac14vc-bt:focus-visible { background: rgba(255,255,255,.16); outline: none; }
.ac14vc-bt[aria-pressed="true"], .ac14vc-bt.es-activo { background: var(--vc-acento); }
.ac14vc-bt--claro { color: var(--vc-tinta); }
.ac14vc-bt--claro:hover { background: #eee; }
.ac14vc__sep { width: 26px; height: 1px; margin: 6px 0; background: rgba(255,255,255,.25); flex: none; }
.ac14vc__nav { display: flex; gap: 0; }
.ac14vc__nav .ac14vc-bt { width: 30px; border-radius: 8px; }
.ac14vc__pag { display: flex; flex-direction: column; align-items: center; min-height: 30px; justify-content: center; line-height: 1.15; font-variant-numeric: tabular-nums; text-align: center; }
.ac14vc__pag b { font-size: 13px; font-weight: 700; }
.ac14vc__pag small { font-size: 10.5px; opacity: .7; }

/* ---- Paneles laterales (derecha) ---- */
.ac14vc__panel {
	position: absolute; top: 0; right: var(--vc-lat); bottom: 0; z-index: 30; width: min(340px, calc(100% - var(--vc-lat) - 10px));
	display: flex; flex-direction: column; background: #fff; color: var(--vc-tinta);
	box-shadow: -14px 0 36px -14px rgba(0,0,0,.45);
}
.ac14vc__panel[hidden] { display: none; }
.ac14vc__panel-cab { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--vc-linea); }
.ac14vc__lista { list-style: none; margin: 0; padding: 6px 0; overflow: auto; flex: 1; }
.ac14vc__lista li { margin: 0; }
.ac14vc__lista button { width: 100%; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 11px 18px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.ac14vc__lista button:hover { background: #ebe4d8; color: var(--vc-acento); }
.ac14vc__lista em { font-style: normal; color: #8a857c; font-variant-numeric: tabular-nums; }
.ac14vc__q { margin: 12px 16px 6px; padding: 10px 14px; border: 1px solid #cfc9bf; border-radius: 8px; font: inherit; width: calc(100% - 32px); }
.ac14vc__q:focus { outline: 2px solid var(--vc-acento); outline-offset: 1px; }
.ac14vc__resultados { list-style: none; margin: 0; padding: 4px 0 12px; overflow: auto; flex: 1; }
.ac14vc__resultados li { margin: 0; }
.ac14vc__resultados button { width: 100%; display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 16px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.ac14vc__resultados button:hover { background: #ebe4d8; }
.ac14vc__resultados img { width: 44px; height: 44px; object-fit: contain; }
.ac14vc__resultados b { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; }
.ac14vc__resultados small { color: #7a756b; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.ac14vc__resultados i { font-style: normal; font-size: 12px; color: var(--vc-acento); white-space: nowrap; }
.ac14vc__nada { padding: 14px 18px; color: #7a756b; font-size: 14px; }

/* ---- Ficha rápida de producto: mismos estilos que la ficha de la tienda ---- */
.ac14vc-modal { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(20,18,15,.55); }
.ac14vc-modal[hidden] { display: none; }
.ac14vc-modal__caja { position: relative; width: min(980px, 100%); max-height: 100%; overflow: auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: #fff; border-radius: 14px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); }
.ac14vc-modal__x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f5f5f5; color: #333; cursor: pointer; display: grid; place-items: center; z-index: 2; }
.ac14vc-modal__x:hover { background: #e8e8e8; }
.ac14vc-modal__foto { display: grid; place-items: center; padding: 12px; background: #fff; border-radius: 14px 0 0 14px; }
.ac14vc-modal__foto img { width: 100%; height: auto; max-height: 460px; object-fit: contain; }
.ac14vc-modal__info { padding: 24px 24px 20px; display: flex; flex-direction: column; min-width: 0; background: #fff; }

/* SKU + EAN */
.ac14vc-sku-ean { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; padding-right: 36px; }
.ac14vc-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 4px; line-height: 1.4; }
.ac14vc-badge--sku { background: #cf2e2e; color: #fff; }
.ac14vc-badge--ean { background: #f0f0f0; color: #444; font-family: monospace; font-size: 12px; font-weight: 400; border: .5px solid #e0e0e0; }
/* Nombre y metas */
.ac14vc .ac14vc-modal__nombre { margin: 8px 0 14px; padding: 0; font-size: 20px; font-weight: 600; color: #1a1a1a; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.ac14vc-modal__metas { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ac14vc-meta { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.ac14vc-meta__label { color: #aaa; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; min-width: 72px; flex-shrink: 0; }
.ac14vc-meta__val { color: #333; font-weight: 500; }
.ac14vc .ac14vc-meta__link { color: #cf2e2e; font-weight: 500; text-decoration: none; margin-right: 8px; }
.ac14vc a.ac14vc-meta__link:hover { text-decoration: underline; }
/* Precio + envase */
.ac14vc-precio-bloque { margin-bottom: 16px; padding-bottom: 16px; border-bottom: .5px solid #ebebeb; }
.ac14vc-precio-tachado { font-size: 16px; color: #aaa; text-decoration: line-through; }
.ac14vc-precio { font-size: 28px; font-weight: 700; color: #1a1a1a; line-height: 1.2; }
.ac14vc-precio.es-oferta { color: #cf2e2e; }
.ac14vc-envase { display: flex; align-items: center; gap: 5px; font-size: 14px; color: #555; margin: 6px 0 0; }
.ac14vc-envase svg { flex-shrink: 0; color: #888; }
/* Cantidad + añadir al carrito */
.ac14vc-modal__fila { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ac14vc-qty { display: flex; align-items: center; flex: 0 0 120px; max-width: 120px; height: 42px; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; background: #fff; }
.ac14vc .ac14vc-qty__btn { width: 28px; height: 100%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 0; margin: 0; min-width: 0; border: none; border-radius: 0; background: #f5f5f5; color: #333; font-size: 16px; line-height: 1; cursor: pointer; }
.ac14vc .ac14vc-qty__btn:hover, .ac14vc .ac14vc-qty__btn:focus { background: #e8e8e8; color: #333; outline: none; }
.ac14vc .ac14vc-qty__btn--menos { border-right: 1px solid #ddd; }
.ac14vc .ac14vc-qty__btn--mas { border-left: 1px solid #ddd; }
.ac14vc .ac14vc-qty input { flex: 1; min-width: 0; width: 100%; height: 100%; padding: 0; border: none; border-radius: 0; background: #fff; color: #333; text-align: center; font: inherit; font-size: 13px; font-weight: 500; box-shadow: none; -moz-appearance: textfield; appearance: textfield; }
.ac14vc .ac14vc-qty input::-webkit-outer-spin-button, .ac14vc .ac14vc-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ac14vc .ac14vc-anadir { flex: 1; min-width: 0; height: 42px; padding: 0 10px; display: flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 6px; background: #1D9E75; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ac14vc .ac14vc-anadir:hover, .ac14vc .ac14vc-anadir:focus { background: #0F6E56; color: #fff; }
.ac14vc .ac14vc-anadir:disabled { opacity: .6; cursor: wait; }
.ac14vc .ac14vc-anadir.es-ok { background: #0F6E56; }
/* Añadir a la lista (botón blanco, como en la tienda) */
.ac14vc .ac14vc-lista-btn { width: 100%; height: 32px; margin: 0; padding: 0 10px; display: flex; align-items: center; justify-content: center; gap: 5px; background: #fff; color: #555; border: .5px solid #ddd; border-radius: 5px; font: inherit; font-size: 12px; font-weight: 400; cursor: pointer; }
.ac14vc .ac14vc-lista-btn:hover, .ac14vc .ac14vc-lista-btn:focus { background: #eceff1; color: #333; }
.ac14vc-modal__msg { font-size: 13px; min-height: 18px; margin: 8px 0 0; }
.ac14vc-modal__msg.es-error { color: #cf2e2e; }
.ac14vc-modal__msg.es-ok { color: #1f7a45; font-weight: 600; }
.ac14vc-modal__msg.es-ok a { color: inherit; text-decoration: underline; }
.ac14vc-modal__aviso, .ac14vc-sin-stock { margin: 0 0 8px; padding: 12px 0; font-size: 14px; color: #aaa; }
.ac14vc-sin-precio { margin: 0; padding: 16px 0; display: flex; align-items: center; gap: 6px; font-size: 14px; color: #555; }
.ac14vc-sin-precio a { color: #cf2e2e; font-weight: 600; }
.ac14vc-modal__ficha { margin-top: auto; padding-top: 12px; font-size: 13px; color: #555; text-decoration: underline; text-underline-offset: 3px; }

/* ---- Móvil: la barra de controles pasa a la parte inferior ---- */
@media (max-width: 640px) {
	.ac14vc { --vc-lat: 0px; }
	.ac14vc__cuerpo { flex-direction: column; }
	.ac14vc__mesa { padding: 6px; }
	.ac14vc__barra { width: 100%; height: 52px; flex-direction: row; justify-content: center; padding: 0 6px; overflow-x: auto; overflow-y: hidden; }
	.ac14vc__sep { width: 1px; height: 22px; margin: 0 4px; }
	.ac14vc__pag { flex-direction: row; gap: 4px; min-width: 64px; }
	.ac14vc-bt { width: 34px; height: 34px; }
	.ac14vc-bt[data-accion="imprimir"] { display: none; }
	.ac14vc__panel { right: 0; bottom: 52px; width: 100%; }
	.ac14vc-modal { padding: 8px; align-items: end; }
	.ac14vc-modal__caja { grid-template-columns: 1fr; }
	.ac14vc-modal__foto { border-radius: 14px 14px 0 0; padding: 14px; }
	.ac14vc-modal__foto img { max-height: 180px; }
}

/* ---- Rejilla de portadas ([ac14_lista_catalogos]) ---- */
.ac14vc-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px 18px; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); align-items: end; }
.ac14vc-lista__item { margin: 0; }
.ac14vc-lista__item a { display: block; color: inherit; text-decoration: none; }
.ac14vc-lista__portada { display: block; aspect-ratio: 210 / 297; background: #ece8e1; border-radius: 3px; overflow: hidden; box-shadow: 0 8px 18px -8px rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.6) inset; }
.ac14vc-lista__item--cuadrado .ac14vc-lista__portada { aspect-ratio: 1 / 1; }
.ac14vc-lista__portada img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac14vc-lista__sin { display: grid; place-items: center; height: 100%; padding: 10px; text-align: center; font-weight: 700; }
.ac14vc-lista__item a:hover .ac14vc-lista__portada { box-shadow: 0 8px 18px -6px rgba(207,46,46,.55); }
.ac14vc-lista__titulo { display: block; margin-top: 10px; font-size: 14px; font-weight: 600; line-height: 1.3; }
@media (max-width: 1100px) { .ac14vc-lista { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .ac14vc-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Diseño por filas (catálogo agrupado por modelo, _te3art) ----
   Medidas en mm de la hoja (--mm). Tienen que coincidir con ac14vc_medidas_filas() de datos.php:
   imagen 36 mm de alto mínimo del bloque (44 de ancho), título 12 mm, cabecera de tabla 5 mm y 7 mm por variante. */
.ac14vc-lis { --vc-rejilla: #c9c3b8; --vc-cols: calc(17 * var(--mm)) calc(33 * var(--mm)) minmax(0, 1fr) calc(13 * var(--mm)); position: relative; z-index: 1; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--vc-rejilla); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ac14vc-gru { flex: none; display: flex; height: calc(var(--h) * var(--mm)); border-bottom: 1px solid #55524c; background: #fff; overflow: hidden; }
.ac14vc-gru:last-child { border-bottom: 0; }
.ac14vc-gru.con-precio { --vc-cols: calc(17 * var(--mm)) calc(33 * var(--mm)) minmax(0, 1fr) calc(13 * var(--mm)) calc(18 * var(--mm)); }
.ac14vc-gru:not(.con-precio) { --vc-cols: calc(17 * var(--mm)) calc(33 * var(--mm)) minmax(0, 1fr) calc(13 * var(--mm)); }
.ac14vc-gru__img { flex: none; position: relative; display: block; width: calc(44 * var(--mm)); height: 100%; margin: 0; padding: 0; cursor: pointer; background: #fff; border: 0; border-radius: 0; font: inherit; color: inherit; }
.ac14vc-gru__img img { position: absolute; inset: calc(1.5 * var(--mm)); width: calc(100% - 3 * var(--mm)); height: calc(100% - 3 * var(--mm)); object-fit: contain; object-position: center top; display: block; -webkit-user-drag: none; user-select: none; }
.ac14vc-gru__cuerpo { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-right: calc(1.5 * var(--mm)); }
.ac14vc-gru__tit { flex: none; height: calc(12 * var(--mm)); display: flex; align-items: center; gap: calc(2.5 * var(--mm)); padding-top: calc(1 * var(--mm)); font-size: calc(3.3 * var(--mm)); font-weight: 800; line-height: 1.1; color: var(--vc-tinta); white-space: nowrap; overflow: hidden; }
.ac14vc-gru__tit span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ac14vc-gru__tit small { flex: none; font-size: calc(2.4 * var(--mm)); font-weight: 600; color: #8a857c; }
.ac14vc-gru__marca { flex: none; margin-left: auto; width: auto; height: auto; max-height: calc(10 * var(--mm)); max-width: calc(34 * var(--mm)); object-fit: contain; object-position: right center; display: block; -webkit-user-drag: none; user-select: none; }
.ac14vc-gru__cab { flex: none; height: calc(5 * var(--mm)); display: grid; grid-template-columns: var(--vc-cols); align-items: center; column-gap: calc(2 * var(--mm)); padding: 0 calc(2 * var(--mm)); background: #6b675f; color: #fff; font-size: calc(2.5 * var(--mm)); font-weight: 700; line-height: 1; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ac14vc-gru__cab .der { text-align: right; }
.ac14vc-gru__filas { flex: none; display: flex; flex-direction: column; }
.ac14vc-var { flex: none; display: grid; grid-template-columns: var(--vc-cols); align-items: center; column-gap: calc(2 * var(--mm)); height: calc(7 * var(--mm)); margin: 0; padding: 0 calc(2 * var(--mm)); cursor: pointer; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--vc-linea); border-radius: 0; font: inherit; font-size: calc(2.7 * var(--mm)); line-height: 1; color: var(--vc-tinta); }
.ac14vc-var:last-child { border-bottom: 0; }
.ac14vc .ac14vc-var, .ac14vc .ac14vc-var:hover, .ac14vc .ac14vc-var:focus, .ac14vc .ac14vc-var:active { background: #fff !important; color: inherit !important; box-shadow: none; text-decoration: none; }
.ac14vc .ac14vc-var:hover, .ac14vc .ac14vc-var:focus-visible { background: #fecdca !important; outline: 2px solid var(--vc-acento); outline-offset: -2px; }
.ac14vc .ac14vc-gru__img, .ac14vc .ac14vc-gru__img:hover, .ac14vc .ac14vc-gru__img:focus, .ac14vc .ac14vc-gru__img:active { background: #fff !important; color: inherit !important; box-shadow: none; }
.ac14vc .ac14vc-gru__img:hover, .ac14vc .ac14vc-gru__img:focus-visible { outline: 2px solid var(--vc-acento); outline-offset: -2px; }
.ac14vc-var > *, .ac14vc-gru__img > * { pointer-events: none; }
.ac14vc-var__ref { justify-self: start; max-width: 100%; font-weight: 800; color: var(--vc-acento); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac14vc-var__ean { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(.3 * var(--mm)); min-width: 0; }
.ac14vc-var__barras { display: block; width: calc(27 * var(--mm)); height: calc(3.2 * var(--mm)); }
.ac14vc-var__ean i { font-style: normal; font-size: calc(1.9 * var(--mm)); line-height: 1; letter-spacing: .03em; color: #333; }
.ac14vc-var__nom { min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac14vc-var__etq { margin-left: calc(1.6 * var(--mm)); padding: calc(.4 * var(--mm)) calc(1.4 * var(--mm)); border-radius: 2px; background: var(--vc-acento); color: #fff; font-size: calc(2 * var(--mm)); font-style: normal; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ac14vc-var__env { text-align: right; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac14vc-var__pre { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: calc(.4 * var(--mm)); white-space: nowrap; }
.ac14vc-var__precio { font-size: calc(3.2 * var(--mm)); font-weight: 800; color: var(--vc-acento); line-height: 1; }
.ac14vc-var__etq.es-nuevo { background: #e30613; }
.ac14vc-var__tachado { font-size: calc(2.1 * var(--mm)); font-weight: 500; color: #999; line-height: 1; }
.ac14vc-var__aviso { font-size: calc(2.1 * var(--mm)); font-style: normal; font-weight: 700; color: #8a857c; text-transform: uppercase; }
.ac14vc-var.es-descat .ac14vc-var__ref { color: #8a857c; }
.ac14vc-var.es-descat .ac14vc-var__nom { opacity: .55; }
.ac14vc-var.es-resalte { animation: ac14vc-pulso 1s ease-in-out 2; outline: 2px solid var(--vc-acento); outline-offset: -2px; }

/* ---- Impresión ---- */
#ac14vc-print { display: none; }
@media print {
	html.ac14vc-imprimiendo body > *:not(#ac14vc-print) { display: none !important; }
	html.ac14vc-imprimiendo #ac14vc-print { display: block !important; }
	#ac14vc-print .ac14vc-pg { break-after: page; page-break-after: always; overflow: hidden; background: #fff; }
	#ac14vc-print .ac14vc-pg:last-child { break-after: auto; page-break-after: auto; }
	#ac14vc-print .ac14vc-pg__in { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	#ac14vc-print .ac14vc-pg--vacia { display: none; }
	#ac14vc-print .ac14vc-cel, #ac14vc-print .ac14vc-var { transition: none; }
}
@media (prefers-reduced-motion: reduce) {
	.ac14vc *, .ac14vc-lista * { animation: none !important; transition: none !important; }
}

/* ---- Página de catálogos ([ac14_catalogos_pagina]): lista a la izquierda y visor en la misma página ---- */
.ac14vc-pag { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; width: 100%; }
.ac14vc-pag__volver { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 18px; padding: 0; background: none; border: 0; color: #cf2e2e !important; font-size: 14px; font-weight: 700; text-decoration: none; }
.ac14vc-pag__volver:hover, .ac14vc-pag__volver:focus { background: none; color: #cf2e2e; text-decoration: underline; }
.ac14vc-pag__lado { padding: 5%; box-sizing: border-box; min-width: 0; }
.ac14vc-pag__h { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8a857c; }
.ac14vc-pag__lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 85vh; overflow: auto; }
.ac14vc-pag__lista li { margin: 0; }
.ac14vc-pag__item { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; padding: 8px; border: 1px solid #e4e0d9; border-radius: 10px; background: #fff; color: #1a1a1a; text-decoration: none; }
.ac14vc-pag__item:hover { border-color: #cf2e2e; }
.ac14vc-pag__item.es-activo { border-color: #cf2e2e; background: #fecdca; box-shadow: inset 4px 0 0 #cf2e2e; }
.ac14vc-pag__mini { display: block; width: 54px; aspect-ratio: 210 / 297; background: #ece8e1; border-radius: 3px; overflow: hidden; box-shadow: 0 3px 8px -4px rgba(0,0,0,.5); }
.ac14vc-pag__mini--cuadrado { aspect-ratio: 1 / 1; align-self: center; }
.ac14vc-pag__mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac14vc-pag__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ac14vc-pag__txt strong { font-size: 14px; line-height: 1.25; font-weight: 700; }
.ac14vc-pag__txt small { font-size: 12px; color: #7a756b; }
.ac14vc-pag__visor { min-width: 0; }
.ac14vc-pag.es-cargando .ac14vc-pag__visor { opacity: .45; pointer-events: none; }
@media (max-width: 900px) {
	.ac14vc-pag { grid-template-columns: 1fr; gap: 12px; }
	.ac14vc-pag__lista { flex-direction: row; max-height: none; overflow-x: auto; padding-bottom: 6px; gap: 10px; scroll-snap-type: x proximity; }
	.ac14vc-pag__lista li { flex: none; width: 220px; scroll-snap-align: start; }
}

/* ---- Página de catálogo a pantalla completa (sin cabecera ni pie del tema) ---- */
body.ac14vc-solo { margin: 0; background: #e9e5df; overflow: hidden; }
.ac14vc--completa { height: 100vh; height: 100dvh; min-height: 0; border-radius: 0; box-shadow: none; }
.ac14vc__top { flex: none; position: relative; z-index: 36; display: flex; align-items: center; gap: 16px; min-height: 54px; padding: 8px 16px; background: #1a1a1a; color: #fff; }
.ac14vc__volver { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; background: #cf2e2e; color: #fff !important; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; }
.ac14vc__volver:hover { filter: brightness(.9); }
.ac14vc__titulo { flex: 1; min-width: 0; margin: 0; font-size: 16px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac14vc__pista { flex: none; font-size: 12.5px; opacity: .65; }
.ac14vc__otros { position: relative; flex: none; }
.ac14vc__otros summary { list-style: none; cursor: pointer; padding: 8px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: 13px; }
.ac14vc__otros summary::-webkit-details-marker { display: none; }
.ac14vc__otros[open] summary { background: rgba(255,255,255,.14); }
.ac14vc__otros ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 240px; max-height: 60vh; overflow: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 10px; box-shadow: 0 16px 36px -10px rgba(0,0,0,.5); }
.ac14vc__otros li { margin: 0; }
.ac14vc__otros a { display: block; padding: 9px 12px; border-radius: 6px; color: #1a1a1a; text-decoration: none; font-size: 14px; }
.ac14vc__otros a:hover { background: #ebe4d8; color: #cf2e2e; }
@media (max-width: 760px) { .ac14vc__pista { display: none; } .ac14vc__top { gap: 10px; padding: 8px 10px; } .ac14vc__volver { padding: 8px 14px; font-size: 13px; } }

/* Botones redondos: el tema da relleno y ancho mínimo a los <button> y los deforma; aquí se anula */
.ac14vc .ac14vc__lado, .ac14vc .ac14vc-bt, .ac14vc .ac14vc-modal__x { padding: 0; min-width: 0; min-height: 0; line-height: 1; box-sizing: border-box; flex-shrink: 0; }
.ac14vc .ac14vc__lado { width: 44px; height: 44px; aspect-ratio: 1; }
.ac14vc .ac14vc-bt { width: 38px; height: 38px; }
.ac14vc .ac14vc__nav .ac14vc-bt { width: 30px; }
.ac14vc .ac14vc-modal__x { width: 36px; height: 36px; aspect-ratio: 1; }
@media (max-width: 640px) { .ac14vc .ac14vc-bt { width: 34px; height: 34px; } .ac14vc .ac14vc__nav .ac14vc-bt { width: 30px; } }

/* Catálogos de clientes: nota del tipo de precio (PVP, con o sin IVA) */
.ac14vc-pie__nota { position: absolute; left: calc(7 * var(--mm)); top: 50%; transform: translateY(-50%); padding: .4cqw 1.5cqw; background: #fff; color: var(--vc-tinta); border-radius: 99cqw; font-size: 1.8cqw; font-weight: 700; white-space: nowrap; }
.ac14vc-precio-nota { font-size: 12px; color: #7a756b; margin-top: 2px; }

/* Catálogos de clientes: logo en la cabecera y en la portada */
.ac14vc-cab--logo { justify-content: center; padding: calc(3 * var(--mm)) calc(7 * var(--mm)); }
.ac14vc-cab__logo { position: relative; box-sizing: border-box; max-width: 55%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; margin: 0; padding: calc(2 * var(--mm)) calc(4 * var(--mm)); background: #fff; border-radius: 0; -webkit-user-drag: none; user-select: none; }
.ac14vc-tapa-gen--cli { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9cqw; }
.ac14vc-tapa-gen--cli span { border-top-color: #fff; }
.ac14vc-tapa-logo { display: flex; align-items: center; justify-content: center; max-width: 72%; padding: 5cqw 7cqw; background: #fff; }
.ac14vc-pg--tapa .ac14vc-tapa-logo img, .ac14vc-pg--contra .ac14vc-tapa-logo img { width: auto; height: auto; max-width: 100%; max-height: 22cqw; object-fit: contain; display: block; }

/* ---- Código de barras EAN (opción del catálogo) ---- */
/* Cuadrícula: barras y número bajo el nombre del producto (medidas en cqw, como el resto de la celda) */
.ac14vc-cel__ean { display: flex; flex-direction: column; align-items: center; gap: .6cqw; margin-top: 1.5cqw; min-width: 0; }
.ac14vc-cel__barras { display: block; width: 62%; height: 9cqw; }
.ac14vc-cel__ean i { font-style: normal; font-size: 5.2cqw; line-height: 1; letter-spacing: .04em; color: #333; }

/* ---- Página de catálogos en móvil (≤768px): sin visor; una fila por catálogo (portada + título) y, al pulsar, el catálogo a pantalla completa ---- */
@media (max-width: 768px) {
	.ac14vc-pag { display: block; }
	.ac14vc-pag__visor { display: none; }
	.ac14vc-pag__lado { padding: 14px 14px 24px; }
	.ac14vc-pag__lista { display: flex; flex-direction: column; gap: 10px; max-height: none; overflow: visible; padding: 0 !important; margin: 0 !important; list-style: none; }
	.ac14vc-pag__lista li { width: auto; flex: none; }
	.ac14vc-pag__item { grid-template-columns: 72px 1fr 18px; gap: 14px; padding: 10px 12px 10px 10px; background: #fff; box-shadow: 0 2px 8px -4px rgba(0,0,0,.25); }
	.ac14vc-pag__item::after { content: ""; width: 9px; height: 9px; border-top: 2px solid #8a857c; border-right: 2px solid #8a857c; transform: rotate(45deg); justify-self: center; }
	.ac14vc-pag__item.es-activo { background: #fff; box-shadow: 0 2px 8px -4px rgba(0,0,0,.25); border-color: #e4e0d9; }
	.ac14vc-pag__mini { width: 72px; }
	.ac14vc-pag__mini--cuadrado { align-self: center; }
	.ac14vc-pag__txt { gap: 4px; }
	.ac14vc-pag__item, .ac14vc-pag__item:hover, .ac14vc-pag__item strong, .ac14vc-pag__item small { text-decoration: none !important; }
	.ac14vc-pag__txt strong { font-size: 16px; }
	.ac14vc-pag__txt small { font-size: 13px; }
}
