/**
 * Split from contemporaneo.css
 */

/* —— Hero asimétrico + presencia —— */
body.hm-site .hm-hero {
	min-height: min(82vh, 700px);
	align-items: stretch;
	overflow: visible;
}

body.hm-site .hm-hero__overlay {
	background: rgba(6, 2, 28, 0.78);
}

body.hm-site .hm-hero > .hm-container,
body.hm-site .hm-hero__slide > .hm-container {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	align-items: end;
	min-height: inherit;
	height: 100%;
	position: relative;
}

body.hm-site .hm-hero__content {
	grid-column: 1;
	max-width: min(36rem, 100%);
	padding-top: clamp(5.5rem, 10vw, 7.5rem);
	padding-right: 0;
	/* Bottom pad: dots clearance (slider overrides below) */
	padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
	border-left: 2px solid rgba(255, 255, 255, 0.55);
	padding-left: clamp(1.1rem, 2vw, 1.75rem);
	position: relative;
}

body.hm-site .hm-hero--slider .hm-hero__content {
	padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

body.hm-site .hm-hero__content::before {
	content: "";
	position: absolute;
	left: -2px;
	top: clamp(5.5rem, 10vw, 7.5rem);
	width: 28px;
	height: 2px;
	background: #fff;
}

body.hm-site .hm-hero__eyebrow {
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 0.85rem;
}

body.hm-site .hm-hero h1,
body.hm-site .hm-hero h2.hm-hero__title,
body.hm-site .hm-hero .hm-hero__title {
	font-size: clamp(1.5rem, 3.1vw, 2.35rem);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.18;
	max-width: none;
	margin: 0 0 0.95rem;
	color: #fff;
	text-wrap: balance;
	overflow: visible;
}

body.hm-site .hm-hero__lead {
	max-width: 42ch;
	color: rgba(255, 255, 255, 0.86);
	margin-bottom: 1.5rem;
	font-size: clamp(0.98rem, 1.35vw, 1.08rem);
}

body.hm-site .hm-hero__actions {
	gap: 0.75rem;
}

body.hm-site .hm-hero .hm-btn--primary {
	background: #fff;
	color: var(--brand) !important;
	border-color: #fff;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.78rem;
	min-height: 52px;
	padding-inline: 1.4rem;
}

body.hm-site .hm-hero .hm-btn--primary:hover {
	background: #f3f3f5;
	color: var(--brand) !important;
	transform: translateY(-2px);
	box-shadow: none;
}

body.hm-site .hm-hero .hm-btn--primary .hm-icon {
	color: inherit;
}

body.hm-site .hm-hero .hm-btn--ghost {
	min-height: 52px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.78rem;
	font-weight: 500;
}

body.hm-site .hm-search-block {
	margin-top: -48px;
	position: relative;
	z-index: 3;
	pointer-events: none;
}
body.hm-site .hm-search-block .hm-container,
body.hm-site .hm-search-block .hm-search-card,
body.hm-site .hm-search-block .hm-search,
body.hm-site .hm-search-block input,
body.hm-site .hm-search-block button,
body.hm-site .hm-search-block .hm-ac {
	pointer-events: auto;
}

body.hm-site .hm-search-card {
	max-width: 920px;
	margin-left: 0;
	margin-right: auto;
	border: 1px solid #e5e5e8;
	border-left: 3px solid var(--brand);
	box-shadow: 0 18px 40px rgba(10, 4, 40, 0.1);
	padding: 0.7rem;
	background: #fff;
}

body.hm-site .hm-search--float .hm-search-field input {
	min-height: 54px;
	font-weight: 300;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
}

body.hm-site .hm-search-field__icon { color: var(--brand); }

@media (max-width: 900px) {
	body.hm-site .hm-hero > .hm-container,
	body.hm-site .hm-hero__slide > .hm-container {
		grid-template-columns: 1fr;
	}
	body.hm-site .hm-hero h1,
	body.hm-site .hm-hero h2.hm-hero__title,
	body.hm-site .hm-hero .hm-hero__title {
		max-width: none;
		font-size: clamp(1.4rem, 5.8vw, 1.9rem);
	}
	body.hm-site .hm-mega__grid { grid-template-columns: 1fr; }
	body.hm-site .hm-hero--slider .hm-hero__content,
	body.hm-site .hm-hero__content {
		padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
	}
}

@media (max-width: 640px) {
	body.hm-site .hm-hero--slider .hm-hero__content,
	body.hm-site .hm-hero__content {
		padding-bottom: calc(7rem + env(safe-area-inset-bottom, 0px));
	}
}

/* —— Cards: borde stroke animado —— */
body.hm-site .hm-cat-card,
body.hm-site .hm-product-card,
body.hm-site .hm-offer-card,
body.hm-site .hm-sector,
body.hm-site .hm-adv-grid li,
body.hm-site .hm-news-card {
	position: relative;
	border: 1px solid #e5e5e8;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	overflow: hidden;
}

body.hm-site .hm-cat-card::after,
body.hm-site .hm-product-card::after,
body.hm-site .hm-sector::after,
body.hm-site .hm-adv-grid li::after,
body.hm-site .hm-offer-card::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid transparent;
	pointer-events: none;
	transition: border-color 200ms ease;
	z-index: 2;
}

