/**
 * Estilos específicos del home. Ver template-parts/home/*.php.
 */

/* ---------- Hero ---------- */
/* Fondo con patrón de olas tipo "seigaiha" (círculos concéntricos) igual al
   de Figma, reconstruido en CSS a partir de un SVG de mosaico repetido. */

.ht-hero {
	position: relative;
	background: var(--ht-color-primary);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='32' viewBox='0 0 64 32'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1.5'%3E%3Cpath d='M0 32c0-17.7 14.3-32 32-32s32 14.3 32 32'/%3E%3Cpath d='M-16 32c0-17.7 14.3-32 32-32s32 14.3 32 32'/%3E%3Cpath d='M16 32c0-17.7 14.3-32 32-32s32 14.3 32 32'/%3E%3Cpath d='M48 32c0-17.7 14.3-32 32-32s32 14.3 32 32'/%3E%3C/g%3E%3C/svg%3E");
	overflow: hidden;
	min-height: 524px;
	display: flex;
	align-items: center;
}

.ht-hero__media {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 52.3%;
	clip-path: polygon(18.2% 0, 100% 0, 100% 100%, 0 100%);
}

.ht-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ht-hero__media-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--ht-color-tan-light), var(--ht-color-tan));
}

.ht-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	padding-block: 54px;
}

.ht-hero__info {
	max-width: 50%;
	margin-left: 47px;
	transform: translateY(-5px);
}

.ht-hero__title {
	font-family: var(--ht-font-ui);
	font-size: clamp(2.5rem, 2rem + 2vw, 4rem);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.04em;
	color: var(--ht-white);
	max-width: 600px;
	margin-bottom: 30px;
}

.ht-hero__title-line {
	display: block;
}

.ht-hero__text {
	max-width: 520px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 1rem;
	line-height: 1.38;
	margin-bottom: 30px;
}

.ht-hero__info > .ht-btn {
	position: relative;
	top: 7px;
	min-width: 280px;
	font-family: var(--ht-font-ui);
	font-size: 1rem;
	gap: 14px;
}

.ht-hero__info > .ht-btn svg {
	width: 20px;
	height: 20px;
}

.ht-hero__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: transparent;
	color: var(--ht-white);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: not-allowed;
	opacity: 0.85;
}

.ht-hero__arrow svg {
	width: 22px;
	height: 22px;
}

.ht-hero__arrow--prev {
	left: 16px;
}

.ht-hero__arrow--next {
	right: 16px;
}

@media (max-width: 900px) {
	.ht-hero {
		min-height: 0;
		display: flex;
		flex-direction: column;
	}

	.ht-hero__inner {
		order: 1;
		padding-block: 32px;
	}

	.ht-hero__media {
		order: 2;
		position: static;
		width: 100%;
		height: 220px;
		clip-path: none;
	}

	.ht-hero__info {
		max-width: 100%;
		margin-left: 0;
		transform: none;
	}

	.ht-hero__arrow {
		display: none;
	}
}

/* ---------- Accesos rápidos móvil (Favoritos / Carrito) ---------- */

.ht-mobile-quick-links {
	display: none;
}

@media (max-width: 900px) {
	.ht-mobile-quick-links {
		display: flex;
		gap: 12px;
		padding: 16px var(--ht-gutter-mobile);
		background: var(--ht-color-bg-alt);
	}

	.ht-mobile-quick-links__item {
		flex: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		height: 40px;
		border-radius: var(--ht-radius-pill);
		background: var(--ht-color-surface);
		box-shadow: var(--ht-shadow-soft);
		font-family: var(--ht-font-ui);
		font-weight: 600;
		font-size: 0.8125rem;
		color: var(--ht-color-primary-dark);
	}

	.ht-mobile-quick-links__item svg {
		width: 18px;
		height: 18px;
	}

	.ht-mobile-quick-links__count {
		background: var(--ht-color-accent);
		color: var(--ht-white);
		border-radius: 50%;
		min-width: 18px;
		height: 18px;
		font-size: 0.6875rem;
		display: flex;
		align-items: center;
		justify-content: center;
	}
}

/* ---------- Encabezados de sección ---------- */

.ht-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 32px;
	flex-wrap: wrap;
}

