/**
 * Home (front page) — solo escritorio / tablet ancha.
 * El móvil sigue en zp-home-mobile-premium-2026.css (max-width: 991px).
 */

@media (min-width: 992px) {
	body.zp-market-home .zp-home--premium-app {
		background:
			radial-gradient(ellipse 80% 50% at 85% -10%, rgba(37, 99, 235, 0.09) 0%, transparent 55%),
			radial-gradient(ellipse 60% 45% at 5% 30%, rgba(147, 197, 253, 0.2) 0%, transparent 55%),
			linear-gradient(180deg, #ffffff 0%, #f5f8ff 55%, #eef2ff 100%);
		font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	}

	body.zp-market-home .zp-home--premium-app .zp-hero--py {
		padding: 32px 0 28px;
		background: transparent;
	}

	body.zp-market-home .zp-home--premium-app .zp-hero__inner--py {
		max-width: 1100px;
		margin-left: auto;
		margin-right: auto;
		padding-left: 24px;
		padding-right: 24px;
	}

	body.zp-market-home .zp-home--premium-app .zp-hero__title--py {
		font-family: Poppins, Inter, system-ui, sans-serif;
		font-weight: 800;
		font-size: clamp(2rem, 2.2vw + 1.1rem, 2.6rem);
		line-height: 1.14;
		letter-spacing: -0.026em;
		color: var(--zp-prem-text, #0f172a);
		max-width: 22ch;
		margin-bottom: 1.125rem;
		display: block;
		-webkit-line-clamp: unset;
		line-clamp: unset;
		overflow: visible;
	}

	body.zp-market-home .zp-home--premium-app .zp-hero__lead--py {
		font-size: 1.1875rem;
		line-height: 1.52;
		color: #64748b;
		max-width: 48ch;
		margin-bottom: 2rem;
		font-weight: 400;
	}

	/* Barra de búsqueda: layout horizontal */
	body.zp-market-home .zp-home--premium-app .zp-search-panel--py {
		max-width: 960px;
		margin-left: auto;
		margin-right: auto;
		border-radius: 24px;
		padding: 24px 26px 22px;
		border: 1px solid rgba(226, 232, 240, 0.95);
		box-shadow:
			0 1px 0 rgba(255, 255, 255, 0.92) inset,
			0 0 0 1px rgba(37, 99, 235, 0.07),
			0 6px 14px rgba(15, 23, 42, 0.05),
			0 18px 44px rgba(37, 99, 235, 0.11),
			0 36px 72px rgba(15, 23, 42, 0.12);
		background: #fff;
		position: relative;
		z-index: 2;
	}

	body.zp-market-home .zp-home--premium-app .zp-search-bar--py {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 0;
	}

	body.zp-market-home .zp-home--premium-app .zp-search-field--py {
		flex: 1 1 0;
		min-width: 0;
		border-bottom: none !important;
		padding-bottom: 0 !important;
		margin-bottom: 0 !important;
		border-right: 1px solid rgba(226, 232, 240, 0.95);
		padding-right: 14px;
		padding-left: 8px;
	}

	body.zp-market-home .zp-home--premium-app .zp-search-field--py:first-child {
		padding-left: 0;
	}

	body.zp-market-home .zp-home--premium-app .zp-search-field--submit.zp-search-field--py,
	body.zp-market-home .zp-home--premium-app .zp-search-field--py:last-of-type {
		flex: 0 0 auto;
		border-right: none !important;
		padding-right: 0;
		padding-left: 16px;
		min-width: 160px;
	}

	body.zp-market-home .zp-home--premium-app .zp-intent-switch {
		max-width: 560px;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 1.75rem;
		padding: 5px;
		gap: 5px;
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.78);
		-webkit-backdrop-filter: blur(14px) saturate(1.15);
		backdrop-filter: blur(14px) saturate(1.15);
		border: 1px solid rgba(226, 232, 240, 0.95);
		box-shadow:
			0 4px 20px rgba(15, 23, 42, 0.06),
			inset 0 1px 0 rgba(255, 255, 255, 0.9);
	}

	body.zp-market-home .zp-home--premium-app .zp-intent-switch__btn {
		padding: 12px 18px;
		font-size: 0.9375rem;
		font-weight: 600;
		border-radius: 999px;
		transition:
			background 0.28s cubic-bezier(0.22, 1, 0.36, 1),
			color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
			box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
			transform 0.12s ease;
	}

	body.zp-market-home .zp-home--premium-app .zp-intent-switch__btn.is-active {
		background: linear-gradient(165deg, #3b82f6 0%, #2563eb 45%, #1d4ed8 100%);
		color: #fff;
		box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, 0.28),
			inset 0 -1px 0 rgba(15, 23, 42, 0.06),
			0 8px 22px rgba(37, 99, 235, 0.22);
	}

	body.zp-market-home .zp-home--premium-app .zp-intent-switch__btn:not(.is-active) {
		background: rgba(248, 250, 252, 0.95);
		color: #0f172a;
	}

	body.zp-market-home .zp-home--premium-app .zp-intent-switch__btn:active {
		transform: scale(0.99);
	}

	/* Campos: legibles y foco claro */
	body.zp-market-home .zp-home--premium-app .zp-search-field__label {
		font-size: 0.75rem;
		font-weight: 700;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		color: #64748b;
		margin-bottom: 0.4rem;
	}

	body.zp-market-home .zp-home--premium-app .zp-search-field__control {
		min-height: 52px;
		border-radius: 16px;
		border: 1px solid rgba(226, 232, 240, 0.98);
		background: #fff;
		padding: 4px 12px 4px 10px;
		transition: box-shadow 0.2s ease, border-color 0.2s ease;
	}

	body.zp-market-home .zp-home--premium-app .zp-search-field__control:focus-within {
		border-color: rgba(37, 99, 235, 0.45);
		box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
	}

	body.zp-market-home .zp-home--premium-app .zp-search-field__icon {
		color: #2563eb;
		opacity: 0.92;
	}

	body.zp-market-home .zp-home--premium-app.zp-home--py .zp-search-panel--py .chosen-container-single .chosen-single {
		min-height: 48px !important;
		line-height: 48px !important;
		font-size: 1rem !important;
		font-weight: 500 !important;
		color: #0f172a !important;
	}

	body.zp-market-home .zp-home--premium-app.zp-home--py .zp-search-panel--py .chosen-container-single .chosen-default span,
	body.zp-market-home .zp-home--premium-app.zp-home--py .zp-search-panel--py .chosen-container-single .chosen-single span {
		color: #0f172a !important;
	}

	body.zp-market-home .zp-home--premium-app.zp-home--py .zp-search-panel--py #search_address_search.zp-input {
		font-size: 1rem !important;
		line-height: 1.4 !important;
		color: #0f172a !important;
	}

	body.zp-market-home .zp-home--premium-app .zp-location-btn {
		width: 48px;
		height: 48px;
		flex: 0 0 48px;
		border-radius: 14px;
		background: rgba(37, 99, 235, 0.1) !important;
		color: #2563eb !important;
	}

	body.zp-market-home .zp-home--premium-app .zp-search-field--submit.zp-search-field--py {
		display: flex;
		align-items: center;
		justify-content: center;
		min-width: 168px;
		padding-left: 18px;
	}

	body.zp-market-home .zp-home--premium-app.zp-home--py .zp-search-panel--py #zp-classic-search-submit.zp-ai-search__submit.zp-btn {
		min-height: 50px !important;
		padding: 12px 22px !important;
		font-size: 0.9375rem !important;
		font-weight: 700 !important;
		border-radius: 999px !important;
		background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%) !important;
		box-shadow: 0 10px 26px rgba(37, 99, 235, 0.28);
		transition: transform 0.12s ease, box-shadow 0.2s ease;
	}

	body.zp-market-home .zp-home--premium-app.zp-home--py .zp-search-panel--py #zp-classic-search-submit.zp-ai-search__submit.zp-btn:hover {
		box-shadow: 0 12px 32px rgba(37, 99, 235, 0.32);
	}

	body.zp-market-home .zp-home--premium-app.zp-home--py .zp-search-panel--py #zp-classic-search-submit.zp-ai-search__submit.zp-btn:active {
		transform: scale(0.98);
	}

	/* Explorá por categorías — carrusel contenido en escritorio */
	body.zp-market-home .zp-section.zp-macro-strip .zp-macro-carousel {
		max-width: 1100px;
		margin-left: auto;
		margin-right: auto;
		padding-left: 4px;
		padding-right: 4px;
	}

	body.zp-market-home.zp-ui-home-clarity .zp-section.zp-macro-strip .zp-macro-card {
		width: min(132px, 14vw);
		align-items: center;
		text-align: center;
	}

	body.zp-market-home .zp-section-head--macro {
		max-width: 1100px;
		margin-left: auto;
		margin-right: auto;
	}

	/* Categorías: grilla en lugar de scroll horizontal */
	body.zp-market-home .zp-home-cat-shortcuts {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
		gap: 12px 14px;
		overflow: visible;
		padding: 12px 0 20px;
		margin: 8px 0 0;
		max-width: 1100px;
		margin-left: auto;
		margin-right: auto;
		scroll-snap-type: none;
	}

	body.zp-market-home .zp-home-cat-shortcuts__chip {
		min-width: 0;
		max-width: none;
		padding: 14px 12px;
	}

	/* Trust micro strip centrado */
	body.zp-market-home .zp-home-trust-micro {
		justify-content: center;
		flex-wrap: wrap;
		overflow: visible;
		max-width: 1100px;
		margin-left: auto;
		margin-right: auto;
		padding: 10px 8px 18px;
		gap: 10px;
	}

	body.zp-market-home .zp-home-trust-micro__item {
		padding: 8px 14px;
		font-size: 0.8125rem;
		border-radius: 999px;
		background: #fff;
		border: 1px solid rgba(226, 232, 240, 0.95);
		box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
	}

	body.zp-market-home .zp-home-trust-micro__icon {
		width: 28px;
		height: 28px;
		font-size: 0.875rem;
		border-radius: 999px;
	}

	/* Carruseles / bloques: respiración lateral */
	body.zp-market-home .zp-home--premium-app .zp-container {
		padding-left: 24px;
		padding-right: 24px;
	}

	body.zp-market-home .zp-home--premium-app .zp-link-all {
		font-weight: 700;
	}

	body.zp-market-home .zp-home--premium-app .zp-section-head--featured.zp-section-head--rowhead .zp-link-all--section-strip {
		font-weight: 600;
		font-size: 12px;
	}

	body.zp-market-home.zp-ui-home-clarity .zp-section-title--macro,
	body.zp-market-home.zp-ui-home-clarity .zp-section-title--macroblock {
		letter-spacing: -0.02em;
	}
}