body.hm-site .hm-cat-card:hover,
body.hm-site .hm-product-card:hover,
body.hm-site .hm-sector:hover,
body.hm-site .hm-adv-grid li:hover,
body.hm-site .hm-offer-card:hover {
	transform: translateY(-2px);
	box-shadow: none;
	border-color: #e5e5e8;
}

body.hm-site .hm-cat-card:hover::after,
body.hm-site .hm-product-card:hover::after,
body.hm-site .hm-sector:hover::after,
body.hm-site .hm-adv-grid li:hover::after,
body.hm-site .hm-offer-card:hover::after {
	border-color: var(--brand);
}

body.hm-site .hm-cat-grid {
	gap: 0;
	border-top: 1px solid #e5e5e8;
	border-left: 1px solid #e5e5e8;
}

body.hm-site .hm-cat-grid > li {
	border-right: 1px solid #e5e5e8;
	border-bottom: 1px solid #e5e5e8;
}

body.hm-site .hm-cat-card {
	border: 0;
	height: 100%;
	box-shadow: none;
}

body.hm-site .hm-cat-card:hover {
	transform: none;
	box-shadow: none;
}

body.hm-site .hm-cat-card__media--icon {
	aspect-ratio: auto;
	min-height: 3.25rem;
	padding: 0.85rem 0.4rem 0.35rem;
	background-color: transparent;
}

body.hm-site .hm-cat-card__foot {
	padding: 0.25rem 0.4rem 0.7rem;
	border-top: 0;
	min-height: 0;
	justify-content: center;
	text-align: center;
}

body.hm-site .hm-cat-card__foot strong {
	font-weight: 500;
	font-size: 0.68rem;
	letter-spacing: 0.02em;
	text-transform: none;
	line-height: 1.25;
}

/* —— Services strip —— */
body.hm-site .hm-services {
	background: #fff;
	border-block: 1px solid #e5e5e8;
	padding: clamp(1.5rem, 2.8vw, 2.1rem) 0;
}

body.hm-site .hm-services__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 0;
	border-left: 1px solid #e5e5e8;
}

body.hm-site .hm-services__grid > li {
	border-right: 1px solid #e5e5e8;
	padding: 1.15rem 1rem;
}

body.hm-site .hm-services__icon {
	width: 44px;
	height: 44px;
	border: 1px solid #e5e5e8;
	background: #f3f3f5;
	color: var(--brand);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.75rem;
}

body.hm-site .hm-services__grid strong {
	font-weight: 500;
	font-size: 0.78rem;
	letter-spacing: 0.02em;
	line-height: 1.35;
	text-transform: none;
}

@media (max-width: 1100px) {
	body.hm-site .hm-services__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
	body.hm-site .hm-services__grid { grid-template-columns: repeat(2, 1fr); }
}

/* —— Sectors / advantages —— */
body.hm-site .hm-sectors__grid,
body.hm-site .hm-adv-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	border-top: 1px solid #e5e5e8;
	border-left: 1px solid #e5e5e8;
}

body.hm-site .hm-sector,
body.hm-site .hm-adv-grid li {
	border-right: 1px solid #e5e5e8;
	border-bottom: 1px solid #e5e5e8;
	border-top: 0;
	border-left: 0;
	padding: 1.6rem 1.35rem 1.75rem;
	background: #fff;
}

body.hm-site .hm-sector__ico,
body.hm-site .hm-adv-grid__ico {
	color: var(--brand);
	margin-bottom: 1rem;
	display: inline-flex;
}

body.hm-site .hm-sector strong,
body.hm-site .hm-adv-grid strong {
	font-weight: 500;
	font-size: 0.95rem;
	letter-spacing: -0.015em;
	display: block;
	margin-bottom: 0.4rem;
}

body.hm-site .hm-sector p,
body.hm-site .hm-adv-grid span {
	font-weight: 300;
	color: var(--muted);
	font-size: 0.9rem;
	line-height: 1.65;
	margin: 0;
}

@media (max-width: 800px) {
	body.hm-site .hm-sectors__grid,
	body.hm-site .hm-adv-grid { grid-template-columns: 1fr; }
}

/* Instagram / stats keep brand navy + trama */
body.hm-site .hm-ig-strip,
body.hm-site .hm-stats {
	background: #200c80;
	background-image: none;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	color: #fff;
}

/* —— Services icons: creative hover (liviano) —— */
body.hm-site .hm-services__item {
	transition:
		transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
		color 260ms ease;
}

body.hm-site .hm-services__icon {
	border-radius: 0;
	transition:
		transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
		color 280ms ease,
		border-color 280ms ease,
		background-color 280ms ease;
}

