/*
 * IGC Landing — Layout overrides
 * Ajustes responsive de bloques core para lograr el 1:1 con el diseño Nuxt.
 */

/* ---------- hidden attribute vs display ---------- */
[hidden] {
	display: none !important;
}

/* ---------- Espaciado bajo header fixed ---------- */
.igc-site-main {
	padding-top: var(--igc-header-height);
}
body.home .igc-site-main,
body.front-page .igc-site-main {
	padding-top: 0;
}
body.admin-bar .igc-site-main {
	/* compensa admin bar con header fixed */
}
.igc-page-inner,
.igc-site-main .igc-container {
	padding-top: 2rem;
	padding-bottom: 2rem;
}

.wp-site-blocks > .igc-section {
	margin-top: 0 !important;
}

/* ---------- Hero grid ---------- */
.igc-hero-grid {
	gap: 4rem;
	align-items: center !important;
	min-width: 0;
}
@media (max-width: 767px) {
	.igc-hero-grid {
		gap: 2rem;
	}
}
.igc-hero-grid .igc-hero-visual {
	margin-top: 2rem;
}
.igc-hero-grid > .wp-block-column {
	min-width: 0;
}
@media (min-width: 768px) {
	.igc-hero-grid .igc-hero-visual {
		margin-top: 0;
	}
}

/* Hero features: 1 col → 2 cols (sm) */
.igc-hero-features {
	gap: 1rem;
	padding: 1rem 0;
	margin-top: 2rem !important;
	flex-wrap: wrap !important;
}
.igc-hero-features .wp-block-column {
	flex: 0 0 100% !important;
	width: 100%;
	margin: 0;
}
@media (min-width: 640px) and (max-width: 767px) {
	.igc-hero-features .wp-block-column {
		flex: 0 0 calc(50% - 0.5rem) !important;
		width: calc(50% - 0.5rem);
	}
}
@media (min-width: 768px) and (max-width: 1023px) {
	.igc-hero-features .wp-block-column {
		flex: 0 0 calc(50% - 0.5rem) !important;
		width: calc(50% - 0.5rem);
	}
}
@media (min-width: 1024px) {
	.igc-hero-features .wp-block-column {
		/* Nuxt renders the four chips as a 2 × 2 grid on desktop. */
		flex: 0 0 calc(50% - 0.5rem) !important;
		width: calc(50% - 0.5rem);
	}
}

@media (min-width: 768px) {
	.igc-hero {
		padding-bottom: 0;
	}

	.igc-hero-grid {
		box-sizing: border-box;
		flex-wrap: nowrap !important;
		padding: 5rem 2.5rem;
		transform: translateY(-0.5rem);
	}

	.igc-hero-grid > .wp-block-column {
		box-sizing: border-box;
		flex: 0 0 calc(50% - 2rem) !important;
		width: calc(50% - 2rem);
	}

	.igc-hero-text {
		padding-left: 0;
	}

	.igc-hero-visual .igc-dashboard {
		margin-left: 0 !important;
		margin-right: 0 !important;
		margin-top: 0 !important;
		height: 538px;
		box-sizing: border-box;
	}
}

/* Hero CTAs */
.igc-hero-ctas {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding-top: 1.5rem;
	margin-top: 2rem !important;
}

.igc-hero-ctas .wp-block-button {
	padding: 0 !important;
}

.igc-hero-ctas .wp-block-button__link {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 64px;
	height: 64px;
	padding: 1rem 1.5rem !important;
}
@media (min-width: 640px) {
	.igc-hero-ctas {
		flex-direction: row;
		gap: 1.5rem;
	}
}

/* Dashboard metrics: 2 cols */
.igc-dashboard-metrics {
	gap: 1rem;
	margin-bottom: 1.5rem;
	flex-wrap: wrap !important;
}
.igc-dashboard-metrics .wp-block-column {
	flex: 0 0 calc(50% - 0.5rem) !important;
	width: calc(50% - 0.5rem);
	margin: 0;
}
.igc-metric {
	height: 112px;
	box-sizing: border-box;
	background: transparent !important;
}
.igc-dashboard {
	width: 600px;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}
@media (min-width: 1024px) {
	.igc-dashboard-metrics {
		gap: 1rem;
	}
}

