/* Portada de Kifcat. Todo va scopeado bajo .kif-home para no filtrarse
   al header, al footer ni al resto de Divi. */

.kif-home {
	--kif-cream: #FAF6EC;
	--kif-cream-2: #F3ECDB;
	--kif-azul: #072D59;
	--kif-terracotta: #D9642E;
	--kif-terracotta-dark: #B94F20;
	--kif-ink: #2A2A26;
	--kif-muted: #6B6A62;
	--kif-line: #E4DCC7;
	--kif-radius: 14px;

	background: var(--kif-cream);
	color: var(--kif-ink);
	font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
	line-height: 1.5;
}

.kif-home img {
	max-width: 100%;
	display: block;
}

.kif-home a {
	text-decoration: none;
	color: inherit;
}

.kif-wrap {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Hero */

.kif-hero {
	background:
		linear-gradient(90deg, rgba(7, 45, 89, .82) 0%, rgba(7, 45, 89, .55) 45%, rgba(7, 45, 89, .15) 75%),
		var(--kif-hero-img) center 30% / cover no-repeat;
	padding: 90px 0;
	min-height: 460px;
	display: flex;
	align-items: center;
}

/* .kif-wrap es flex item acá: sin width:100% se encoge al ancho de su contenido
   y el `margin: 0 auto` lo centra en el hero, ignorando el max-width de 1140. */
.kif-hero .kif-wrap {
	width: 100%;
}

/* La columna se corta antes del rostro, que empieza cerca del 56% de la foto. */
.kif-hero-content {
	max-width: 520px;
}

.kif-eyebrow {
	display: inline-block;
	background: var(--kif-terracotta);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 18px;
}

.kif-home h1 {
	font-size: 44px;
	line-height: 1.1;
	color: #fff;
	font-weight: 800;
	margin-bottom: 18px;
	letter-spacing: -.01em;
}

.kif-sub {
	font-size: 17px;
	color: #EAF1EB;
	max-width: 480px;
	margin-bottom: 28px;
}

.kif-hero-ctas {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

/* Todos los botones van prefijados con .kif-home: el reset `.kif-home a` de más
   arriba es (0,1,1) y le ganaría a un `.kif-btn-*` suelto, dejando el texto con
   la tinta heredada en vez de blanco. */
.kif-home .kif-btn-primary {
	background: var(--kif-terracotta);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	padding: 14px 26px;
	border-radius: 999px;
	display: inline-block;
}

.kif-home .kif-btn-primary:hover {
	background: var(--kif-terracotta-dark);
	color: #fff;
}

/* La placa azul no es decorativa: sin ella el texto blanco cae sobre las zonas
   claras de la foto y el contraste se desploma. Sobre el azul sólido del bloque
   de celular es invisible, así que ahí sigue leyéndose como botón de contorno. */
.kif-home .kif-btn-secondary {
	background: rgba(7, 45, 89, .85);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	padding: 14px 26px;
	border-radius: 999px;
	border: 1.5px solid #fff;
	display: inline-block;
}

.kif-home .kif-btn-secondary:hover {
	background: var(--kif-azul);
	color: #fff;
}

.kif-hero-trust {
	display: flex;
	gap: 22px;
	margin-top: 32px;
	flex-wrap: wrap;
}

.kif-hero-trust div {
	font-size: 13px;
	color: #fff;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 6px;
}

/* Encabezados de sección */

.kif-section-head {
	margin-bottom: 28px;
}

.kif-section-head h2 {
	font-size: 26px;
	color: var(--kif-azul);
	font-weight: 800;
}

.kif-section-head p {
	color: var(--kif-muted);
	font-size: 15px;
	margin-top: 6px;
}

/* Categorías */

.kif-categories {
	padding: 56px 0 8px;
}

.kif-cat-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.kif-cat-card {
	background: #fff;
	border: 1px solid var(--kif-line);
	border-radius: var(--kif-radius);
	padding: 28px 22px;
	text-align: center;
	transition: transform .15s;
}

.kif-cat-card:hover {
	transform: translateY(-3px);
}

.kif-cat-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--kif-cream-2);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 14px;
	font-size: 24px;
}

.kif-cat-card h3 {
	font-size: 17px;
	color: var(--kif-azul);
	margin-bottom: 6px;
}

.kif-cat-card p {
	font-size: 13px;
	color: var(--kif-muted);
}

/* Productos */

.kif-products {
	padding: 56px 0;
}

