/* AFTIN Group – Home
   Layout: carta de navegación (mapa de rutas) en el hero → pases de abordar por marca → bandas alternas tinta / niebla. */
:root {
	--agh-ink: #0c1b24;
	--agh-deep: #0f2c37;
	--agh-mist: #e7ecea;
	--agh-paper: #f5f7f6;
	--agh-teal: #1d8fae;
	--agh-gold: #e9a23b;
	--agh-sea: #3fa58a;
	--agh-fg-soft: #4b5d66;
	--agh-line: rgba(12, 27, 36, .14);
	--agh-line-light: rgba(231, 236, 234, .16);

	--agh-display: "Unbounded", "Arial Black", system-ui, sans-serif;
	--agh-body: "Figtree", "Segoe UI", system-ui, sans-serif;
	--agh-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

	--agh-max: 1240px;
	--agh-radius: 14px;
	color-scheme: light;
}

body.agh {
	margin: 0;
	background: var(--agh-mist);
	color: var(--agh-ink);
	font: 400 17px/1.6 var(--agh-body);
	-webkit-font-smoothing: antialiased;
}
.agh *, .agh *::before, .agh *::after { box-sizing: border-box; }
.agh img { max-width: 100%; height: auto; display: block; }
.agh a { color: inherit; }
.agh h1, .agh h2, .agh h3, .agh p, .agh dl, .agh dd, .agh ul, .agh figure { margin: 0; }
.agh :focus-visible { outline: 2px solid var(--agh-teal); outline-offset: 3px; border-radius: 4px; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

.agh-wrap {
	max-width: var(--agh-max);
	margin-inline: auto;
	padding-left: max(20px, env(safe-area-inset-left, 0px));
	padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Tipos utilitarios ---------------------------------------------------- */
.agh-eyebrow {
	font: 500 12px/1.4 var(--agh-mono);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--agh-teal);
}
.agh-eyebrow--light { color: var(--agh-gold); }
.agh-h2 {
	font: 600 clamp(28px, 3.6vw, 46px)/1.08 var(--agh-display);
	letter-spacing: -.02em;
	text-wrap: balance;
	max-width: 18ch;
}
.agh-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); }
.agh-head__lead { max-width: 56ch; color: inherit; opacity: .78; }

/* Botones -------------------------------------------------------------- */
.agh-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 14px 22px;
	border-radius: 999px;
	font: 600 15px/1 var(--agh-body);
	text-decoration: none;
	border: 1.5px solid transparent;
	transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.agh-btn:hover { transform: translateY(-2px); }
.agh-btn--ink { background: var(--agh-ink); color: var(--agh-mist) !important; }
.agh-btn--ink:hover { background: var(--agh-teal); }
.agh-btn--ghost { border-color: var(--agh-ink); color: var(--agh-ink); }
.agh-btn--ghost:hover { background: var(--agh-ink); color: var(--agh-mist); }
.agh-btn--gold { background: var(--agh-gold); color: var(--agh-ink) !important; }
.agh-btn--line { border-color: var(--agh-line-light); color: var(--agh-mist); }
.agh-btn--line:hover { border-color: var(--agh-mist); }

/* Header --------------------------------------------------------------- */
.agh-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--agh-mist) 86%, transparent);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s ease;
}
.admin-bar .agh-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .agh-header { top: 46px; } }
.agh-header.is-scrolled { border-bottom-color: var(--agh-line); }
.agh-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.agh-brand img { height: 46px; width: auto; }
.agh-brand { text-decoration: none; }

.agh-wordmark { display: inline-flex; flex-direction: column; line-height: 1; }
.agh-wordmark b { font: 700 26px/1 var(--agh-display); letter-spacing: .02em; }
.agh-wordmark small { font: 500 10.5px/1.6 var(--agh-mono); letter-spacing: .32em; text-transform: uppercase; color: var(--agh-teal); }
.agh-wordmark--light { color: var(--agh-mist); }
.agh-wordmark--light small { color: var(--agh-gold); }