/* ---------- Services grid (5 cards) ---------- */
.igc-services-grid {
	display: block !important;
	width: 100%;
}
.igc-services-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-bottom: 4rem;
	width: 100%;
	padding: 0;
	list-style: none;
}
.igc-services-grid .wp-block-post-template > .wp-block-post {
	margin-top: 0 !important;
}
@media (min-width: 768px) {
	.igc-services-grid .wp-block-post-template {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (min-width: 1024px) {
	.igc-services-grid .wp-block-post-template {
		grid-template-columns: repeat(5, 1fr);
	}
}

/* ---------- Timeline responsive ---------- */
.igc-timeline-desktop {
	display: none;
}
@media (min-width: 1024px) {
	.igc-timeline-desktop {
		display: block !important;
	}
	.igc-timeline-mobile {
		display: none !important;
	}
}
.igc-timeline-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}

/* ---------- About ---------- */
.igc-about-grid {
	gap: 4rem;
	margin-bottom: 5rem;
	align-items: center !important;
}
.igc-about-values {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}
.igc-about-values .wp-block-column {
	flex: none !important;
	flex-basis: auto;
	width: auto;
	margin: 0;
}
.igc-about-grid > .wp-block-column > h2 {
	font-size: 2.25rem;
	line-height: 1.111111;
	margin: 0 0 1.5rem !important;
}
.igc-about-grid > .wp-block-column > p {
	font-size: 1.125rem;
	line-height: 1.625;
	margin: 0 0 1.5rem;
}
.igc-about-grid > .wp-block-column > p:nth-of-type(2) {
	margin-bottom: 2rem;
}
.igc-pillars-list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
.igc-pillar-item {
	width: 100%;
	gap: 1rem;
	margin: 0 !important;
}
.pillar-container h3 {
	line-height: 1.333333;
}

/* ---------- Team grid ---------- */
.igc-team-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}
@media (min-width: 768px) {
	.igc-team-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 1024px) {
	.igc-team-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ---------- Contacto ---------- */
.igc-contact-grid {
	gap: 2rem;
	min-width: 0;
}
.igc-contact-form-card {
	background: #fff;
	border-radius: var(--igc-radius-xl);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
	padding: 2rem;
}
.igc-contact-form-card .igc-form-heading {
	margin: 0 0 1.5rem;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--color-primary);
}
.igc-executives-grid .wp-block-post-template {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	min-width: 0;
}

/* ---------- Mobile safety: one column, no min-content overflow ---------- */
@media (max-width: 767px) {
	.igc-site-main,
	.igc-site-main > *,
	.igc-hero,
	.igc-hero-content,
	.igc-hero-grid,
	.igc-hero-text,
	.igc-hero-visual {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}

	.igc-hero {
		min-height: calc(100svh - var(--igc-header-height));
		padding-top: 3rem;
		padding-bottom: 3rem;
	}

	.igc-hero-grid {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 2rem;
		margin: 0 !important;
		padding: 3rem 0 2rem;
	}

	.igc-hero-grid > .wp-block-column {
		flex: 0 0 auto !important;
		width: 100% !important;
		max-width: 100%;
		margin: 0 !important;
	}

	.igc-hero-grid .igc-hero-visual {
		margin-top: 0 !important;
	}

	.igc-hero-features {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr);
		width: 100%;
		max-width: 100%;
		gap: 0.75rem;
		margin-top: 1.5rem !important;
		padding: 0.5rem 0;
	}

	.igc-hero-features .wp-block-column {
		width: auto !important;
		max-width: 100%;
		min-width: 0;
		margin: 0 !important;
	}

	.igc-feature-chip > div:last-child {
		min-width: 0;
		max-width: 100%;
	}

	.igc-feature-chip h3,
	.igc-feature-chip p,
	.igc-metric-value,
	.igc-metric-label {
		overflow-wrap: break-word;
		word-break: normal;
	}

	.igc-hero-ctas {
		align-items: stretch;
		width: 100%;
		max-width: 100%;
		margin-top: 1.5rem !important;
		padding-top: 0.5rem;
	}

	.igc-hero-ctas .wp-block-button,
	.igc-hero-ctas .wp-block-button__link {
		width: 100%;
		max-width: 100%;
	}

	.igc-hero-ctas .wp-block-button__link {
		height: auto;
		min-height: 56px;
	}

	.igc-dashboard {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding: 1rem;
	}

	.igc-dashboard-metrics {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
		max-width: 100%;
	}

	.igc-dashboard-metrics .wp-block-column {
		flex: none !important;
		width: auto !important;
		max-width: 100%;
		min-width: 0;
	}

	.igc-dashboard-footer {
		gap: 0.75rem;
		flex-wrap: wrap;
	}

	.igc-process .igc-badge {
		width: fit-content;
		max-width: 100%;
	}

	.igc-section-cta .wp-block-button,
	.igc-section-cta .wp-block-button__link {
		width: 100%;
		max-width: 100%;
	}

	.igc-services-grid .wp-block-post-template,
	.igc-team-grid,
	.igc-footer-main {
		grid-template-columns: minmax(0, 1fr) !important;
		min-width: 0;
	}

	.igc-about-grid,
	.igc-contact-grid {
		align-items: stretch !important;
		min-width: 0;
	}

	.igc-about-grid > .wp-block-column,
	.igc-contact-grid > .wp-block-column {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}

