/* IGC Landing — Overrides
 * Reglas responsive con clases Tailwind v4 que el parser no preserva
 * (porque el colon : se interpreta como pseudo-clase).
 * Cargado después de tailwind.css.
 */

@media (min-width: 640px) {
	.sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
	.sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
	.sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
	.sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
	.sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
	.sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
	.sm\:text-5xl { font-size: 3rem; line-height: 1; }
	.sm\:text-6xl { font-size: 3.75rem; line-height: 1; }
	.sm\:block { display: block; }
	.sm\:hidden { display: none; }
	.sm\:flex-row { flex-direction: row; }
	.sm\:space-y-0 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(0px * var(--tw-space-y-reverse)); }
	.sm\:space-x-6 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 0; margin-right: calc(1.5rem * var(--tw-space-x-reverse)); margin-left: calc(1.5rem * calc(1 - var(--tw-space-x-reverse))); }
	.sm\:p-6 { padding: 1.5rem; }
	.sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
	.sm\:px-8 { padding-left: 2rem; padding-right: 2rem; }
	.sm\:py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
	.sm\:h-3 { height: 0.75rem; }
	.sm\:h-5 { height: 1.25rem; }
	.sm\:h-6 { height: 1.5rem; }
	.sm\:h-24 { height: 6rem; }
	.sm\:h-60 { height: 15rem; }
	.sm\:h-72 { height: 18rem; }
	.sm\:w-3 { width: 0.75rem; }
	.sm\:w-5 { width: 1.25rem; }
	.sm\:w-6 { width: 1.5rem; }
	.sm\:w-60 { width: 15rem; }
	.sm\:w-72 { width: 18rem; }
	.sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sm\:gap-3 { gap: 0.75rem; }
	.sm\:pb-0 { padding-bottom: 0; }
}

@media (min-width: 768px) {
	.md\:text-base { font-size: 1rem; line-height: 1.5rem; }
	.md\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
	.md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
	.md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
	.md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
	.md\:text-5xl { font-size: 3rem; line-height: 1; }
	.md\:text-6xl { font-size: 3.75rem; line-height: 1; }
	.md\:p-6 { padding: 1.5rem; }
	.md\:px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
	.md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
	.md\:py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
	.md\:mt-6 { margin-top: 1.5rem; }
	.md\:mb-6 { margin-bottom: 1.5rem; }
	.md\:w-12 { width: 3rem; }
	.md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.md\:group-hover\:scale-110:hover .group-hover\:scale-110 { transform: scale(1.1); }
}

@media (min-width: 1024px) {
	.lg\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
	.lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
	.lg\:hidden { display: none; }
	.lg\:block { display: block; }
	.lg\:p-4 { padding: 1rem; }
	.lg\:p-8 { padding: 2rem; }
	.lg\:px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
	.lg\:py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
	.lg\:mt-0 { margin-top: 0; }
	.lg\:mt-4 { margin-top: 1rem; }
	.lg\:mb-2 { margin-bottom: 0.5rem; }
	.lg\:mb-6 { margin-bottom: 1.5rem; }
	.lg\:w-6 { width: 1.5rem; }
	.lg\:w-80 { width: 20rem; }
	.lg\:w-96 { width: 24rem; }
	.lg\:h-6 { height: 1.5rem; }
	.lg\:h-32 { height: 8rem; }
	.lg\:h-80 { height: 20rem; }
	.lg\:h-96 { height: 24rem; }
	.lg\:gap-4 { gap: 1rem; }
	.lg\:gap-16 { gap: 4rem; }
	.lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.lg\:rounded-xl { border-radius: 0.75rem; }
	.lg\:rounded-2xl { border-radius: 1rem; }
	.lg\:space-y-6 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(1.5rem * var(--tw-space-y-reverse)); }
	.lg\:space-y-8 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(2rem * var(--tw-space-y-reverse)); }
	.lg\:space-x-2 > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 0; margin-right: calc(0.5rem * var(--tw-space-x-reverse)); margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse))); }
	.lg\:order-1 { order: 1; }
	.lg\:order-2 { order: 2; }
}

/* Custom title utility (Hero H1) */
.igc-hero-h1 {
	font-size: 1.875rem;
	line-height: 1.2;
	font-weight: 700;
	color: #fff;
	margin: 0;
	letter-spacing: -0.02em;
	line-height: 1.25;
	margin-top: 2rem;
}
@media (min-width: 640px) { .igc-hero-h1 { font-size: 2.25rem; } }
@media (min-width: 768px) { .igc-hero-h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .igc-hero-h1 { font-size: 3.75rem; } }

.igc-hero-title-line {
	white-space: nowrap;
}

.igc-hero-badge {
	width: max-content;
	max-width: 100%;
	height: 42px;
	box-sizing: border-box;
	align-self: flex-start;
	margin-left: 0 !important;
	margin-right: auto !important;
}

.igc-hero-badge p {
	margin: 0;
	font-size: 1rem !important;
	font-weight: 600 !important;
	line-height: 1.5 !important;
}