body.hm-site .hm-services__icon svg {
	transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), color 280ms ease;
}

body.hm-site .hm-services__icon svg path,
body.hm-site .hm-services__icon svg rect,
body.hm-site .hm-services__icon svg circle {
	transition:
		stroke-dashoffset 360ms cubic-bezier(0.22, 1, 0.36, 1),
		opacity 280ms ease,
		stroke 280ms ease;
}

body.hm-site .hm-services__item:hover {
	transform: translateY(-2px);
}

body.hm-site .hm-services__item:hover .hm-services__icon {
	color: var(--brand);
	border-color: var(--brand);
	background: #fff;
	transform: scale(1.06);
}

body.hm-site .hm-services__item:hover strong {
	color: var(--brand);
}

/* Clipboard — check oculto por defecto; draw en hover de servicios */
.hm-icon--clipboard .hm-ico-check {
	opacity: 0;
}

body.hm-site .hm-services__item[data-hm-icon="clipboard"] .hm-ico-check {
	stroke-dasharray: 22;
	stroke-dashoffset: 22;
	opacity: 0;
}

body.hm-site .hm-services__item[data-hm-icon="clipboard"]:hover .hm-ico-line {
	opacity: 0.28;
}

body.hm-site .hm-services__item[data-hm-icon="clipboard"]:hover .hm-ico-check {
	stroke-dashoffset: 0;
	opacity: 1;
}

/* Boxes — soft bounce */
@keyframes hmSvcBounce {
	0%, 100% { transform: scale(1.06) translateY(0); }
	50% { transform: scale(1.09) translateY(-3px); }
}

body.hm-site .hm-services__item[data-hm-icon="boxes"]:hover .hm-services__icon {
	animation: hmSvcBounce 420ms cubic-bezier(0.22, 1, 0.36, 1) 1;
}

/* Warehouse — color pulse */
@keyframes hmSvcPulse {
	0%, 100% { color: var(--brand); }
	50% { color: var(--hm-brand-dark, #16085c); }
}

body.hm-site .hm-services__item[data-hm-icon="warehouse"]:hover .hm-services__icon {
	animation: hmSvcPulse 480ms ease 1;
}

/* Credit card — flip glow (sólido, sin gradient) */
body.hm-site .hm-services__item[data-hm-icon="credit-card"] .hm-services__icon {
	transform-style: preserve-3d;
}

body.hm-site .hm-services__item[data-hm-icon="credit-card"]:hover .hm-services__icon {
	transform: perspective(420px) rotateY(-14deg) scale(1.06);
	box-shadow: 0 0 0 1px var(--brand);
	background: #fff;
}

/* Truck — slide */
body.hm-site .hm-services__item[data-hm-icon="truck"]:hover .hm-services__icon svg {
	transform: translateX(5px);
}

/* Chat — bounce + pulse */
@keyframes hmSvcChat {
	0%, 100% { transform: scale(1.06) translateY(0); }
	40% { transform: scale(1.1) translateY(-3px); }
	70% { transform: scale(1.05) translateY(1px); }
}

body.hm-site .hm-services__item[data-hm-icon="chat"]:hover .hm-services__icon {
	animation: hmSvcChat 400ms cubic-bezier(0.22, 1, 0.36, 1) 1;
}

/* Stroke draw al entrar (paths lineales) */
body.hm-site .hm-services:not(.is-inview) .hm-services__icon svg path:not(.hm-ico-check),
body.hm-site .hm-services:not(.is-inview) .hm-services__icon svg rect,
body.hm-site .hm-services:not(.is-inview) .hm-services__icon svg circle {
	stroke-dasharray: 48;
	stroke-dashoffset: 48;
}

body.hm-site .hm-services.is-inview .hm-services__icon svg path:not(.hm-ico-check),
body.hm-site .hm-services.is-inview .hm-services__icon svg rect,
body.hm-site .hm-services.is-inview .hm-services__icon svg circle {
	stroke-dashoffset: 0;
	transition:
		stroke-dashoffset 380ms cubic-bezier(0.22, 1, 0.36, 1),
		opacity 300ms ease;
}

body.hm-site .hm-services.is-inview .hm-services__item:nth-child(1) .hm-services__icon svg * { transition-delay: 40ms; }
body.hm-site .hm-services.is-inview .hm-services__item:nth-child(2) .hm-services__icon svg * { transition-delay: 80ms; }
body.hm-site .hm-services.is-inview .hm-services__item:nth-child(3) .hm-services__icon svg * { transition-delay: 120ms; }
body.hm-site .hm-services.is-inview .hm-services__item:nth-child(4) .hm-services__icon svg * { transition-delay: 160ms; }
body.hm-site .hm-services.is-inview .hm-services__item:nth-child(5) .hm-services__icon svg * { transition-delay: 200ms; }
body.hm-site .hm-services.is-inview .hm-services__item:nth-child(6) .hm-services__icon svg * { transition-delay: 240ms; }

