/* ==========================================================================
   Quantik Shipping — estilos del sitio
   ========================================================================== */

:root {
	--navy-950: #000f26;
	--navy-900: #00193c;
	--navy: #001535;
	--navy-700: #0a2a5e;
	--blue: #0f5aa4;
	--accent: #1d4fb3;
	--icon: #0e2f8a;
	--ink: #14213d;
	--muted: #4b5873;
	--line: #dde3ed;
	--line-soft: #e8ecf3;
	--bg: #f4f6fa;
	--surface: #ffffff;
	--on-dark: #ffffff;
	--on-dark-soft: #c5d3ea;
	--on-dark-muted: #9fb3d6;

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 118px;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow-sm: 0 1px 2px rgba(0, 21, 53, .06), 0 2px 8px rgba(0, 21, 53, .05);
	--shadow: 0 2px 4px rgba(0, 21, 53, .05), 0 12px 32px rgba(0, 21, 53, .09);
	--shadow-lg: 0 6px 12px rgba(0, 21, 53, .08), 0 24px 56px rgba(0, 21, 53, .16);
	--ease-out: cubic-bezier(.16, 1, .3, 1);
	--ease-io: cubic-bezier(.65, 0, .35, 1);

	--font: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--fs-body: clamp(.98rem, .95rem + .12vw, 1.06rem);
	--fs-small: .875rem;
	--fs-xs: .78rem;
	--fs-h1: clamp(2.3rem, 1.35rem + 3.2vw, 3.9rem);
	--fs-h2: clamp(1.7rem, 1.25rem + 1.5vw, 2.45rem);
	--fs-h3: 1rem;
	--section-y: clamp(56px, 7vw, 104px);

	color-scheme: light;
	accent-color: var(--accent);
}

/* --- Base ---------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
	scrollbar-color: #9aabc8 var(--bg);
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--fs-body);
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-feature-settings: "kern", "liga";
	caret-color: var(--accent);
}

::selection { background: var(--navy); color: #fff; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #a9b8d1; border-radius: 12px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--navy-700); }

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

a { color: var(--accent); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
	font-family: var(--font);
	color: var(--navy);
	line-height: 1.12;
	margin: 0 0 .5em;
	text-wrap: balance;
	letter-spacing: -.02em;
}
h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 650; }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 650; }

figure { margin: 0; }

.q-sr, .q-form__hp {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.q-skip {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
	transition: top .2s var(--ease-out);
}
.q-skip:focus { top: 12px; color: #fff; }

.q-main { display: block; }

/* Anula márgenes automáticos que agregan los estilos de bloques */
.q-content > * { margin-block: 0; }
.q-content .wp-block-image { margin: 0; }
.q-content .wp-block-image img { height: auto; }

/* Envoltorio estándar de las secciones */
.q-section,
.q-band,
.q-statement,
.q-values-box,
.q-banner,
.q-page-title,
.q-content--plain,
.q-404 {
	width: min(100% - 2 * var(--gutter), var(--wrap));
	margin-inline: auto;
}

.q-section { padding-block: var(--section-y); position: relative; }
.q-section + .q-section { border-top: 1px solid var(--line); }

/* --- Tipos auxiliares ---------------------------------------------------- */

.is-style-antetitulo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: var(--fs-xs);
	font-weight: 650;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 1rem;
}
.is-style-antetitulo::before {
	content: "";
	width: 28px;
	height: 1.5px;
	background: currentColor;
	flex: none;
}

.is-style-titulo-seccion,
h2.is-style-titulo-seccion {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
	font-size: clamp(1rem, .9rem + .35vw, 1.2rem);
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-align: center;
	margin: 0 auto clamp(28px, 4vw, 48px);
}
.is-style-titulo-seccion::before,
.is-style-titulo-seccion::after {
	content: "";
	width: clamp(24px, 4vw, 44px);
	height: 1.5px;
	background: var(--navy);
	flex: none;
}

.q-center-title { text-align: center; }
.q-intro { text-align: center; color: var(--muted); max-width: 62ch; margin: -18px auto clamp(28px, 4vw, 44px); }

.q-link a,
a.q-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 650;
	font-size: var(--fs-small);
	text-decoration: none;
	color: inherit;
}
.q-link a::after {
	content: "";
	width: 18px; height: 18px;
	background: currentColor;
	-webkit-mask: var(--q-arrow) center / contain no-repeat;
	mask: var(--q-arrow) center / contain no-repeat;
	transition: transform .25s var(--ease-out);
}
.q-link a:hover::after { transform: translateX(4px); }

:root {
	--q-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
	--q-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* --- Botones ------------------------------------------------------------- */

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }
.wp-block-buttons.q-center { justify-content: center; margin-top: clamp(28px, 4vw, 44px); }

.wp-block-button__link,
.q-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: var(--radius-sm);
	border: 1.5px solid var(--navy);
	background: var(--navy);
	color: #fff;
	font-family: var(--font);
	font-size: var(--fs-small);
	font-weight: 650;
	letter-spacing: .01em;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out), box-shadow .25s var(--ease-out), transform .25s var(--ease-out);
}
.wp-block-button__link::after {
	content: "";
	width: 18px; height: 18px; flex: none;
	background: currentColor;
	-webkit-mask: var(--q-arrow) center / contain no-repeat;
	mask: var(--q-arrow) center / contain no-repeat;
	transition: transform .25s var(--ease-out);
}
.q-btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease-out); }
.wp-block-button__link:hover,
.q-btn:hover {
	background: var(--navy-700);
	border-color: var(--navy-700);
	color: #fff;
	box-shadow: 0 8px 20px rgba(0, 21, 53, .22);
	transform: translateY(-1px);
}
.wp-block-button__link:hover::after,
.q-btn:hover svg { transform: translateX(4px); }
.wp-block-button__link:active,
.q-btn:active { transform: translateY(0); box-shadow: none; }