.igc-hero-badge svg {
	width: 16px;
	height: 16px;
}

.igc-feature-chip {
	height: 70px;
	overflow: hidden;
}

.igc-feature-chip p {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.igc-section-heading h2 {
	line-height: 1.111111;
}

.igc-section-heading p {
	margin-top: 0 !important;
	line-height: 28px;
}

/* Equipo: replica las proporciones del Team.vue original. */
.igc-team-heading h2 {
	margin-top: 0 !important;
	margin-bottom: 24px !important;
}

.igc-team-heading .igc-badge svg {
	width: 16px;
	height: 16px;
}

.igc-team-heading .igc-badge {
	height: 36px;
	box-sizing: border-box;
}

.igc-team-heading > p {
	line-height: 1.625;
}

.igc-expertise-card .igc-expertise-icon-wrap {
	width: 100%;
	height: 16px;
	margin: 0 auto 24px;
	border-radius: 0;
	background: transparent;
}

.igc-expertise-card .igc-expertise-icon-wrap::before {
	display: none;
}

.igc-expertise-card h3 {
	line-height: 28px;
}

.igc-expertise-card .igc-expertise-badge {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex-wrap: nowrap;
	width: fit-content !important;
	min-width: max-content;
	max-width: 100%;
	white-space: nowrap;
	margin-right: auto;
	margin-left: auto;
	line-height: 16px;
}

.igc-expertise-card .igc-expertise-badge svg {
	flex: 0 0 1.25rem;
	width: 1.25rem;
	height: 1.25rem;
}

.igc-team-grid > .wp-block-column {
	display: flex;
	min-width: 0;
}

.igc-team-grid .igc-expertise-card {
	width: 100%;
	height: 100%;
}

/* CTA de Nosotros: elimina los márgenes tipográficos de Core que inflaban la sección. */
.igc-about-cta h3 {
	font-size: 24px;
	line-height: 32px;
	margin: 0 0 16px !important;
}

.igc-about-cta > p {
	font-size: 18px;
	line-height: 28px;
	margin: 0 0 32px !important;
}

.igc-about-cta .igc-cta-wrap {
	height: 60px;
	margin-top: 0 !important;
}

.igc-about-cta .igc-cta-wrap > a {
	box-sizing: border-box;
	height: 60px;
	line-height: 28px;
}

/* Contacto: conservar la secuencia vertical y las métricas de Contact.vue. */
.igc-contact-form-block .igc-form-heading {
	font-size: 24px;
	line-height: 32px;
	margin: 0 0 24px !important;
}

.igc-contact-form-block {
	line-height: 24px;
}

.igc-contact-form-block .igc-form-field label {
	line-height: 20px;
}

.igc-contact-form-block .igc-service-field > label {
	margin-bottom: 12px;
}

.igc-contact-form-block .igc-checkbox-hint {
	line-height: 16px;
}

.igc-contact-form-block .igc-terms-check label {
	margin: 0;
}

.igc-contact-form-block .igc-checkbox-item {
	box-sizing: border-box;
	height: 46px;
}

.igc-contact-form-block .cta-icon {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
}

.igc-contact-form-block button[type="submit"] {
	box-sizing: border-box;
	height: 60px;
	line-height: 28px;
}

.igc-executive-header h3 {
	line-height: 28px;
}

.igc-executive-section h4 {
	line-height: 20px;
}

.igc-executive-experience > p {
	line-height: 16px;
}

.igc-executive-body > .igc-whatsapp-btn {
	line-height: 20px;
	margin-top: 12px;
}

.igc-executives-grid .wp-block-post-template > .wp-block-post {
	margin-top: 0 !important;
}

.igc-contact-grid > .wp-block-column {
	align-self: stretch;
}

.igc-contact-grid {
	align-items: stretch !important;
}

.igc-contact-form-col {
	display: flex;
	height: auto !important;
}

.igc-contact-form-card {
	height: auto !important;
	min-height: 100%;
	flex: 1 1 auto;
}

.igc-contact-form-block .igc-form-field:has(#igc-message) {
	min-height: 156px;
}

.igc-value-number {
	line-height: 2rem;
}

.igc-value-label {
	line-height: 20px;
}

@media (max-width: 767px) {
	.igc-hero-title-line {
		white-space: normal;
	}
}

/* Card overflow fix: prevent grid items from expanding to min-content */
.service-card,
.timeline-step-modern,
.igc-expertise-card,
.igc-executive-card,
.igc-value-card,
.igc-feature-chip {
	min-width: 0;
	text-align: left;
}

/* Card text wrap: long words like "Implementación" must break gracefully */
.service-card h3,
.timeline-card h4,
.igc-expertise-card h3,
.igc-executive-header h3 {
	overflow-wrap: break-word;
	word-wrap: break-word;
}

/* Service grid: ensure responsive columns */
.igc-services-grid > * {
	min-width: 0;
}
@media (min-width: 768px) and (max-width: 1023px) {
	.igc-services-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}
@media (min-width: 1024px) {
	.igc-services-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
	}
}

