@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dm-sans/DMSans-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dm-sans/DMSans-Regular-Italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dm-sans/DMSans-Bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dm-sans/DMSans-Bold-Italic.woff2") format("woff2");
	font-weight: 700;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Inter";
	src: url("../fonts/inter/Inter-VariableFont_slnt,wght.ttf") format("truetype");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "IBM Plex Mono";
	src: url("../fonts/ibm-plex-mono/IBMPlexMono-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Source Serif Pro";
	src: url("../fonts/source-serif-pro/SourceSerif4Variable-Roman.ttf.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}

body {
	font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.apimex-card__content h2,
.apimex-hero-cards__claim {
	font-family: "DM Sans", system-ui, sans-serif;
	font-weight: 700;
}
.site-header,
.site-footer {
	padding: 2rem 1.5rem;
}

.site-header__inner,
.site-footer__inner,
.container {
	max-width: 1200px;
	margin: 0 auto;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.apimex-header {
	position: fixed;
	top: 30px;
	left: 0;
	z-index: 1000;
	width: 100%;
	background: transparent;
	box-shadow: none;
}

.apimex-header__inner {
	width: min(100% - 32px, 1280px);
	min-height: 96px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.apimex-header--internal {
	background-image: url("../images/index-bg.jpg");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.apimex-header__brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.apimex-header__logos {
	display: flex;
	align-items: center;
	gap: 16px;
}

.apimex-header__logo {
	display: block;
	width: auto;
	height: 50px;
}

.apimex-header__cert {
	display: block;
	width: auto;
	object-fit: contain;
}

.apimex-header__cert--iso {
	height: 20px;
}

.apimex-header__cert--msq {
	height: 20px;
}

.apimex-header__socials {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.apimex-header__socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: #ffffff;
	text-decoration: none;
	transition: color 0.2s ease, transform 0.2s ease;
}

.apimex-header__socials a:hover {
	color: #95c11f;
	transform: translateY(-1px);
}

.apimex-header__socials svg {
	display: block;
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.apimex-header__nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.apimex-header__nav ul {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.apimex-header__nav a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #1f1f1f;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.apimex-header__nav a:hover,
.apimex-header__nav a:focus {
	background: #ffffff;
	color: #000000;
	transform: translateY(-1px);
	box-shadow: 0 5px 14px rgba(0, 0, 0, 0.14);
}

.apimex-header__nav a.is-active {
	background: #95c11f;
	color: #ffffff;
}

.apimex-header__toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 8px;
	background: #95c11f;
	cursor: pointer;
	padding: 10px;
}

.apimex-header__toggle span {
	display: block;
	width: 100%;
	height: 2px;
	margin: 5px 0;
	background: #ffffff;
	border-radius: 999px;
}

/* Compensación para que el header fijo no tape el contenido */
body {
	padding-top: 0;
}

@media (max-width: 1100px) {
	.apimex-header__inner {
		min-height: auto;
		padding: 16px 0;
		align-items: flex-start;
	}

	.apimex-header__toggle {
		display: inline-flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		margin-left: auto;
	}

	.apimex-header__nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		padding: 18px 16px 22px;
		background: rgba(255, 255, 255, 0.96);
		box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
		backdrop-filter: blur(8px);
	}

	.apimex-header.is-open .apimex-header__nav {
		display: block;
	}

	.apimex-header__nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		width: min(100%, 420px);
		margin: 0 auto;
	}

	.apimex-header__nav a {
		width: 100%;
	}

	body {
		padding-top: 112px;
	}
}

@media (max-width: 640px) {
	.apimex-header__inner {
		width: min(100% - 24px, 1280px);
		gap: 16px;
	}

	.apimex-header__brand {
		align-items: flex-start;
	}

	.apimex-header__logos {
		gap: 10px;
	}

	.apimex-header__logo {
		height: 42px;
	}

	.apimex-header__cert--iso,
	.apimex-header__cert--msq {
		height: 34px;
	}

	.apimex-header__socials {
		gap: 10px;
	}

	body {
		padding-top: 104px;
	}
}

.site-title {
	font-size: 1.25rem;
	font-weight: 700;
	text-decoration: none;
	color: inherit;
}

.primary-menu {
	display: flex;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu a {
	text-decoration: none;
	color: inherit;
}

.site-main {
	padding: 3rem 1.5rem;
}

.page-header {
	margin-bottom: 3rem;
}

.page-header h1 {
	font-size: clamp(2.5rem, 6vw, 5rem);
	line-height: 1.1;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
}

.post-card__image img,
.entry-thumbnail img {
	width: 100%;
	height: auto;
	display: block;
}

.post-card__title a {
	color: inherit;
	text-decoration: none;
}

.entry-content {
	font-size: 1.125rem;
	line-height: 1.7;
}

@media (max-width: 900px) {
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.site-header__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.primary-menu {
		flex-direction: column;
	}

	.post-grid {
		grid-template-columns: 1fr;
	}
}

.archive-description {
	max-width: 720px;
	font-size: 1.125rem;
	line-height: 1.7;
}

.no-results,
.error-404 {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
}

.no-results .search-form,
.error-404 .search-form {
	margin: 2rem 0;
}

.search-form {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
}

.search-form label {
	flex: 1;
	max-width: 420px;
}

.search-form input[type="search"] {
	width: 100%;
	padding: 0.875rem 1rem;
	border: 1px solid #ccc;
	font: inherit;
}

.search-form input[type="submit"],
.button {
	display: inline-block;
	padding: 0.875rem 1.25rem;
	border: 0;
	background: #b10735;
	color: #fff;
	text-decoration: none;
	font: inherit;
	cursor: pointer;
}

.search-form input[type="submit"]:hover,
.button:hover {
	background: #000;
	color: #fff;
}

.pagination {
	margin-top: 3rem;
}

.pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.pagination .page-numbers {
	display: inline-block;
	padding: 0.5rem 0.75rem;
	text-decoration: none;
	border: 1px solid #ddd;
	color: inherit;
}

.pagination .page-numbers.current {
	background: #000;
	color: #fff;
}

.apimex-index {
	min-height: 100vh;
	background-image:
		linear-gradient(
			rgba(177, 7, 53, 0.08),
			rgba(177, 7, 53, 0.08)
		),
		url("../images/index-bg.jpg");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: #b10735;
}

.apimex-hero-cards {
	min-height: 100vh;
	padding: clamp(4rem, 8vw, 7rem) 1.5rem clamp(3rem, 6vw, 5rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.apimex-hero-cards__inner {
	width: min(100%, 1180px);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 3rem);
	align-items: center;
	justify-content: center;
}

.apimex-card {
	position: relative;
	overflow: hidden;
	border-radius: 32px;
	min-height: clamp(420px, 36vw, 560px);
	background: #111;
	box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
	isolation: isolate;
}

.apimex-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
}

.apimex-card__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		linear-gradient(
			to bottom,
			rgba(0, 0, 0, 0.02) 0%,
			rgba(0, 0, 0, 0.12) 42%,
			rgba(0, 0, 0, 0.82) 100%
		);
}

.apimex-card__content {
	position: absolute;
	left: clamp(1.4rem, 2vw, 2rem);
	right: clamp(1.4rem, 2vw, 2rem);
	bottom: clamp(1.6rem, 2.4vw, 2.3rem);
	z-index: 3;
	color: #fff;
}

.apimex-card__content h2 {
	margin: 0 0 0.55rem;
	font-size: clamp(2rem, 3vw, 3rem);
	line-height: 0.9;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -0.05em;
}

.apimex-card__content p {
	margin: 0;
	max-width: 320px;
	font-size: clamp(1.1rem, 1.45vw, 1.45rem);
	line-height: 1.15;
	font-weight: 400;
}

.apimex-hero-cards__claim {
	margin-top: clamp(4rem, 7vw, 7rem);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.1rem;
	color: #fff;
	text-transform: uppercase;
	text-align: center;
	font-size: clamp(1.5rem, 2.6vw, 2.6rem);
	line-height: 1;
	font-weight: 900;
	letter-spacing: -0.035em;
}

.apimex-hero-cards__claim span {
	color: #e4002b;
	font-size: 1.35em;
	line-height: 1;
	font-weight: 900;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 1024px) {
	.apimex-hero-cards__inner {
		width: min(100%, 900px);
		gap: 1.5rem;
	}

	.apimex-card {
		border-radius: 26px;
		min-height: 420px;
	}
}

@media (max-width: 820px) {
	.apimex-index {
		background-position: center top;
	}

	.apimex-hero-cards {
		min-height: auto;
		padding-top: 4rem;
		padding-bottom: 4rem;
	}

	.apimex-hero-cards__inner {
		grid-template-columns: 1fr;
		max-width: 420px;
	}

	.apimex-card {
		min-height: 500px;
	}

	.apimex-hero-cards__claim {
		margin-top: 3rem;
		flex-wrap: wrap;
	}
}

@media (max-width: 480px) {
	.apimex-card {
		min-height: 430px;
		border-radius: 24px;
	}

	.apimex-card__content h2 {
		font-size: 2rem;
	}

	.apimex-card__content p {
		font-size: 1.05rem;
	}

	.apimex-hero-cards__claim {
		font-size: 1.35rem;
	}
}