.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--navy);
}
.is-style-outline .wp-block-button__link:hover { background: var(--navy); color: #fff; }

.is-style-claro .wp-block-button__link {
	background: transparent;
	border-color: rgba(255, 255, 255, .8);
	color: #fff;
	text-transform: uppercase;
	letter-spacing: .06em;
}
.is-style-claro .wp-block-button__link:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* --- Íconos (bloque Ícono Quantik) --------------------------------------- */

.q-ico {
	--s: 56px;
	display: inline-grid;
	place-items: center;
	width: var(--s);
	height: var(--s);
	flex: none;
	color: var(--icon);
	border-radius: 50%;
}
.q-ico .q-svg { width: 48%; height: 48%; }
.q-ico--simple { border-radius: 0; }
.q-ico--simple .q-svg { width: 100%; height: 100%; stroke-width: 1.4; }
.q-ico--circulo { background: #e7edf8; }
.q-ico--solido { background: var(--icon); color: #fff; box-shadow: 0 0 0 4px var(--surface), var(--shadow-sm); }
.q-ico--anillo { background: var(--surface); border: 1.5px solid var(--line); }

/* --- Encabezado ---------------------------------------------------------- */

.q-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	transition: background-color .35s var(--ease-out), box-shadow .35s var(--ease-out), backdrop-filter .35s;
}
.admin-bar .q-header { top: 32px; }

.q-header__inner {
	width: min(100% - 2 * var(--gutter), 1320px);
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 14px;
	transition: padding .35s var(--ease-out);
}

.q-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.q-logo { display: block; line-height: 0; }
.q-logo__img { width: 128px; height: auto; transition: width .35s var(--ease-out); }
.q-brand__tagline {
	margin: 0;
	font-size: .54rem;
	font-weight: 600;
	letter-spacing: .12em;
	line-height: 1.5;
	text-transform: uppercase;
	text-align: center;
	color: var(--navy);
	max-height: 3em;
	overflow: hidden;
	transition: opacity .25s var(--ease-out), max-height .35s var(--ease-out), margin .35s;
}

.q-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.q-menu { list-style: none; display: flex; gap: clamp(14px, 2vw, 32px); margin: 0; padding: 0; }
.q-menu a {
	position: relative;
	display: inline-block;
	padding: 10px 0;
	font-size: .74rem;
	font-weight: 650;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--navy);
}
.q-menu a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 2px;
	height: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .35s var(--ease-out);
}
.q-menu a:hover::after,
.q-menu .current-menu-item > a::after,
.q-menu .current_page_item > a::after { transform: scaleX(1); transform-origin: left; }
.q-menu .current-menu-item > a,
.q-menu .current_page_item > a { color: var(--accent); }

.q-header__cta { border-radius: 999px; min-height: 42px; padding: 10px 20px; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }

.q-header.is-scrolled {
	background: rgba(244, 246, 250, .88);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	box-shadow: 0 1px 0 rgba(0, 21, 53, .06), 0 10px 30px rgba(0, 21, 53, .07);
}
.q-header.is-scrolled .q-header__inner { padding-block: 8px; }
.q-header.is-scrolled .q-logo__img { width: 92px; }
.q-header.is-scrolled .q-brand__tagline { opacity: 0; max-height: 0; margin-top: -6px; }

.q-nav-toggle {
	display: none;
	position: relative;
	width: 46px; height: 46px;
	border: 1.5px solid var(--line);
	border-radius: 50%;
	background: var(--surface);
	color: var(--navy);
	cursor: pointer;
}
.q-nav-toggle__bars,
.q-nav-toggle__bars::before,
.q-nav-toggle__bars::after {
	position: absolute;
	left: 50%;
	width: 18px; height: 1.8px;
	margin-left: -9px;
	background: currentColor;
	border-radius: 2px;
	transition: transform .35s var(--ease-out), opacity .2s;
}
.q-nav-toggle__bars { top: 50%; margin-top: -1px; }
.q-nav-toggle__bars::before { content: ""; top: -6px; left: 0; margin: 0; }
.q-nav-toggle__bars::after { content: ""; top: 6px; left: 0; margin: 0; }
.q-nav-toggle[aria-expanded="true"] .q-nav-toggle__bars { background: transparent; }
.q-nav-toggle[aria-expanded="true"] .q-nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); background: var(--navy); }
.q-nav-toggle[aria-expanded="true"] .q-nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); background: var(--navy); }

/* --- Portadas (hero) ----------------------------------------------------- */

.q-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(560px, 86vh, 800px);
	padding: calc(var(--header-h) + 32px) 0 clamp(48px, 6vw, 80px);
	overflow: hidden;
	isolation: isolate;
}
.q-hero--interior { min-height: clamp(520px, 74vh, 680px); }

.q-hero__media {
	position: absolute !important;
	inset: 0 0 0 auto;
	width: 64%;
	z-index: -1;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 18%, #000 42%), linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, #000 22%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 18%, #000 42%), linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, #000 22%);
	mask-composite: intersect;
}
.q-hero__media img { width: 100%; height: 100% !important; object-fit: cover; object-position: 60% center; }
.q-hero--interior .q-hero__media { width: 60%; }

.q-hero__content {
	width: min(100% - 2 * var(--gutter), var(--wrap));
	margin-inline: auto;
}
.q-hero__content > * { max-width: 580px; }
.q-hero__title { margin-bottom: .3em; }
.q-hero--home .q-hero__title { max-width: 11.5em; }
.q-hero__accent {
	font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem);
	font-weight: 650;
	color: var(--accent);
	letter-spacing: -.01em;
	margin-bottom: 1.2rem;
}
.q-hero__text { color: var(--ink); max-width: 46ch; }
.q-hero__text + .q-hero__text { margin-top: -.2rem; }
.q-hero--interior .q-hero__title { max-width: 13em; }

/* --- Banda --------------------------------------------------------------- */

