/* ============================================================================
   Tienda Kubari — plantilla propia (PROTOTIPO 2026-08-25).

   Mismos tokens que la ficha (assets/producto.css). Autónoma: no depende de
   WPBakery, solo del envoltorio de Salient.
   ========================================================================= */

.kub-tienda {
	--k-teal: #00828e;
	--k-teal-hondo: #00636c;
	--k-amarillo: #f9ec67;
	--k-salmon: #eb6669;
	--k-verde: #2f7d52;
	--k-verde-suave: #eaf5ee;
	--k-tinta: oklch(0.19 0.018 205);
	--k-tinta-suave: oklch(0.46 0.014 205);
	--k-papel: oklch(0.99 0.004 205);
	--k-borde: oklch(0.88 0.012 205);
	--k-radio: 16px;
	--k-ancho: 1180px;

	font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--k-tinta);
}

.kub-tienda__ancho {
	width: min(var(--k-ancho), 100% - 2.5rem);
	margin-inline: auto;
}

/* El .container de Salient llega a 2000px: en pantallas grandes la tienda se veía
   a lo ancho de todo. El contenido se ciñe al mismo ancho que el hero. */
.kub-tienda .container.main-content > .row {
	width: min(var(--k-ancho), 100%);
	margin-inline: auto;
	float: none;
}

/* ---------- hero ---------- */

.kub-tienda__hero {
	/* El color va debajo del patrón: si la imagen tarda o falla, el texto blanco
	   sigue teniendo su fondo y no se queda ilegible sobre el blanco de la página. */
	/* Sin velo: apagaba el patrón y lo hacía parecer menos nítido que en el resto del
	   sitio, donde va a pelo. La legibilidad del texto se resuelve abajo con sombra,
	   que no toca el fondo. */
	background-color: var(--k-teal);

	/*
	 * Patrón retirado 2026-08-26 a petición de Daniela: pidió las cabeceras de
	 * Tienda y Nosotros "en color", y con el patrón las dos se veían distintas
	 * entre sí (aquí repetido a 1200px, allí a tamaño completo sin repetir).
	 * La variable --k-patron la sigue calculando la plantilla; si se quiere
	 * recuperar la textura basta con volver a declarar background-image.
	 */
	background-image: none;
	background-position: center;
	color: #fff;
	/* 160px arriba y abajo como el hero original (en móvil bajaba a 15%). El
	   separador curvo se apoya en el borde inferior, de ahí el position: relative. */
	padding: clamp(3.5rem, 11vw, 10rem) 0;
	text-align: center;
	margin-bottom: clamp(2rem, 5vw, 3.5rem);
	position: relative;
	overflow: visible;
}

/* Salient separa el contenido del header con un padding; aquí el hero va pegado,
   como en el resto de páginas del sitio. */
.page-template-tienda .container-wrap {
	padding-top: 0 !important;
}

/*
 * El rótulo va exactamente igual que el de las demás páginas (.kub-rotulo, en
 * assets/tipografia.css): mayúsculas y el mismo cuerpo. Antes era más pequeño y
 * en caja baja, y puestas una al lado de otra Tienda y Nosotros no parecían la
 * misma web. Si se cambia el tamaño allí, cambiarlo también aquí.
 */