.ht-container--wide > .ht-section-header > .ht-section-title {
	font-family: var(--ht-font-ui);
	font-weight: 700;
	letter-spacing: -0.05em;
}

.ht-container--wide > .ht-section-header > .ht-btn {
	height: 46px;
	padding-inline: 26px;
	font-family: var(--ht-font-ui);
	font-weight: 700;
	font-size: 0.94rem;
}

.ht-featured-products {
	contain: paint;
	background: var(--ht-color-bg-alt);
	border-radius: 0;
	overflow: hidden;
	padding: 64px 56px 67px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ht-featured-products .ht-section-header {
	margin-bottom: 22px;
}

.ht-featured-products .ht-section-title {
	font-family: var(--ht-font-ui);
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.05em;
	margin: 0;
	color: var(--ht-color-primary);
}

.ht-featured-products__catalog-link {
	gap: 12px;
	height: 50px;
	min-width: 200px;
	padding-inline: 22px;
	color: var(--ht-color-text-muted);
	background: rgba(255, 255, 255, 0.55);
	box-shadow: 0 6px 18px rgba(188, 155, 104, 0.12);
}

.ht-featured-products__catalog-link svg {
	width: 18px;
	height: 18px;
	color: var(--ht-color-text-muted);
}

.ht-featured-products .ht-carousel__track {
	gap: 24px;
	padding: 0 56px 14px 0;
	scroll-padding-left: 0;
}

.ht-featured-products .ht-carousel__track > * {
	flex-basis: 234px;
}

.ht-featured-products .ht-carousel__nav {
	left: -42px;
	right: -42px;
}

.ht-featured-products .ht-carousel__arrow {
	width: 44px;
	height: 44px;
	background: transparent;
	color: var(--ht-color-tan);
	box-shadow: none;
	backdrop-filter: none;
}

.ht-featured-products .ht-carousel__arrow:hover {
	background: transparent;
}

.ht-featured-products .ht-carousel__arrow svg {
	width: 22px;
	height: 22px;
}

.ht-featured-products .ht-carousel__scrollbar {
	height: 3px;
	margin-top: 14px;
	background: rgba(188, 155, 104, 0.28);
	border-radius: 999px;
}

.ht-featured-products .ht-carousel__scrollbar-thumb {
	background: rgba(188, 155, 104, 0.78);
}

.ht-featured-products .ht-product-card {
	padding: 7px;
	border-radius: 30px;
	background: var(--ht-white);
	box-shadow: 0 8px 24px rgba(174, 164, 149, 0.18);
	min-height: 402px;
}

.ht-featured-products .ht-product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 30px rgba(174, 164, 149, 0.2);
}

.ht-featured-products .ht-product-card__media {
	aspect-ratio: 1 / 0.94;
	background: var(--ht-white);
	border-radius: 24px;
	padding: 14px 14px 6px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ht-featured-products .ht-product-card__media a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.ht-featured-products .ht-product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transform: scale(1.07);
	filter: drop-shadow(0 10px 10px rgba(24, 48, 24, 0.16));
}

.ht-featured-products .ht-product-card__badges {
	top: 6px;
	left: 8px;
	gap: 6px;
}

.ht-featured-products .ht-badge {
	height: 18px;
	padding-inline: 8px;
	font-size: 0.625rem;
	font-weight: 700;
}

.ht-featured-products .ht-product-card__body {
	margin-top: 8px;
	padding: 16px 12px 11px;
	border-radius: 24px;
	background: #f2ece5;
	align-items: center;
	text-align: center;
	gap: 7px;
	flex: 1;
}

.ht-featured-products .ht-product-card__category {
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: #9e9083;
}

.ht-featured-products .ht-product-card__title {
	min-height: 4.5em;
	font-family: var(--ht-font-ui);
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.38;
	color: #807367;
	text-wrap: balance;
	-webkit-line-clamp: 3;
}

.ht-featured-products .ht-product-card__actions {
	width: 100%;
	margin-top: auto;
	gap: 10px;
	align-items: center;
}

.ht-featured-products .ht-product-card__actions form {
	flex: 1;
}