.q-band {
	width: 100%;
	background: var(--navy-900);
	color: var(--on-dark);
	text-align: center;
	padding: clamp(26px, 3.4vw, 40px) var(--gutter);
	position: relative;
	overflow: hidden;
}
.q-band::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(60% 140% at 50% 0%, rgba(15, 90, 164, .35), transparent 70%);
	pointer-events: none;
}
.q-band__title {
	position: relative;
	color: #fff;
	font-size: clamp(1.05rem, .8rem + 1vw, 1.65rem);
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	margin-bottom: .55em;
}
.q-band__words {
	position: relative;
	color: var(--on-dark-soft);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	margin: 0;
}

/* --- Texto + imagen ------------------------------------------------------ */

.q-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}
.q-split__text p:not(.is-style-antetitulo) { color: var(--muted); max-width: 48ch; }
.q-split__media img,
.q-case__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
}

/* --- Ruta de pasos (inicio) ---------------------------------------------- */

.q-steps { padding-bottom: calc(var(--section-y) * .8); }
.q-route {
	position: relative;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	padding-inline: clamp(12px, 3vw, 40px);
}
.q-route::before {
	content: "";
	position: absolute;
	left: 0; right: 0;
	top: 46px;
	height: 1.5px;
	background: var(--navy);
	z-index: 0;
}
.q-route.has-route::before { display: none; }
.q-route__svg {
	position: absolute;
	left: 0; top: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
	z-index: 0;
	color: var(--navy);
}
.q-step {
	position: relative;
	z-index: 1;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}
.q-step__icon {
	width: 92px;
	height: 92px;
	border-radius: 50%;
	background: var(--bg);
	padding: 0;
	transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background-color .5s var(--ease-out);
}
.q-step__icon img { width: 100%; height: 100%; object-fit: contain; }
.q-step h3 {
	font-size: .8rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	margin: 0;
	color: var(--navy);
}
.q-step.is-lit .q-step__icon { background: #fff; box-shadow: 0 0 0 8px rgba(29, 79, 179, .08), var(--shadow); }
.q-steps__note {
	text-align: center;
	color: var(--accent);
	font-weight: 500;
	margin-top: clamp(32px, 4vw, 48px);
}

/* --- Tarjetas de soluciones ---------------------------------------------- */

.q-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 24px);
}
.q-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	padding-bottom: 56px;
	transition: box-shadow .4s var(--ease-out), transform .4s var(--ease-out);
}
.q-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.q-card__media { overflow: hidden; }
.q-card__media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.q-card__icon { --s: 52px; margin: -26px 0 0 22px; position: relative; z-index: 1; }
.q-card__title {
	margin: 18px 22px 8px;
	font-size: .92rem;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.q-card__title a { color: var(--navy); text-decoration: none; }
.q-card__title a::before { content: ""; position: absolute; inset: 0; z-index: 2; }
.q-card__title a:focus-visible { outline: none; }
.q-card:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.q-card__text { margin: 0 22px; font-size: var(--fs-small); color: var(--muted); }
.q-card::after {
	content: "";
	position: absolute;
	right: 22px; bottom: 20px;
	width: 22px; height: 22px;
	background: var(--navy);
	-webkit-mask: var(--q-arrow) center / contain no-repeat;
	mask: var(--q-arrow) center / contain no-repeat;
	transition: transform .35s var(--ease-out);
}
.q-card:hover::after { transform: translateX(5px); }
.q-tag {
	position: absolute;
	left: 22px; bottom: 18px;
	margin: 0;
	padding: 4px 12px;
	border-radius: 999px;
	background: #e8edf5;
	color: var(--muted);
	font-size: .66rem;
	font-weight: 650;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* --- Características (por qué elegir) ------------------------------------ */

.q-features {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
}
.q-feature {
	text-align: center;
	padding: 4px clamp(12px, 1.6vw, 24px);
	display: flex;
	flex-direction: column;
	align-items: center;
}
.q-feature + .q-feature { border-left: 1px solid var(--line); }
.q-feature__icon { width: 64px; height: 64px; margin-bottom: 16px; }
.q-feature__icon img { width: 100%; height: 100%; object-fit: contain; }
.q-feature h3 { font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .7em; min-height: 2.5em; display: flex; align-items: flex-end; justify-content: center; }
.q-feature p { font-size: .82rem; color: var(--muted); line-height: 1.55; }

/* --- Historia destacada (inicio) ----------------------------------------- */

.q-story {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 41%) minmax(0, 1fr);
	background: var(--navy-900);
	color: var(--on-dark);
	overflow: hidden;
	min-height: 360px;
}
.q-story__media { position: relative; }
.q-story__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	-webkit-mask-image: linear-gradient(90deg, #000 70%, transparent);
	mask-image: linear-gradient(90deg, #000 70%, transparent);
}
.q-story__content {
	padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(40px, 5vw, 72px) clamp(24px, 3vw, 48px);
	max-width: 680px;
	align-self: center;
}
.q-story h2 { color: #fff; }
.q-story p { color: var(--on-dark-soft); }
.q-story .is-style-antetitulo { color: var(--on-dark-muted); }
.q-story .q-link a { color: #fff; }

/* --- Red internacional --------------------------------------------------- */

.q-network {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: center;
}
.q-network h2 {
	font-size: clamp(1.05rem, .9rem + .5vw, 1.3rem);
	letter-spacing: .08em;
	text-transform: uppercase;
}
.q-network h2::after { content: ""; display: inline-block; vertical-align: middle; width: 36px; height: 1.5px; margin-left: 14px; background: var(--navy); }
.q-network p:not(.q-link) { color: var(--muted); }
.q-network .q-link a { color: var(--accent); }
.q-network__map img { width: 100%; }

/* --- Historia (quiénes somos) -------------------------------------------- */

.q-history {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 2fr);
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}
.q-history__text p:not(.is-style-antetitulo) { color: var(--muted); font-size: var(--fs-small); }
.q-timeline {
	position: relative;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
}
.q-timeline::before {
	content: "";
	position: absolute;
	left: 10%; right: 10%;
	top: 28px;
	border-top: 1.5px dashed #9fb0cf;
	transform-origin: left;
}
.q-milestone { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.q-milestone .q-ico { margin-bottom: 18px; }
.q-milestone__year { font-weight: 700; color: var(--navy); margin: 0 0 4px; font-variant-numeric: tabular-nums; }
.q-milestone h3 { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: .8em; }
.q-milestone p:not(.q-milestone__year) { font-size: .8rem; color: var(--muted); line-height: 1.55; }

/* --- Galería ------------------------------------------------------------- */

.q-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	height: clamp(220px, 26vw, 380px);
	overflow: hidden;
	background: var(--navy-900);
}
.q-gallery .wp-block-image { height: 100%; margin: 0 -3.2% !important; }
.q-gallery .wp-block-image:first-child { margin-left: 0 !important; clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); }
.q-gallery .wp-block-image:nth-child(2) { clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); }
.q-gallery .wp-block-image:last-child { margin-right: 0 !important; clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%); }
.q-gallery img { width: 100%; height: 100% !important; object-fit: cover; }

