/*
Theme Name: MLM-SISPPRO
Theme URI: https://sisppro.com
Author: SISPPROTECH
Author URI: https://sisppro.com
Description: Tema a la medida para CellNutrición, construido sobre WooCommerce y el plugin MLM-SISPPRO. Azul y verde del logo como marca, naranja solo para promociones, sobre papel blanco y tinta casi negra, con un motivo propio de hojas de té y café y el logo del cliente. Incluye cintilla, encabezado fijo con menú de respaldo, menú móvil, pie de página, botón de WhatsApp y botón de volver arriba.
Version: 1.20.3
Requires at least: 6.0
Requires PHP: 8.0
Tested up to: 6.6
Text Domain: mlm-sisppro-theme
*/

/* ==========================================================================
   Tipografías alojadas en el tema (assets/fonts, licencia SIL Open Font
   License): Bricolage Grotesque variable (ejes opsz, wdth y wght — el
   sello y la marca usan su ancho condensado) y Manrope variable. Antes
   se cargaban desde fonts.googleapis.com.
   ========================================================================== */

@font-face {
	font-family: "Bricolage Grotesque";
	font-style: normal;
	font-weight: 500 800;
	font-stretch: 75% 100%;
	font-display: swap;
	src: url( assets/fonts/bricolage-grotesque-latin.woff2 ) format( "woff2" );
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Bricolage Grotesque";
	font-style: normal;
	font-weight: 500 800;
	font-stretch: 75% 100%;
	font-display: swap;
	src: url( assets/fonts/bricolage-grotesque-latin-ext.woff2 ) format( "woff2" );
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url( assets/fonts/manrope-latin.woff2 ) format( "woff2" );
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url( assets/fonts/manrope-latin-ext.woff2 ) format( "woff2" );
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   Variables de marca — CellNutrición (ver PRODUCT.md, "Brand
   Commitments"). Este sigue siendo el único bloque donde vive la marca:
   el plugin y Mi Oficina usan estas mismas variables.

   Mezcla decidida por el cliente (2026-09-23): el azul y el verde del
   logo son la marca; el naranja de la paleta anterior queda solo como
   acento de promociones (insignia de descuento, precio rebajado). Sobre
   blanco, cintilla #2B2B2B y tinta #1A1A1A se conservan.

   Contraste (WCAG AA):
   - Blanco sobre azul #0B63CE = 5.7:1 y sobre azul profundo #0A47A6 =
     8.5:1: los botones azules y las bandas llevan texto blanco.
   - Tinta sobre verde claro #6CC62A = 8.1:1: el botón verde lleva tinta
     (el blanco no pasa sobre ningún verde de la marca salvo el profundo).
   - Azul #0B63CE como texto sobre blanco = 5.7:1; verde profundo
     #1F7A1F = 5.4:1.
   - Promociones: blanco sobre naranja #CF4417 = 4.7:1 (pedido del
     cliente: letra blanca sobre lo oscuro); el mismo naranja como texto
     sobre blanco (encabezado blanco) también da 4.7:1.
   ========================================================================== */

:root {
	--mlm-color-blanco: #ffffff;
	--mlm-color-tinta: #1a1a1a;
	--mlm-color-cintilla: #2b2b2b;

	/* Marca: azul y verde del logo. */
	--mlm-color-azul-profundo: #0a47a6;
	--mlm-color-azul: #0b63ce;
	--mlm-color-azul-claro: #1e9bf0;
	--mlm-color-verde-profundo: #1f7a1f;
	--mlm-color-verde: #2e9a2a;
	--mlm-color-verde-claro: #6cc62a;
	--mlm-degradado: linear-gradient( 118deg, #0a3f96 0%, #0a47a6 45%, #0b63ce 100% );

	/* Acento de promociones y honestidad. */
	/* Naranja de promociones: lo bastante profundo para llevar texto
	   blanco (4.7:1) — pedido del cliente: sobre lo oscuro, letra blanca.
	   El claro queda para líneas y detalles sin texto. */
	--mlm-color-naranja: #cf4417;
	--mlm-color-naranja-claro: #f2622c;
	/* Portadas (Inicio y Catálogo) en naranja, pedido del cliente: el
	   degradado no pasa de #CF4417 para que el texto blanco siga en
	   4.7:1 o más en todo el fondo. */
	--mlm-degradado-naranja: linear-gradient( 118deg, #a3320e 0%, #bb3b13 45%, #cf4417 100% );
	--mlm-color-naranja-profundo: #e8432b;
	--mlm-color-naranja-texto: #c23a1c;
	--mlm-color-ambar: #e8a33d;

	/* Nombres que ya usan el plugin y Mi Oficina — se conservan, ahora
	   apuntando a la paleta nueva. */
	--mlm-color-primario: var( --mlm-color-azul );
	--mlm-color-primario-oscuro: var( --mlm-color-azul-profundo );
	--mlm-color-primario-texto: var( --mlm-color-azul );
	--mlm-color-acento: var( --mlm-color-verde-claro );
	--mlm-color-texto: var( --mlm-color-tinta );
	--mlm-color-texto-suave: #5c5853;
	--mlm-color-fondo: var( --mlm-color-blanco );
	--mlm-color-fondo-alterno: #f5f3f0;
	--mlm-color-borde: #e2ded8;
	--mlm-color-placeholder: #6e6a64;
	--mlm-color-error: #b3261e;
	--mlm-color-error-fondo: #fdecea;
	--mlm-color-exito: #1b7a4d;
	--mlm-color-exito-fondo: #e9f7ef;

	--mlm-fuente-base: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--mlm-fuente-display: "Bricolage Grotesque", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	--mlm-alto-header: 4.5rem;
	--mlm-radio: 14px;
	--mlm-radio-boton: 999px;
	/* Ancho de la página (pedido del cliente: que ocupe el ancho de la
	   pantalla): hasta 1600px, con márgenes laterales que crecen con la
	   pantalla — 16px en el celular, hasta 64px en pantallas grandes. */
	--mlm-ancho-contenedor: 1600px;
	--mlm-espacio: clamp( 1rem, 3.5vw, 4rem );

	--mlm-sombra-hoja: 0 22px 44px -14px rgba( 26, 26, 26, 0.4 ), 0 3px 8px rgba( 26, 26, 26, 0.14 );
	--mlm-sombra-flotante: 0 10px 24px -6px rgba( 26, 26, 26, 0.28 );
	--mlm-curva: cubic-bezier( 0.16, 1, 0.3, 1 );
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html,
body {
	/* Las bandas a todo lo ancho usan 100vw; en Windows con barras de
	   desplazamiento clásicas eso mide unos píxeles más que la página.
	   "clip" (no "hidden") no rompe el encabezado fijo. */
	overflow-x: clip;
}

body {
	margin: 0;
	font-family: var( --mlm-fuente-base );
	font-size: 1rem;
	color: var( --mlm-color-texto );
	background: var( --mlm-color-fondo );
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var( --mlm-color-azul-claro );
	color: var( --mlm-color-tinta );
}

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

a {
	color: var( --mlm-color-tinta );
	text-decoration-color: var( --mlm-color-verde-claro );
	text-decoration-thickness: 2px;
	text-underline-offset: 0.22em;
}

a:hover {
	color: var( --mlm-color-azul );
}

:focus-visible {
	outline: 3px solid var( --mlm-color-tinta );
	outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
	font-family: var( --mlm-fuente-display );
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var( --mlm-color-texto );
	text-wrap: balance;
	margin: 0 0 0.6em;
}

p {
	text-wrap: pretty;
}

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

a.screen-reader-text:focus {
	position: fixed !important;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.75rem 1.1rem;
	clip: auto;
	background: var( --mlm-color-tinta );
	color: var( --mlm-color-blanco );
	border-radius: var( --mlm-radio-boton );
	font-weight: 700;
	text-decoration: none;
}

.mlm-sisppro-contenedor {
	max-width: var( --mlm-ancho-contenedor );
	margin: 0 auto;
	padding: 0 var( --mlm-espacio );
}

.mlm-sisppro-pagina {
	padding-top: 2.75rem;
	padding-bottom: 4rem;
}

.mlm-sisppro-pagina--inicio,
.mlm-sisppro-pagina--catalogo {
	padding-top: 0;
	padding-bottom: 0;
}

/* Páginas con portada en slider (Contacto, …): la portada va pegada al
   encabezado; el resto conserva su aire abajo. */
.mlm-sisppro-pagina--portada {
	padding-top: 0;
}

.mlm-sisppro-pagina-titulo {
	margin-top: 0;
	font-size: clamp( 2rem, 4vw, 2.9rem );
}

/* ==========================================================================
   Full-bleed — una banda que ocupa todo el ancho de la ventana aunque la
   página esté dentro de .mlm-sisppro-contenedor. El contenido de adentro
   va en .mlm-sisppro-full-bleed-interior para no pegarse a los bordes.
   ========================================================================== */

.mlm-sisppro-full-bleed {
	width: 100vw;
	margin-left: calc( 50% - 50vw );
	margin-right: calc( 50% - 50vw );
	border-radius: 0;
}

.mlm-sisppro-full-bleed-interior {
	max-width: var( --mlm-ancho-contenedor );
	margin: 0 auto;
	padding: 0 var( --mlm-espacio );
}

/* ==========================================================================
   Cintilla — la barra oscura sobre el encabezado. Solo dice cosas
   verdaderas del negocio (nada de promociones inventadas).
   ========================================================================== */

.mlm-sisppro-cintilla {
	/* Azul de la marca (pedido del cliente, 2026-09-25); texto claro a ~8:1. */
	background: var( --mlm-color-azul-profundo );
	color: #f2f0ec;
	font-size: 0.82rem;
	font-weight: 600;
}

.mlm-sisppro-cintilla-interior {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.35rem;
	padding-top: 0.2rem;
	padding-bottom: 0.2rem;
}

/* Sin JavaScript: todos los avisos en fila. */
.mlm-sisppro-cintilla-avisos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem 2.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mlm-sisppro-cintilla-avisos li {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.mlm-sisppro-cintilla-avisos a {
	color: #f2f0ec;
	text-decoration: underline;
	text-decoration-color: var( --mlm-color-verde-claro );
	text-underline-offset: 0.2em;
}

.mlm-sisppro-cintilla-avisos a:hover {
	color: var( --mlm-color-blanco );
}

/* Con JavaScript: un aviso a la vez, en la misma celda, con un fundido
   que sube; las flechas a los lados. */
.mlm-sisppro-cintilla.es-rotativa .mlm-sisppro-cintilla-avisos {
	display: grid;
	flex: 1 1 auto;
	justify-items: center;
	min-width: 0;
	max-width: 48rem;
}

.mlm-sisppro-cintilla.es-rotativa .mlm-sisppro-cintilla-avisos li {
	grid-area: 1 / 1;
	max-width: 100%;
	opacity: 0;
	visibility: hidden;
	transform: translateY( 6px );
	transition: opacity 0.45s ease, transform 0.45s var( --mlm-curva ), visibility 0s linear 0.45s;
	text-align: center;
}

.mlm-sisppro-cintilla.es-rotativa .mlm-sisppro-cintilla-avisos li.es-activo {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.45s ease, transform 0.45s var( --mlm-curva ), visibility 0s;
}

button.mlm-sisppro-cintilla-flecha {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 1.9rem;
	height: 1.9rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #f2f0ec;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

button.mlm-sisppro-cintilla-flecha:hover {
	background: rgba( 255, 255, 255, 0.12 );
	color: var( --mlm-color-blanco );
}

button.mlm-sisppro-cintilla-flecha[hidden] {
	display: none;
}

.mlm-sisppro-cintilla :focus-visible {
	outline-color: var( --mlm-color-blanco );
}

.mlm-sisppro-cintilla-flecha svg {
	stroke: #f2f0ec !important;
	stroke-width: 2.4 !important;
}

@media ( max-width: 600px ) {
	.mlm-sisppro-cintilla {
		font-size: 0.76rem;
	}

	.mlm-sisppro-cintilla-interior {
		gap: 0.25rem;
		padding-inline: 0.5rem;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.mlm-sisppro-cintilla.es-rotativa .mlm-sisppro-cintilla-avisos li,
	.mlm-sisppro-cintilla.es-rotativa .mlm-sisppro-cintilla-avisos li.es-activo {
		transform: none;
		transition: none;
	}
}

.mlm-sisppro-cintilla svg {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
	fill: none;
	stroke: var( --mlm-color-verde-claro );
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ==========================================================================
   Encabezado en dos filas — fijo arriba.
   Fila 1: logo, buscador y los iconos (favoritos, cuenta, bolsa) con
   "Regístrate". Fila 2: el menú principal.
   Arriba del todo es azul profundo (transparente sobre las portadas de
   Inicio y Catálogo); al pasar el cursor, al bajar (.es-solido) o con el
   menú abierto pasa a blanco con letras e iconos negro azulado (pedido del
   cliente). Los colores viven en variables del propio encabezado para
   que la transición cambie todo junto.
   ========================================================================== */

:root {
	--mlm-alto-header: 7.4rem;
}

.mlm-sisppro-site-header {
	--hdr-texto: var( --mlm-color-blanco );
	--hdr-subrayado: var( --mlm-color-verde-claro );
	--hdr-linea: rgba( 255, 255, 255, 0.16 );
	--hdr-borde-campo: transparent;
	--hdr-fondo-campo: var( --mlm-color-blanco );
	--hdr-curva: cubic-bezier( 0.22, 1, 0.36, 1 );
	--hdr-tiempo: 0.7s;
	position: sticky;
	top: 0;
	z-index: 30;
	/* Vidrio gris (pedido del cliente): gris translúcido con desenfoque de
	   lo que pasa por detrás. En las páginas sin portada el vidrio es más
	   denso para que el texto blanco se lea sobre el papel blanco. */
	/* 0.45 (pedido del cliente: más transparente). Sobre papel blanco el
	   texto blanco queda justo; la sombra de texto de abajo lo sostiene. */
	background-color: rgba( 34, 38, 46, 0.45 );
	-webkit-backdrop-filter: blur( 22px ) saturate( 115% );
	backdrop-filter: blur( 22px ) saturate( 115% );
	color: var( --hdr-texto );
	box-shadow: 0 12px 30px -20px rgba( 26, 26, 26, 0.6 );
	transition:
		background-color var( --hdr-tiempo ) var( --hdr-curva ),
		box-shadow var( --hdr-tiempo ) var( --hdr-curva ),
		color var( --hdr-tiempo ) var( --hdr-curva );
}

/* Sobre la portada azul, el vidrio es ligero y deja ver el azul. */
/* Sobre la portada: vidrio esmerilado (un velo blanco muy ligero con
   desenfoque), no un color encima. */
.mlm-sisppro-header-transparente .mlm-sisppro-site-header:not( .es-solido ) {
	background-color: rgba( 255, 255, 255, 0.066 );
	box-shadow: inset 0 -1px 0 rgba( 255, 255, 255, 0.22 ), inset 0 1px 0 rgba( 255, 255, 255, 0.1 );
}

.mlm-sisppro-site-header:hover,
.mlm-sisppro-site-header:focus-within,
.mlm-sisppro-site-header.es-solido,
.mlm-sisppro-header-transparente .mlm-sisppro-site-header:not( .es-solido ):hover,
.mlm-sisppro-header-transparente .mlm-sisppro-site-header:not( .es-solido ):focus-within {
	/* Negro azulado (pedido del cliente): ~15:1 sobre el vidrio blanco. */
	--hdr-texto: #14233d;
	--hdr-subrayado: var( --mlm-color-azul );
	--hdr-linea: var( --mlm-color-borde );
	--hdr-borde-campo: var( --mlm-color-borde );
	--hdr-fondo-campo: var( --mlm-color-fondo-alterno );
	/* Vidrio blanco: deja ver, desenfocado, lo que pasa por detrás. */
	background-color: rgba( 255, 255, 255, 0.555 );
	box-shadow: 0 12px 30px -20px rgba( 26, 26, 26, 0.45 );
}

/* Hasta arriba (sin haber bajado), el cursor encima vuelve la barra
   blanca total (pedido del cliente); al bajar se queda el vidrio. */
.mlm-sisppro-site-header:not( .es-solido ):hover,
.mlm-sisppro-site-header:not( .es-solido ):focus-within,
.mlm-sisppro-header-transparente .mlm-sisppro-site-header:not( .es-solido ):hover,
.mlm-sisppro-header-transparente .mlm-sisppro-site-header:not( .es-solido ):focus-within {
	background-color: var( --mlm-color-blanco );
}

.mlm-sisppro-site-header :focus-visible {
	outline-color: var( --hdr-texto );
}

/* Con el vidrio tan transparente, el texto blanco lleva una sombra
   suave para leerse sobre cualquier fondo (en el estado blanco no). */
.mlm-sisppro-site-header:not( :hover ):not( :focus-within ):not( .es-solido ) :is( .mlm-sisppro-site-nav a, .mlm-sisppro-icono ) {
	text-shadow: 0 1px 3px rgba( 0, 0, 0, 0.6 );
}

.mlm-sisppro-site-header:not( :hover ):not( :focus-within ):not( .es-solido ) .mlm-sisppro-icono > svg {
	filter: drop-shadow( 0 1px 2px rgba( 0, 0, 0, 0.4 ) );
}

.admin-bar .mlm-sisppro-site-header {
	top: var( --wp-admin--admin-bar--height, 32px );
}

.mlm-sisppro-header-fila {
	display: flex;
	align-items: center;
	gap: 1rem 1.75rem;
	min-height: 4.5rem;
}

/* Logo del cliente: blanco sobre azul y a color sobre blanco. */
.mlm-sisppro-marca {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	line-height: 0;
}

.mlm-sisppro-marca img {
	display: block;
	width: auto;
	height: 2.75rem;
}

.mlm-sisppro-marca--lema img {
	height: auto;
	width: 14rem;
	max-width: 100%;
}

.mlm-sisppro-marca .mlm-sisppro-marca-color {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity var( --hdr-tiempo ) var( --hdr-curva );
}

.mlm-sisppro-marca-claro {
	transition: opacity var( --hdr-tiempo ) var( --hdr-curva );
}

.mlm-sisppro-site-header:is( :hover, :focus-within, .es-solido ) .mlm-sisppro-marca-claro {
	opacity: 0;
}

.mlm-sisppro-site-header:is( :hover, :focus-within, .es-solido ) .mlm-sisppro-marca-color {
	opacity: 1;
}

/* --- Buscador --- */

.mlm-sisppro-buscador {
	position: relative;
	flex: 1 1 22rem;
	max-width: 38rem;
	margin: 0 auto;
}

.mlm-sisppro-buscador input[type="search"] {
	width: 100%;
	max-width: none;
	min-height: 2.9rem;
	padding: 0.65rem 1.1rem 0.65rem 2.9rem;
	border: 1.5px solid var( --hdr-borde-campo );
	border-radius: var( --mlm-radio-boton );
	background: var( --hdr-fondo-campo );
	color: var( --mlm-color-tinta );
	font: inherit;
	font-size: 0.97rem;
	transition: background-color var( --hdr-tiempo ) var( --hdr-curva ), border-color var( --hdr-tiempo ) var( --hdr-curva );
	-webkit-appearance: none;
	appearance: none;
}

.mlm-sisppro-buscador input[type="search"]::placeholder {
	color: var( --mlm-color-placeholder );
}

.mlm-sisppro-buscador input[type="search"]:focus {
	border-color: var( --mlm-color-azul );
	background: var( --mlm-color-blanco );
	outline: none;
	box-shadow: 0 0 0 3px rgba( 11, 99, 206, 0.18 );
}

.mlm-sisppro-buscador-lupa {
	position: absolute;
	top: 50%;
	left: 1.05rem;
	width: 1.2rem;
	height: 1.2rem;
	margin-top: -0.6rem;
	fill: none;
	stroke: var( --mlm-color-texto-suave );
	stroke-width: 2.2;
	stroke-linecap: round;
	pointer-events: none;
}

.mlm-sisppro-buscador-panel {
	position: absolute;
	top: calc( 100% + 0.5rem );
	left: 0;
	right: 0;
	z-index: 5;
	max-height: min( 70vh, 30rem );
	overflow-y: auto;
	padding: 0.9rem;
	border-radius: 16px;
	background: var( --mlm-color-blanco );
	color: var( --mlm-color-tinta );
	box-shadow: 0 24px 50px -18px rgba( 26, 26, 26, 0.45 ), 0 2px 8px rgba( 26, 26, 26, 0.08 );
}

.mlm-sisppro-buscador-panel[hidden] {
	display: none;
}

.mlm-sisppro-buscador-rotulo {
	margin: 0 0.35rem 0.5rem;
	color: var( --mlm-color-texto-suave );
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mlm-sisppro-buscador-panel ul {
	display: grid;
	gap: 0.2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mlm-sisppro-buscador-panel a {
	display: grid;
	grid-template-columns: 3.25rem minmax( 0, 1fr );
	align-items: center;
	gap: 0.85rem;
	padding: 0.45rem;
	border-radius: 12px;
	color: var( --mlm-color-tinta );
	text-decoration: none;
}

.mlm-sisppro-buscador-panel a:hover,
.mlm-sisppro-buscador-panel [aria-selected="true"] a {
	background: var( --mlm-color-fondo-alterno );
	color: var( --mlm-color-tinta );
}

.mlm-sisppro-buscador-panel img {
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 8px;
	object-fit: cover;
}

.mlm-sisppro-buscador-nombre {
	display: block;
	font-weight: 700;
}

.mlm-sisppro-buscador-precio {
	display: block;
	font-size: 0.9rem;
}

.mlm-sisppro-buscador-precio del {
	color: var( --mlm-color-texto-suave );
}

.mlm-sisppro-buscador-precio ins {
	color: var( --mlm-color-naranja );
	font-weight: 800;
	text-decoration: none;
}

.mlm-sisppro-buscador-vacio {
	margin: 0.4rem 0.35rem;
	color: var( --mlm-color-texto-suave );
}

/* --- Iconos: favoritos, cuenta y bolsa --- */

.mlm-sisppro-header-acciones {
	display: flex;
	align-items: center;
	gap: 0.35rem 1rem;
	flex-shrink: 0;
}

.mlm-sisppro-icono {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 2.75rem;
	padding: 0 0.3rem;
	border: 0;
	background: transparent;
	color: var( --hdr-texto );
	font: inherit;
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: color var( --hdr-tiempo ) var( --hdr-curva );
}

.mlm-sisppro-icono:hover {
	color: var( --hdr-texto );
}

.mlm-sisppro-icono > svg {
	width: 1.5rem;
	height: 1.5rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mlm-sisppro-icono-cuenta {
	position: absolute;
	top: -0.1rem;
	left: 1.05rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.2rem;
	height: 1.2rem;
	padding: 0 0.3rem;
	border-radius: var( --mlm-radio-boton );
	background: var( --mlm-color-naranja );
	color: var( --mlm-color-blanco );
	font-size: 0.7rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.mlm-sisppro-icono-cuenta[hidden] {
	display: none;
}

.mlm-sisppro-header-acciones .mlm-sisppro-boton {
	padding: 0.6rem 1.25rem;
	font-size: 0.95rem;
	background: var( --mlm-color-verde-claro );
	color: var( --mlm-color-tinta );
	transition: color var( --hdr-tiempo ) var( --hdr-curva ), background-color var( --hdr-tiempo ) var( --hdr-curva );
}

.mlm-sisppro-header-acciones .mlm-sisppro-boton:hover {
	background: #86d64a;
	color: var( --mlm-color-tinta );
}

.mlm-sisppro-site-header:is( :hover, :focus-within, .es-solido ) .mlm-sisppro-header-acciones .mlm-sisppro-boton {
	background: #14233d;
	color: var( --mlm-color-blanco );
}

.mlm-sisppro-site-header:is( :hover, :focus-within, .es-solido ) .mlm-sisppro-header-acciones .mlm-sisppro-boton:hover {
	background: var( --mlm-color-azul-profundo );
	color: var( --mlm-color-blanco );
}

/* Favoritos: panel bajo el corazón. */
.mlm-sisppro-favoritos {
	position: relative;
}

.mlm-sisppro-favoritos-panel {
	position: absolute;
	top: calc( 100% + 0.6rem );
	right: 0;
	z-index: 5;
	width: min( 21rem, 90vw );
	padding: 1rem;
	border-radius: 16px;
	background: var( --mlm-color-blanco );
	color: var( --mlm-color-tinta );
	box-shadow: 0 24px 50px -18px rgba( 26, 26, 26, 0.45 ), 0 2px 8px rgba( 26, 26, 26, 0.08 );
}

.mlm-sisppro-favoritos-panel[hidden] {
	display: none;
}

.mlm-sisppro-favoritos-titulo {
	margin: 0 0 0.6rem;
	font-family: var( --mlm-fuente-display );
	font-size: 1.15rem;
	font-weight: 800;
}

.mlm-sisppro-favoritos-panel ul {
	display: grid;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mlm-sisppro-favoritos-panel li {
	display: grid;
	grid-template-columns: 3rem minmax( 0, 1fr ) auto;
	align-items: center;
	gap: 0.75rem;
}

.mlm-sisppro-favoritos-panel img {
	width: 3rem;
	height: 3rem;
	border-radius: 8px;
	object-fit: cover;
}

.mlm-sisppro-favoritos-panel li a {
	color: var( --mlm-color-tinta );
	font-weight: 700;
	text-decoration: none;
}

.mlm-sisppro-favoritos-panel li button {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var( --mlm-color-fondo-alterno );
	color: var( --mlm-color-tinta );
	cursor: pointer;
}

.mlm-sisppro-favoritos-panel li button svg {
	width: 0.8rem;
	height: 0.8rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.6;
	stroke-linecap: round;
}

.mlm-sisppro-favoritos-vacio {
	margin: 0;
	color: var( --mlm-color-texto-suave );
	font-size: 0.92rem;
}

.mlm-sisppro-favoritos-vacio[hidden] {
	display: none;
}

/* --- Fila 2: el menú --- */

.mlm-sisppro-header-menu {
	border-top: 1px solid var( --hdr-linea );
	transition: border-color var( --hdr-tiempo ) var( --hdr-curva );
}

.mlm-sisppro-site-nav ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.25rem 2.5rem;
	margin: 0;
	padding: 0;
}

.mlm-sisppro-site-nav a {
	display: inline-block;
	padding: 0.7rem 0 0.65rem;
	color: var( --hdr-texto );
	text-decoration: none;
	font-weight: 700;
	font-size: 0.95rem;
	background-image: linear-gradient( var( --hdr-subrayado ), var( --hdr-subrayado ) );
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 3px;
	transition: color var( --hdr-tiempo ) var( --hdr-curva ), background-size 0.3s var( --mlm-curva );
}

.mlm-sisppro-site-nav a:hover,
.mlm-sisppro-site-nav .current-menu-item > a {
	color: var( --hdr-texto );
	background-size: 100% 3px;
}

/* Botón de menú móvil — oculto en escritorio. */
button.mlm-sisppro-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	background: transparent;
	border: 1.5px solid currentColor;
	border-radius: var( --mlm-radio-boton );
	color: var( --hdr-texto );
	cursor: pointer;
	transition: color var( --hdr-tiempo ) var( --hdr-curva );
}

button.mlm-sisppro-nav-toggle:hover {
	background: rgba( 127, 127, 127, 0.12 );
	color: var( --hdr-texto );
}

.mlm-sisppro-nav-toggle svg {
	width: 1.3rem;
	height: 1.3rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

/* Pantallas medianas: los iconos sin texto (el texto queda para lectores
   de pantalla). */
@media ( max-width: 1180px ) {
	.mlm-sisppro-icono-texto {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect( 0, 0, 0, 0 );
		white-space: nowrap;
	}

	.mlm-sisppro-header-acciones {
		gap: 0.35rem 0.6rem;
	}
}

@media ( max-width: 900px ) {
	:root {
		--mlm-alto-header: 7.5rem;
	}

	/* Celular: logo e iconos en una fila, el buscador debajo a todo lo
	   ancho. */
	.mlm-sisppro-header-fila {
		display: grid;
		grid-template-columns: auto minmax( 0, 1fr );
		grid-template-areas: "marca acciones" "buscador buscador";
		gap: 0.55rem 0.5rem;
		min-height: 0;
		padding-block: 0.6rem 0.7rem;
	}

	.mlm-sisppro-header-fila > .mlm-sisppro-marca {
		grid-area: marca;
	}

	.mlm-sisppro-header-acciones {
		grid-area: acciones;
		justify-content: flex-end;
		flex-wrap: nowrap;
	}

	.mlm-sisppro-buscador {
		grid-area: buscador;
		max-width: none;
		margin: 0;
	}

	button.mlm-sisppro-nav-toggle {
		display: inline-flex;
	}

	.mlm-sisppro-header-menu {
		border-top: 0;
	}

	.mlm-sisppro-site-nav {
		max-height: 0;
		overflow: hidden;
		visibility: hidden;
		transition: max-height 0.35s var( --mlm-curva ), visibility 0s linear 0.35s;
	}

	.mlm-sisppro-site-nav.is-abierto {
		max-height: 70vh;
		overflow-y: auto;
		visibility: visible;
		transition: max-height 0.35s var( --mlm-curva ), visibility 0s;
	}

	.mlm-sisppro-site-nav ul {
		flex-direction: column;
		gap: 0;
		padding: 0 0 1rem;
	}

	.mlm-sisppro-site-nav a {
		display: block;
		padding: 0.85rem 0;
		font-size: 1.1rem;
		border-top: 1px solid var( --hdr-linea );
		background-image: none;
	}
}

/* En el celular "Regístrate" sale del encabezado: ya están el popup, la
   nube de contacto y la barra fija de registro. */
@media ( max-width: 600px ) {
	.mlm-sisppro-header-acciones .mlm-sisppro-header-registro {
		display: none;
	}

	.mlm-sisppro-icono {
		padding: 0 0.2rem;
	}
}

@media ( max-width: 420px ) {
	.mlm-sisppro-marca:not( .mlm-sisppro-marca--lema ) img {
		height: 2.2rem;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.mlm-sisppro-site-header,
	.mlm-sisppro-marca img,
	.mlm-sisppro-site-nav,
	.mlm-sisppro-site-nav.is-abierto,
	.mlm-sisppro-site-nav a,
	.mlm-sisppro-icono,
	button.mlm-sisppro-nav-toggle,
	.mlm-sisppro-buscador input[type="search"],
	.mlm-sisppro-header-acciones .mlm-sisppro-boton {
		transition: none;
	}
}

/* ==========================================================================
   Pie de página
   ========================================================================== */

.mlm-sisppro-site-footer {
	margin-top: 4rem;
	background: var( --mlm-color-blanco );
	border-top: 1px solid var( --mlm-color-borde );
}

.home .mlm-sisppro-site-footer,
.mlm-sisppro-es-catalogo .mlm-sisppro-site-footer {
	margin-top: 0;
}

.mlm-sisppro-footer-dato {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.2rem 0.45rem;
}

.mlm-sisppro-site-footer-inner {
	padding-top: 3.5rem;
	padding-bottom: 1.75rem;
	color: var( --mlm-color-texto-suave );
	font-size: 0.93rem;
}

.mlm-sisppro-footer-columnas {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
	gap: 2.5rem;
	padding-bottom: 2.5rem;
}

.mlm-sisppro-footer-columna .mlm-sisppro-marca {
	margin-bottom: 0.9rem;
}

.mlm-sisppro-footer-columna p {
	margin: 0 0 0.6rem;
	max-width: 32ch;
}

.mlm-sisppro-footer-columna h2 {
	font-family: var( --mlm-fuente-base );
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0;
	color: var( --mlm-color-texto );
	margin: 0 0 1rem;
}

.mlm-sisppro-footer-lista {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.mlm-sisppro-footer-lista a {
	color: var( --mlm-color-texto-suave );
	text-decoration: none;
}

.mlm-sisppro-footer-lista a:hover {
	color: var( --mlm-color-tinta );
	text-decoration: underline;
	text-decoration-color: var( --mlm-color-verde-claro );
}

.mlm-sisppro-footer-ejemplo {
	display: inline-block;
	white-space: nowrap;
	padding: 0.05rem 0.45rem;
	border-radius: var( --mlm-radio-boton );
	background: color-mix( in srgb, var( --mlm-color-ambar ) 22%, var( --mlm-color-blanco ) );
	color: var( --mlm-color-tinta );
	font-size: 0.72rem;
	font-weight: 700;
}

.mlm-sisppro-footer-legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	border-top: 1px solid var( --mlm-color-borde );
	padding-top: 1.35rem;
	margin: 0;
	font-size: 0.85rem;
}

@media ( max-width: 900px ) {
	.mlm-sisppro-footer-columnas {
		grid-template-columns: 1fr 1fr;
	}

	.mlm-sisppro-footer-columna:first-child {
		grid-column: 1 / -1;
	}
}

@media ( max-width: 480px ) {
	.mlm-sisppro-footer-columnas {
		grid-template-columns: 1fr;
	}
}

/* --- Pie de vidrio (2026-09-29) ---
   Como el slider de las portadas: el contenido en un recuadro de vidrio
   gris translúcido con letra blanca, sobre el azul de la marca con su
   motivo de hojas y granos (lo pone footer.php en --mlm-pie-motivo); el
   vidrio esmerila el motivo que queda detrás. Sin fotografía. */
.mlm-sisppro-site-footer--vidrio {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp( 2rem, 5vw, 3.5rem ) 0;
	border-top: 0;
	background: var( --mlm-degradado );
}

.mlm-sisppro-site-footer--vidrio::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var( --mlm-pie-motivo, none ) 0 0 / 460px 460px repeat;
	opacity: 0.7;
}

.mlm-sisppro-site-footer--vidrio .mlm-sisppro-site-footer-inner {
	/* Recuadro centrado, con la foto asomando a los lados. */
	width: min( 100% - 2 * var( --mlm-espacio, 1.25rem ), 76rem );
	max-width: none;
	margin-inline: auto;
	padding: clamp( 1.75rem, 4vw, 2.75rem ) clamp( 1.25rem, 4vw, 2.75rem ) 1.5rem;
	border: 1px solid rgba( 255, 255, 255, 0.24 );
	border-radius: 20px;
	background: rgba( 30, 33, 40, 0.45 );
	-webkit-backdrop-filter: blur( 18px ) saturate( 125% );
	backdrop-filter: blur( 18px ) saturate( 125% );
	box-shadow: 0 30px 60px -28px rgba( 0, 0, 0, 0.55 ), inset 0 1px 0 rgba( 255, 255, 255, 0.14 );
	color: rgba( 255, 255, 255, 0.88 );
	text-shadow: 0 1px 2px rgba( 0, 0, 0, 0.45 );
}

.mlm-sisppro-site-footer--vidrio .mlm-sisppro-footer-columna h2 {
	color: var( --mlm-color-blanco );
}

.mlm-sisppro-site-footer--vidrio .mlm-sisppro-footer-lista a {
	color: rgba( 255, 255, 255, 0.88 );
}

.mlm-sisppro-site-footer--vidrio .mlm-sisppro-footer-lista a:hover {
	color: var( --mlm-color-blanco );
}

.mlm-sisppro-site-footer--vidrio .mlm-sisppro-footer-legal {
	border-top-color: rgba( 255, 255, 255, 0.2 );
}

.mlm-sisppro-site-footer--vidrio .mlm-sisppro-footer-ejemplo {
	text-shadow: none;
}

.mlm-sisppro-site-footer--vidrio :focus-visible {
	outline-color: var( --mlm-color-blanco );
}

.mlm-sisppro-marca--pie {
	display: inline-block;
	margin-bottom: 0.9rem;
}

.mlm-sisppro-marca--pie img {
	display: block;
	width: 11rem;
	height: auto;
}

/* ==========================================================================
   Contacto flotante (Messenger, Facebook, WhatsApp) con nube de saludo,
   abajo a la derecha, y "volver arriba", abajo a la izquierda.
   ========================================================================== */

.mlm-sisppro-contacto-flotante {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 40;
	display: flex;
	/* La nube va a la altura del primer botón (el del chat). */
	align-items: flex-start;
	gap: 0.9rem;
	pointer-events: none;
}

@media ( min-width: 601px ) {
	.mlm-sisppro-nube::after {
		top: 1.625rem;
	}

	.mlm-sisppro-nube {
		margin-top: -0.1rem;
	}
}

.mlm-sisppro-contacto-flotante > * {
	pointer-events: auto;
}

.mlm-sisppro-contacto-botones {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mlm-sisppro-contacto-boton {
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	color: var( --mlm-color-blanco );
	box-shadow: var( --mlm-sombra-flotante );
	transition: transform 0.2s var( --mlm-curva ), filter 0.2s ease;
}

.mlm-sisppro-contacto-boton:hover {
	color: var( --mlm-color-blanco );
	transform: scale( 1.08 );
	filter: brightness( 1.06 );
}

.mlm-sisppro-contacto-boton svg {
	width: 1.6rem;
	height: 1.6rem;
}

.mlm-sisppro-contacto-boton--messenger {
	background: linear-gradient( 45deg, #0068ff, #a334fa 70%, #ff5c87 );
}

/* Chat del sitio (plugin CellNutrición Chat). */
button.mlm-sisppro-contacto-boton--chat {
	padding: 0;
	border: 0;
	background: var( --mlm-color-naranja );
	cursor: pointer;
}

button.mlm-sisppro-contacto-boton--chat:hover {
	background: #b83a12;
}

.mlm-sisppro-contacto-boton--facebook {
	background: #1877f2;
}

.mlm-sisppro-contacto-boton--whatsapp {
	background: #1faa55;
}

/* La nube: un globo de diálogo blanco a un lado de los botones, con la
   colita apuntando hacia ellos. */
.mlm-sisppro-nube {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 0.35rem;
	max-width: 15.5rem;
	padding: 0.85rem 0.6rem 0.85rem 1rem;
	border-radius: 18px;
	background: var( --mlm-color-blanco );
	box-shadow: 0 18px 40px -16px rgba( 26, 26, 26, 0.45 ), 0 2px 6px rgba( 26, 26, 26, 0.1 );
	animation: mlm-sisppro-nube-entrar 0.5s var( --mlm-curva );
}

.mlm-sisppro-nube[hidden] {
	display: none;
}

.mlm-sisppro-nube::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -0.45rem;
	width: 1rem;
	height: 1rem;
	margin-top: -0.5rem;
	background: var( --mlm-color-blanco );
	transform: rotate( 45deg );
	border-radius: 0 4px 0 0;
}

.mlm-sisppro-nube-texto {
	color: var( --mlm-color-tinta );
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.35;
	text-decoration: none;
}

.mlm-sisppro-nube-texto:hover {
	color: var( --mlm-color-naranja );
}

button.mlm-sisppro-nube-cerrar {
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var( --mlm-color-fondo-alterno );
	color: var( --mlm-color-tinta );
	cursor: pointer;
}

button.mlm-sisppro-nube-cerrar:hover {
	background: var( --mlm-color-borde );
	color: var( --mlm-color-tinta );
}

.mlm-sisppro-nube-cerrar svg {
	width: 0.85rem;
	height: 0.85rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.6;
	stroke-linecap: round;
}

@keyframes mlm-sisppro-nube-entrar {
	from {
		opacity: 0;
		transform: translateX( 12px ) scale( 0.94 );
		transform-origin: center right;
	}
}

/* Lanzador del celular: un solo botón que abre los tres de contacto. */
button.mlm-sisppro-contacto-lanzador {
	display: none;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var( --mlm-color-naranja );
	color: var( --mlm-color-blanco );
	box-shadow: var( --mlm-sombra-flotante );
	cursor: pointer;
}

button.mlm-sisppro-contacto-lanzador:hover {
	background: #b83a12;
	color: var( --mlm-color-blanco );
}

.mlm-sisppro-contacto-lanzador svg {
	width: 1.5rem;
	height: 1.5rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mlm-sisppro-lanzador-cerrar,
.mlm-sisppro-contacto-flotante.es-abierto .mlm-sisppro-lanzador-abrir {
	display: none;
}

.mlm-sisppro-contacto-flotante.es-abierto .mlm-sisppro-lanzador-cerrar {
	display: block;
}

@media ( max-width: 600px ) {
	/* En el celular: el lanzador abajo y, al tocarlo, los tres botones
	   suben encima de él; la nube queda a su lado. */
	.mlm-sisppro-contacto-flotante {
		display: grid;
		grid-template-columns: auto auto;
		grid-template-areas: ". botones" "nube lanzador";
		align-items: end;
		justify-items: end;
		gap: 0.6rem;
	}

	button.mlm-sisppro-contacto-lanzador {
		display: grid;
		grid-area: lanzador;
	}

	.mlm-sisppro-nube {
		grid-area: nube;
		align-self: center;
	}

	.mlm-sisppro-contacto-botones {
		grid-area: botones;
		visibility: hidden;
		opacity: 0;
		transform: translateY( 10px );
		transition: opacity 0.3s ease, transform 0.3s var( --mlm-curva ), visibility 0s linear 0.3s;
	}

	.mlm-sisppro-contacto-flotante.es-abierto .mlm-sisppro-contacto-botones {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity 0.3s ease, transform 0.3s var( --mlm-curva ), visibility 0s;
	}

	.mlm-sisppro-contacto-boton {
		width: 2.9rem;
		height: 2.9rem;
	}

	.mlm-sisppro-contacto-boton svg {
		width: 1.4rem;
		height: 1.4rem;
	}

	.mlm-sisppro-nube {
		max-width: 13rem;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.mlm-sisppro-nube {
		animation: none;
	}

	.mlm-sisppro-contacto-boton,
	.mlm-sisppro-contacto-boton:hover {
		transition: none;
		transform: none;
	}
}

/* Volver arriba (abajo a la izquierda, para no encimarse con el contacto
   flotante): círculo azul con un anillo verde que marca cuánto se
   ha bajado (--mlm-avance lo pone theme.js). Aparece al bajar. */
button.mlm-sisppro-volver-arriba {
	--mlm-avance: 0;
	position: fixed;
	left: 1.25rem;
	bottom: 1.25rem;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background:
		radial-gradient( circle, var( --mlm-color-azul-profundo ) 0 1.3rem, transparent 1.32rem ),
		conic-gradient( var( --mlm-color-verde-claro ) calc( var( --mlm-avance ) * 1turn ), rgba( 10, 71, 166, 0.25 ) 0 );
	color: var( --mlm-color-blanco );
	box-shadow: var( --mlm-sombra-flotante );
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY( 12px );
	transition: opacity 0.3s ease, transform 0.3s var( --mlm-curva ), visibility 0s linear 0.3s;
}

button.mlm-sisppro-volver-arriba.es-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.3s ease, transform 0.3s var( --mlm-curva ), visibility 0s;
}

button.mlm-sisppro-volver-arriba:hover {
	color: var( --mlm-color-verde-claro );
}

.mlm-sisppro-volver-arriba svg {
	width: 1.35rem;
	height: 1.35rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media ( prefers-reduced-motion: reduce ) {
	button.mlm-sisppro-volver-arriba,
	button.mlm-sisppro-volver-arriba.es-visible {
		transform: none;
		transition: none;
	}
}

/* Íconos de redes sociales en el pie. */
.mlm-sisppro-redes {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.mlm-sisppro-redes a {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var( --mlm-color-azul-profundo );
	color: var( --mlm-color-blanco );
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.mlm-sisppro-redes a:hover {
	background: var( --mlm-color-azul );
	color: var( --mlm-color-blanco );
	transform: translateY( -2px );
}

.mlm-sisppro-redes svg {
	width: 1.25rem;
	height: 1.25rem;
}

/* El triángulo de YouTube va "calado" en el azul del botón. */
.mlm-sisppro-redes svg path[fill="#fff"] {
	fill: var( --mlm-color-azul-profundo );
}

/* ==========================================================================
   Botones y formularios (registro, login, contacto, perfil, checkout).
   Principal: píldora azul de la marca con texto blanco (5.7:1).
   Secundario: píldora blanca con borde.
   ========================================================================== */

.mlm-sisppro-boton,
button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
	display: inline-block;
	background: var( --mlm-color-azul );
	color: var( --mlm-color-blanco );
	border: none;
	border-radius: var( --mlm-radio-boton );
	padding: 0.8rem 1.5rem;
	font-family: var( --mlm-fuente-base );
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	line-height: 1.2;
	transition: background-color 0.2s ease, transform 0.2s var( --mlm-curva );
}

.mlm-sisppro-boton:hover,
button:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	background: var( --mlm-color-azul-profundo );
	color: var( --mlm-color-blanco );
}

.mlm-sisppro-boton:active,
button:active,
input[type="submit"]:active {
	transform: translateY( 1px );
}

button:disabled,
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled],
.woocommerce a.button.disabled {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
}

.mlm-sisppro-boton-secundario {
	display: inline-block;
	background: var( --mlm-color-blanco );
	color: var( --mlm-color-tinta );
	border: 1.5px solid var( --mlm-color-borde );
	border-radius: var( --mlm-radio-boton );
	padding: calc( 0.8rem - 1.5px ) 1.5rem;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	line-height: 1.2;
	transition: border-color 0.2s ease;
}

.mlm-sisppro-boton-secundario:hover {
	border-color: var( --mlm-color-tinta );
	color: var( --mlm-color-tinta );
}

form p {
	margin: 0 0 1.1rem;
}

form label {
	display: block;
	margin-bottom: 0.4rem;
	font-weight: 700;
	font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="search"],
input[type="file"],
select,
textarea {
	width: 100%;
	max-width: 440px;
	padding: 0.75rem 0.95rem;
	border: 1.5px solid var( --mlm-color-borde );
	border-radius: 12px;
	font-family: inherit;
	font-size: 1rem;
	background: var( --mlm-color-blanco );
	color: var( --mlm-color-texto );
	caret-color: var( --mlm-color-azul );
	transition: border-color 0.2s ease;
}

input:hover,
select:hover,
textarea:hover {
	border-color: #c9c4bc;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var( --mlm-color-tinta );
}

::placeholder {
	color: var( --mlm-color-placeholder );
	opacity: 1;
}

input[type="checkbox"],
input[type="radio"] {
	accent-color: var( --mlm-color-azul );
	width: 1.1rem;
	height: 1.1rem;
	vertical-align: -0.15em;
	margin-right: 0.35rem;
}

textarea {
	max-width: 100%;
}

/* ==========================================================================
   Mensajes y errores — propios del plugin y de WooCommerce
   ========================================================================== */

.mlm-sisppro-errores,
.woocommerce-error,
.woocommerce-NoticeGroup .woocommerce-error {
	background: var( --mlm-color-error-fondo );
	color: var( --mlm-color-error );
	border-radius: var( --mlm-radio );
	padding: 0.95rem 1.15rem;
	margin-bottom: 1.25rem;
	list-style: none;
}

.mlm-sisppro-errores ul,
.woocommerce-error {
	margin: 0;
	padding-left: 0;
}

.mlm-sisppro-mensaje,
.woocommerce-message,
.woocommerce-info {
	background: var( --mlm-color-exito-fondo );
	color: var( --mlm-color-exito );
	border-radius: var( --mlm-radio );
	padding: 0.95rem 1.15rem;
	margin-bottom: 1.25rem;
	list-style: none;
	border-top: 0;
}

/* WooCommerce pone un ícono de su propia tipografía antes de cada aviso;
   con nuestro relleno se encimaba sobre el texto. Los avisos ya se
   distinguen por su color. */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	display: none;
}

/* ==========================================================================
   Tablas (Mi Oficina, y las de WooCommerce en cuenta/checkout)
   ========================================================================== */

.mlm-sisppro-tabla,
.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0 1.5rem;
	font-variant-numeric: tabular-nums;
}

.mlm-sisppro-tabla th,
.mlm-sisppro-tabla td,
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	text-align: left;
	padding: 0.7rem 0.8rem;
	border-bottom: 1px solid var( --mlm-color-borde );
}

.mlm-sisppro-tabla th {
	color: var( --mlm-color-texto-suave );
	font-size: 0.85rem;
	font-weight: 700;
}

/* ==========================================================================
   Tienda (WooCommerce) — catálogo, producto, carrito y checkout con el
   mismo lenguaje de la marca. WooCommerce ya trae su propia estructura;
   aquí solo se le da el aspecto, no se reconstruye nada. La insignia de
   descuento y el texto "Agregar a mi bolsa" vienen del plugin
   (class-mlm-ecommerce.php).
   ========================================================================== */

/* --- Catálogo: cuadrícula de tarjetas --- */

/* Páginas de categoría y búsqueda: ruta, título y descripción al centro. */
.woocommerce-breadcrumb,
.woocommerce-products-header,
.woocommerce-products-header .page-title {
	text-align: center;
}

.woocommerce-products-header .term-description p {
	max-width: 60ch;
	margin-inline: auto;
}

.woocommerce ul.products {
	display: grid !important;
	/* auto-fill con tope: con uno o dos productos (una categoría nueva) la
	   tarjeta no se estira a todo el ancho. */
	grid-template-columns: repeat( auto-fit, minmax( min( 240px, 100% ), 300px ) ) !important;
	justify-content: center;
	gap: 1.75rem;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none !important;
}

.woocommerce ul.products li.product {
	/* width/float en !important: el CSS por defecto de WooCommerce le
	   pone ancho en porcentaje + float a cada tarjeta; si esa hoja carga
	   después de la nuestra, aplasta la cuadrícula. */
	width: auto !important;
	float: none !important;
	position: relative;
	text-align: left;
	margin: 0 !important;
	padding: 0 0 1.25rem;
	background: var( --mlm-color-blanco );
	border: 1px solid var( --mlm-color-borde );
	border-radius: var( --mlm-radio );
	overflow: hidden;
	transition: transform 0.35s var( --mlm-curva ), box-shadow 0.35s var( --mlm-curva );
}

.woocommerce ul.products li.product:hover {
	transform: translateY( -4px );
	box-shadow: 0 18px 34px -16px rgba( 26, 26, 26, 0.25 );
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.woocommerce ul.products li.product img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin: 0 0 1rem;
	border-radius: 0;
	background: var( --mlm-color-fondo-alterno );
}

/* Marca del producto (taxonomía opcional "mlm_marca"). */
.mlm-sisppro-producto-marca {
	display: block;
	margin: 0 1.1rem 0.25rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var( --mlm-color-verde-profundo );
}

.woocommerce ul.products li.product h2.woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	margin: 0 1.1rem 0.35rem;
	padding: 0;
	font-family: var( --mlm-fuente-display );
	font-size: 1.2rem;
	font-weight: 700;
	color: var( --mlm-color-texto );
}

.woocommerce ul.products li.product .star-rating {
	margin: 0 1.1rem 0.4rem;
	font-size: 0.85rem;
	color: var( --mlm-color-azul );
}

.woocommerce ul.products li.product .price {
	display: block;
	margin: 0 1.1rem 1rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: var( --mlm-color-texto );
	font-variant-numeric: tabular-nums;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	font-size: 1.5rem;
	font-weight: 700;
	color: var( --mlm-color-texto );
	font-variant-numeric: tabular-nums;
}

.woocommerce .price del {
	color: var( --mlm-color-texto-suave );
	font-size: 0.85em;
	font-weight: 500;
	margin-right: 0.4rem;
	text-decoration: line-through;
}

.woocommerce .price ins {
	text-decoration: none;
	font-weight: 700;
	color: var( --mlm-color-naranja-texto );
}

.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product a.add_to_cart_button {
	display: block;
	margin: 0 1.1rem;
	width: calc( 100% - 2.2rem );
	text-align: center;
}

.woocommerce ul.products li.product .mlm-sisppro-aviso-registro-loop {
	display: block;
	margin: 0 1.1rem;
	padding: 0.75rem 1rem;
	border-radius: var( --mlm-radio-boton );
	background: var( --mlm-color-azul );
	color: var( --mlm-color-blanco );
	font-weight: 700;
	font-size: 0.92rem;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.woocommerce ul.products li.product .mlm-sisppro-aviso-registro-loop:hover {
	background: var( --mlm-color-azul-profundo );
	color: var( --mlm-color-blanco );
}

/* Insignia de "-XX%": solo con un precio de rebaja real cargado. */
.woocommerce span.onsale {
	display: inline-block;
	position: absolute;
	top: 0.85rem;
	left: 0.85rem;
	width: auto;
	height: auto;
	min-height: 0;
	min-width: 0;
	max-width: none;
	overflow: visible;
	white-space: nowrap;
	margin: 0;
	padding: 0.35rem 0.7rem;
	border-radius: var( --mlm-radio-boton );
	background: var( --mlm-color-naranja );
	color: var( --mlm-color-blanco );
	font-size: 0.8rem;
	font-weight: 800;
	line-height: 1;
	text-align: center;
	z-index: 1;
}

.woocommerce div.product span.onsale {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
}

/* --- Producto individual --- */

.woocommerce div.product {
	position: relative;
}

.woocommerce div.product .woocommerce-product-gallery {
	border-radius: var( --mlm-radio );
	overflow: hidden;
}

.woocommerce div.product .summary .mlm-sisppro-producto-marca {
	margin: 0 0 0.35rem;
}

.woocommerce div.product .summary .product_title {
	margin-top: 0;
	font-size: clamp( 2rem, 4vw, 2.8rem );
}

.woocommerce div.product .summary .star-rating {
	color: var( --mlm-color-azul );
	margin-bottom: 0.5rem;
}

.woocommerce div.product form.cart .quantity {
	margin-right: 0.75rem;
}

.woocommerce div.product form.cart .qty,
.woocommerce table.cart .qty,
input.qty {
	width: 4.75rem;
	max-width: 4.75rem;
	padding: 0.7rem 0.5rem;
	border: 1.5px solid var( --mlm-color-borde );
	border-radius: 12px;
	text-align: center;
	font-family: inherit;
	font-size: 1rem;
	background: var( --mlm-color-blanco );
	color: var( --mlm-color-texto );
	font-variant-numeric: tabular-nums;
}

.woocommerce div.product .woocommerce-tabs {
	margin-top: 3rem;
	padding-top: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0;
	margin: 0 0 1.5rem;
	border: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	border-radius: 0;
}

/* Pestañas como píldoras: la seleccionada se rellena de azul, las
   demás quedan con borde gris claro sobre blanco. */
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 0.55rem 1.15rem;
	border: 1.5px solid var( --mlm-color-borde );
	border-radius: var( --mlm-radio-boton );
	background: var( --mlm-color-blanco );
	color: var( --mlm-color-texto );
	text-decoration: none;
	font-weight: 700;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	background: var( --mlm-color-azul );
	border-color: var( --mlm-color-azul );
	color: var( --mlm-color-blanco );
}

.woocommerce div.product .related.products {
	margin-top: 3.5rem;
}

.woocommerce div.product .related.products > h2 {
	margin-bottom: 1.5rem;
}

/* --- Carrito --- */

.woocommerce-cart table.cart {
	border: 1px solid var( --mlm-color-borde );
	border-radius: var( --mlm-radio );
	overflow: hidden;
}

.woocommerce-cart table.cart th {
	background: var( --mlm-color-fondo-alterno );
	color: var( --mlm-color-texto-suave );
	font-size: 0.85rem;
}

.woocommerce-cart table.cart td.product-thumbnail img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 10px;
}

.woocommerce-cart table.cart td.product-remove a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.9rem;
	height: 1.9rem;
	border-radius: 50%;
	background: var( --mlm-color-error-fondo );
	color: var( --mlm-color-error ) !important;
	font-size: 1.1rem;
	line-height: 1;
	text-decoration: none;
}

.woocommerce-cart .cart-collaterals .cart_totals {
	background: var( --mlm-color-fondo-alterno );
	border-radius: var( --mlm-radio );
	padding: 1.5rem;
}

.woocommerce-cart .cart-collaterals .cart_totals h2 {
	margin-top: 0;
}

.woocommerce-cart .cart-collaterals .cart_totals table {
	border: none;
}

.woocommerce-cart .cart-collaterals .cart_totals table th,
.woocommerce-cart .cart-collaterals .cart_totals table td {
	border-bottom: 1px solid var( --mlm-color-borde );
}

.woocommerce-cart .cart-collaterals .cart_totals .order-total .woocommerce-Price-amount {
	font-size: 1.25rem;
	font-weight: 800;
	color: var( --mlm-color-tinta );
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
	display: block;
	text-align: center;
	font-size: 1.05rem;
}

.woocommerce form.woocommerce-cart-form .coupon {
	display: flex;
	gap: 0.75rem;
	align-items: center;
}

.woocommerce form.woocommerce-cart-form .coupon .input-text {
	max-width: 220px;
}

/* --- Checkout --- */

.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
	background: var( --mlm-color-blanco );
	border: 1px solid var( --mlm-color-borde );
	border-radius: var( --mlm-radio );
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table {
	border: none;
}

.woocommerce-checkout #payment {
	background: var( --mlm-color-fondo-alterno );
	border-radius: var( --mlm-radio );
}

.woocommerce-checkout #payment ul.payment_methods {
	border-bottom: none;
	padding: 1rem 1.25rem 0;
}

.woocommerce-checkout #payment div.payment_box {
	background: var( --mlm-color-blanco );
	border-radius: 10px;
}

.woocommerce-checkout #payment div.payment_box::before {
	border-bottom-color: var( --mlm-color-blanco );
}

.woocommerce-checkout #place_order {
	width: 100%;
	font-size: 1.05rem;
	padding: 0.95rem 1.4rem;
}

@media ( max-width: 780px ) {
	.woocommerce ul.products {
		grid-template-columns: repeat( auto-fill, minmax( 160px, 1fr ) ) !important;
		gap: 1rem;
	}

	.woocommerce form.woocommerce-cart-form .coupon {
		flex-wrap: wrap;
	}

	.woocommerce form.woocommerce-cart-form .coupon .input-text {
		max-width: none;
		flex: 1 1 100%;
	}
}


/* ==========================================================================
   Con sesión iniciada: "Estás en tu Oficina, Nombre" (con su foto si la
   subió en Mi perfil).
   ========================================================================== */

.mlm-sisppro-oficina-saludo .mlm-sisppro-icono-texto {
	display: grid;
	max-width: 11rem;
	line-height: 1.1;
	text-align: left;
}

.mlm-sisppro-oficina-saludo .mlm-sisppro-icono-texto,
.mlm-sisppro-oficina-saludo .mlm-sisppro-icono-texto small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mlm-sisppro-oficina-saludo .mlm-sisppro-icono-texto small {
	font-size: 0.72rem;
	font-weight: 600;
	opacity: 0.85;
}

.mlm-sisppro-oficina-foto {
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 2px currentColor;
}

/* Pantallas medianas y celular: el resto de los iconos va sin texto, pero
   el nombre sigue a la vista (sin la frase, que no cabe). */
@media ( max-width: 1180px ) {
	.mlm-sisppro-oficina-saludo .mlm-sisppro-icono-texto {
		position: static;
		width: auto;
		height: auto;
		max-width: 7.5rem;
		clip: auto;
		font-size: 0.85rem;
	}

	.mlm-sisppro-oficina-saludo .mlm-sisppro-icono-texto small {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect( 0, 0, 0, 0 );
	}
}

@media ( max-width: 420px ) {
	.mlm-sisppro-oficina-saludo .mlm-sisppro-icono-texto {
		max-width: 4.6rem;
		font-size: 0.78rem;
	}

	.mlm-sisppro-oficina-saludo {
		gap: 0.3rem;
	}
}

.mlm-sisppro-oficina-nombre {
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
