/* ==========================================================================
   Intergomas
   ========================================================================== */

/* Inicio --------------------------------------------------------------- */
.ig-hero {
	position: relative;
	min-height: 780px;
	overflow: hidden;
	isolation: isolate;
}

.ig-hero__bg {
	position: absolute;
	z-index: -2;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 60% 60%;
}

.ig-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background: linear-gradient(90deg, rgba(21, 24, 28, .97) 0%, rgba(21, 24, 28, .86) 42%, rgba(21, 24, 28, .25) 80%, rgba(21, 24, 28, .1) 100%);
}

.ig-hero__inner {
	display: flex;
	align-items: center;
	min-height: 780px;
	padding-top: 80px;
	padding-bottom: 120px;
}

.ig-hero__copy {
	max-width: 700px;
}

.ig-hero__copy .lead {
	max-width: 540px;
	margin-top: 30px;
	color: #d0d3d7;
}

.ig-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 40px;
}

.ig-hero__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 44px 0 0;
	padding: 0;
	list-style: none;
}

.ig-hero__chips li {
	padding: 8px 14px;
	color: #e6e8eb;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 999px;
	font-size: 14px;
}

/* Insignia giratoria */
.ig-badge {
	position: absolute;
	right: 64px;
	bottom: 120px;
	width: 190px;
	height: 190px;
}

.ig-badge__ring {
	width: 100%;
	height: 100%;
	animation: qc-spin 22s linear infinite;
}

.ig-badge__ring circle {
	fill: rgba(21, 24, 28, .55);
}

.ig-badge__ring text {
	fill: var(--qc-white);
	font-family: var(--qc-font-mono);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 3.2px;
}

.ig-badge__core {
	position: absolute;
	inset: 58px;
	display: grid;
	place-items: center;
	color: var(--qc-ink);
	background: var(--qc-orange);
	border-radius: 50%;
}

/* Banda de rodadura: firma visual de Intergomas ------------------------ */
.tread {
	overflow: hidden;
	background: #0e1013;
	border-block: 1px solid #262a30;
}

.tread__track {
	display: flex;
	align-items: center;
	width: max-content;
	height: 76px;
	animation: qc-marquee 30s linear infinite;
}

.tread__chevrons svg {
	display: block;
	fill: #2a2f36;
}

.tread__chevrons .tread__low {
	fill: #20242a;
}

.tread__word {
	padding: 0 22px;
	color: var(--qc-orange);
	font-family: var(--qc-font-display);
	font-size: 22px;
	font-stretch: 125%;
	font-weight: 800;
	white-space: nowrap;
}

/* Introducción --------------------------------------------------------- */
.ig-intro {
	padding: clamp(80px, 9vw, 130px) 0 clamp(60px, 8vw, 110px);
}

.ig-intro__inner {
	display: flex;
	align-items: flex-end;
	gap: 64px;
}

.ig-intro__inner h2 {
	flex: 1 1 640px;
	min-width: 0;
	color: var(--qc-ink);
}

.ig-intro__inner .lead {
	flex: 1 1 420px;
	min-width: 0;
}

/* Pestañas (tipos y formatos) ------------------------------------------ */
.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tabs[hidden] {
	display: none;
}

.tab {
	min-height: 48px;
	padding: 0 22px;
	color: var(--qc-ink);
	background: var(--qc-white);
	border: 1px solid var(--qc-line);
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .35s, color .35s, border-color .35s;
}

.tab:hover {
	border-color: var(--qc-orange);
}

.tab[aria-selected="true"] {
	color: var(--qc-white);
	background: var(--qc-ink);
	border-color: var(--qc-ink);
}

/* Tipos de goma -------------------------------------------------------- */
.ig-types {
	padding-bottom: clamp(80px, 10vw, 140px);
}

.ig-types h2 {
	color: var(--qc-ink);
}

.type-panels {
	display: grid;
	gap: 24px;
}