.kif-prod-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.kif-prod-card {
	background: #fff;
	border: 1px solid var(--kif-line);
	border-radius: var(--kif-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.kif-prod-img {
	height: 160px;
	background: var(--kif-cream-2);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

.kif-prod-img img {
	height: 100%;
	width: 100%;
	object-fit: contain;
	padding: 10px;
}

.kif-badge-eco {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--kif-azul);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 4px 9px;
	border-radius: 999px;
	letter-spacing: .02em;
}

.kif-prod-body {
	padding: 16px 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.kif-prod-body h4 {
	font-size: 14.5px;
	color: var(--kif-ink);
	font-weight: 700;
	line-height: 1.3;
	min-height: 38px;
}

.kif-prod-price,
.kif-prod-price .amount {
	font-size: 18px;
	color: var(--kif-terracotta-dark);
	font-weight: 800;
}

.kif-prod-price del {
	opacity: .6;
	font-weight: 600;
	font-size: 14px;
}

.kif-home .kif-prod-add {
	margin-top: auto;
	background: var(--kif-azul);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	padding: 10px;
	border-radius: 999px;
	text-align: center;
	border: 0;
	display: block;
}

.kif-home .kif-prod-add:hover {
	background: var(--kif-terracotta);
	color: #fff;
}

/* Beneficios */

.kif-benefits {
	background: var(--kif-azul);
	padding: 52px 0;
	margin-top: 24px;
}

.kif-benefits .kif-wrap {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.kif-benefit {
	color: var(--kif-cream);
	text-align: center;
}

.kif-b-icon {
	font-size: 26px;
	margin-bottom: 10px;
}

.kif-benefit h4 {
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 6px;
	color: var(--kif-cream);
}

.kif-benefit p {
	font-size: 12.5px;
	color: #C2D6EC;
}

/* Oferta destacada */

.kif-promo {
	padding: 56px 0;
}

.kif-promo-card {
	background: var(--kif-terracotta);
	border-radius: 20px;
	color: #fff;
	display: grid;
	grid-template-columns: 1.3fr .7fr;
	align-items: center;
	padding: 40px 44px;
	gap: 24px;
}

.kif-promo-card h3 {
	font-size: 26px;
	font-weight: 800;
	margin-bottom: 10px;
	color: #fff;
}

.kif-promo-card p {
	font-size: 14.5px;
	opacity: .95;
	margin-bottom: 18px;
	max-width: 420px;
}

.kif-promo-card .kif-btn-primary {
	background: var(--kif-azul);
}

.kif-promo-card .kif-btn-primary:hover {
	background: #04203F;
}

.kif-promo-price {
	background: rgba(255, 255, 255, .15);
	border-radius: 16px;
	padding: 22px;
	text-align: center;
}

.kif-promo-amount,
.kif-promo-amount .amount {
	font-size: 32px;
	font-weight: 800;
	color: #fff;
}

.kif-promo-amount del,
.kif-promo-amount del .amount {
	font-size: 14px;
	font-weight: 600;
	opacity: .75;
	display: block;
}

.kif-promo-unit {
	font-size: 12px;
	opacity: .85;
}

/* WhatsApp flotante */

.kif-home .kif-wa-float {
	position: fixed;
	bottom: 22px;
	right: 22px;
	background: #25D366;
	color: #fff;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
	z-index: 90;
}

@media (max-width: 860px) {
	.kif-cat-grid,
	.kif-prod-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.kif-benefits .kif-wrap {
		grid-template-columns: repeat(2, 1fr);
	}

	.kif-promo-card {
		grid-template-columns: 1fr;
		padding: 32px 26px;
	}

	.kif-home h1 {
		font-size: 32px;
	}

	.kif-hero {
		padding: 64px 0;
		/* Corre el recorte hacia el sujeto, que vive entre el 50% y el 80% de la foto. */
		background-position: 0 0, 68% 30%;
	}
}

/* En celular no hay ancho para poner el texto al lado de la mujer y el gato: el
   recorte de `cover` se come al sujeto. Se separan en dos bloques, la foto
   completa arriba y el texto sobre azul sólido abajo. */
@media (max-width: 600px) {
	.kif-hero {
		display: block;
		align-items: initial;
		min-height: 0;
		padding: 0 0 44px;
		background: var(--kif-azul);
	}

	.kif-hero::before {
		content: "";
		display: block;
		height: 210px;
		margin-bottom: 26px;
		background:
			linear-gradient(180deg, rgba(7, 45, 89, 0) 58%, rgba(7, 45, 89, .92) 100%),
			var(--kif-hero-img) 70% center / cover no-repeat;
	}

	.kif-sub {
		max-width: none;
	}
}