.kub-tienda__titulo {
	margin: 0;
	color: #fff;
	/* Sin sombra: estaba para despegar el texto del patrón. Sobre el color plano
	   solo ensucia el blanco y se le nota el relieve. Misma razón en la entradilla. */
	font-size: clamp(2.75rem, 7vw, 5.5rem);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.kub-tienda__entradilla {
	margin: 0.75rem auto 0;
	max-width: 46ch;
	font-size: clamp(1rem, 1.4vw, 1.125rem);
	line-height: 1.5;
}

/* ---------- rejilla de productos ---------- */

.kub-tienda__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: clamp(1rem, 2.5vw, 1.75rem);
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

/* Salient impone viñetas y display:list-item a los li del contenido. */
.kub-tienda__grid > li {
	list-style: none !important;
	display: block !important;
	margin: 0;
	padding: 0;
}

.kub-tienda__grid > li::before,
.kub-tienda__grid > li::marker {
	content: none !important;
}

.kub-tienda__enlace {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1.5px solid var(--k-borde);
	border-radius: var(--k-radio);
	background: var(--k-papel);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: border-color .15s ease, transform .15s ease;
}

.kub-tienda__enlace:hover,
.kub-tienda__enlace:focus-visible {
	border-color: var(--k-teal);
	transform: translateY(-2px);
	text-decoration: none;
	color: inherit;
}

.kub-tienda__imagen {
	display: block;
	background: #fff;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.kub-tienda__imagen img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	margin: 0;
}

.kub-tienda__cuerpo {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px;
	flex: 1 1 auto;
}

.kub-tienda__nombre {
	font-size: 1.1875rem;
	font-weight: 700;
	line-height: 1.25;
}

.kub-tienda__precio {
	margin-top: 6px;
	font-size: 1.0625rem;
	font-weight: 700;
}

/* El "Desde" que antepone el filtro no compite con la cifra. */
.kub-tienda__precio .amount {
	font-weight: 700;
}

.kub-tienda__unidad {
	font-size: 0.875rem;
	color: var(--k-tinta-suave);
}

/* A qué pack corresponde el "Desde": con la foto de una barrita suelta, el
   precio se leía como el de una unidad. */
.kub-tienda__pack {
	margin-top: 2px;
	font-size: 0.875rem;
	line-height: 1.4;
	color: var(--k-tinta-suave);
}

.kub-tienda__cta {
	margin-top: auto;
	padding-top: 14px;
	color: var(--k-teal);
	font-weight: 700;
	font-size: 0.9375rem;
}

.kub-tienda__cta::after {
	content: ' →';
}

.kub-tienda__vacio {
	padding: 2rem 0;
	color: var(--k-tinta-suave);
}

/* ---------- envío ---------- */

.kub-tienda__envio {
	margin-top: clamp(2rem, 5vw, 3rem);
	padding: clamp(1.1rem, 3vw, 1.6rem);
	border-radius: var(--k-radio);
	background: var(--k-verde-suave);
	color: #1d4d33;
}

.kub-tienda__envio-titulo {
	margin: 0 0 10px;
	font-size: 1.0625rem;
	font-weight: 700;
	color: inherit;
}

.kub-tienda__envio-lista {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
}

.kub-tienda__envio-lista > li {
	list-style: none !important;
	display: block !important;
	position: relative;
	margin: 0;
	padding-left: 20px;
	font-size: 0.9375rem;
	line-height: 1.45;
}

/* El código del cupón, resaltado: es lo único de la lista que hay que copiar. */
.kub-tienda__envio-lista strong {
	/* Salient impone `body strong { font-family: "Work Sans" }` y esa fuente no se sirve:
	   el navegador caía a una con serifas y el código desentonaba con la línea. */
	font-family: inherit;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.kub-tienda__envio-lista > li::marker {
	content: none !important;
}

.kub-tienda__envio-lista > li::before {
	content: '';
	position: absolute;
	left: 2px;
	top: 0.52em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--k-verde);
}

.kub-tienda__envio-nota {
	margin: 10px 0 0;
	font-size: 0.8125rem;
	opacity: 0.75;
}

/* ---------- confianza ---------- */

/* El bloque de confianza lo pinta kubari_shop_benefits() con .kubari-benefits,
   cuyo CSS vive en el Customizer. Aquí solo se le da el aire de esta plantilla.
   Retirado de la plantilla el 26-08; la regla se queda por si vuelve. */
.kubari-benefits {
	margin: clamp(2.5rem, 6vw, 4rem) 0 clamp(1rem, 3vw, 2rem);
}

/* ---------- caja de suscripción ---------- */

.kub-suscribete {
	position: relative;
	margin-top: clamp(2rem, 5vw, 3rem);
	/* El aire hasta el footer lo daba el bloque de confianza que iba detrás. Al
	   retirarlo (26-08) la caja quedó pegada al separador curvo, así que ahora se
	   lo pone ella. */
	margin-bottom: clamp(2.5rem, 6vw, 4rem);
	padding: clamp(1.6rem, 4vw, 2.75rem);
	border: 2px solid var(--k-teal);
	border-radius: 26px;
	background: var(--k-amarillo);
	color: var(--k-teal-hondo);
	/* La sombra desplazada que ya usaba la caja original. */
	box-shadow: 10px 10px 0 rgba(0, 130, 142, 0.14);
}

.kub-suscribete__rotulo {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	color: var(--k-teal);
	font-size: 0.9375rem;
	font-weight: 700;
}

.kub-suscribete__rotulo::before {
	content: '';
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eb6669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8l1.1 1L12 21l7.7-7.6 1.1-1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.kub-suscribete__titulo {
	margin: 0 0 14px;
	max-width: 18ch;
	color: var(--k-teal);
	font-size: clamp(1.6rem, 3.4vw, 2.5rem);
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.kub-suscribete__texto {
	margin: 0 0 18px;
	max-width: 52ch;
	font-size: clamp(1rem, 1.3vw, 1.0625rem);
	line-height: 1.55;
}

.kub-suscribete__ventajas {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
}

/* Salient impone viñetas y display:list-item a los li del contenido. */
.kub-suscribete__ventajas > li {
	list-style: none !important;
	display: block !important;
	position: relative;
	margin: 0;
	padding-left: 26px;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.4;
}

.kub-suscribete__ventajas > li::marker {
	content: none !important;
}

.kub-suscribete__ventajas > li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.05em;
	width: 18px;
	height: 18px;
	background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%2300828e'/%3E%3Cpath d='M5.6 10.3l2.8 2.8 6-6.2' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 18px 18px;
}

.kub-suscribete__cta {
	display: inline-block;
	padding: 14px 30px;
	border-radius: 999px;
	background: var(--k-salmon);
	color: #fff !important;
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	transition: transform .15s ease, filter .15s ease;
}

.kub-suscribete__cta:hover,
.kub-suscribete__cta:focus-visible {
	transform: translateY(-2px);
	filter: brightness(1.05);
	color: #fff !important;
	text-decoration: none;
}
