/*
 * IGC Landing — Global
 * Variables de diseño + utilidades base (1:1 con proyecto Nuxt).
 */

:root {
	--color-primary: #002538;
	--color-primary-light: #003d56;
	--color-primary-dark: #001a24;
	--color-secondary: #F97A4D;
	--color-secondary-light: #ffa876;
	--color-secondary-dark: #d85a2b;
	--color-whatsapp: #25d366;
	--color-whatsapp-dark: #128c7e;
	--igc-container: 1376px;
	--igc-header-height: 80px;
	--igc-admin-bar-height: 0px;
	--igc-radius: 0.5rem;
	--igc-radius-lg: 0.75rem;
	--igc-radius-xl: 1rem;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	width: 100%;
	max-width: 100%;
}

body {
	font-family: -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
	color: #1f2937;
	background: #ffffff;
	margin: 0;
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
}

.wp-site-blocks,
.wp-site-blocks > main,
.igc-site-main,
.igc-site-main > *,
.igc-header,
.igc-hero,
.igc-container {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.wp-block-columns,
.wp-block-column,
.wp-block-group,
.wp-block-button {
	min-width: 0;
}

img {
	max-width: 100%;
	height: auto;
}

/* ---------- Container 1376px ---------- */
.igc-container {
	max-width: var(--igc-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

/* ---------- Utilidades de color ---------- */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-primary-gradient {
	background: linear-gradient(to bottom right, var(--color-primary), var(--color-primary-light));
}
.border-secondary { border-color: var(--color-secondary); }

/* ---------- Botones CTA (equivalente a clases del diseño) ---------- */
.igc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border-radius: var(--igc-radius);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.5;
	text-decoration: none;
	cursor: pointer;
	transition: all 300ms ease;
	border: 0;
}
.igc-btn-lg {
	padding: 1rem 2rem;
	border-radius: var(--igc-radius-lg);
	font-weight: 700;
	font-size: 1.125rem;
}
.igc-btn-primary {
	background: var(--color-secondary);
	color: #fff;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.igc-btn-primary:hover {
	background: var(--color-secondary-light);
	transform: scale(1.05);
	box-shadow: 0 25px 50px -12px rgba(249, 122, 77, 0.3);
}
.igc-btn-outline {
	background: transparent;
	color: #fff;
	border: 2px solid #fff;
}
.igc-btn-outline:hover {
	background: #fff;
	color: #000;
}
.igc-btn-outline-secondary {
	background: transparent;
	color: var(--color-secondary);
	border: 1px solid var(--color-secondary);
}
.igc-btn-outline-secondary:hover {
	background: var(--color-secondary);
	color: #fff;
	transform: scale(1.05);
}
.igc-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

/* ---------- Wave effect (botones) ---------- */
.igc-wave {
	position: relative;
	overflow: hidden;
}
.igc-wave::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
	transform: translateX(-100%);
	transition: transform 0.5s ease;
	pointer-events: none;
}
.igc-wave:hover::before {
	transform: translateX(100%);
}

/* ---------- Header ---------- */
.igc-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background: var(--color-primary);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
body.admin-bar .igc-header {
	top: var(--igc-admin-bar-height);
}
body.admin-bar {
	--igc-admin-bar-height: 32px;
}
@media (max-width: 782px) {
	body.admin-bar {
		--igc-admin-bar-height: 46px;
	}
	body.admin-bar .igc-header {
		top: var(--igc-admin-bar-height);
	}
}

.igc-header .igc-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	padding-top: 1rem;
	padding-bottom: 1rem;
}
.igc-header-logo {
	margin: 0;
}
.igc-header-logo img {
	display: block;
	height: 3rem;
	width: auto;
}
.igc-header-actions,
.igc-desktop-nav {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: nowrap;
}
.igc-desktop-nav {
	gap: 1.5rem;
}
.igc-header-action-icon {
	display: inline-flex;
	align-items: center;
}
.igc-header-action-icon svg {
	width: 1rem;
	height: 1rem;
}
@media (max-width: 767px) {
	.igc-desktop-nav {
		display: none;
	}
}

.igc-nav {
	display: none;
	align-items: center;
	gap: 1.5rem;
}
@media (min-width: 768px) {
	.igc-nav {
		display: flex;
	}
}