@media (min-width: 992px) and (max-width: 1199px) {
	body.zp-market-home .zp-home--premium-app .zp-search-field--py {
		padding-right: 10px;
	}
}

/* ============================================================
 * Home escritorio — ancho completo, sin tocar móvil (≤991px)
 * ============================================================ */
@media (min-width: 992px) {
	/* Header home: ocultar «Explorar» (solo barra desktop) */
	body.home.zp-market-home .zp-header-nav__desktop .zp-nav-link--explore {
		display: none !important;
	}

	/* Contenedor principal: usar casi todo el ancho de pantalla */
	body.home.zp-market-home .zp-container,
	body.home.zp-market-home .zp-header--2026 .zp-container.zp-header-nav {
		max-width: min(1360px, calc(100vw - 48px)) !important;
		width: 100%;
		margin-left: auto;
		margin-right: auto;
		padding-left: 24px !important;
		padding-right: 24px !important;
	}

	/* Secciones app-home: quitar márgenes laterales fijos de móvil */
	body.home.zp-market-home .zp-app-home .zp-home-pro-cta,
	body.home.zp-market-home .zp-app-home .zp-info-what.zp-info-what--platform {
		padding-left: 0 !important;
		padding-right: 0 !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		max-width: none !important;
	}

	body.home.zp-market-home .zp-app-home .zp-info-what.zp-info-what--platform {
		border-radius: 20px !important;
	}

	/* Carruseles PRO / destacados → grilla en escritorio */
	body.home.zp-market-home .zp-section--pro-carousel .zp-carousel,
	body.home.zp-market-home .zp-section--latest-pro .zp-carousel,
	body.home.zp-market-home .zp-app-home-featured .zp-carousel {
		display: grid !important;
		grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
		gap: 20px !important;
		overflow: visible !important;
		padding: 4px 0 12px !important;
		scroll-snap-type: none !important;
	}

	body.home.zp-market-home .zp-section--pro-carousel .zp-service-card--carousel,
	body.home.zp-market-home .zp-section--latest-pro .zp-service-card--carousel,
	body.home.zp-market-home .zp-app-home-featured .zp-service-card--carousel {
		flex: none !important;
		width: auto !important;
		max-width: none !important;
	}

	/* Plan Pro: tarjeta horizontal a ancho del contenedor */
	body.home.zp-market-home .zp-home-pro-cta .zp-info-pro-card {
		flex-direction: row;
		align-items: center;
		gap: 24px;
		padding: 24px 28px;
	}

	body.home.zp-market-home .zp-home-pro-cta .zp-info-pro-card__body {
		flex: 1 1 auto;
		min-width: 0;
	}

	body.home.zp-market-home .zp-home-pro-cta .zp-info-pro-card__benefits {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px 20px;
	}

	body.home.zp-market-home .zp-home-pro-cta .zp-info-pro-card__btn {
		flex: 0 0 auto;
		width: auto;
		min-width: 220px;
		margin: 0;
		align-self: center;
	}

	/* Franja aliados (home): grilla en lugar de scroll estrecho */
	body.home.zp-market-home .zp-home-allies-strip {
		width: 100%;
		box-sizing: border-box;
	}

	body.home.zp-market-home .zp-home-allies-strip__head {
		display: flex;
		flex-wrap: wrap;
		align-items: flex-end;
		justify-content: space-between;
		gap: 16px 24px;
	}

	body.home.zp-market-home .zp-home-allies-strip__track {
		display: grid !important;
		grid-template-columns: repeat(auto-fill, minmax(286px, 1fr)) !important;
		gap: 20px !important;
		overflow: visible !important;
		padding: 8px 0 4px !important;
		scroll-snap-type: none !important;
	}

	body.home.zp-market-home .zp-home-allies-strip .zp-ally-card--mini {
		width: auto !important;
		min-width: 0 !important;
		max-width: none !important;
	}

	/* Bloque aliados completo (#zp-allies-section) */
	body.home.zp-market-home #zp-allies-section .zp-allies__inner,
	body.home.zp-market-home #zp-allies-section .zp-container {
		max-width: min(1360px, calc(100vw - 48px)) !important;
	}

	body.home.zp-market-home #zp-allies-section .zp-allies-track {
		display: grid !important;
		grid-template-columns: repeat(auto-fill, minmax(312px, 1fr)) !important;
		gap: 22px !important;
		overflow: visible !important;
		padding: 12px 0 8px !important;
	}

	body.home.zp-market-home #zp-allies-section .zp-ally-card {
		width: auto !important;
		max-width: none !important;
	}

	/* Marcas que confían — grilla en escritorio */
	body.home.zp-market-home .zp-allied-brands__track,
	body.home.zp-market-home .zp-allied-brands .zp-allies-track.zp-allied-brands__track {
		display: grid !important;
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
		gap: 20px 24px !important;
		overflow: visible !important;
	}

	body.home.zp-market-home .zp-allied-brands__item {
		width: auto !important;
		max-width: none !important;
	}
}

@media (min-width: 992px) and (max-width: 1199px) {
	body.home.zp-market-home .zp-home-pro-cta .zp-info-pro-card__benefits {
		grid-template-columns: 1fr;
	}

	body.home.zp-market-home .zp-home-pro-cta .zp-info-pro-card {
		flex-direction: column;
		align-items: stretch;
	}

	body.home.zp-market-home .zp-home-pro-cta .zp-info-pro-card__btn {
		width: 100%;
		min-width: 0;
	}
}