/* ---------- Sección heading ---------- */
.igc-section-heading {
	margin-bottom: 4rem;
}
.igc-section-heading h2 {
	margin-bottom: 1rem;
}
.igc-section-heading p {
	color: #4b5563;
	font-size: 1.125rem;
	line-height: 1.75;
}
.igc-section-cta p {
	color: #4b5563;
	font-size: 1.125rem;
	margin-bottom: 1.5rem;
}

/* Proceso (títulos blancos sobre fondo oscuro) */
.igc-process-title {
	color: #fff;
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 1.5rem !important;
	text-align: center;
}
.igc-process-desc {
	color: rgba(255, 255, 255, 0.8);
	font-size: 1.125rem;
	line-height: 1.625 !important;
	max-width: 48rem;
	margin-left: auto;
	margin-right: auto;
}
.igc-process-inner {
	margin-top: 0 !important;
	padding-top: 5rem !important;
}
.igc-process .igc-badge {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: rgba(255, 255, 255, 0.9);
	height: 42px;
	box-sizing: border-box;
	width: max-content;
	margin-left: auto;
	margin-right: auto;
	padding: 0.5rem 1.5rem;
}
.igc-process .igc-badge span {
	font-size: 1rem !important;
	font-weight: 500 !important;
	line-height: 1.5 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}
.igc-process .igc-badge svg {
	color: var(--color-secondary);
}
.igc-process .timeline-step-modern h4 {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
}
.igc-process .timeline-number-modern {
	margin: 0 auto !important;
}
.igc-process .timeline-step-modern p {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.625;
	color: rgba(255, 255, 255, 0.7);
	text-align: center;
}
.igc-section-cta > p {
	line-height: 28px;
}
.igc-section-cta .wp-block-button {
	padding: 0 !important;
}
.igc-section-cta .wp-block-button__link {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: max-content;
	min-height: 60px;
	height: 60px;
	padding: 1rem 2rem !important;
}
.igc-section-cta .wp-block-button__link svg {
	width: 20px;
	height: 20px;
}