.ht-featured-products .ht-product-card__actions .ht-btn {
	height: 34px;
	padding-inline: 14px;
	font-size: 0.8rem;
	font-weight: 700;
	gap: 6px;
	background: var(--ht-color-primary);
	box-shadow: inset 0 -3px 0 rgba(16, 48, 16, 0.12);
}

.ht-featured-products .ht-product-card__actions .ht-btn svg {
	width: 14px;
	height: 14px;
}

.ht-featured-products .ht-product-card__favorite {
	width: 34px;
	height: 34px;
	background: var(--ht-white);
	border-width: 1.5px;
	color: var(--ht-color-tan);
	box-shadow: inset 0 -2px 0 rgba(188, 155, 104, 0.12);
}

.ht-featured-products .ht-product-card__favorite.is-active {
	background: rgba(196, 45, 28, 0.08);
	border-color: var(--ht-color-accent);
	color: var(--ht-color-accent);
}

@media (max-width: 1024px) {
	.ht-featured-products {
		padding-inline: 32px;
		border-radius: 32px;
	}

	.ht-featured-products .ht-carousel__track {
		padding-right: 32px;
	}

	.ht-featured-products .ht-carousel__nav {
		left: -20px;
		right: -20px;
	}
}

@media (max-width: 767px) {
	.ht-featured-products {
		padding-inline: 20px;
		padding-block: 40px !important;
		border-radius: 28px;
	}

	.ht-featured-products .ht-section-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.ht-featured-products .ht-section-title {
		font-size: 2rem;
	}

	.ht-featured-products__catalog-link {
		height: 46px;
	}

	.ht-featured-products .ht-carousel__track {
		gap: 18px;
		padding-right: 18px;
	}

	.ht-featured-products .ht-carousel__track > * {
		flex-basis: min(82vw, 250px);
	}

	.ht-featured-products .ht-product-card {
		min-height: 388px;
	}

	.ht-featured-products .ht-product-card__title {
		font-size: 0.9375rem;
	}

	.ht-featured-products .ht-product-card__actions .ht-btn {
		font-size: 0.78rem;
	}

	.ht-featured-products .ht-carousel__scrollbar {
		margin-top: 12px;
	}
}

/* ---------- Categorías ---------- */

.ht-category-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.ht-home-benefits {
	position: relative;
	z-index: 2;
	margin-top: 31px;
}

.ht-home-categories {
	padding-block: 64px 41px;
}

.ht-home-categories .ht-section-title {
	font-family: var(--ht-font-ui);
	font-size: 3.25rem;
	font-weight: 700;
	letter-spacing: -0.05em;
	line-height: 1.05;
	margin: 0;
}

.ht-home-categories .ht-section-header > .ht-btn {
	min-width: 200px;
}

@media (max-width: 900px) {
	.ht-category-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Por qué High Tide ---------- */

.ht-why {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.84fr);
	align-items: center;
	gap: 120px;
	padding-block: 58px 66px;
}

.ht-why__media {
	position: relative;
	border-radius: 52px;
	padding: 10px;
	background: var(--ht-color-surface);
	box-shadow: 0 4px 8px rgba(168, 155, 137, 0.18);
	overflow: hidden;
	aspect-ratio: 1324 / 984;
}

.ht-why__media-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 42px;
}

.ht-why__info {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 0 0 10px;
	overflow: visible;
	transform: translateY(11px);
}

.ht-why__info::before {
	content: "";
	position: absolute;
	top: -20px;
	right: -112px;
	width: 792px;
	height: 520px;
	background-color: rgba(222, 202, 171, 0.48);
	mask: url("../images/why/fish-school.webp") center / contain no-repeat;
	-webkit-mask: url("../images/why/fish-school.webp") center / contain no-repeat;
	opacity: 0.72;
	pointer-events: none;
	z-index: 0;
}

.ht-why__title {
	display: flex;
	flex-direction: column;
	line-height: 0.94;
	margin-bottom: 34px;
	position: relative;
	z-index: 1;
}

.ht-why__title-lead {
	font-family: var(--ht-font-ui);
	font-size: 3.75rem;
	font-weight: 500;
	letter-spacing: -0.07em;
	color: var(--ht-color-primary-dark);
	margin-bottom: -10px;
	transform: translateY(-39px);
}

