/* Industry landing pages (/industrias/<slug>/) — template-industria.php.
   Tokens, buttons, section headings and the FAQ accordion come from main.css.
   Responsive @media blocks sit AFTER the base rules they override. */

/* Hero — full-bleed sector photo, dark glass panel bottom-left (glass sits over imagery). */
.nvd-ind-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: max( 650px, 90vh );
	padding: 8rem 1.5rem 1rem;
}

.nvd-ind-hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	background: var( --clr-primary );
	border-radius: 0 0 var( --radius-media ) var( --radius-media );
	box-shadow: var( --shadow-soft );
}

.nvd-ind-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.nvd-ind-hero__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient( to top, rgba( 26, 22, 19, 0.9 ), rgba( 26, 22, 19, 0.4 ) 55%, rgba( 26, 22, 19, 0.15 ) );
}

.nvd-ind-hero__panel {
	width: 100%;
	max-width: 46rem;
	margin-bottom: 1rem;
	padding: 1.75rem;
	color: #fff;
	background: var( --glass-dark );
	border: 1px solid var( --glass-dark-edge );
	border-radius: var( --radius-card );
	-webkit-backdrop-filter: var( --glass-blur );
	backdrop-filter: var( --glass-blur );
}

.nvd-ind-hero__badge {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: rgba( 255, 255, 255, 0.8 );
}

/* Lime "you are here" dot with a soft ping */
.nvd-ind-hero__dot {
	position: relative;
	width: 0.625rem;
	height: 0.625rem;
	border-radius: 50%;
	background: var( --clr-accent );
}

.nvd-ind-hero__dot::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var( --clr-accent );
	animation: nvd-ind-ping 2s ease-out infinite;
}

@keyframes nvd-ind-ping {
	from {
		transform: scale( 1 );
		opacity: 0.7;
	}

	to {
		transform: scale( 2.6 );
		opacity: 0;
	}
}

.nvd-ind-hero__title {
	margin: 0 0 1rem;
	font-family: var( --font-body );
	font-size: 2.25rem;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.nvd-ind-hero__lede {
	margin: 0 0 2rem;
	max-width: 34rem;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.6;
	color: rgba( 255, 255, 255, 0.8 );
}

.nvd-ind-hero__actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.nvd-ind-hero__actions .btn-outline {
	color: #fff;
	border-color: rgba( 255, 255, 255, 0.35 );
}

.nvd-ind-hero__actions .btn-outline:hover {
	background: rgba( 255, 255, 255, 0.12 );
	color: #fff;
}

/* Sections */
.nvd-ind-section {
	padding-block: 3.5rem;
}

.nvd-ind-section__title {
	max-width: 40rem;
	margin: 0 0 2.5rem;
}

.nvd-ind-card {
	background: #fff;
	border: var( --border-subtle );
	border-radius: var( --radius-card );
	box-shadow: var( --shadow-soft );
	padding: 1.5rem;
}

.nvd-ind-card__title,
.nvd-ind-tool__title,
.nvd-ind-step__title {
	font-family: var( --font-body );
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 0.5rem;
}

.nvd-ind-card__text {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.6;
	color: rgba( 26, 22, 19, 0.7 );
}

/* 01 · Problems */
.nvd-ind-problems {
	display: grid;
	gap: 1rem;
	margin-top: 2rem;
}

.nvd-ind-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin-bottom: 1.25rem;
	border-radius: 50%;
	background: var( --clr-bg );
}

.nvd-ind-card__icon svg {
	width: 1.5rem;
	height: 1.5rem;
}

.nvd-ind-card__title {
	font-size: 1.25rem;
}

/* 02 · Tools, each with a CSS mock of the feature */
.nvd-ind-tools {
	display: grid;
	gap: 1.5rem;
}