.agh-nav { display: flex; align-items: center; gap: 30px; }
.agh-nav a:not(.agh-btn) { text-decoration: none; font-weight: 500; font-size: 15px; position: relative; }
.agh-nav a:not(.agh-btn)::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
	background: var(--agh-teal); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.agh-nav a:not(.agh-btn):hover::after { transform: scaleX(1); }
.agh-nav__cta { padding: 11px 18px; }

.agh-burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0; position: relative; }
.agh-burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--agh-ink); transition: transform .25s ease; }
.agh-burger span:first-child { top: 17px; }
.agh-burger span:last-child { top: 25px; }
.agh-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.agh-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero ----------------------------------------------------------------- */
.agh-hero { padding-block: clamp(36px, 6vw, 84px) clamp(48px, 6vw, 88px); }
.agh-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.agh-hero__copy { display: grid; gap: 26px; min-width: 0; }
.agh-hero__title {
	font: 700 clamp(40px, 5.6vw, 78px)/1.02 var(--agh-display);
	letter-spacing: -.035em;
	text-wrap: balance;
}
.agh-hero__title span { color: var(--agh-teal); }
.agh-hero__lead { max-width: 52ch; font-size: clamp(17px, 1.4vw, 19px); color: var(--agh-fg-soft); }
.agh-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.agh-hero__facts { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--agh-line); padding-top: 18px; }
.agh-hero__facts > div { padding-right: 28px; margin-right: 28px; border-right: 1px solid var(--agh-line); }
.agh-hero__facts > div:last-child { border-right: 0; margin-right: 0; }
.agh-hero__facts dt { font: 500 11px/1.6 var(--agh-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--agh-fg-soft); }
.agh-hero__facts dd { font: 600 20px/1.3 var(--agh-display); }