.type-panel {
	display: flex;
	min-height: 540px;
	overflow: hidden;
	color: var(--qc-white);
	background: var(--qc-ink);
	border-radius: var(--qc-radius-lg);
}

.type-panel[hidden] {
	display: none;
}

.type-panel.is-entering {
	animation: qc-drop .55s var(--qc-ease) both;
}

.type-panel__media {
	position: relative;
	flex: 1 1 600px;
	min-width: 0;
	min-height: 360px;
	overflow: hidden;
}

.type-panel__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--qc-ease);
}

.type-panel:hover .type-panel__media img {
	transform: scale(1.04);
}

.type-panel.is-entering .type-panel__media img {
	animation: qc-zoom 1.6s var(--qc-ease) both;
}

.type-panel__tag {
	position: absolute;
	top: 24px;
	left: 24px;
	padding: 8px 12px;
	color: var(--qc-white);
	background: rgba(21, 24, 28, .72);
	border-radius: 999px;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.type-panel__body {
	display: flex;
	flex: 1 1 520px;
	flex-direction: column;
	justify-content: center;
	gap: 22px;
	min-width: 0;
	padding: clamp(32px, 4.5vw, 56px);
}

.type-panel__body h3 {
	font-size: clamp(30px, 3.2vw, 46px);
}

.type-panel__body .lead {
	color: var(--qc-soft-dark);
}

.type-panel__uses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.type-panel__uses li {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #e6e8eb;
	font-size: 15px;
}

.type-panel__uses svg {
	flex: none;
	color: var(--qc-orange);
}

.type-panel__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
	margin-top: 14px;
}

.type-panel__note {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--qc-muted-dark);
	font-size: 14px;
}

.type-panel__swatch {
	width: 14px;
	height: 14px;
	background: #e9eaec;
	border-radius: 50%;
}

/* Lector de medidas ---------------------------------------------------- */
.decoder__grid {
	display: flex;
	align-items: stretch;
	gap: 64px;
}

.decoder__main {
	flex: 1 1 640px;
	min-width: 0;
}

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

.decoder__main .lead {
	max-width: 560px;
	margin-top: 22px;
}

.decoder__tabs {
	margin-top: 34px;
}

.decoder__formats {
	display: grid;
	gap: 20px;
	margin-top: 30px;
}

.decoder__card {
	padding: clamp(28px, 4vw, 44px) clamp(24px, 3.5vw, 40px);
	color: var(--qc-white);
	background: var(--qc-ink);
	border-radius: var(--qc-radius-lg);
}

.decoder__card[hidden] {
	display: none;
}

.decoder__card.is-entering {
	animation: qc-drop .5s var(--qc-ease) both;
}

.decoder__caption {
	margin-bottom: 22px;
	color: var(--qc-faint-dark);
}

.decoder__code {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	font-family: var(--qc-font-mono);
	font-size: clamp(44px, 6vw, 72px);
	font-weight: 600;
	line-height: 1.1;
}

.decoder__sep {
	padding: 0 2px;
	color: var(--qc-muted);
}

.decoder__num {
	padding: 6px 14px;
	color: var(--qc-white);
	border: 2px dashed #4a4f57;
	border-radius: 16px;
	text-decoration: none;
	transition: background-color .35s, color .35s, border-color .35s, transform .35s var(--qc-ease);
}

.decoder__num:hover {
	color: var(--qc-white);
	border-color: var(--qc-orange);
	transform: translateY(-4px);
}

.decoder__num.is-active {
	color: var(--qc-ink);
	background: var(--qc-orange);
	border-color: var(--qc-orange);
}

.decoder__legend {
	display: grid;
	gap: 8px;
	margin: 30px 0 0;
	padding-top: 22px;
	border-top: 1px solid var(--qc-line-dark);
}

.decoder__row {
	padding: 14px 16px;
	border-radius: 14px;
	transition: background-color .35s;
}

.decoder__row.is-active,
.decoder__row:target {
	background: #262a30;
}