/* Footer: replica la composición de Footer.vue y neutraliza los defaults de Core. */
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part:last-child {
	margin-top: 0 !important;
}

.igc-footer-main {
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 2rem !important;
	padding: 4rem 0 !important;
}

.igc-footer-brand {
	grid-column: span 2;
}

.igc-footer-main > .igc-footer-col:last-child {
	display: none !important;
}

@media (max-width: 767px) {
	/* The footer keeps the Nuxt order but becomes readable at phone widths. */
	.igc-footer-main {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 2rem !important;
		padding: 3rem 0 !important;
	}

	.igc-footer-brand {
		grid-column: auto;
	}

	.igc-footer-main > .igc-footer-col,
	.igc-footer-brand,
	.igc-footer-info-block {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.igc-footer-list a,
	.igc-footer-contact a,
	.igc-footer-contact p {
		overflow-wrap: anywhere;
		word-break: normal;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.igc-footer-main {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.igc-footer-brand {
		grid-column: span 2;
	}
}

.igc-footer-info-block,
.igc-footer-info-brand {
	font-size: 1rem !important;
	line-height: 1.5 !important;
}

.igc-footer-info-copy {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.igc-footer-info-block .custom-logo-link,
.igc-footer-info-block .igc-footer-logo-fallback {
	display: block;
	width: 120px !important;
	max-width: 120px !important;
	height: 3rem !important;
	margin: 0 !important;
}

.igc-footer-info-block .custom-logo {
	display: block;
	width: 120px !important;
	max-width: 120px !important;
	height: 3rem !important;
}

.igc-footer-info-desc {
	color: #d1d5db !important;
	font-size: 1rem !important;
	line-height: 1.625 !important;
	margin: 0 !important;
}

.igc-footer-info-contact {
	display: flex;
	flex-direction: column;
	gap: 0.75rem !important;
	margin-top: 1.5rem;
}

.igc-footer-info-contact-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: #d1d5db !important;
	font-size: 0.875rem !important;
	line-height: 1.25rem !important;
}

.igc-footer-info-contact-item svg {
	flex: 0 0 1.25rem;
	width: 1.25rem !important;
	height: 1.25rem !important;
	color: #f97a4d !important;
}

.igc-footer-info-contact-item a,
.igc-footer-info-contact-item span {
	color: #d1d5db !important;
}

.igc-footer-heading {
	font-size: 1.125rem !important;
	line-height: 1.75rem !important;
	margin: 0 0 1.5rem !important;
}

.igc-footer-list {
	gap: 0.75rem !important;
	font-size: 1rem !important;
	line-height: 1.5rem !important;
}

.igc-footer-list li {
	line-height: 1.5rem !important;
}

.igc-footer-list a {
	font-size: 0.875rem !important;
	line-height: 1.25rem !important;
}

.igc-footer-sep {
	margin: 0 !important;
}

.igc-footer-bottom {
	box-sizing: border-box;
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto !important;
	grid-template-areas:
		"copy socials"
		"legal socials";
	align-items: center !important;
	column-gap: 2rem !important;
	row-gap: 0.75rem !important;
	margin: 0 !important;
	padding: 2rem 0 !important;
	min-height: 4.5rem;
}

.igc-footer-bottom > .igc-footer-copy {
	grid-area: copy;
	font-size: 0.875rem !important;
	line-height: 1.25rem !important;
	margin: 0 !important;
}

.igc-footer-bottom > .igc-footer-legal {
	grid-area: legal;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	white-space: normal;
	font-size: 0.875rem !important;
	line-height: 1.25rem !important;
	margin: 0 !important;
}

.igc-footer-bottom > .igc-footer-socials {
	grid-area: socials;
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex: 0 0 auto;
}

.igc-footer-socials .social-icon-footer {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
}

.igc-footer-socials .social-svg {
	width: 1.25rem;
	height: 1.25rem;
}

.igc-footer-credit {
	box-sizing: border-box;
	font-size: 0.75rem !important;
	line-height: 1rem !important;
	margin: 1.5rem 0 0 !important;
	padding: 0 !important;
}

.igc-footer-credit img {
	display: inline-block !important;
	height: 1.5rem !important;
	margin-top: -0.5rem !important;
	vertical-align: middle !important;
}

.igc-footer-sep {
	height: 1px !important;
	min-height: 1px !important;
	border: 0 !important;
	border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

@media (max-width: 767px) {
	.igc-footer-bottom {
		grid-template-columns: minmax(0, 1fr) !important;
		grid-template-areas:
			"copy"
			"socials"
			"legal";
		row-gap: 1rem !important;
	}

	.igc-footer-bottom > .igc-footer-socials {
		justify-self: start;
	}

	.igc-footer-bottom > .igc-footer-legal {
		column-gap: 1rem;
	}
}