/* ---------- Footer ---------- */
.igc-footer-main {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	padding: 4rem 0;
}
@media (min-width: 768px) {
	.igc-footer-main {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 1024px) {
	.igc-footer-main {
		grid-template-columns: 2fr 1fr 1fr 1fr;
	}
}
.igc-footer-heading {
	color: #fff;
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
}
.igc-footer-desc {
	color: #d1d5db;
	line-height: 1.75;
	margin: 1rem 0 1.5rem;
}
.igc-footer-contact p {
	color: #d1d5db;
	font-size: 0.875rem;
	margin: 0 0 0.75rem;
}
.igc-footer-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
.igc-footer-list a {
	color: #d1d5db;
	text-decoration: none;
	font-size: 0.875rem;
	transition: color 300ms ease;
}
.igc-footer-list a:hover {
	color: #f97a4d;
}
.igc-footer-socials {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}
.igc-footer-sep {
	border-color: rgba(255, 255, 255, 0.1) !important;
}
.igc-footer-bottom {
	gap: 1rem;
	padding: 2rem 0;
	justify-content: space-between;
}
.igc-footer-copy,
.igc-footer-legal {
	color: #d1d5db;
	font-size: 0.875rem;
	margin: 0;
}
.igc-footer-legal a {
	color: #d1d5db;
	text-decoration: none;
}
.igc-footer-legal a:hover {
	color: #f97a4d;
}
.igc-footer-credit {
	padding-bottom: 2rem;
	font-size: 0.75rem;
	color: #9ca3af !important;
	margin: 0;
}

/* ---------- Header / nav ---------- */
.igc-logo img {
	height: 3rem;
	width: auto;
}
.igc-header .wp-block-site-logo a {
	display: flex;
	align-items: center;
}
.igc-nav-links p {
	margin: 0;
}
.igc-header-ctas {
	gap: 1rem;
	align-items: center;
}
.igc-header .wp-block-button__link {
	padding: 0.5rem 1rem;
	border-radius: var(--igc-radius);
}
.igc-btn-acceso .wp-block-button__link {
	background: transparent !important;
	border: 1px solid var(--color-secondary);
	color: var(--color-secondary) !important;
}
.igc-btn-acceso .wp-block-button__link:hover {
	background: var(--color-secondary) !important;
	color: #fff !important;
	transform: scale(1.05);
}
.igc-btn-contactar .wp-block-button__link {
	background: var(--color-secondary) !important;
	font-weight: 600;
}
.igc-btn-contactar .wp-block-button__link:hover {
	background: var(--color-secondary-light) !important;
	transform: scale(1.05);
}

/* ---------- Legal pages ---------- */
.igc-legal-hero-sub {
	color: #e5e7eb;
	font-size: 1.25rem;
	max-width: 48rem;
	margin: 1.5rem auto 0;
}
.igc-legal-hero-date {
	margin-top: 2rem;
	justify-content: center;
}
.igc-legal-hero-date p {
	background: rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(4px);
	border-radius: var(--igc-radius);
	padding: 0.75rem 1.5rem;
	color: #fff;
	font-size: 0.875rem;
	margin: 0;
}
.igc-legal-content {
	max-width: 896px;
	margin: 0 auto;
	padding: 4rem 0;
}
.igc-legal-content h2 {
	color: #111827;
}
.igc-legal-card {
	background: #fff;
	border-radius: var(--igc-radius-xl);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
	padding: 2rem;
	margin-bottom: 2rem;
}
.igc-legal-card h2 {
	color: #111827;
	margin-top: 0;
	margin-bottom: 1.5rem;
	font-size: 1.5rem;
	font-weight: 700;
}
.igc-legal-card h3 {
	color: #1f2937;
	font-size: 1.125rem;
	font-weight: 600;
	margin: 1.5rem 0 0.75rem;
}
.igc-legal-card p {
	color: #374151;
	line-height: 1.625;
	margin: 0 0 1rem;
}
.igc-legal-card ul {
	list-style: disc;
	padding-left: 1.5rem;
	color: #374151;
}
.igc-legal-card ul li {
	margin-bottom: 0.5rem;
}
.igc-legal-card-dark {
	background: linear-gradient(to right, #002538, #001a24);
	border-radius: var(--igc-radius-xl);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	padding: 2rem;
	margin-bottom: 2rem;
}
.igc-legal-card-dark h2,
.igc-legal-card-dark h3 {
	color: #fff;
}
.igc-legal-card-dark h2 {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 1.5rem;
}
.igc-legal-card-dark h3 {
	font-size: 1rem;
	font-weight: 600;
	margin: 1.25rem 0 0.5rem;
}
.igc-legal-card-dark p,
.igc-legal-card-dark ul {
	color: #e5e7eb;
}
.igc-legal-card-dark p {
	line-height: 1.625;
	margin: 0 0 1rem;
}
.igc-legal-card-dark ul {
	list-style: disc;
	padding-left: 1.5rem;
}

/* ---------- Blog / index ---------- */
.igc-post-card {
	border: 1px solid #e5e7eb;
	border-radius: var(--igc-radius-xl);
	overflow: hidden;
	padding: 1.5rem;
	box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* ---------- 404 ---------- */
.igc-404 h1 {
	font-size: 6rem;
	margin-bottom: 1rem;
}
