/* ----------------------------------------------------------------
	Portada (home). Se carga solo en el inicio, después de nyj.css,
	que trae la fuente, los colores, los botones y el cierre.
-----------------------------------------------------------------*/

/* Portada: texto a la izquierda, foto con corte diagonal a la derecha (como el brochure) */

.nyj-hero {
	position: relative;
	overflow: hidden;
	padding: 80px 0 152px;
	background-color: var(--nyj-ink);
	color: #fff;
}

.nyj-hero__media {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 56%;
}

.nyj-hero__media::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: var(--nyj-orange);
	clip-path: polygon(13.5% 0, 16% 0, -2% 100%, -4.5% 100%);
}

.nyj-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 62% 50%;
	clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.nyj-hero__copy {
	position: relative;
	max-width: 33rem;
}

.nyj-hero__title {
	margin-bottom: 1.25rem;
	color: #fff !important;
	font-size: clamp(2.25rem, 1.2rem + 3vw, 3.5rem);
	font-weight: 800;
	font-stretch: 108%;
	line-height: 1.02;
	text-transform: uppercase;
}

@media (min-width: 576px) {
	.nyj-hero__title span {
		display: inline-block;
		white-space: nowrap;
	}
}

.nyj-hero__lead {
	max-width: 30rem;
	margin-bottom: 2rem !important;
	color: var(--nyj-on-ink);
	font-size: 1.1875rem;
	line-height: 1.55;
}

@media (prefers-reduced-motion: no-preference) {
	.nyj-hero__copy > * {
		animation: nyj-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
	}

	.nyj-hero__copy > :nth-child(2) {
		animation-delay: 0.06s;
	}

	.nyj-hero__copy > :nth-child(3) {
		animation-delay: 0.12s;
	}

	.nyj-hero__copy > :nth-child(4) {
		animation-delay: 0.18s;
	}
}

/* Servicios: el panel monta sobre el borde inferior de la portada */

.nyj-servicios {
	position: relative;
	margin-top: -88px;
}

.nyj-servicios__panel {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-radius: var(--nyj-radius);
	background-color: #fff;
	box-shadow: 0 24px 48px -24px rgba(3, 28, 60, 0.35), 0 2px 6px rgba(3, 28, 60, 0.06);
}

.nyj-servicio {
	display: flex;
	gap: 1rem;
	padding: 1.75rem;
}

.nyj-servicio + .nyj-servicio {
	border-left: 1px solid var(--nyj-line);
}

.nyj-servicio__icono {
	display: grid;
	flex: none;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: var(--nyj-radius-btn);
	background-color: var(--nyj-orange-tint);
	color: var(--nyj-orange-text);
	font-size: 1.5rem;
	line-height: 1;
}

.nyj-servicio__titulo {
	margin-bottom: 0.25rem;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
}

.nyj-servicio__texto {
	color: var(--nyj-muted);
	font-size: 0.9375rem;
	line-height: 1.5;
}

/* Productos: vitrina por categoría */

.nyj-productos {
	padding: 96px 0 72px;
	scroll-margin-top: 80px;
}

.nyj-categoria {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 3.4fr);
	gap: 2rem;
	padding: 2.5rem 0;
	border-top: 1px solid var(--nyj-line);
}

.nyj-categoria__intro h3 {
	margin-bottom: 0.5rem;
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1.2;
}

.nyj-categoria__intro p {
	margin-bottom: 1rem !important;
	color: var(--nyj-muted);
	line-height: 1.55;
}

.nyj-categoria__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.nyj-producto {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--nyj-line);
	border-radius: var(--nyj-radius);
	background-color: #fff;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.nyj-producto:hover {
	box-shadow: 0 18px 36px -20px rgba(3, 28, 60, 0.35);
	transform: translateY(-2px);
}

.nyj-producto__img {
	aspect-ratio: 1;
	background-color: var(--nyj-paper);
}