.nvd-ind-tool {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.nvd-ind-tool__mock {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 15rem;
	padding: 1.5rem;
	overflow: hidden;
	background: var( --clr-bg );
	border: var( --border-subtle );
	border-radius: var( --radius-card );
}

.nvd-ind-tool__tag {
	margin: 0 0 0.5rem;
	font-family: var( --font-body );
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba( 26, 22, 19, 0.4 );
}

.nvd-ind-tool__tag--sky {
	color: var( --clr-secondary );
}

.nvd-ind-tool__tag--clay {
	color: var( --clr-tertiary );
}

.nvd-ind-tool__title {
	font-size: 1.5rem;
}

/* Mock pieces */
.nvd-mock {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	width: 100%;
	max-width: 15rem;
	padding: 1rem;
	background: #fff;
	border: var( --border-subtle );
	border-radius: var( --radius-card );
	box-shadow: var( --shadow-float );
}

.nvd-mock__bar {
	display: block;
	width: 5rem;
	height: 0.5rem;
	border-radius: 999px;
	background: rgba( 26, 22, 19, 0.2 );
}

.nvd-mock__bar--short {
	width: 3.5rem;
}

.nvd-mock__bar--strong {
	width: 8rem;
	height: 0.75rem;
	background: var( --clr-primary );
}

.nvd-mock__bar--light {
	width: 4rem;
	background: rgba( 255, 255, 255, 0.55 );
}

.nvd-mock__field {
	display: flex;
	align-items: center;
	height: 2rem;
	padding: 0 0.75rem;
	background: var( --clr-bg );
	border: var( --border-subtle );
	border-radius: 0.5rem;
}

.nvd-mock__field--tall {
	align-items: flex-start;
	height: 4rem;
	padding-top: 0.75rem;
}

.nvd-mock__button {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 2.5rem;
	margin-top: 0.25rem;
	background: var( --clr-primary );
	border-radius: 0.75rem;
}

.nvd-mock__button--clay {
	background: var( --clr-tertiary );
}

.nvd-mock--call {
	align-items: center;
	gap: 1rem;
	padding: 1.25rem;
}

.nvd-mock__ring {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	background: rgba( 156, 82, 51, 0.12 ); /* design-ok: clay tint, same hue as --clr-tertiary */
	color: var( --clr-tertiary );
	animation: nvd-ind-pulse 2s ease-in-out infinite;
}

.nvd-mock__ring svg {
	width: 2rem;
	height: 2rem;
}

.nvd-mock__lines {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

.nvd-mock--call .nvd-mock__button {
	width: 100%;
}

@keyframes nvd-ind-pulse {
	50% {
		opacity: 0.55;
	}
}

.nvd-mock--gallery {
	position: relative;
	flex-direction: row;
	gap: 0.25rem;
	height: 12rem;
	padding: 0.5rem;
	overflow: hidden;
}

.nvd-mock__half {
	position: relative;
	flex: 1;
	border-radius: 0.5rem;
}

.nvd-mock__half--before {
	background: rgba( 26, 22, 19, 0.12 );
}

.nvd-mock__half--after {
	background: rgba( 111, 160, 190, 0.28 ); /* design-ok: sky tint, same hue as --clr-secondary */
}

.nvd-mock__half em {
	position: absolute;
	padding: 0.125rem 0.375rem;
	font-size: 8px;
	font-style: normal;
	font-weight: 700;
	color: #fff;
	background: var( --clr-primary );
	border-radius: 0.25rem;
}

.nvd-mock__half--before em {
	top: 0.5rem;
	left: 0.5rem;
}

.nvd-mock__half--after em {
	right: 0.5rem;
	bottom: 0.5rem;
}

.nvd-mock__handle {
	position: absolute;
	top: 0.5rem;
	bottom: 0.5rem;
	left: 50%;
	width: 2px;
	background: #fff;
	transform: translateX( -50% );
}

.nvd-mock__handle::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1.5rem;
	height: 1.5rem;
	background: #fff;
	border: var( --border-subtle );
	border-radius: 50%;
	box-shadow: var( --shadow-soft );
	transform: translate( -50%, -50% );
}

/* 03 · Steps — vertical timeline on phones, four columns on desktop */
.nvd-ind-steps {
	position: relative;
	display: grid;
	gap: 2rem;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}

.nvd-ind-steps::before {
	content: '';
	position: absolute;
	top: 1.5rem;
	bottom: 1.5rem;
	left: 1rem;
	width: 1px;
	background: rgba( 26, 22, 19, 0.1 );
}

.nvd-ind-step {
	position: relative;
	padding-left: 3.25rem;
}

.nvd-ind-step__icon {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	background: var( --clr-bg );
	border: var( --border-subtle );
	border-radius: 50%;
}

.nvd-ind-step__icon svg {
	width: 1rem;
	height: 1rem;
}

.nvd-ind-step__num {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: rgba( 26, 22, 19, 0.4 );
}

.nvd-ind-step__title {
	font-size: 1.0625rem;
}

/* Concept tile */
.nvd-ind-concept {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 30rem;
	overflow: hidden;
	background: var( --clr-primary );
	border-radius: var( --radius-media );
	box-shadow: var( --shadow-media );
}

.nvd-ind-concept img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s ease;
}

.nvd-ind-concept__pills {
	position: absolute;
	top: 1.25rem;
	left: 1.25rem;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.nvd-ind-concept__pills span {
	padding: 0.375rem 0.75rem;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var( --clr-primary );
	background: #fff;
	border-radius: 999px;
}

.nvd-ind-concept__caption {
	position: relative;
	z-index: 1;
	margin: 1rem;
	padding: 1.25rem;
	color: #fff;
	background: var( --glass-dark );
	border: 1px solid var( --glass-dark-edge );
	border-radius: var( --radius-card );
	-webkit-backdrop-filter: var( --glass-blur );
	backdrop-filter: var( --glass-blur );
}

.nvd-ind-concept__caption h3 {
	margin: 0 0 0.25rem;
	font-family: var( --font-body );
	font-size: 1.25rem;
	font-weight: 700;
}

.nvd-ind-concept__caption p {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 500;
	color: rgba( 255, 255, 255, 0.8 );
}

/* 04 · Plans recap */
.nvd-ind-plans {
	display: grid;
	gap: 1rem;
	margin-top: 2rem;
}

.nvd-ind-plan {
	display: flex;
	flex-direction: column;
	padding: 2rem;
	background: #fff;
	border: var( --border-subtle );
	border-radius: var( --radius-media );
	box-shadow: var( --shadow-soft );
}

.nvd-ind-plan--dark {
	color: #fff;
	background: var( --clr-primary );
	border-color: var( --clr-primary );
}

.nvd-ind-plan__kicker {
	margin-bottom: 1rem;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	opacity: 0.55;
}

.nvd-ind-plan__name {
	margin: 0 0 0.5rem;
	font-family: var( --font-body );
	font-size: 2rem;
	font-weight: 700;
}

.nvd-ind-plan__desc {
	margin: 0 0 1.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	opacity: 0.7;
}

.nvd-ind-plan__price {
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border-bottom: 1px solid rgba( 26, 22, 19, 0.08 );
}

.nvd-ind-plan--dark .nvd-ind-plan__price {
	border-bottom-color: rgba( 255, 255, 255, 0.12 );
}

.nvd-ind-plan__price span {
	margin-right: 0.25rem;
	font-size: 2.5rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-transform: none;
}

.nvd-ind-plan__list {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}

.nvd-ind-plan__list li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.5;
}