.igc-nav-links {
	display: flex;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-link {
	position: relative;
	display: block;
	padding: 0.5rem 0.75rem;
	color: #fff;
	font-weight: 500;
	text-decoration: none;
	transition: color 300ms ease, transform 300ms ease;
}
.nav-link:hover {
	color: var(--color-secondary);
	transform: translateY(-1px);
}
.nav-link-bar {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 2px;
	width: 0;
	background: var(--color-secondary);
	transition: width 300ms ease-in-out;
}
.nav-link:hover .nav-link-bar,
.nav-link.active .nav-link-bar {
	width: 100%;
}

.igc-header-spacer {
	height: calc(var(--igc-header-height) + var(--igc-admin-bar-height));
}

/* ---------- Mobile menu ---------- */
.igc-mobile-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	color: #fff;
	padding: 0.5rem;
	min-width: 44px;
	min-height: 44px;
	cursor: pointer;
}
@media (min-width: 768px) {
	.igc-mobile-toggle {
		display: none;
	}
}
.igc-mobile-menu {
	display: none;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem 0;
	box-sizing: border-box;
	min-width: 0;
}
.igc-mobile-menu.is-open {
	display: flex;
}
@media (max-width: 767px) {
	.igc-header .igc-container {
		flex-wrap: wrap;
		align-items: center;
		row-gap: 0;
	}
	.igc-header-logo,
	.igc-header-actions {
		min-width: 0;
	}
	.igc-header-actions {
		margin-left: auto;
	}
	.igc-mobile-menu {
		flex: 0 0 100%;
		width: 100%;
		max-width: 100%;
		padding-top: 1rem;
		padding-bottom: 0.75rem;
	}
}
@media (min-width: 768px) {
	.igc-mobile-menu {
		display: none !important;
	}
}
.igc-mobile-menu a,
.igc-mobile-menu button {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 44px;
	text-align: left;
	color: #fff;
	padding: 0.75rem 1rem;
	border-radius: var(--igc-radius);
	text-decoration: none;
	font-weight: 500;
	background: transparent;
	border: 0;
	cursor: pointer;
	transition: all 300ms ease;
}
.igc-mobile-menu a:hover,
.igc-mobile-menu a:focus-visible,
.igc-mobile-menu button:hover,
.igc-mobile-menu button:focus-visible,
.igc-mobile-menu a.active {
	background: rgba(249, 122, 77, 0.1);
	color: var(--color-secondary);
}

/* ---------- Section helpers ---------- */
.igc-section {
	padding-top: 5rem;
	padding-bottom: 5rem;
}
:where(#inicio, #servicios, #nosotros, #equipo, #contacto) {
	scroll-margin-top: calc(var(--igc-header-height) + var(--igc-admin-bar-height) + 1rem);
}
.igc-section-heading {
	text-align: center;
	max-width: 48rem;
	margin: 0 auto 4rem;
}
.igc-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(249, 122, 77, 0.1);
	border-radius: 9999px;
	padding: 0.5rem 1.5rem;
	margin-bottom: 1.5rem;
	color: var(--color-secondary);
	font-weight: 600;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.025em;
}

/* ---------- Skip link (a11y) ---------- */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 9999;
	background: var(--color-secondary);
	color: #fff;
	padding: 0.75rem 1rem;
	border-radius: 0 0 var(--igc-radius) 0;
	text-decoration: none;
}
.skip-link:focus {
	left: 0;
}

/* ---------- Focus visibility ---------- */
:focus-visible {
	outline: 2px solid var(--color-secondary);
	outline-offset: 2px;
}

/* ---------- Legal pages ---------- */
.igc-legal-hero {
	position: relative;
	padding-top: 8rem;
	padding-bottom: 4rem;
	background: linear-gradient(to bottom right, var(--color-primary), var(--color-primary-light));
	color: #fff;
}
.igc-legal-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.1);
}
.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;
}
.igc-legal-card ul {
	list-style: disc;
	padding-left: 1.5rem;
	color: #374151;
}
.igc-legal-card p {
	color: #374151;
	line-height: 1.625;
}

/* ---------- Footer helpers ---------- */
.igc-footer .social-icon-footer {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	color: #fff;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
}
.igc-footer .social-icon-footer:hover {
	background: #f97a4d;
	transform: translateY(-2px) scale(1.1);
	box-shadow: 0 8px 25px rgba(249, 122, 77, 0.3);
}
.igc-footer .social-icon-footer[title="Facebook"]:hover { background: #1877f2; border-color: #1877f2; box-shadow: 0 8px 25px rgba(24, 119, 242, 0.3); }
.igc-footer .social-icon-footer[title="Twitter"]:hover { background: #1da1f2; border-color: #1da1f2; box-shadow: 0 8px 25px rgba(29, 161, 242, 0.3); }
.igc-footer .social-icon-footer[title="LinkedIn"]:hover { background: #0077b5; border-color: #0077b5; box-shadow: 0 8px 25px rgba(0, 119, 181, 0.3); }
.igc-footer .social-icon-footer[title="Instagram"]:hover {
	background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
	border-color: #e6683c;
	box-shadow: 0 8px 25px rgba(220, 39, 67, 0.3);
}
.igc-footer .social-svg {
	width: 20px;
	height: 20px;
}

/* ---------- Resets sobre bloques core ---------- */
.igc-footer .wp-block-social-links .wp-block-social-link:hover {
	transform: translateY(-2px) scale(1.1);
}
.igc-nav .wp-block-navigation__container {
	gap: 1rem;
}
.igc-nav .wp-block-navigation-item__label {
	font-weight: 500;
}
