/**
 * Zippyn — UI clarity (home only).
 * Scope: body.zp-ui-home-clarity; bottom nav: body.yolaburo-phase1.
 * Mobile-first: menos ruido, más aire, jerarquía clara.
 */

/* —— Scoped tokens (sitewide) —— */
body.zp-ui-home-clarity {
	--zp-cl-bg: #fafbfc;
	--zp-cl-surface: #ffffff;
	--zp-cl-line: #e8ecf1;
	--zp-cl-ink: #0f172a;
	--zp-cl-muted: #64748b;
	--zp-cl-cta: #1d4ed8;
	--zp-cl-section-gap: 2rem;
	--zp-cl-block-gap: 1.5rem;
}

body.zp-ui-home-clarity .zp-home--py,
body.zp-ui-home-clarity .zp-home--2026 {
	overflow-x: hidden;
	background: var(--zp-cl-surface);
}

/* —— 1) Less visual noise —— */
body.zp-ui-home-clarity .zp-header--py,
body.zp-ui-home-clarity .zp-header--nav.zp-header--2026 {
	box-shadow: none;
	border-bottom: 1px solid var(--zp-cl-line);
}

body.zp-ui-home-clarity .zp-hero--py {
	background: var(--zp-cl-bg);
	padding: 2rem 0 1.75rem;
}

body.zp-ui-home-clarity .zp-hero__title--py {
	margin-bottom: 0.5rem;
}

body.zp-ui-home-clarity .zp-hero__lead--py {
	color: var(--zp-cl-muted);
	margin-bottom: 1.25rem;
	font-size: 0.95rem;
	line-height: 1.45;
}

body.zp-ui-home-clarity .zp-search-panel--py {
	background: var(--zp-cl-surface);
	border: 1px solid rgba(226, 232, 240, 0.98);
	border-radius: 16px;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.92) inset,
		0 0 0 1px rgba(37, 99, 235, 0.07),
		0 4px 10px rgba(15, 23, 42, 0.05),
		0 14px 38px rgba(37, 99, 235, 0.11),
		0 28px 56px rgba(15, 23, 42, 0.09);
	padding: 0.75rem 1rem;
	position: relative;
	z-index: 2;
}

body.zp-ui-home-clarity .zp-btn--primary,
body.zp-ui-home-clarity .zp-btn--search-py {
	box-shadow: none;
}

body.zp-ui-home-clarity .zp-customer-cta__card--py {
	box-shadow: none;
	border: 1px solid var(--zp-cl-line);
	background: var(--zp-cl-surface);
}

body.zp-ui-home-clarity .zp-macro-card {
	box-shadow: none;
	border: 1px solid var(--zp-cl-line);
	background: var(--zp-cl-surface);
}

body.zp-ui-home-clarity .zp-macro-card:hover {
	box-shadow: none;
	border-color: #cbd5e1;
}

body.zp-ui-home-clarity .zp-ai-home__input {
	box-shadow: none;
	border-width: 1px;
	border-color: var(--zp-cl-line);
}

body.zp-ui-home-clarity .zp-ai-home__input:focus {
	box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.2);
}

body.zp-ui-home-clarity .zp-results-unified__strip-link {
	background: var(--zp-cl-surface);
	box-shadow: none;
	border: 1px solid var(--zp-cl-line);
}

body.zp-ui-home-clarity .zp-results-unified__strip-link:hover {
	box-shadow: none;
	border-color: #cbd5e1;
}

body.zp-ui-home-clarity .zp-ai-home__card {
	box-shadow: none;
	border: 1px solid var(--zp-cl-line);
	background: var(--zp-cl-surface);
}

body.zp-ui-home-clarity .zp-trust-bar {
	background: var(--zp-cl-bg);
	border-top: 1px solid var(--zp-cl-line);
}

/* Decorative hero map / pins: hide on small viewports to reduce clutter */
@media (max-width: 720px) {
	body.zp-ui-home-clarity .zp-hero__mapviz,
	body.zp-ui-home-clarity .zp-pin,
	body.zp-ui-home-clarity .zp-hero__orbit {
		display: none !important;
	}
}