.ht-why__title-emph {
	color: var(--ht-color-primary-dark);
	font-family: var(--ht-font-ui);
	font-size: 5.75rem;
	font-weight: 700;
	letter-spacing: -0.06em;
}

.ht-why__info .ht-lede {
	max-width: 410px;
	margin: 0;
	font-size: 0.96rem;
	line-height: 1.42;
	color: rgba(77, 65, 55, 0.72);
	position: relative;
	z-index: 1;
}

.ht-why__info .ht-btn {
	margin-top: 34px;
	min-width: 290px;
	padding-inline: 34px;
	font-family: var(--ht-font-ui);
	font-weight: 700;
	position: relative;
	z-index: 1;
	align-self: flex-start;
	box-shadow: 0 4px 0 rgba(86, 70, 56, 0.12);
}

@media (max-width: 900px) {
	.ht-why {
		grid-template-columns: 1fr;
		gap: 28px;
		padding-block: 40px;
	}

	.ht-why__media {
		max-width: 720px;
		margin-inline: auto;
		border-radius: 36px;
		padding: 8px;
	}

	.ht-why__media-image {
		border-radius: 28px;
	}

	.ht-why__info {
		padding: 0;
		min-height: 0;
		transform: none;
	}

	.ht-why__info::before {
		top: -18px;
		right: -56px;
		width: 460px;
		height: 292px;
		opacity: 0.44;
	}

	.ht-why__title {
		margin-bottom: 14px;
	}

	.ht-why__title-lead {
		font-size: clamp(2.15rem, 1.8rem + 2vw, 3.1rem);
		margin-bottom: 0;
		transform: none;
	}

	.ht-why__title-emph {
		font-size: clamp(3.6rem, 3rem + 3vw, 5rem);
	}

	.ht-why__info .ht-btn {
		min-width: 0;
		width: 100%;
		max-width: 330px;
		margin-top: 24px;
	}
}

/* ---------- Slogan ---------- */

.ht-slogan {
	background: var(--ht-color-bg-alt);
	overflow: hidden;
	padding: 33px 0;
}

.ht-slogan__track {
	display: flex;
	align-items: center;
	gap: 42px;
	white-space: nowrap;
	animation: ht-slogan-scroll 28s linear infinite;
	width: max-content;
}

@media (prefers-reduced-motion: reduce) {
	.ht-slogan__track {
		animation: none;
	}
}

.ht-slogan__item {
	font-family: var(--ht-font-ui);
	font-size: clamp(1.95rem, 1.55rem + 1vw, 2.6rem);
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 1;
	color: var(--ht-color-tan);
}

.ht-slogan__icon {
	display: inline-flex;
	width: 68px;
	height: 28px;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
}

.ht-slogan__icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

@keyframes ht-slogan-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

/* ---------- CTA ---------- */

.ht-home-cta-wrap {
	padding: 64px 56px 108px;
}

.ht-cta {
	position: relative;
	width: 100%;
	height: 440px;
	aspect-ratio: auto;
	border-radius: 44px;
	overflow: visible;
	display: grid;
	grid-template-columns: minmax(0, 50.6%) minmax(0, 49.4%);
	background: url("../images/home-cta/cta-right-bg.png") center / cover no-repeat;
	box-shadow: 0 14px 18px rgba(119, 112, 101, 0.24);
	isolation: isolate;
}

.ht-cta::before {
	display: none;
}

.ht-cta__media {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
}

.ht-cta__art {
	display: block;
	width: 100%;
	height: auto;
}

.ht-cta__art--dish {
	display: none;
}

.ht-cta__info {
	position: relative;
	margin: 3px 0 4px 3px;
	padding: 69px 70px 46px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: clamp(14px, 1.5vw, 20px);
	color: var(--ht-white);
	background: url("../images/home-cta/cta-left-pattern.png") center / cover no-repeat;
	border-radius: 40px 58px 58px 40px;
	z-index: 2;
}

.ht-cta__info .ht-section-title,
.ht-cta__info .ht-lede {
	color: var(--ht-white);
}