/* --- Pilares ------------------------------------------------------------- */

.q-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.q-pillar {
	display: flex;
	gap: 22px;
	align-items: flex-start;
	background: var(--surface);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	padding: clamp(20px, 2.4vw, 32px);
	box-shadow: var(--shadow-sm);
	transition: box-shadow .4s var(--ease-out), border-color .4s;
}
.q-pillar:hover { box-shadow: var(--shadow); border-color: transparent; }
.q-pillar .q-ico { --s: 72px; }
.q-pillar h3 { font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: .5em; }
.q-pillar p { font-size: .86rem; color: var(--muted); }

/* --- Misión, visión, propósito ------------------------------------------- */

.q-panels {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	background: var(--navy-950);
	overflow: hidden;
}
.q-panel {
	position: relative;
	isolation: isolate;
	min-height: clamp(320px, 30vw, 420px);
	padding: clamp(28px, 3vw, 44px) clamp(24px, 3vw, 48px);
	color: #fff;
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto 1fr;
	column-gap: 18px;
	align-content: start;
	margin: 0 -2.5%;
}
.q-panel:first-child { margin-left: 0; clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%); }
.q-panel:nth-child(2) { clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); padding-left: calc(clamp(24px, 3vw, 48px) + 4%); }
.q-panel:last-child { margin-right: 0; clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%); padding-left: calc(clamp(24px, 3vw, 48px) + 4%); }
.q-panel__bg { position: absolute !important; inset: 0; z-index: -1; }
.q-panel__bg img { width: 100%; height: 100% !important; object-fit: cover; }
.q-panel__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 15, 38, .92) 0%, rgba(0, 21, 53, .8) 45%, rgba(0, 21, 53, .35) 100%);
}
.q-panel .q-ico { --s: 60px; grid-row: 1 / span 2; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); background: var(--accent); }
.q-panel h3 { color: #fff; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; align-self: center; margin: 0 0 .5em; }
.q-panel p { color: #dfe7f5; font-size: .9rem; max-width: 34ch; grid-column: 2; }

/* --- Números ------------------------------------------------------------- */

.q-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.q-stat { display: flex; gap: 14px; align-items: flex-start; }
.q-stat .q-ico { --s: 42px; margin-top: 4px; }
.q-stat__num {
	font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem);
	font-weight: 600;
	color: var(--navy);
	line-height: 1.1;
	margin: 0 0 6px;
	font-variant-numeric: tabular-nums;
	letter-spacing: -.02em;
}
.q-stat h3 { font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); margin-bottom: .6em; }
.q-stat__body p:not(.q-stat__num) { font-size: .8rem; color: var(--muted); line-height: 1.5; }

/* --- Ciclo (cómo trabajamos) --------------------------------------------- */

.q-cycle {
	--cw: 1080;
	position: relative;
	aspect-ratio: 1080 / 900;
	max-width: 1080px;
	padding: 0;
	border-top: 0 !important;
}
.q-cycle__svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	color: var(--icon);
	overflow: visible;
}
.q-cycle::before {
	content: "";
	position: absolute;
	left: calc((540 - 300) / 1080 * 100%);
	top: calc((450 - 300) / 900 * 100%);
	width: calc(600 / 1080 * 100%);
	height: calc(600 / 900 * 100%);
	border: 1.5px dashed rgba(14, 47, 138, .5);
	border-radius: 50%;
}
.q-cycle.has-ring::before { display: none; }
.q-cycle__center {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: calc(300 / 1080 * 100%);
	text-align: center;
}
.q-cycle__logo img { width: 78%; margin-inline: auto; }
.q-cycle__tagline {
	margin-top: 14px;
	font-size: .62rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--navy);
}
.q-cycle__item {
	--x: 540;
	--y: 150;
	position: absolute;
	top: calc((var(--y) - 64) / 900 * 100%);
	left: calc((var(--x) - 64) / 1080 * 100%);
	display: flex;
	align-items: flex-start;
	gap: 20px;
	width: calc(420 / 1080 * 100%);
}
.q-cycle__item:nth-of-type(2) { --x: 540; --y: 150; }
.q-cycle__item:nth-of-type(3) { --x: 825; --y: 357; }
.q-cycle__item:nth-of-type(4) { --x: 716; --y: 693; }
.q-cycle__item:nth-of-type(5),
.q-cycle__item:nth-of-type(6) {
	left: auto;
	right: calc((1080 - var(--x) - 64) / 1080 * 100%);
	flex-direction: row-reverse;
}
.q-cycle__item:nth-of-type(5) { --x: 364; --y: 693; }
.q-cycle__item:nth-of-type(6) { --x: 255; --y: 357; }
.q-cycle__item:nth-of-type(3),
.q-cycle__item:nth-of-type(4) { width: calc(340 / 1080 * 100%); }
.q-cycle__item:nth-of-type(5),
.q-cycle__item:nth-of-type(6) { width: calc(360 / 1080 * 100%); }
.q-cycle__node {
	position: relative;
	flex: none;
	width: 128px;
	height: 128px;
	border-radius: 50%;
	background: var(--surface);
	box-shadow: var(--shadow);
	display: grid;
	place-items: center;
	transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.q-cycle__icon {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: var(--icon);
	display: grid;
	place-items: center;
	overflow: hidden;
}
.q-cycle__icon img { width: 78%; height: 78%; object-fit: contain; filter: brightness(0) invert(1); }
.q-cycle__n {
	position: absolute;
	top: -18px;
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	min-width: 52px;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--surface);
	box-shadow: var(--shadow-sm);
	color: var(--navy);
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1;
	text-align: center;
	font-variant-numeric: tabular-nums;
	z-index: 1;
}
.q-cycle__text { padding-top: 20px; position: relative; z-index: 1; }
.q-cycle__text::before { content: ""; position: absolute; inset: 12px -10px -8px; background: var(--bg); border-radius: 12px; z-index: -1; opacity: .92; }
.q-cycle__text h3 { font-size: .98rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .45em; }
.q-cycle__text p { font-size: .82rem; color: var(--muted); line-height: 1.55; }

