/**
 * Insepro Theme — Global CSS
 * Reset mínimo y estilos base para el tema INSEPRO.
 * La fuente Plus Jakarta Sans se carga en functions.php
 */

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

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

body {
	margin: 0;
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	background-color: #FFFFFF;
	color: #0d1117;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img, video {
	max-width: 100%;
	display: block;
}

a {
	color: #e63946;
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: #c1121f;
}

/* ── WordPress core alignment helpers ───────────────── */
.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* ── Scrollbar estilo oscuro ─────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0d1117; }
::-webkit-scrollbar-thumb { background: #30363d; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #8b949e; }

/* ── Header - Fixed ──────────────────────────────── */
.insepro-header {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	z-index: 9999 !important;
	background-color: #FFFFFF !important;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	padding-top: 2px !important;
	padding-bottom: 2px !important;
}

.insepro-header > .wp-block-group {
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin: 0 !important;
}

.insepro-header .wp-block-group {
	padding-left: 32px !important;
	padding-right: 32px !important;
}

/* ── Header - Navigation ─────────────────────────────── */
.insepro-header .wp-block-navigation__container:only-child,
.insepro-header .wp-block-page-list:only-child {
	gap: 12px;
}

.insepro-header .wp-block-navigation__container:only-child .wp-block-navigation-link__content,
.insepro-header .wp-block-page-list:only-child .wp-block-navigation-link__content,
.insepro-header .wp-block-navigation .wp-block-navigation-item__label {
	font-weight: 700;
}

/* ── Header - Buttons ─────────────────────────────── */
.insepro-header .wp-block-buttons.is-layout-flex {
	gap: 12px;
}

/* Compensar el espacio del header fixed en el contenido */
body .wp-block-group:first-of-type {
	margin-top: 0px;
}

/* ── Header - Ocultar botones en mobile ──────────────── */
@media (max-width: 920px) {
	.insepro-header .wp-block-buttons {
		display: none;
	}
}

/* ── Footer - Estilos mobile ─────────────────────────── */
@media (max-width: 768px) {
	.insepro-footer__top {
		flex-direction: column;
		text-align: center;
		gap: 32px;
	}

	.insepro-footer__top .wp-block-columns {
		flex-direction: column;
	}

	.insepro-footer__cta {
		padding-right: 0 !important;
		text-align: center;
	}

	.insepro-footer__cta p {
		margin-bottom: 12px !important;
	}

	.insepro-footer__bottom {
		flex-direction: column;
		text-align: center;
		gap: 16px;
	}

	.insepro-footer .wp-block-social-links {
		justify-content: center;
	}
}

/* ── Footer - Botón CTA con sombra Figma ─────────────── */
.insepro-footer .wp-block-button a {
	box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
	border: 2px solid rgba(255, 255, 255, 0.12);
	position: relative;
}

.insepro-footer .wp-block-button a::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0px 0px 0px 1px rgba(10, 13, 18, 0.18), inset 0px -2px 0px 0px rgba(10, 13, 18, 0.05);
	pointer-events: none;
}

/* ── Footer - Iconos sociales ─────────────────────────── */
.insepro-footer__bottom .wp-block-social-links {
	display: flex;
	gap: 24px;
}

.insepro-footer__bottom .wp-block-social-links a {
	color: #000000;
	opacity: 1;
	transition: opacity 0.2s ease;
}

.insepro-footer__bottom .wp-block-social-links a:hover {
	opacity: 0.7;
}

.insepro-footer__bottom .wp-block-social-links svg {
	fill: #000000;
}