.nyj-producto__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.4s ease;
}

.nyj-producto:hover .nyj-producto__img img {
	transform: scale(1.04);
}

.nyj-producto__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem 1rem 1.125rem;
}

.nyj-producto__nombre {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.25;
}

.nyj .nyj-producto__nombre a {
	color: inherit;
	text-decoration: none;
}

.nyj .nyj-producto__nombre a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.nyj-producto__acciones {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.625rem;
	margin-top: auto;
	padding-top: 0.5rem;
	text-align: center;
}

.nyj .nyj-producto__ficha {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	color: var(--nyj-muted);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.nyj .nyj-producto__ficha:hover {
	color: var(--nyj-ink);
}

/* Por qué elegirnos */

.nyj-razones {
	padding: 88px 0;
	background-color: var(--nyj-mist);
}

.nyj-razones__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 4rem;
	align-items: center;
}

.nyj-razones__foto {
	margin: 0;
}

.nyj-razones__foto img {
	width: 100%;
	height: auto;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	border-radius: var(--nyj-radius);
}

.nyj-razones h2 {
	margin-bottom: 2rem;
	font-size: clamp(1.875rem, 1.3rem + 1.8vw, 2.75rem);
	font-weight: 800;
	font-stretch: 108%;
	line-height: 1.1;
}

.nyj-razones__lista {
	display: grid;
	gap: 1.5rem;
}

.nyj-razones__lista li {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.nyj-razones__lista i {
	margin-top: 0.1rem;
	color: var(--nyj-orange-text);
	font-size: 1.5rem;
	line-height: 1;
}

.nyj-razones__lista h3 {
	margin-bottom: 0.2rem;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
}

.nyj-razones__lista p {
	color: var(--nyj-muted);
	line-height: 1.5;
}

/* Tablet */

@media (max-width: 1399.98px) {
	.nyj-hero__media {
		width: 50%;
	}
}

@media (max-width: 1199.98px) {
	.nyj-categoria {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.5rem;
	}

	.nyj-categoria__intro {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		column-gap: 1.5rem;
		row-gap: 0.25rem;
	}

	.nyj-categoria__intro h3 {
		margin-bottom: 0;
	}

	.nyj-categoria__intro p {
		margin-bottom: 0 !important;
	}
}

@media (max-width: 991.98px) {
	.nyj-hero {
		display: flex;
		flex-direction: column;
		padding: 56px 0 0;
	}

	.nyj-hero__media {
		position: relative;
		order: 2;
		width: 100%;
		height: 300px;
		margin-top: 2.5rem;
	}

	.nyj-hero__media::before {
		display: none;
	}

	.nyj-hero__media img {
		clip-path: none;
	}

	.nyj-servicios {
		margin-top: -48px;
	}

	.nyj-servicios__panel {
		grid-template-columns: minmax(0, 1fr);
	}

	.nyj-servicio {
		padding: 1.25rem 1.5rem;
	}

	.nyj-servicio + .nyj-servicio {
		border-top: 1px solid var(--nyj-line);
		border-left: 0;
	}

	.nyj-productos {
		padding: 72px 0 48px;
	}

	.nyj-razones {
		padding: 64px 0;
	}

	.nyj-razones__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 2.5rem;
	}

	.nyj-razones__foto img {
		aspect-ratio: 16 / 10;
	}
}

/* Celular: los productos se deslizan de lado, como en una vitrina */

@media (max-width: 767.98px) {
	.nyj-hero {
		padding-top: 40px;
	}

	.nyj-hero__lead {
		font-size: 1.0625rem;
	}

	.nyj-hero__media {
		height: 220px;
		margin-top: 2rem;
	}

	.nyj-categoria__grid {
		grid-auto-columns: 64%;
		grid-auto-flow: column;
		grid-template-columns: none;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		padding-bottom: 0.75rem;
	}

	.nyj-producto {
		scroll-snap-align: start;
	}
}
