/* ==========================================================================
   Portada QuoCorp
   ========================================================================== */

/* Trazos de fibra: firma visual de QuoCorp ------------------------------- */
.trace {
	fill: none;
	stroke: var(--qc-orange);
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-dasharray: 140 1460;
	animation: qc-trace 5s linear infinite;
}

.trace--2 {
	stroke-width: 2;
	animation-duration: 6.5s;
	animation-delay: -2s;
}

.trace--3 {
	stroke: #ff9a5c;
	stroke-width: 1.6;
	animation-duration: 4.2s;
	animation-delay: -1s;
}

.trace--4 {
	stroke-width: 1.6;
	animation-duration: 7.5s;
	animation-delay: -4s;
}

.trace-base {
	stroke: #2a2f36;
	stroke-width: 1.4;
}

/* Inicio --------------------------------------------------------------- */
.hero-qc {
	position: relative;
	overflow: hidden;
}

.hero-qc__traces {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.hero-qc__grid {
	position: relative;
	display: flex;
	align-items: center;
	gap: 56px;
	padding-top: clamp(72px, 8vw, 110px);
	padding-bottom: clamp(80px, 9vw, 120px);
}

.hero-qc__copy {
	flex: 1 1 560px;
	min-width: 0;
}

.hero-qc__copy .lead {
	max-width: 520px;
	margin-top: 30px;
}

.hero-qc__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 40px;
}

.hero-qc__media {
	position: relative;
	flex: 0 1 470px;
	min-width: 0;
}

.hero-qc__photo {
	position: relative;
	height: 560px;
	overflow: hidden;
	border-radius: var(--qc-radius-lg);
	box-shadow: 0 40px 90px rgba(0, 0, 0, .45);
}

.hero-qc__photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(21, 24, 28, 0) 45%, rgba(21, 24, 28, .85) 100%);
}

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

.hero-qc__card {
	position: absolute;
	bottom: 40px;
	left: -34px;
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: 330px;
	padding: 18px 22px;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 18px;
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	line-height: 1.35;
}

.hero-qc__card strong,
.hero-qc__card small {
	display: block;
}

.hero-qc__card strong {
	font-size: 15px;
}

.hero-qc__card small {
	margin-top: 2px;
	color: #d5d8dc;
	font-size: 13px;
}

.hero-qc__signal {
	position: relative;
	display: grid;
	width: 42px;
	height: 42px;
	flex: none;
	place-items: center;
	color: var(--qc-ink);
	background: var(--qc-orange);
	border-radius: 50%;
}

.hero-qc__ring {
	position: absolute;
	inset: 0;
	border: 2px solid var(--qc-orange);
	border-radius: 50%;
	animation: qc-ring 2.4s ease-out infinite;
}

/* Franja en movimiento ------------------------------------------------- */
.marquee {
	overflow: hidden;
	padding: 20px 0;
	color: var(--qc-ink);
	background: var(--qc-orange);
}

.marquee__track {
	display: flex;
	width: max-content;
	animation: qc-marquee 38s linear infinite;
}

.marquee:hover .marquee__track {
	animation-play-state: paused;
}

.marquee__item {
	display: inline-flex;
	align-items: center;
	gap: 56px;
	padding: 0 28px;
	font-family: var(--qc-font-display);
	font-size: 28px;
	font-stretch: 125%;
	font-weight: 800;
	letter-spacing: -.02em;
	white-space: nowrap;
}

.marquee__item svg {
	fill: var(--qc-ink);
}

/* Servicios: paneles que se expanden ----------------------------------- */
.svc-panels {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.svc-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 420px;
	padding: 96px 26px 28px;
	overflow: hidden;
	color: var(--qc-white);
	background: var(--qc-ink);
	border-radius: var(--qc-radius);
	isolation: isolate;
}

.svc-panel > img {
	position: absolute;
	z-index: -2;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--qc-ease), opacity .6s;
}

.svc-panel::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background: linear-gradient(180deg, rgba(21, 24, 28, .15) 0%, rgba(21, 24, 28, .92) 100%);
}

.svc-panel:hover > img {
	transform: scale(1.06);
}

.svc-panel__icon {
	position: absolute;
	top: 26px;
	left: 26px;
	display: grid;
	width: 52px;
	height: 52px;
	place-items: center;
	color: var(--qc-ink);
	background: var(--qc-orange);
	border-radius: 16px;
	transition: background-color .5s, color .5s;
}

.svc-panel__body {
	min-width: 0;
}

.svc-panel__title {
	font-size: 30px;
	font-stretch: 110%;
}

.svc-panel__toggle {
	padding: 0;
	color: inherit;
	background: none;
	border: 0;
	font: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	text-align: left;
	cursor: pointer;
}