.decoder__row dt {
	font-family: var(--qc-font-display);
	font-size: 20px;
	font-stretch: 108%;
	font-weight: 700;
}

.decoder__value {
	margin-right: 6px;
	color: var(--qc-orange);
	font-family: var(--qc-font-mono);
	font-weight: 600;
}

.decoder__row dd {
	margin: 4px 0 0;
	color: var(--qc-soft-dark);
}

.decoder__photo {
	position: relative;
	flex: 0 1 420px;
	min-width: 0;
	min-height: 620px;
	margin: 0;
	overflow: hidden;
	color: var(--qc-white);
	border-radius: var(--qc-radius-lg);
}

.decoder__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 30%;
}

.decoder__photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(21, 24, 28, 0) 50%, rgba(21, 24, 28, .9) 100%);
}

.decoder__photo figcaption {
	position: absolute;
	z-index: 1;
	right: 28px;
	bottom: 28px;
	left: 28px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.decoder__photo figcaption strong {
	font-size: 18px;
}

.decoder__photo figcaption span {
	color: #dfe1e4;
}

/* Industrias (mosaico) ------------------------------------------------- */
#industrias h2 {
	color: var(--qc-ink);
}

.bento {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: 300px;
	gap: 16px;
}

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

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

.bento__item--wide {
	grid-row: span 2;
	grid-column: span 2;
}

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

.bento__item:hover img {
	transform: scale(1.07);
}

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