/* --- Declaración --------------------------------------------------------- */

.q-statement {
	display: flex;
	align-items: center;
	gap: clamp(20px, 3vw, 36px);
	max-width: 900px;
	margin-block: 0 clamp(40px, 5vw, 64px);
	padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 40px);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.q-statement .q-ico { --s: 76px; }
.q-statement__text {
	padding-left: clamp(20px, 3vw, 36px);
	border-left: 1px solid var(--line);
	font-size: clamp(1rem, .92rem + .35vw, 1.18rem);
	line-height: 1.5;
	color: var(--navy);
}
.q-statement__text strong { color: var(--navy); font-weight: 650; }

/* --- Caja de valores ----------------------------------------------------- */

.q-values-box {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 2.4fr);
	gap: clamp(24px, 4vw, 48px);
	align-items: center;
	background: var(--surface);
	border-radius: calc(var(--radius) + 4px);
	padding: clamp(28px, 4vw, 48px);
	box-shadow: var(--shadow-sm);
	margin-bottom: 20px;
}
.q-values-box h2 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); }
.q-values-box h2::after { content: ""; display: block; width: 48px; height: 2px; background: var(--accent); margin-top: 18px; }
.q-values-box__text p { font-size: .88rem; color: var(--muted); }
.q-values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.q-value { text-align: center; padding: 8px 16px; display: flex; flex-direction: column; align-items: center; }
.q-value + .q-value { border-left: 1px solid var(--line); }
.q-value .q-ico { --s: 58px; margin-bottom: 16px; }
.q-value h3 { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .5em; }
.q-value p { font-size: .8rem; color: var(--muted); line-height: 1.5; }

/* --- Banner con imagen --------------------------------------------------- */

.q-banner {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	min-height: clamp(240px, 24vw, 320px);
	padding: clamp(32px, 4vw, 56px) clamp(24px, 5vw, 64px);
	border-radius: calc(var(--radius) + 4px);
	overflow: hidden;
	color: #fff;
	margin-block: 20px var(--section-y);
}
.q-banner__bg { position: absolute !important; inset: 0; z-index: -1; }
.q-banner__bg img { width: 100%; height: 100% !important; object-fit: cover; object-position: 70% center; }
.q-banner__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 21, 53, .96) 0%, rgba(0, 21, 53, .82) 38%, rgba(0, 21, 53, .15) 80%);
}
.q-banner__content { max-width: 560px; }
.q-banner__quote { --s: 44px; color: #fff; margin-bottom: 10px; opacity: .9; }
.q-banner__title { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.18; margin-bottom: .35em; }
.q-banner__text { color: var(--on-dark-soft); font-size: clamp(1rem, .95rem + .3vw, 1.2rem); }
.q-banner__actions { margin: 0; flex: none; }
.q-banner--cta .q-banner__title { font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); }

/* --- Servicios ----------------------------------------------------------- */

.q-services { display: grid; gap: 20px; padding-top: 8px; padding-bottom: 0; }
.q-service {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
	gap: clamp(20px, 3vw, 40px);
	align-items: center;
	background: var(--surface);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	padding: 14px;
	box-shadow: var(--shadow-sm);
	scroll-margin-top: 110px;
	transition: box-shadow .4s var(--ease-out);
}
.q-service:hover { box-shadow: var(--shadow); }
.q-service__media { border-radius: 10px; overflow: hidden; }
.q-service__media img { width: 100%; aspect-ratio: 16 / 8.4; object-fit: cover; }
.q-service__body {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	column-gap: 20px;
	padding: 12px clamp(8px, 2vw, 24px) 12px 0;
}
.q-service__body > * { grid-column: 2; }
.q-service__body > .q-ico { --s: 64px; grid-column: 1; grid-row: 1 / span 3; }
.q-service__body h2 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); margin: 10px 0 .4em; }
.q-service__body p { font-size: .9rem; color: var(--muted); max-width: 52ch; }

.is-style-checks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 7px; }
.is-style-checks li { position: relative; padding-left: 28px; font-size: .86rem; color: var(--ink); }
.is-style-checks li::before {
	content: "";
	position: absolute;
	left: 0; top: .2em;
	width: 16px; height: 16px;
	background: var(--accent);
	-webkit-mask: var(--q-check) center / contain no-repeat;
	mask: var(--q-check) center / contain no-repeat;
}

/* --- Incoterms ----------------------------------------------------------- */