.svc-panel__toggle:focus-visible {
	outline: none;
}

/* Todo el panel responde al clic: el ::after se posiciona respecto de .svc-panel */
.svc-panel__toggle::after {
	content: "";
	position: absolute;
	inset: 0;
}

.svc-panel:has(.svc-panel__toggle:focus-visible) {
	outline: 3px solid var(--qc-orange);
	outline-offset: 3px;
}

.svc-panel__more {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-top: 12px;
}

.svc-panel__more p {
	max-width: 420px;
	color: #dfe1e4;
}

.svc-panel__link {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	color: var(--qc-orange);
	font-weight: 600;
	text-decoration: none;
}

.svc-panel__link:hover {
	color: var(--qc-white);
}

/* Con JS: fila de paneles con uno abierto */
@media (min-width: 901px) {
	.js .svc-panels {
		display: flex;
		height: 560px;
	}

	.js .svc-panel {
		flex: 1 1 0;
		min-height: 0;
		transition: flex-grow .7s var(--qc-ease);
	}

	.js .svc-panel.is-active {
		flex-grow: 3;
	}

	.js .svc-panel:not(.is-active) > img {
		opacity: .55;
	}

	.js .svc-panel:not(.is-active) .svc-panel__icon {
		color: var(--qc-white);
		background: rgba(255, 255, 255, .14);
	}

	.js .svc-panel:not(.is-active) .svc-panel__title {
		font-size: 21px;
		font-stretch: 100%;
		line-height: 1.05;
		hyphens: auto;
	}

	.js .svc-panel:not(.is-active) {
		padding-inline: 22px 18px;
	}

	.js .svc-panel:not(.is-active) .svc-panel__more {
		display: none;
	}

	.js .svc-panel.is-active .svc-panel__more {
		animation: qc-drop .55s var(--qc-ease) both .15s;
	}
}

/* Recorrido de extremo a extremo --------------------------------------- */
.route {
	position: relative;
	overflow: hidden;
}

.route__intro {
	max-width: 760px;
}

.route__intro .lead {
	max-width: 600px;
	margin-top: 26px;
}

.route__line {
	position: relative;
	height: 120px;
	margin-top: 72px;
}

.route__line svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.route__base {
	fill: none;
	stroke: #2f343b;
	stroke-width: 3;
}

.route__pulse {
	stroke-width: 4;
	animation-duration: 3.6s;
}

.route__line circle {
	fill: var(--qc-orange);
}

.route__nodes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.route__node {
	padding: 34px;
	background: var(--qc-ink-2);
	border: 1px solid var(--qc-line-dark);
	border-radius: var(--qc-radius);
	transition: transform .45s var(--qc-ease), border-color .3s, background-color .3s;
}

.route__node:hover {
	background: var(--qc-ink-3);
	border-color: var(--qc-orange);
	transform: translateY(-6px);
}

.route__node .mono-label {
	margin-bottom: 40px;
	color: var(--qc-faint-dark);
}

.route__node .title-sm + p {
	margin-top: 16px;
	color: var(--qc-muted-dark);
}

/* Nosotros ------------------------------------------------------------- */
.about-qc {
	display: flex;
	align-items: center;
	gap: 72px;
}

.about-qc__media {
	position: relative;
	flex: 1 1 520px;
	min-width: 0;
}

.about-qc__main {
	height: 560px;
	overflow: hidden;
	border-radius: 24px;
}

.about-qc__main img,
.about-qc__inset img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--qc-ease);
}

.about-qc__main:hover img {
	transform: scale(1.05);
}

.about-qc__inset {
	position: absolute;
	right: -24px;
	bottom: -28px;
	width: 250px;
	height: 170px;
	overflow: hidden;
	border: 6px solid var(--qc-paper);
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(21, 24, 28, .25);
}

.about-qc__copy {
	flex: 1 1 480px;
	min-width: 0;
}

.about-qc__copy h2 {
	color: var(--qc-ink);
}

.about-qc__copy .lead {
	margin-top: 22px;
}

.about-qc__copy .lead + .lead {
	margin-top: 14px;
}

.about-qc__tags {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}

.about-qc__tags li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	color: var(--qc-ink);
	background: var(--qc-white);
	border-radius: 16px;
	font-weight: 600;
}

.about-qc__tags svg {
	flex: none;
	color: var(--qc-orange-text);
}

/* Proceso -------------------------------------------------------------- */
#proceso h2 {
	color: var(--qc-ink);
}

.steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.step {
	min-height: 300px;
	padding: 34px 28px 40px;
	background: var(--qc-paper);
	border-radius: var(--qc-radius);
	transition: background-color .4s, color .4s, transform .45s var(--qc-ease);
}