/* Carta de rutas */
.agh-chart {
	position: relative;
	background: var(--agh-paper);
	border: 1px solid var(--agh-line);
	border-radius: 22px;
	padding: 14px;
	min-width: 0;
	box-shadow: 0 30px 60px -36px rgba(12, 27, 36, .35);
}
.agh-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.agh-chart figcaption {
	font: 500 11.5px/1.5 var(--agh-mono); letter-spacing: .06em; color: var(--agh-fg-soft);
	padding: 10px 6px 2px; border-top: 1px dashed var(--agh-line); margin-top: 8px;
}
.agh-chart__grid line { stroke: var(--agh-line); stroke-width: 1; }
.agh-chart__dot { fill: rgba(12, 27, 36, .28); }
.agh-chart__land { fill: url(#agh-dots); stroke: rgba(12, 27, 36, .35); stroke-width: 1; }
.agh-chart__islands ellipse { fill: rgba(12, 27, 36, .5); }
.agh-chart__equator { stroke: var(--agh-gold); stroke-width: 1.5; stroke-dasharray: 2 6; }
.agh-chart__label { font: 500 10px var(--agh-mono); letter-spacing: .08em; fill: var(--agh-fg-soft); }
.agh-chart__label--eq { fill: #9a6418; }
.agh-chart__route {
	fill: none; stroke: var(--agh-ink); stroke-width: 1.6; stroke-dasharray: 6 6;
	animation: agh-dash 1.6s ease-out both .3s;
}
.agh-chart__route--b { animation-delay: .7s; }
.agh-chart__plane { fill: var(--agh-ink); }
.agh-pin__core { stroke: var(--agh-paper); stroke-width: 3; }
.agh-pin__pulse { opacity: .25; transform-box: fill-box; transform-origin: center; animation: agh-pulse 2.6s ease-out infinite; }
.agh-pin--gold .agh-pin__core, .agh-pin--gold .agh-pin__pulse { fill: var(--agh-gold); }
.agh-pin--teal .agh-pin__core, .agh-pin--teal .agh-pin__pulse { fill: var(--agh-teal); }
.agh-pin--sea .agh-pin__core, .agh-pin--sea .agh-pin__pulse { fill: var(--agh-sea); }
.agh-pin__code { font: 700 17px var(--agh-display); fill: var(--agh-ink); }
.agh-pin__name { font: 500 11px var(--agh-mono); fill: var(--agh-fg-soft); }

@keyframes agh-dash { from { stroke-dashoffset: 400; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes agh-pulse { 0% { transform: scale(.6); opacity: .45; } 100% { transform: scale(2.2); opacity: 0; } }

/* Ticker --------------------------------------------------------------- */
.agh-ticker { overflow: hidden; background: var(--agh-gold); color: var(--agh-ink); padding-block: 14px; }
.agh-ticker__track { display: flex; gap: 28px; width: max-content; animation: agh-marquee 38s linear infinite; }
.agh-ticker span { font: 600 15px/1 var(--agh-display); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.agh-ticker i { font-style: normal; opacity: .6; }
@keyframes agh-marquee { to { transform: translateX(-50%); } }

/* Bandas --------------------------------------------------------------- */
.agh-band { padding-block: clamp(72px, 9vw, 128px); }
.agh-band--ink { background: var(--agh-ink); color: var(--agh-mist); }
.agh-band--deep { background: var(--agh-deep); color: var(--agh-mist); }
.agh-band--mist { background: var(--agh-mist); color: var(--agh-ink); }

/* Pases de abordar ----------------------------------------------------- */
.agh-passes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.agh-pass {
	--tone: var(--agh-teal);
	display: flex; flex-direction: column;
	background: var(--agh-paper); color: var(--agh-ink);
	border-radius: var(--agh-radius);
	overflow: hidden;
	transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.agh-pass--gold { --tone: var(--agh-gold); }
.agh-pass--sea { --tone: var(--agh-sea); }
.agh-pass:hover { transform: translateY(-6px) rotate(-.4deg); }
.agh-pass__top { padding: 22px 22px 26px; display: grid; gap: 12px; flex: 1; border-top: 6px solid var(--tone); }
.agh-pass__plate {
	height: 128px; display: grid; place-items: center;
	background: #fff; border: 1px solid var(--agh-line); border-radius: 10px;
	padding: 14px; margin-bottom: 8px;
}
.agh-pass__plate img { max-height: 96px; width: auto; object-fit: contain; }
.agh-pass__wm { font: 700 20px/1.1 var(--agh-display); text-align: center; letter-spacing: -.01em; }
.agh-pass__role { font: 500 11.5px/1.4 var(--agh-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--agh-fg-soft); }
.agh-pass__name { font: 600 24px/1.15 var(--agh-display); letter-spacing: -.02em; }
.agh-pass__text { color: var(--agh-fg-soft); font-size: 16px; }

.agh-pass__stub {
	position: relative;
	padding: 20px 22px 22px;
	display: grid; gap: 18px;
	border-top: 2px dashed var(--agh-line);
	background: color-mix(in srgb, var(--tone) 12%, var(--agh-paper));
}
.agh-pass__stub::before, .agh-pass__stub::after {
	content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--agh-ink);
}
.agh-pass__stub::before { left: -11px; }
.agh-pass__stub::after { right: -11px; }
.agh-pass__stub dl { display: grid; grid-template-columns: auto 1fr 1fr; gap: 14px; }
.agh-pass__stub dt { font: 500 10px/1.5 var(--agh-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--agh-fg-soft); }
.agh-pass__stub dd { font-weight: 600; font-size: 14px; line-height: 1.3; }
.agh-pass__code { font: 700 26px/1 var(--agh-display) !important; letter-spacing: .02em; }
.agh-pass__link {
	display: flex; justify-content: space-between; align-items: center;
	padding: 13px 16px; border-radius: 10px;
	background: var(--agh-ink); color: var(--agh-mist) !important;
	font-weight: 600; text-decoration: none;
	transition: background-color .2s ease;
}
.agh-pass__link:hover { background: var(--agh-teal); }

/* Nosotros ------------------------------------------------------------- */
.agh-about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.agh-about__intro { display: grid; gap: 26px; justify-items: start; }
.agh-about__statement {
	font: 400 clamp(24px, 2.5vw, 34px)/1.3 var(--agh-display);
	letter-spacing: -.02em;
	text-wrap: pretty;
}
.agh-about__cols { display: grid; gap: 0; }
.agh-about__item { padding-block: 26px; border-top: 1px solid var(--agh-line); display: grid; gap: 10px; }
.agh-about__item:last-child { border-bottom: 1px solid var(--agh-line); }
.agh-about__item h3 { font: 500 12px/1.4 var(--agh-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--agh-teal); }
.agh-about__item p { color: var(--agh-fg-soft); max-width: 60ch; }

/* Operación ------------------------------------------------------------ */
.agh-ops { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--agh-line-light); }
.agh-ops li { padding: 28px 26px 8px 0; display: grid; gap: 12px; align-content: start; }
.agh-ops li + li { padding-left: 26px; border-left: 1px solid var(--agh-line-light); }
.agh-ops__tag { font: 500 11px/1 var(--agh-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--agh-gold); }
.agh-ops h3 { font: 600 20px/1.2 var(--agh-display); letter-spacing: -.01em; }
.agh-ops p { opacity: .74; font-size: 16px; }

/* Contacto ------------------------------------------------------------- */
.agh-contact__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.agh-contact__grid > div:first-child { display: grid; gap: 22px; }
.agh-contact__title { font: 700 clamp(44px, 7vw, 104px)/.98 var(--agh-display); letter-spacing: -.04em; }
.agh-contact__list { display: grid; }
.agh-contact__list > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding-block: 18px; border-top: 1px solid var(--agh-line-light); }
.agh-contact__list dt { font: 500 11px/1.9 var(--agh-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--agh-gold); }
.agh-contact__list dd { font-size: 18px; overflow-wrap: anywhere; }
.agh-contact__list a { text-decoration: none; }
.agh-contact__list a:hover { color: var(--agh-gold); }

/* Footer --------------------------------------------------------------- */
.agh-footer { background: var(--agh-ink); color: var(--agh-mist); border-top: 1px solid var(--agh-line-light); padding-block: 34px; }
.agh-footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.agh-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.agh-footer nav a { text-decoration: none; opacity: .8; }
.agh-footer nav a:hover { opacity: 1; color: var(--agh-gold); }
.agh-footer p { font: 500 12px var(--agh-mono); opacity: .6; }

/* Responsive ----------------------------------------------------------- */
@media (max-width: 1080px) {
	.agh-ops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.agh-ops li:nth-child(3) { padding-left: 0; border-left: 0; }
	.agh-ops li:nth-child(n+3) { border-top: 1px solid var(--agh-line-light); }
}
@media (max-width: 960px) {
	.agh-hero__grid, .agh-about, .agh-contact__grid { grid-template-columns: minmax(0, 1fr); }
	.agh-passes { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
	.agh-burger { display: block; }
	.agh-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: flex-start; gap: 18px;
		padding: 22px max(20px, env(safe-area-inset-left, 0px)) 28px;
		background: var(--agh-mist); border-bottom: 1px solid var(--agh-line);
		display: none;
	}
	.agh-nav.is-open { display: flex; }
	.agh-nav a:not(.agh-btn) { font-size: 20px; }
}
@media (max-width: 560px) {
	body.agh { font-size: 16px; }
	.agh-ops { grid-template-columns: minmax(0, 1fr); }
	.agh-ops li, .agh-ops li + li { padding-left: 0; border-left: 0; }
	.agh-ops li + li { border-top: 1px solid var(--agh-line-light); }
	.agh-hero__facts > div { padding-right: 16px; margin-right: 16px; }
	.agh-contact__list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.agh-pass__stub dl { grid-template-columns: auto 1fr; }
	.agh-pass__stub dl > div:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
	.agh *, .agh *::before, .agh *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
	.agh-chart__plane { display: none; }
}