.bento__text {
	position: absolute;
	right: 24px;
	bottom: 22px;
	left: 24px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bento__title {
	font-family: var(--qc-font-display);
	font-size: 26px;
	font-stretch: 108%;
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.05;
}

.bento__title--lg {
	font-size: clamp(28px, 3vw, 38px);
}

.bento__more {
	max-width: 560px;
	color: #dfe1e4;
	font-size: 15px;
}

@media (hover: hover) and (min-width: 901px) {
	.bento__more {
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		transition: max-height .6s var(--qc-ease), opacity .5s;
	}

	.bento__item:hover .bento__more,
	.bento__item:focus-visible .bento__more {
		max-height: 120px;
		opacity: 1;
	}
}

/* Señales de cambio ---------------------------------------------------- */
.signs__grid {
	display: flex;
	align-items: flex-start;
	gap: 72px;
}

.signs__intro {
	flex: 0 1 440px;
	min-width: 0;
}

.signs__intro .lead {
	margin-top: 24px;
}

.signs__verdict {
	margin-top: 36px;
	padding: 26px;
	color: var(--qc-white);
	background: var(--qc-ink-3);
	border-radius: var(--qc-radius);
	transition: background-color .4s, color .4s;
}

.signs__verdict[data-level="1"] {
	background: #3a2a1f;
}

.signs__verdict[data-level="2"] {
	color: var(--qc-ink);
	background: var(--qc-orange);
}

.signs__verdict.is-updated {
	animation: qc-pop .5s var(--qc-ease) both;
}

.signs__verdict-title {
	margin-bottom: 8px;
	font-family: var(--qc-font-display);
	font-size: 26px;
	font-stretch: 108%;
	font-weight: 800;
	line-height: 1.1;
}

.signs__list {
	display: flex;
	flex: 1 1 560px;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.sign {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding: 22px 24px;
	background: var(--qc-ink-2);
	border: 1px solid var(--qc-line-dark);
	border-radius: 18px;
	cursor: pointer;
	transition: background-color .3s, border-color .3s, transform .35s var(--qc-ease);
}

.sign:hover {
	transform: translateX(6px);
}

.sign input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.sign__box {
	display: grid;
	width: 30px;
	height: 30px;
	flex: none;
	place-items: center;
	color: transparent;
	border: 2px solid #6b7078;
	border-radius: 9px;
	transition: background-color .3s, border-color .3s, color .3s;
}

.sign__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.sign__text strong {
	font-size: 18px;
}

.sign__text span {
	color: var(--qc-muted-dark);
	font-size: 15px;
}

.sign:has(input:checked) {
	background: #2a1c14;
	border-color: var(--qc-orange);
}

.sign input:checked + .sign__box {
	color: var(--qc-ink);
	background: var(--qc-orange);
	border-color: var(--qc-orange);
}

.sign input:checked + .sign__box svg {
	animation: qc-pop .4s var(--qc-ease) both;
}

.sign input:focus-visible + .sign__box {
	outline: 3px solid var(--qc-orange);
	outline-offset: 3px;
}

/* Cotizar -------------------------------------------------------------- */
.ig-quote__grid {
	display: flex;
	align-items: flex-start;
	gap: 72px;
}

.ig-quote__intro {
	flex: 0 1 440px;
	min-width: 0;
}

.ig-quote__intro h2 {
	color: var(--qc-ink);
	font-size: clamp(32px, 3.4vw, 48px);
}

.ig-quote__steps {
	display: flex;
	flex-direction: column;
	gap: 22px;
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: ig-step;
}

.ig-quote__steps li {
	position: relative;
	padding-left: 58px;
	color: var(--qc-body);
	counter-increment: ig-step;
}

.ig-quote__steps li::before {
	content: counter(ig-step, decimal-leading-zero);
	position: absolute;
	top: -2px;
	left: 0;
	color: var(--qc-orange-text);
	font-family: var(--qc-font-display);
	font-size: 22px;
	font-stretch: 118%;
	font-weight: 800;
}

.ig-quote__steps strong {
	color: var(--qc-ink);
}

.ig-quote .quote-form {
	background: var(--qc-paper);
	box-shadow: none;
}

.ig-quote .quote-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.ig-quote .quote-form select,
.ig-quote .quote-form textarea {
	background: var(--qc-white);
}

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

.ig-cta__tire {
	position: absolute;
	top: -120px;
	right: -120px;
	width: 520px;
	height: 520px;
	opacity: .18;
	animation: qc-spin 22s linear infinite;
	pointer-events: none;
}

.ig-cta__tread {
	fill: none;
	stroke: var(--qc-ink);
	stroke-width: 16;
	stroke-dasharray: 10 6;
}

.ig-cta__rim {
	fill: none;
	stroke: var(--qc-ink);
	stroke-width: 6;
}

.ig-cta__hub {
	fill: var(--qc-ink);
}

.ig-cta__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);
}

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

/* Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
	.ig-hero,
	.ig-hero__inner {
		min-height: 640px;
	}

	.ig-hero::before {
		background: linear-gradient(180deg, rgba(21, 24, 28, .8) 0%, rgba(21, 24, 28, .92) 60%);
	}

	.ig-badge,
	.decoder__photo {
		display: none;
	}

	.ig-intro__inner,
	.decoder__grid,
	.signs__grid,
	.ig-quote__grid {
		flex-direction: column;
		align-items: stretch;
		gap: 40px;
	}

	.ig-intro__inner h2,
	.ig-intro__inner .lead,
	.decoder__main,
	.signs__intro,
	.signs__list,
	.ig-quote__intro {
		flex-basis: auto;
	}

	.type-panel {
		flex-direction: column;
		min-height: 0;
	}

	.type-panel__media {
		flex-basis: auto;
		min-height: 280px;
	}

	.type-panel__body {
		flex-basis: auto;
	}

	.bento {
		grid-template-columns: minmax(0, 1fr);
		grid-auto-rows: 280px;
	}

	.bento__item--wide {
		grid-row: auto;
		grid-column: auto;
	}

	.ig-cta__tire {
		width: 360px;
		height: 360px;
	}
}

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

	.tabs {
		gap: 6px;
	}

	.tab {
		padding: 0 16px;
		font-size: 14px;
	}

	.sign {
		padding: 18px;
	}

	.sign:hover {
		transform: none;
	}
}