.nvd-ind-plans__more {
	margin: 1.5rem 0 0;
	text-align: center;
	font-size: 0.875rem;
	font-weight: 600;
}

.nvd-ind-plans__more a {
	color: inherit;
}

/* Sticky mobile CTA */
.nvd-ind-bar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 40;
	padding: 1rem;
	background: var( --clr-bg );
	border-top: var( --border-subtle );
	box-shadow: 0 -10px 40px -10px rgba( 26, 22, 19, 0.08 );
}

.nvd-industria .nvd-footer {
	padding-bottom: 9rem; /* clear the sticky bar */
}

/* Tablet and up */
@media ( min-width: 768px ) {
	.nvd-ind-hero {
		padding: 8rem max( 4rem, calc( ( 100vw - 1400px ) / 2 + 4rem ) ) 2rem;
	}

	.nvd-ind-hero__media {
		border-radius: 0 0 3rem 3rem;
	}

	.nvd-ind-hero__panel {
		padding: 2.5rem;
		border-radius: var( --radius-media );
	}

	.nvd-ind-hero__title {
		font-size: 3rem;
	}

	.nvd-ind-hero__lede {
		font-size: 1.125rem;
	}

	.nvd-ind-hero__actions {
		flex-direction: row;
	}

	.nvd-ind-section {
		padding-block: 5rem;
	}

	.nvd-ind-card {
		padding: 2rem;
	}

	.nvd-ind-problems {
		grid-template-columns: repeat( 2, 1fr );
	}

	.nvd-ind-plans {
		grid-template-columns: repeat( 2, 1fr );
	}

	.nvd-ind-plan {
		padding: 2.5rem;
	}

	.nvd-ind-concept {
		min-height: 44rem;
	}

	.nvd-ind-concept__caption {
		margin: 1.5rem;
		padding: 2rem;
	}

	.nvd-ind-bar {
		display: none;
	}

	.nvd-industria .nvd-footer {
		padding-bottom: 4rem;
	}

	.nvd-ind-steps {
		grid-template-columns: repeat( 4, 1fr );
		gap: 2rem;
	}

	.nvd-ind-steps::before {
		display: none;
	}

	.nvd-ind-step {
		padding: 1.5rem 0 0;
		border-top: 1px solid rgba( 26, 22, 19, 0.1 );
	}

	.nvd-ind-step__icon {
		position: static;
		width: auto;
		height: auto;
		margin-bottom: 1rem;
		background: none;
		border: none;
	}

	.nvd-ind-step__icon svg {
		width: 2rem;
		height: 2rem;
		stroke-width: 1.5;
	}

	.nvd-ind-step__num {
		margin-bottom: 0.75rem;
	}

	/* lime "you are here" dot on the step's rule */
	.nvd-ind-step::before {
		content: '';
		position: absolute;
		top: -5px;
		left: 0;
		width: 0.5rem;
		height: 0.5rem;
		border-radius: 50%;
		background: var( --clr-accent );
		transform: scale( 0 );
		transition: transform 0.3s ease;
	}

	.nvd-ind-step:hover::before {
		transform: scale( 1 );
	}
}

@media ( min-width: 1024px ) {
	.nvd-ind-problems {
		grid-template-columns: repeat( 4, 1fr );
	}

	.nvd-ind-tools {
		grid-template-columns: repeat( 3, 1fr );
	}

	.nvd-ind-tool__mock {
		aspect-ratio: 1;
	}
}

@media ( hover: hover ) {
	.nvd-ind-card {
		transition: transform 0.3s ease;
	}

	.nvd-ind-card:hover {
		transform: translateY( -4px );
	}

	.nvd-ind-concept:hover img {
		transform: scale( 1.03 );
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.nvd-ind-hero__dot::after,
	.nvd-mock__ring {
		animation: none;
	}

	.nvd-ind-card,
	.nvd-ind-concept img,
	.nvd-ind-step::before {
		transition: none;
	}

	.nvd-ind-card:hover,
	.nvd-ind-concept:hover img {
		transform: none;
	}
}