.ht-cta__info .ht-section-title {
	font-family: var(--ht-font-ui);
	font-size: clamp(2rem, 3.2vw, 2.75rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.05em;
	max-width: clamp(364px, 36.4vw, 466px);
	margin-bottom: 8px;
	text-wrap: normal;
}

.ht-cta__title-line {
	display: block;
}

.ht-cta__info .ht-lede {
	max-width: 450px;
	font-size: clamp(0.72rem, 1vw, 0.88rem);
	line-height: 1.4;
	opacity: 0.95;
	margin: 0;
}

.ht-cta__actions {
	display: flex;
	gap: clamp(10px, 1vw, 14px);
	flex-wrap: wrap;
	margin-top: 2px;
}

.ht-cta__btn {
	height: clamp(38px, 4vw, 48px);
	padding-inline: clamp(22px, 2.6vw, 34px);
	font-family: var(--ht-font-ui);
	font-size: clamp(0.72rem, 1.1vw, 0.9rem);
	font-weight: 700;
	border-width: 2px;
	box-shadow: 0 5px 9px rgba(115, 75, 60, 0.2);
}

.ht-cta__btn svg {
	width: clamp(16px, 1.7vw, 20px);
	height: clamp(16px, 1.7vw, 20px);
}

.ht-cta__btn--primary {
	color: var(--ht-color-primary);
	background: rgba(255, 255, 255, 0.95);
	border-color: transparent;
}

.ht-cta__btn--primary:hover {
	background: var(--ht-white);
}

.ht-cta__btn--secondary {
	color: var(--ht-white);
	background: rgba(255, 255, 255, 0.03);
	border-color: rgba(255, 255, 255, 0.3);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 16px rgba(115, 75, 60, 0.18);
}

.ht-cta__btn--secondary:hover {
	background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
	.ht-home-cta-wrap {
		padding-inline: 24px;
	}

	.ht-cta {
		height: auto;
		aspect-ratio: auto;
		grid-template-columns: 1fr;
		border: 3px solid rgba(166, 162, 154, 0.95);
		border-radius: 34px;
		overflow: hidden;
	}

	.ht-cta::before {
		inset: 48% 0 0;
		border-radius: 0 0 34px 34px;
	}

	.ht-cta__info {
		margin: 0;
		padding: 36px 28px;
		border-radius: 30px 30px 22px 22px;
	}

	.ht-cta__info .ht-section-title {
		font-size: 2.55rem;
	}

	.ht-cta__title-line {
		display: inline;
	}

	.ht-cta__media {
		position: relative;
		inset: auto;
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 280px;
		padding: 8px 8px 0;
	}

	.ht-cta__art--frame {
		display: none;
	}

	.ht-cta__art--dish {
		display: block;
		position: absolute;
		right: 0;
		bottom: -7%;
		width: 126%;
		max-width: none;
		filter: drop-shadow(0 14px 14px rgba(121, 118, 113, 0.2));
	}
}

@media (min-width: 1025px) {
	.home .ht-footer {
		margin-top: 64px;
	}
}

@media (max-width: 599px) {
	.ht-home-cta-wrap {
		padding-inline: 20px;
	}

	.ht-slogan {
		padding: 18px 0;
	}

	.ht-slogan__track {
		gap: 26px;
	}

	.ht-slogan__item {
		font-size: 1.55rem;
	}

	.ht-slogan__icon {
		width: 50px;
		height: 20px;
	}

	.ht-cta {
		min-height: 0;
		border-width: 3px;
		border-radius: 28px;
	}

	.ht-cta::before {
		inset: 57% 0 0;
		border-radius: 0 0 28px 28px;
	}

	.ht-cta__info {
		padding: 28px 22px 24px;
		gap: 16px;
		border-radius: 24px 24px 18px 18px;
	}

	.ht-cta__info .ht-section-title {
		font-size: 2rem;
	}

	.ht-cta__info .ht-lede {
		font-size: 0.95rem;
	}

	.ht-cta__actions {
		flex-direction: column;
	}

	.ht-cta__actions .ht-btn {
		width: 100%;
		height: 56px;
		padding-inline: 24px;
	}

	.ht-cta__media {
		min-height: 220px;
		padding: 4px 10px 8px;
	}

	.ht-cta__art--dish {
		right: 0;
		bottom: -2%;
		width: 140%;
	}
}