.q-incoterms {
	background: var(--surface);
	border-radius: var(--radius);
	border: 1px solid var(--line-soft);
	padding: clamp(28px, 4vw, 48px) clamp(16px, 3vw, 32px);
	margin-top: 20px;
	box-shadow: var(--shadow-sm);
}
.q-section + .q-section.q-incoterms { border-top: 1px solid var(--line-soft); }
.q-incoterms h2 { font-size: clamp(1.3rem, 1.05rem + .9vw, 1.75rem); }
.q-incoterms .q-intro { margin-top: 0; }
.q-incoterms__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.q-incoterm { text-align: center; padding: 4px 16px; display: flex; flex-direction: column; align-items: center; }
.q-incoterm + .q-incoterm { border-left: 1px solid var(--line); }
.q-incoterm__icon { height: 84px; width: 100%; margin-bottom: 10px; }
.q-incoterm__icon img { width: auto; height: 100% !important; max-width: 170px; margin-inline: auto; object-fit: contain; }
.q-incoterm h3 { font-size: 1.05rem; margin-bottom: .15em; letter-spacing: .02em; }
.q-incoterm__name { font-size: .72rem; color: var(--muted); margin-bottom: .8em; }
.q-incoterm p:not(.q-incoterm__name) { font-size: .8rem; color: var(--ink); line-height: 1.5; }

/* --- Casos --------------------------------------------------------------- */