.step:hover {
	color: var(--qc-white);
	background: var(--qc-ink);
	transform: translateY(-6px);
}

.step__n {
	display: block;
	color: #c4c8cd;
	font-family: var(--qc-font-display);
	font-size: 54px;
	font-stretch: 118%;
	font-weight: 800;
	line-height: 1;
	transition: color .4s;
}

.step:hover .step__n {
	color: var(--qc-orange);
}

.step__title {
	margin-top: 56px;
	font-size: 24px;
	font-stretch: 108%;
}

.step__text {
	margin-top: 12px;
	color: var(--qc-muted);
	transition: color .4s;
}

.step:hover .step__text {
	color: var(--qc-soft-dark);
}

/* Intergomas: llamada --------------------------------------------------- */
.ig-teaser-wrap {
	padding-bottom: clamp(80px, 10vw, 130px);
}

.ig-teaser {
	position: relative;
	display: block;
	min-height: 460px;
	overflow: hidden;
	color: var(--qc-white);
	border-radius: 24px;
	text-decoration: none;
	isolation: isolate;
}

.ig-teaser:hover {
	color: var(--qc-white);
}

.ig-teaser > img {
	position: absolute;
	z-index: -2;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 70%;
	transition: transform 1.2s var(--qc-ease);
}

.ig-teaser:hover > img {
	transform: scale(1.05);
}

.ig-teaser::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background: linear-gradient(90deg, rgba(21, 24, 28, .95) 0%, rgba(21, 24, 28, .78) 45%, rgba(21, 24, 28, .05) 100%);
}

.ig-teaser__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 18px;
	min-height: 460px;
	max-width: 580px;
	padding: 56px;
}

.ig-teaser__content .eyebrow {
	margin: 0;
}

.ig-teaser__title {
	font-family: var(--qc-font-display);
	font-size: clamp(44px, 5vw, 64px);
	font-stretch: 118%;
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: .98;
}

.ig-teaser__text {
	color: #dfe1e4;
	font-size: 18px;
}

.ig-teaser__button {
	align-self: flex-start;
	margin-top: 8px;
}

.ig-teaser:hover .ig-teaser__button {
	background: var(--qc-orange-hover);
	box-shadow: 0 14px 34px rgba(254, 89, 1, .35);
}

.ig-teaser:hover .ig-teaser__button svg {
	transform: translateX(4px);
}

.ig-teaser:focus-visible {
	outline-offset: 4px;
}

/* Llamada final -------------------------------------------------------- */
.cta-band {
	position: relative;
	overflow: hidden;
	color: var(--qc-ink);
	background: var(--qc-orange);
}

.cta-band__trace {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.cta-band__base {
	fill: none;
	stroke: #e24f00;
	stroke-width: 2;
}

.cta-band__pulse {
	stroke: var(--qc-white);
	stroke-width: 3;
}

.cta-band__inner {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	padding-top: clamp(72px, 8vw, 100px);
	padding-bottom: clamp(72px, 8vw, 100px);
}

.cta-band h2 {
	max-width: 760px;
}

/* Responsive ----------------------------------------------------------- */
@media (max-width: 1080px) {
	.hero-qc__card {
		left: 20px;
	}
}

@media (max-width: 900px) {
	.hero-qc__grid,
	.about-qc {
		flex-direction: column;
		align-items: stretch;
	}

	.hero-qc__media,
	.hero-qc__copy,
	.about-qc__media,
	.about-qc__copy {
		flex-basis: auto;
	}

	.hero-qc__photo {
		height: 420px;
	}

	.hero-qc__traces {
		display: none;
	}

	.svc-panels {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.svc-panel {
		min-height: 360px;
	}

	.route__line {
		display: none;
	}

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

	.step {
		min-height: 0;
	}

	.step__title {
		margin-top: 28px;
	}

	.about-qc__main {
		height: 380px;
	}

	.about-qc__inset {
		right: 12px;
	}

}

@media (max-width: 600px) {
	.svc-panels {
		grid-template-columns: minmax(0, 1fr);
	}

	.svc-panel {
		min-height: 340px;
	}

	.svc-panel__title {
		font-size: 26px;
	}

	.hero-qc__card {
		position: relative;
		bottom: auto;
		left: auto;
		max-width: none;
		margin-top: -60px;
		margin-inline: 16px;
		background: rgba(21, 24, 28, .7);
	}

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

	.about-qc__inset {
		display: none;
	}

	.ig-teaser__content {
		padding: 32px 24px;
	}

	.ig-teaser::before {
		background: linear-gradient(180deg, rgba(21, 24, 28, .65) 0%, rgba(21, 24, 28, .95) 70%);
	}


	.marquee__item {
		font-size: 22px;
		gap: 36px;
	}
}