/* —— 2) Spacing: sections & lists —— */
body.zp-ui-home-clarity .zp-container {
	padding-left: max(16px, env(safe-area-inset-left));
	padding-right: max(16px, env(safe-area-inset-right));
}

body.zp-ui-home-clarity .zp-macro-block {
	margin-top: var(--zp-cl-section-gap);
}

body.zp-ui-home-clarity .zp-section-head--macroblock {
	margin-bottom: 0.75rem;
}

body.zp-ui-home-clarity .zp-ai-home {
	margin-bottom: var(--zp-cl-block-gap);
}

body.zp-ui-home-clarity .zp-results-unified--split {
	gap: var(--zp-cl-block-gap);
}

body.zp-ui-home-clarity .zp-results-unified__header {
	margin-top: 0.5rem;
	margin-bottom: 1rem;
}

body.zp-ui-home-clarity .zp-ai-home__list {
	gap: 0.75rem;
	margin-top: 0.75rem;
}

body.zp-ui-home-clarity .zp-customer-cta--py {
	margin-top: 1.25rem;
}

body.zp-ui-home-clarity .zp-reviews {
	margin-top: var(--zp-cl-section-gap);
}

/* —— 3) Macro strip "Explorá por categorías": tarjetas cuadradas, texto completo (no pastillas) —— */
body.zp-ui-home-clarity .zp-section.zp-macro-strip .zp-macro-carousel {
	gap: 0.5rem;
	padding: 0.15rem 0 0.35rem;
	margin: 0 -2px;
	scroll-padding-inline: 4px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

body.zp-ui-home-clarity .zp-section.zp-macro-strip .zp-macro-carousel::-webkit-scrollbar {
	display: block;
	height: 6px;
}

body.zp-ui-home-clarity .zp-section.zp-macro-strip .zp-macro-card {
	flex: 0 0 auto;
	width: min(118px, 35vw);
	min-height: 0;
	box-sizing: border-box;
	padding: 0.5rem 0.45rem 0.45rem;
	border-radius: 12px;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 0.28rem;
	scroll-snap-align: start;
	text-align: center;
	background: var(--zp-cl-surface, #fff);
	border: 1px solid var(--zp-cl-line, #e8ecf1);
	box-shadow: var(--zp-card-elev-shadow, 0 2px 10px rgba(15, 23, 42, 0.04));
}

body.zp-ui-home-clarity .zp-section.zp-macro-strip .zp-macro-card__icon {
	font-size: 1.4rem;
	line-height: 1;
	width: 1.85rem;
	height: 1.85rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.zp-ui-home-clarity .zp-section.zp-macro-strip .zp-macro-card__title {
	width: 100%;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.24;
	letter-spacing: -0.01em;
	white-space: normal;
	text-align: center;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	word-break: break-word;
	overflow-wrap: anywhere;
	max-height: none;
	min-height: 0;
}

body.zp-ui-home-clarity .zp-section.zp-macro-strip .zp-macro-card__desc {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	width: 100%;
	text-align: center;
	font-size: 0.8125rem;
	line-height: 1.3;
	color: var(--zp-cl-muted, #64748b);
	max-height: none;
	min-height: 0;
}

body.zp-ui-home-clarity .zp-chip-row {
	gap: 0.5rem;
	margin-bottom: 0.25rem;
}

body.zp-ui-home-clarity .zp-chip {
	padding: 0.4rem 0.75rem;
	font-size: 0.8125rem;
	background: var(--zp-cl-bg);
	border-color: var(--zp-cl-line);
}

body.zp-ui-home-clarity .zp-macro-block .zp-chip.zp-macro-cat-chip {
	background: linear-gradient(180deg, rgba(239, 246, 255, 0.95) 0%, rgba(226, 232, 246, 0.65) 100%);
	border-color: rgba(148, 163, 184, 0.45);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.85);
	font-size: 0.772rem;
}

body.zp-ui-home-clarity .zp-macro-block .zp-chip.zp-macro-cat-chip.zp-chip--active {
	background: linear-gradient(180deg, #e8ecff 0%, #d8e0ff 100%);
	border-color: rgba(29, 78, 216, 0.4);
	color: var(--zp-cl-cta, #1d4ed8);
}

body.zp-ui-home-clarity .zp-macro-block .zp-chip-row--macro-subs {
	padding: 0.35rem 0.4rem 0.5rem;
	border-radius: 12px;
	background: rgba(250, 251, 252, 0.9);
}

body.zp-ui-home-clarity .zp-ai-home__results .zp-ai-home__card {
	padding: 1rem 1.05rem;
	border-radius: 16px;
	gap: 1rem;
}

body.zp-ui-home-clarity .zp-ai-home__results .zp-ai-home__media {
	width: 5.75rem;
	height: 5.75rem;
	flex: 0 0 5.75rem;
	border-radius: 13px;
}

body.zp-ui-home-clarity .zp-results-unified__intro-title {
	margin: 0 0 0.65rem;
	font-size: clamp(1.15rem, 3.5vw, 1.4rem);
	font-weight: 800;
	color: #0f172a;
	line-height: 1.2;
}

/* —— 4) Service / result cards: denser row, one CTA —— */
body.zp-ui-home-clarity .zp-ai-home__card {
	flex-direction: row;
	align-items: flex-start;
	padding: 0.65rem 0.75rem;
	border-radius: 12px;
	gap: 0.75rem;
}

body.zp-ui-home-clarity .zp-ai-home__media {
	width: 4.5rem;
	height: 4.5rem;
	flex: 0 0 4.5rem;
	border-radius: 10px;
}

body.zp-ui-home-clarity .zp-ai-home__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.zp-ui-home-clarity .zp-ai-home__body {
	gap: 0.25rem;
}

body.zp-ui-home-clarity .zp-ai-home__card-title {
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.25;
}

body.zp-ui-home-clarity .zp-ai-home__results .zp-ai-home__card-title {
	font-size: 1.0625rem;
}

body.zp-ui-home-clarity .zp-ai-home__rating-row {
	font-size: 0.75rem;
	color: var(--zp-cl-muted);
	line-height: 1.35;
}

body.zp-ui-home-clarity .zp-ai-home__reviews {
	display: none;
}

body.zp-ui-home-clarity .zp-ai-home__cat {
	font-size: 0.875rem;
	font-weight: 600;
	padding: 0.3rem 0.6rem;
	background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(239, 246, 255, 0.92) 100%);
	border: 1px solid rgba(148, 163, 184, 0.35);
	color: #334155;
	border-radius: 999px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.zp-ui-home-clarity .zp-ai-home__actions {
	margin-top: 0.5rem;
	flex-wrap: wrap;
	gap: 0.5rem;
}

body.zp-ui-home-clarity .zp-ai-home__cta--profile {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 42%;
	min-height: 2.75rem;
	padding: 0.5rem 0.75rem;
	font-size: 0.9375rem;
	font-weight: 700;
	border-radius: 10px;
	text-decoration: none;
	border: 1px solid rgba(37, 99, 235, 0.35);
	color: #1d4ed8;
	background: rgba(37, 99, 235, 0.06);
}

body.zp-ui-home-clarity .zp-ai-home__cta--wa {
	flex: 1 1 42%;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.5rem 0.75rem;
	font-size: 0.9375rem;
	border-radius: 10px;
}

body.zp-ui-home-clarity .zp-ai-home__cta--profile:hover {
	background: rgba(37, 99, 235, 0.1);
	border-color: rgba(37, 99, 235, 0.5);
	color: #1e40af;
}

body.zp-ui-home-clarity .zp-ai-home__pro {
	font-size: 0.5625rem;
	padding: 0.1rem 0.35rem;
	border-radius: 4px;
}

/* Recommended strip cards */
body.zp-ui-home-clarity .zp-results-unified__strip-card {
	flex: 0 0 min(220px, 78vw);
	max-width: 240px;
}

body.zp-ui-home-clarity .zp-results-unified__strip-link {
	min-height: 0;
	padding: 0.5rem 0.65rem;
	border-radius: 12px;
}

body.zp-ui-home-clarity .zp-results-unified__strip-media {
	flex-basis: 48px;
	width: 48px;
	height: 48px;
	border-radius: 10px;
}

/* Carousel place cards in macro blocks */
body.zp-ui-home-clarity .zp-service-card--carousel {
	width: min(202px, 71.8vw);
	max-width: 221px;
}

body.zp-ui-home-clarity .zp-service-card--carousel .zp-card-img {
	min-height: 92px;
	width: 100%;
	display: block;
	box-sizing: border-box;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

body.zp-ui-home-clarity .zp-service-card__cat {
	font-size: 0.831rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
	display: inline-block;
	max-width: 100%;
	padding: 0.3rem 0.55rem;
	color: #334155;
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(239, 246, 255, 0.92) 100%);
	border: 1px solid rgba(148, 163, 184, 0.35);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	overflow-wrap: anywhere;
}

/* —— 5) Hierarchy: headings & hints —— */
body.zp-ui-home-clarity .zp-section-title--macroblock {
	margin: 0;
	font-size: clamp(1.44rem, calc(3.36vw + 0.72rem), 2.268rem);
	font-weight: 800;
	letter-spacing: -0.024em;
	line-height: 1.16;
	color: #0f172a;
}

body.zp-ui-home-clarity .zp-section-title--macro {
	margin: 0;
	font-size: clamp(1.375rem, 3.2vw + 0.65rem, 2.1rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.18;
	color: #0f172a;
}

body.zp-ui-home-clarity .zp-macro-block__emoji {
	font-size: 1.96rem;
	line-height: 1;
}

body.zp-ui-home-clarity .zp-results-unified__title {
	font-size: 1rem;
}

body.zp-ui-home-clarity .zp-results-unified__sub {
	font-size: 0.875rem;
	color: var(--zp-cl-muted);
}

body.zp-ui-home-clarity .zp-results-unified__block-heading {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--zp-cl-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 0.5rem;
}

body.zp-ui-home-clarity .zp-card-rating__empty-label,
body.zp-ui-home-clarity .zp-card-rating__value--empty {
	font-size: 0.6875rem;
	font-weight: 500;
}

body.zp-ui-home-clarity .zp-service-card--carousel .zp-card-rating__empty-label,
body.zp-ui-home-clarity .zp-service-card--carousel .zp-card-rating__value--empty {
	font-size: 0.625rem;
}

body.zp-ui-home-clarity .zp-ai-home__hint {
	font-size: 0.75rem;
	margin-top: 0.5rem;
}

body.zp-ui-home-clarity .zp-ai-home__heading {
	font-size: 1.125rem;
	margin-bottom: 0.5rem;
}

/* —— 6) ~390px: first screen & no overflow —— */
@media (max-width: 390px) {
	body.zp-ui-home-clarity {
		--zp-cl-section-gap: 1.5rem;
		--zp-cl-block-gap: 1.125rem;
	}

	body.zp-ui-home-clarity .zp-hero--py {
		padding: 1.25rem 0 1.25rem;
	}

	body.zp-ui-home-clarity .zp-hero__title--py {
		font-size: 1.375rem;
		line-height: 1.15;
	}

	body.zp-ui-home-clarity .zp-hero__lead--py {
		font-size: 0.875rem;
		margin-bottom: 1rem;
	}

	body.zp-ui-home-clarity .zp-search-panel--py {
		padding: 0.65rem 0.75rem;
		border-radius: 12px;
	}

	body.zp-ui-home-clarity .zp-section.zp-macro-strip .zp-macro-card {
		padding: 0.48rem 0.42rem 0.42rem;
		width: min(116px, 34vw);
	}

	body.zp-ui-home-clarity .zp-section.zp-macro-strip .zp-macro-card__title {
		font-size: 0.9375rem;
		line-height: 1.24;
	}

	body.zp-ui-home-clarity .zp-ai-home__media {
		width: 4rem;
		height: 4rem;
		flex: 0 0 4rem;
	}
}

/* Override phase1 column card breakpoint: keep row layout for shorter cards */
@media (max-width: 520px) {
	body.zp-ui-home-clarity .zp-ai-home__card {
		flex-direction: row;
		align-items: flex-start;
	}

	body.zp-ui-home-clarity .zp-ai-home__media {
		height: 4.5rem;
	}
}

/* —— Mobile bottom nav (all pages, yolaburo-phase1): calmer, fixed feel —— */
@media (max-width: 991px) {
	body.yolaburo-phase1 #menu-footer {
		background: #fff !important;
		background-image: none !important;
		border-top: 1px solid var(--zp-cl-line, #e8ecf1);
		box-shadow: 0 -1px 0 rgba(15, 23, 42, 0.06);
	}

	body.yolaburo-phase1 #menu-footer ul {
		display: flex;
		align-items: stretch;
		justify-content: space-between;
		margin: 0;
		padding: 0.35rem 0 max(0.35rem, env(safe-area-inset-bottom));
	}

	body.yolaburo-phase1 #menu-footer ul li {
		width: 25% !important;
		float: none;
		display: flex;
		justify-content: center;
	}

	body.yolaburo-phase1 #menu-footer ul li a {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 0.2rem;
		width: 100%;
		min-height: 3.25rem;
		padding: 0.25rem 0.15rem;
		font-size: 0.625rem;
		font-weight: 600;
		line-height: 1.15;
		text-align: center;
		color: #475569 !important;
		background: transparent !important;
		border-radius: 0;
	}

	body.yolaburo-phase1 #menu-footer ul li a.active,
	body.yolaburo-phase1 #menu-footer ul li a:hover {
		color: var(--zp-cl-cta, #1d4ed8) !important;
		background: transparent !important;
	}

	body.yolaburo-phase1 #menu-footer ul li a i.fa {
		font-size: 1.375rem !important;
		line-height: 1 !important;
		width: 1.375rem;
		height: 1.375rem;
		display: flex;
		align-items: center;
		justify-content: center;
	}
}

/* Carousel WhatsApp: match flatter home aesthetic */
body.zp-ui-home-clarity .zp-home--py .zp-btn--wa.openWhatsapp {
	box-shadow: none !important;
	border: 1px solid rgba(255, 255, 255, 0.35);
}

body.zp-ui-home-clarity .zp-home--py .zp-btn--wa.openWhatsapp:hover {
	box-shadow: none !important;
}

body.zp-ui-home-clarity .zp-service-card--carousel .zp-service-card__cta-row {
	gap: 0.46rem;
	padding: 0 0.6rem 0.6rem;
}

body.zp-ui-home-clarity .zp-service-card--carousel .zp-service-card__cta-row .zp-btn--wa.openWhatsapp {
	padding: 0.51rem 0.69rem !important;
	min-height: 2.53rem;
	font-size: 0.86rem !important;
}

body.zp-ui-home-clarity .zp-service-card--carousel .zp-btn--carousel-profile {
	font-size: 0.86rem !important;
	padding: 0.51rem 0.69rem !important;
	min-height: 2.62rem;
}

@media (max-width: 991px) {
	body.zp-ui-home-clarity .zp-ai-home__cta--wa,
	body.zp-ui-home-clarity .zp-ai-home__cta--profile {
		font-size: 1rem !important;
		min-height: 3rem;
		padding: 0.65rem 0.9rem !important;
	}

	body.zp-ui-home-clarity .zp-service-card--carousel .zp-service-card__cta-row .zp-btn--wa.openWhatsapp {
		font-size: 0.92rem !important;
		min-height: 2.76rem;
		padding: 0.6rem 0.78rem !important;
	}

	body.zp-ui-home-clarity .zp-service-card--carousel .zp-btn--carousel-profile {
		font-size: 0.92rem !important;
		min-height: 2.76rem;
		padding: 0.6rem 0.78rem !important;
	}

	body.zp-ui-home-clarity .zp-ai-home__rating-row {
		font-size: 0.8125rem;
	}
}