.q-case {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}
.q-case__body p:not(.is-style-antetitulo) { color: var(--muted); }
.q-case__facts {
	list-style: none;
	padding: 20px 0 0;
	margin: 24px 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 36px;
	border-top: 1px solid var(--line);
}
.q-case__facts li { font-size: .82rem; color: var(--muted); display: flex; flex-direction: column; }
.q-case__facts strong { font-size: 1.7rem; color: var(--navy); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* --- Contacto (página) --------------------------------------------------- */

.q-contact-page {
	display: grid;
	grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: start;
}
.q-contact-page__info p { color: var(--muted); }
.q-contact-page__info .q-details { margin-top: 24px; }
.q-contact-page__form {
	background: var(--navy-900);
	border-radius: var(--radius);
	padding: clamp(24px, 3vw, 40px);
	box-shadow: var(--shadow-lg);
}

/* --- Formulario ---------------------------------------------------------- */

.q-form { --field-bg: #fff; --field-ink: var(--ink); --label: var(--on-dark-soft); }
.q-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q-field { display: flex; flex-direction: column; gap: 5px; }
.q-field--full { grid-column: 1 / -1; }
.q-field span { font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--label); }
.q-field input,
.q-field textarea {
	width: 100%;
	font: inherit;
	font-size: .9rem;
	color: var(--field-ink);
	background: var(--field-bg);
	border: 1.5px solid transparent;
	border-radius: 6px;
	padding: 10px 12px;
	transition: border-color .2s, box-shadow .2s;
}
.q-field textarea { resize: vertical; min-height: 96px; }
.q-field input:focus,
.q-field textarea:focus { outline: none; border-color: #7da6ea; box-shadow: 0 0 0 3px rgba(125, 166, 234, .35); }
.q-field input:user-invalid,
.q-field textarea:user-invalid { border-color: #e2837b; }
.q-form__submit {
	margin-top: 14px;
	margin-left: auto;
	display: flex;
	background: var(--blue);
	border-color: var(--blue);
}
.q-form__submit:hover { background: #1a6cc0; border-color: #1a6cc0; }
.q-form__msg { padding: 12px 14px; border-radius: 8px; font-size: .88rem; margin-bottom: 14px; }
.q-form__msg--ok { background: #e3f4ea; color: #0f5132; }
.q-form__msg--error { background: #fdecea; color: #842029; }

/* --- Pie: contacto ------------------------------------------------------- */

.q-contact {
	background: var(--navy-900);
	color: var(--on-dark);
	padding-block: clamp(48px, 6vw, 72px);
	position: relative;
	overflow: hidden;
}
.q-contact::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(50% 120% at 100% 0%, rgba(15, 90, 164, .28), transparent 70%);
	pointer-events: none;
}
.q-contact__inner {
	position: relative;
	width: min(100% - 2 * var(--gutter), var(--wrap));
	margin-inline: auto;
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr) minmax(0, .8fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}
.q-contact__title { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.q-contact__intro p { color: var(--on-dark-soft); font-size: .9rem; }

.q-details { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.q-details li { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; }
.q-details .q-svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: #7da6ea; }
.q-details a { color: inherit; text-decoration: none; }
.q-details a:hover { text-decoration: underline; }
.q-contact .q-details { color: #fff; }
.q-contact-page .q-details { color: var(--ink); }
.q-contact-page .q-details .q-svg { color: var(--accent); }

.q-social { display: flex; gap: 12px; margin-top: 24px; }
.q-social__link {
	display: grid;
	place-items: center;
	width: 40px; height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .25);
	color: #fff;
	transition: background-color .2s, border-color .2s;
}
.q-social__link:hover { background: #fff; color: var(--navy); border-color: #fff; }
.q-social__link .q-svg { width: 18px; height: 18px; }

/* --- Pie: barra final ---------------------------------------------------- */

.q-footer__bar { background: var(--navy-950); color: var(--on-dark-muted); }
.q-footer__inner {
	width: min(100% - 2 * var(--gutter), var(--wrap));
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	padding-block: 18px;
	font-size: .76rem;
}
.q-footer__bar .q-logo__img { width: 88px; }
.q-footer__slogan { margin: 0; text-align: center; color: var(--on-dark-soft); }
.q-footer__legal { margin: 0; text-align: right; }

/* --- Páginas simples ----------------------------------------------------- */

.q-page-title { padding: calc(var(--header-h) + 40px) 0 24px; }
.q-content--plain { padding-bottom: var(--section-y); max-width: 820px; }
.q-content--plain > * + * { margin-top: 1em; }
.q-404 { min-height: 70vh; padding: calc(var(--header-h) + 64px) 0 var(--section-y); max-width: 720px; }

/* ==========================================================================
   Movimiento (solo con JS activo y sin preferencia de movimiento reducido)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
	.q-js .q-hero__media { clip-path: inset(0 0 0 22%); transform: scale(1.06); transition: clip-path 1.3s var(--ease-out), transform 1.8s var(--ease-out); }
	.q-js .q-hero__content > * { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
	.q-js .q-hero__title { clip-path: inset(0 0 100% 0); transform: translateY(24px); transition: clip-path 1s var(--ease-out), transform 1s var(--ease-out), opacity .6s; }
	.q-js .q-hero.is-in .q-hero__media { clip-path: inset(0 0 0 0); transform: none; }
	.q-js .q-hero.is-in .q-hero__content > * { opacity: 1; transform: none; }
	.q-js .q-hero.is-in .q-hero__title { clip-path: inset(0 0 -10% 0); }
	.q-js .q-hero.is-in .q-hero__content > :nth-child(2) { transition-delay: .12s; }
	.q-js .q-hero.is-in .q-hero__content > :nth-child(3) { transition-delay: .22s; }
	.q-js .q-hero.is-in .q-hero__content > :nth-child(4) { transition-delay: .32s; }
	.q-js .q-hero.is-in .q-hero__content > :nth-child(5) { transition-delay: .42s; }

	/* Imágenes que se descubren con una cortina */
	.q-js .q-reveal-media img,
	.q-js .q-story__media img,
	.q-js .q-service__media img { clip-path: inset(0 100% 0 0 round var(--radius)); transition: clip-path 1.1s var(--ease-io); }
	.q-js .q-reveal-media.is-in img,
	.q-js .q-story__media.is-in img,
	.q-js .q-service__media.is-in img { clip-path: inset(0 0 0 0 round var(--radius)); }
	.q-js .q-story__media img { clip-path: inset(0 100% 0 0); }
	.q-js .q-story__media.is-in img { clip-path: inset(0 0 0 0); }

	/* Listas que aparecen escalonadas */
	.q-js [data-q-stagger] > * { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); }
	.q-js [data-q-stagger].is-in > * { opacity: 1; transform: none; }
	.q-js [data-q-stagger].is-in > :nth-child(2) { transition-delay: .08s; }
	.q-js [data-q-stagger].is-in > :nth-child(3) { transition-delay: .16s; }
	.q-js [data-q-stagger].is-in > :nth-child(4) { transition-delay: .24s; }
	.q-js [data-q-stagger].is-in > :nth-child(5) { transition-delay: .32s; }
	.q-js [data-q-stagger].is-in > :nth-child(6) { transition-delay: .4s; }

	/* Línea de tiempo: la línea punteada avanza y los hitos llegan en orden */
	.q-js .q-timeline::before { transform: scaleX(0); transition: transform 1.6s var(--ease-io); }
	.q-js .q-timeline.is-in::before { transform: scaleX(1); }
	.q-js .q-milestone { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); }
	.q-js .q-timeline.is-in .q-milestone { opacity: 1; transform: none; }
	.q-js .q-timeline.is-in .q-milestone:nth-child(2) { transition-delay: .3s; }
	.q-js .q-timeline.is-in .q-milestone:nth-child(3) { transition-delay: .6s; }
	.q-js .q-timeline.is-in .q-milestone:nth-child(4) { transition-delay: .9s; }
	.q-js .q-timeline.is-in .q-milestone:nth-child(5) { transition-delay: 1.2s; }

	/* Paneles: la foto se asienta detrás del texto */
	.q-js .q-panel__bg img { transform: scale(1.12); transition: transform 1.8s var(--ease-out); }
	.q-js .q-panels.is-in .q-panel__bg img { transform: none; }

	/* Ciclo: los nodos llegan en orden */
	.q-js .q-cycle.has-ring .q-cycle__node { transform: scale(.6); opacity: 0; transition: transform .7s var(--ease-out), opacity .4s; }
	.q-js .q-cycle.has-ring .q-cycle__text { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
	.q-js .q-cycle.has-ring .q-cycle__item.is-lit .q-cycle__node { transform: none; opacity: 1; }
	.q-js .q-cycle.has-ring .q-cycle__item.is-lit .q-cycle__text { opacity: 1; transform: none; transition-delay: .15s; }
	.q-js .q-cycle.has-ring .q-cycle__center { opacity: 0; transition: opacity 1s var(--ease-out) .2s; }
	.q-js .q-cycle.has-ring.is-in .q-cycle__center { opacity: 1; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
	.q-menu { gap: 18px; }
	.q-header__cta { padding-inline: 14px; }
}

@media (max-width: 1080px) {
	:root { --header-h: 84px; }

	.q-nav-toggle { display: block; z-index: 2; }
	.q-brand { flex-direction: row; gap: 14px; }
	.q-logo__img { width: 96px; }
	.q-brand__tagline { text-align: left; font-size: .5rem; }
	.q-header { background: rgba(244, 246, 250, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
	.q-header.is-scrolled .q-logo__img { width: 84px; }

	.q-nav {
		position: fixed;
		inset: 0;
		flex-direction: column;
		align-items: stretch;
		justify-content: center;
		gap: 32px;
		padding: 96px var(--gutter) 48px;
		background: var(--bg);
		visibility: hidden;
		opacity: 0;
		clip-path: inset(0 0 100% 0);
		transition: clip-path .5s var(--ease-out), opacity .3s, visibility 0s .5s;
	}
	.q-nav.is-open { visibility: visible; opacity: 1; clip-path: inset(0 0 0 0); transition: clip-path .5s var(--ease-out), opacity .2s, visibility 0s; }
	.q-menu { flex-direction: column; gap: 4px; }
	.q-menu a { font-size: 1.35rem; letter-spacing: .02em; text-transform: none; padding: 10px 0; }
	.q-menu a::after { bottom: 4px; }
	.q-header__cta { align-self: flex-start; font-size: .82rem; min-height: 50px; padding-inline: 24px; }
	body.q-nav-open { overflow: hidden; }

	.q-hero { flex-direction: column; align-items: stretch; min-height: 0; padding-top: var(--header-h); }
	.q-hero__media,
	.q-hero--interior .q-hero__media {
		position: relative !important;
		width: 100%;
		height: clamp(260px, 56vw, 440px);
		z-index: 0;
		-webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
		mask-image: linear-gradient(180deg, #000 70%, transparent);
	}
	.q-hero__content { margin-top: -28px; position: relative; }

	.q-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.q-features { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
	.q-feature:nth-child(4) { border-left: 0; }
	.q-history { grid-template-columns: 1fr; }
	.q-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
	.q-values-box { grid-template-columns: 1fr; }
	.q-contact__inner { grid-template-columns: 1fr 1.4fr; }
	.q-contact__details { grid-column: 1; }
	.q-contact__form { grid-row: span 2; }
	.q-incoterms__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
	.q-incoterm:nth-child(4) { border-left: 0; }

	/* Ciclo en columna con una línea que une los pasos */
	.q-cycle { aspect-ratio: auto; display: grid; gap: 28px; padding-block: var(--section-y); }
	.q-cycle::before { left: 63px; top: calc(var(--section-y) + 200px); bottom: var(--section-y); width: 0; height: auto; border: 0; border-left: 1.5px dashed rgba(14, 47, 138, .45); border-radius: 0; }
	.q-cycle.has-ring::before { display: block; }
	.q-cycle__svg { display: none; }
	.q-cycle__center { position: static; transform: none; width: auto; max-width: 260px; margin: 0 auto 12px; }
	.q-cycle__item,
	.q-cycle__item:nth-of-type(n) {
		position: relative;
		inset: auto;
		width: auto;
		flex-direction: row;
	}
	.q-js .q-cycle.has-ring .q-cycle__node,
	.q-js .q-cycle.has-ring .q-cycle__text { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
	.q-split,
	.q-network,
	.q-case,
	.q-contact-page { grid-template-columns: 1fr; }
	.q-story { grid-template-columns: 1fr; }
	.q-story__media { height: 280px; }
	.q-story__media img { -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
	.q-story__content { padding-top: 8px; padding-left: var(--gutter); }

	.q-route { grid-template-columns: 1fr; gap: 18px; padding-inline: 0; max-width: 360px; margin-inline: auto; }
	.q-route::before { left: 46px; right: auto; top: 20px; bottom: 20px; width: 1.5px; height: auto; }
	.q-route.has-route::before { display: block; }
	.q-route__svg { display: none; }
	.q-step { flex-direction: row; text-align: left; gap: 20px; }
	.q-step__icon { width: 76px; height: 76px; margin-left: 8px; }

	.q-timeline { grid-template-columns: 1fr; gap: 24px; }
	.q-timeline::before { left: 28px; right: auto; top: 10px; bottom: 10px; border-top: 0; border-left: 1.5px dashed #9fb0cf; transform-origin: top; }
	.q-milestone { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; text-align: left; align-items: start; }
	.q-milestone .q-ico { grid-row: 1 / span 3; margin: 0; }
	.q-js .q-timeline::before { transform: scaleY(0); }
	.q-js .q-timeline.is-in::before { transform: scaleY(1); }

	.q-gallery { grid-template-columns: 1fr 1fr; height: auto; }
	.q-gallery .wp-block-image,
	.q-gallery .wp-block-image:nth-child(n) { margin: 0 !important; clip-path: none; height: 220px; }
	.q-gallery .wp-block-image:first-child { grid-column: 1 / -1; }

	.q-pillars,
	.q-panels { grid-template-columns: 1fr; }
	.q-panel,
	.q-panel:nth-child(n) { margin: 0; clip-path: none; padding-left: clamp(24px, 5vw, 48px); min-height: 260px; }

	.q-service { grid-template-columns: 1fr; }
	.q-service__body { padding: 4px 8px 12px; }

	.q-values { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
	.q-value:nth-child(3) { border-left: 0; }

	.q-banner { flex-direction: column; align-items: flex-start; }
	.q-banner__bg::after { background: linear-gradient(180deg, rgba(0, 21, 53, .9), rgba(0, 21, 53, .7)); }

	.q-contact__inner { grid-template-columns: 1fr; }
	.q-contact__form { grid-row: auto; }
	.q-footer__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
	.q-footer__legal { text-align: center; }
}

@media (max-width: 640px) {
	.q-cards,
	.q-features,
	.q-stats,
	.q-incoterms__grid { grid-template-columns: 1fr; }
	.q-features { row-gap: 28px; }
	.q-feature + .q-feature,
	.q-incoterm + .q-incoterm { border-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
	.q-stat { max-width: 340px; }
	.q-values { grid-template-columns: 1fr; }
	.q-value + .q-value { border-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
	.q-statement { flex-direction: column; align-items: flex-start; }
	.q-statement__text { border-left: 0; padding-left: 0; }
	.q-form__grid { grid-template-columns: 1fr; }
	.q-form__submit { width: 100%; }
	.q-gallery { grid-template-columns: 1fr; }
	.q-cycle__node { width: 104px; height: 104px; }
	.q-cycle__icon { width: 78px; height: 78px; }
	.q-cycle::before { left: 51px; }
	.q-cycle__item,
	.q-cycle__item:nth-of-type(n) { gap: 16px; }
	.is-style-titulo-seccion::before,
	.is-style-titulo-seccion::after { width: 20px; }
	.q-brand__tagline { display: none; }
	.q-band__words { letter-spacing: .14em; }
	.is-style-titulo-seccion,
	h2.is-style-titulo-seccion { letter-spacing: .06em; gap: 14px; }
}

@media (max-width: 782px) {
	.admin-bar .q-header { top: 46px; }
}

@media print {
	.q-header, .q-contact, .q-nav-toggle { display: none; }
	.q-hero { min-height: 0; padding-top: 24px; }
}
