.af-maf,
.af-maf * {
	box-sizing: border-box;
}

.af-maf {
	--af-navy: #082d73;
	--af-navy-deep: #05235d;
	--af-blue: #0867ec;
	--af-blue-dark: #034fbe;
	--af-blue-soft: #eaf3ff;
	--af-surface: #ffffff;
	--af-panel: #f2f7fd;
	--af-line: #c9dcf5;
	--af-ink: #071f49;
	--af-muted: #557096;
	--af-green: #74b72e;
	--af-shadow: 0 24px 60px rgba(13, 49, 105, 0.15);
	width: min(100%, 1110px);
	margin: 28px auto;
	color: var(--af-ink);
	font-family: inherit;
	background: var(--af-surface);
	border: 1px solid #d6e5f8;
	border-top: 5px solid #0570f5;
	border-radius: 24px;
	box-shadow: var(--af-shadow);
	overflow: hidden;
	isolation: isolate;
}

.af-maf button,
.af-maf input {
	font: inherit;
}

.af-maf__hero {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr) 112px;
	align-items: center;
	gap: 30px;
	min-height: 306px;
	padding: 46px 46px 44px;
	color: #fff;
	background:
		radial-gradient(circle at 88% 18%, rgba(27, 111, 238, 0.26), transparent 26%),
		linear-gradient(118deg, var(--af-navy-deep) 0%, #0a347f 55%, #10469a 100%);
}

.af-maf__logo-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
}

.af-maf__logo {
	display: block;
	width: 220px;
	height: auto;
	max-width: 100%;
	border-radius: 19px;
	box-shadow: 0 12px 30px rgba(0, 18, 60, 0.16);
}

.af-maf__hero-copy {
	min-width: 0;
}

.af-maf__eyebrow {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	line-height: 1.4;
	color: #bcd8ff;
}

.af-maf__eyebrow--blue {
	color: var(--af-blue-dark);
}

.af-maf__title {
	margin: 0;
	max-width: 680px;
	color: #fff;
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.06;
}

.af-maf__subtitle {
	max-width: 720px;
	margin: 17px 0 0;
	color: rgba(255, 255, 255, 0.92);
	font-size: 16px;
	line-height: 1.6;
}

.af-maf__hero-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 104px;
	height: 104px;
	border: 1px solid rgba(144, 199, 255, 0.75);
	border-radius: 50%;
	text-align: center;
	background: rgba(10, 68, 157, 0.36);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.af-maf__hero-badge strong {
	font-size: 24px;
	line-height: 1;
}

.af-maf__hero-badge span {
	margin-top: 7px;
	font-size: 10px;
	letter-spacing: 0.08em;
}

.af-maf__body {
	padding: 46px 36px 38px;
}

.af-maf__form {
	margin: 0;
}

.af-maf__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.af-maf__panel {
	min-width: 0;
	margin: 0;
	padding: 25px 22px 24px;
	border: 1px solid var(--af-line);
	border-radius: 20px;
	background: var(--af-panel);
}

.af-maf__legend {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: calc(100% - 10px);
	padding: 0 6px;
	color: var(--af-ink);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.25;
}

.af-maf__step {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	background: var(--af-blue);
	border-radius: 50%;
	box-shadow: 0 5px 14px rgba(8, 103, 236, 0.2);
}

.af-maf__help {
	min-height: 44px;
	margin: 12px 0 20px;
	color: var(--af-muted);
	font-size: 14px;
	line-height: 1.55;
}

.af-maf__choice-grid {
	display: grid;
	gap: 12px;
}

.af-maf__choice-grid--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.af-maf__choice {
	position: relative;
	display: block;
	cursor: pointer;
}

.af-maf__choice input,
.af-maf__unit-switch input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.af-maf__choice-ui {
	display: flex;
	align-items: center;
	gap: 11px;
	min-height: 88px;
	padding: 15px;
	border: 1px solid #bed4ef;
	border-radius: 14px;
	background: #fff;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.af-maf__choice:hover .af-maf__choice-ui {
	border-color: #8ab8ef;
	transform: translateY(-1px);
}

.af-maf__choice input:checked + .af-maf__choice-ui {
	border-color: var(--af-blue);
	background: #f8fbff;
	box-shadow: 0 0 0 3px rgba(8, 103, 236, 0.12);
}

.af-maf__choice input:focus-visible + .af-maf__choice-ui,
.af-maf__unit-switch input:focus-visible + span {
	outline: 3px solid rgba(8, 103, 236, 0.25);
	outline-offset: 2px;
}

.af-maf__choice-icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 39px;
	height: 39px;
	color: var(--af-blue-dark);
	font-size: 22px;
	font-weight: 800;
	border-radius: 12px;
	background: var(--af-blue-soft);
}

.af-maf__choice-icon--letter {
	font-size: 18px;
}

.af-maf__choice-icon--air {
	font-size: 27px;
}

.af-maf__choice-icon--turbo {
	font-size: 24px;
}

.af-maf__choice-ui strong,
.af-maf__choice-ui small {
	display: block;
}

.af-maf__choice-ui strong {
	font-size: 15px;
	line-height: 1.25;
}

.af-maf__choice-ui small {
	margin-top: 4px;
	color: var(--af-muted);
	font-size: 12px;
	line-height: 1.35;
}

.af-maf__field-label {
	display: block;
	margin: 0 0 7px;
	color: #496181;
	font-size: 11px;
	font-weight: 800;
}

.af-maf__input-shell {
	display: flex;
	align-items: center;
	min-height: 54px;
	border: 1px solid #b9d1ee;
	border-radius: 12px;
	background: #fff;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.af-maf__input-shell:focus-within {
	border-color: var(--af-blue);
	box-shadow: 0 0 0 3px rgba(8, 103, 236, 0.12);
}

.af-maf__input-shell input {
	min-width: 0;
	width: 100%;
	height: 52px;
	padding: 0 12px 0 15px;
	color: var(--af-ink);
	font-size: 18px;
	font-weight: 800;
	border: 0;
	outline: 0;
	background: transparent;
	appearance: textfield;
}

.af-maf__input-shell input::-webkit-outer-spin-button,
.af-maf__input-shell input::-webkit-inner-spin-button {
	margin: 0;
	appearance: none;
}

.af-maf__input-shell span {
	padding: 0 15px 0 8px;
	color: var(--af-muted);
	font-size: 13px;
	white-space: nowrap;
}

.af-maf__subfield {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px dashed #c4d8f1;
}

.af-maf__presets {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 12px;
}

.af-maf__presets button {
	min-height: 34px;
	padding: 6px 11px;
	color: #3e5d83;
	font-size: 12px;
	font-weight: 700;
	border: 1px solid #c4d8f1;
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.af-maf__presets button:hover,
.af-maf__presets button.is-active {
	color: #fff;
	border-color: var(--af-blue);
	background: var(--af-blue);
}

.af-maf__unit-switch {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	padding: 5px;
	border: 1px solid #c4d8f1;
	border-radius: 13px;
	background: #e8f1fc;
}

.af-maf__unit-switch label {
	position: relative;
	cursor: pointer;
}

.af-maf__unit-switch span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px;
	color: #496181;
	font-size: 13px;
	font-weight: 800;
	border-radius: 9px;
	transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.af-maf__unit-switch input:checked + span {
	color: var(--af-blue-dark);
	background: #fff;
	box-shadow: 0 4px 12px rgba(20, 70, 130, 0.12);
}

.af-maf__unit-note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 13px;
	padding: 12px;
	color: #4f6d93;
	font-size: 12px;
	line-height: 1.45;
	border-radius: 11px;
	background: rgba(217, 233, 252, 0.65);
}

.af-maf__unit-note svg {
	flex: 0 0 auto;
	margin-top: 1px;
	color: var(--af-blue);
}

.af-maf__form-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid #d7e5f6;
}

.af-maf__error {
	flex: 1 1 auto;
	margin: 0;
	color: #b42318;
	font-size: 13px;
	font-weight: 700;
}

.af-maf__actions {
	display: flex;
	flex: 0 0 auto;
	gap: 12px;
}

.af-maf__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 11px 18px;
	font-size: 14px;
	font-weight: 800;
	border-radius: 11px;
	cursor: pointer;
	transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.af-maf__button:hover {
	transform: translateY(-1px);
}

.af-maf__button:focus-visible,
.af-maf__presets button:focus-visible,
.af-maf__method summary:focus-visible {
	outline: 3px solid rgba(8, 103, 236, 0.25);
	outline-offset: 2px;
}

.af-maf__button--secondary {
	color: var(--af-ink);
	border: 1px solid #c7daf1;
	background: #fff;
}

.af-maf__button--secondary:hover {
	border-color: #9bbce3;
	background: #f8fbff;
}

.af-maf__button--primary {
	color: #fff;
	border: 1px solid var(--af-blue);
	background: linear-gradient(180deg, #1474f2 0%, #075fdc 100%);
	box-shadow: 0 10px 22px rgba(8, 103, 236, 0.25);
}

.af-maf__button--primary:hover {
	background: linear-gradient(180deg, #0f69e3 0%, #0455c8 100%);
	box-shadow: 0 13px 28px rgba(8, 103, 236, 0.3);
}

.af-maf__results {
	margin-top: 30px;
	padding: 28px;
	border: 1px solid #bcd5f3;
	border-radius: 20px;
	background:
		radial-gradient(circle at 92% 2%, rgba(8, 103, 236, 0.09), transparent 28%),
		linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.af-maf__results[hidden] {
	display: none;
}

.af-maf__results-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 20px;
}

.af-maf__results-heading h3 {
	margin: 0;
	color: var(--af-ink);
	font-size: 24px;
	line-height: 1.2;
}

.af-maf__result-pill {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 7px 12px;
	color: var(--af-blue-dark);
	font-size: 12px;
	font-weight: 800;
	border: 1px solid #c3d9f5;
	border-radius: 999px;
	background: #fff;
}

.af-maf__result-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.af-maf__result-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	padding: 22px;
	border: 1px solid #cadcf2;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 20px rgba(19, 62, 116, 0.06);
}

.af-maf__result-card--accent {
	border-color: #a8c9f2;
}

.af-maf__result-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	color: var(--af-blue);
	border-radius: 15px;
	background: var(--af-blue-soft);
}

.af-maf__result-label {
	display: block;
	color: #526d90;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.af-maf__result-value {
	margin: 4px 0 2px;
	color: var(--af-ink);
	line-height: 1.1;
}

.af-maf__result-value strong {
	font-size: clamp(28px, 4vw, 39px);
	font-weight: 850;
	letter-spacing: -0.035em;
}

.af-maf__result-value span {
	font-size: 14px;
	font-weight: 800;
	color: var(--af-blue-dark);
}

.af-maf__result-range {
	margin: 7px 0 0;
	color: #5c7391;
	font-size: 12px;
	line-height: 1.4;
}

.af-maf__assumption {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin-top: 16px;
	padding: 13px 15px;
	color: #496889;
	font-size: 12px;
	line-height: 1.5;
	border-radius: 12px;
	background: rgba(255,255,255,0.75);
}

.af-maf__assumption svg {
	flex: 0 0 auto;
	margin-top: 1px;
	color: var(--af-blue);
}

.af-maf__assumption p {
	margin: 0;
}

.af-maf__method {
	border-top: 1px solid #d6e4f5;
	background: #fff;
}

.af-maf__method summary {
	position: relative;
	padding: 20px 66px 20px 36px;
	color: var(--af-blue-dark);
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	list-style: none;
}

.af-maf__method summary::-webkit-details-marker {
	display: none;
}

.af-maf__method summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: var(--af-blue);
	font-size: 21px;
	font-weight: 500;
	border: 1px solid #c4d9f2;
	border-radius: 50%;
	transform: translateY(-50%);
}

.af-maf__method[open] summary::after {
	content: "−";
}

.af-maf__method-content {
	padding: 0 36px 26px;
	color: #506b8e;
	font-size: 14px;
	line-height: 1.65;
}

.af-maf__method-content p {
	margin: 0 0 12px;
}

.af-maf__method-content p:last-child {
	margin-bottom: 0;
}

.af-maf__formula {
	margin: 14px 0;
	padding: 15px 17px;
	color: var(--af-navy);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 13px;
	font-weight: 800;
	border-left: 4px solid var(--af-green);
	border-radius: 8px;
	background: #f1f7ff;
}

@media (max-width: 900px) {
	.af-maf {
		border-radius: 20px;
	}

	.af-maf__hero {
		grid-template-columns: 160px minmax(0, 1fr);
		min-height: 0;
		padding: 36px;
	}

	.af-maf__logo {
		width: 160px;
	}

	.af-maf__hero-badge {
		display: none;
	}

	.af-maf__title {
		font-size: clamp(30px, 5vw, 42px);
	}

	.af-maf__body {
		padding: 34px 26px 30px;
	}

	.af-maf__grid {
		gap: 18px;
	}

	.af-maf__choice-grid--two {
		grid-template-columns: 1fr;
	}

	.af-maf__choice-ui {
		min-height: 76px;
	}
}

@media (max-width: 680px) {
	.af-maf {
		margin: 16px auto;
		border-radius: 17px;
	}

	.af-maf__hero {
		grid-template-columns: 1fr;
		gap: 22px;
		padding: 28px 22px 30px;
		text-align: center;
	}

	.af-maf__logo-wrap {
		justify-content: center;
	}

	.af-maf__logo {
		width: 145px;
	}

	.af-maf__eyebrow {
		font-size: 10px;
	}

	.af-maf__title {
		font-size: 31px;
	}

	.af-maf__subtitle {
		margin-top: 13px;
		font-size: 14px;
	}

	.af-maf__body {
		padding: 28px 15px 24px;
	}

	.af-maf__grid,
	.af-maf__result-grid {
		grid-template-columns: 1fr;
	}

	.af-maf__panel {
		padding: 22px 16px 19px;
		border-radius: 17px;
	}

	.af-maf__legend {
		font-size: 16px;
	}

	.af-maf__help {
		min-height: 0;
	}

	.af-maf__choice-grid--two {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.af-maf__choice-ui {
		align-items: flex-start;
		min-height: 122px;
		padding: 13px 11px;
		flex-direction: column;
	}

	.af-maf__choice-icon {
		width: 35px;
		height: 35px;
	}

	.af-maf__unit-switch span {
		font-size: 12px;
	}

	.af-maf__form-footer {
		align-items: stretch;
		flex-direction: column;
	}

	.af-maf__actions {
		display: grid;
		grid-template-columns: 1fr;
		width: 100%;
	}

	.af-maf__button--primary {
		order: -1;
	}

	.af-maf__results {
		padding: 22px 15px;
		border-radius: 17px;
	}

	.af-maf__results-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.af-maf__result-card {
		padding: 18px 15px;
	}

	.af-maf__result-value strong {
		font-size: 31px;
	}

	.af-maf__method summary {
		padding: 18px 56px 18px 20px;
	}

	.af-maf__method summary::after {
		right: 20px;
	}

	.af-maf__method-content {
		padding: 0 20px 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.af-maf *,
	.af-maf *::before,
	.af-maf *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

/* Informe imprimible */
.af-maf__report-cta {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 28px;
	min-height: 144px;
	margin-top: 30px;
	padding: 27px 24px 27px 30px;
	color: #fff;
	border-radius: 18px;
	background: linear-gradient(110deg, #062d73 0%, #0a3f91 62%, #0c58c7 100%);
	box-shadow: 0 14px 30px rgba(7, 50, 121, 0.18);
	overflow: hidden;
	isolation: isolate;
}

.af-maf__report-orb {
	position: absolute;
	top: -68px;
	left: 62%;
	z-index: -1;
	width: 130px;
	height: 130px;
	border-radius: 50%;
	background: rgba(94, 189, 180, 0.18);
}

.af-maf__report-copy {
	min-width: 0;
}

.af-maf__report-eyebrow {
	margin: 0 0 5px;
	color: #89f20e;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.11em;
	line-height: 1.35;
}

.af-maf__report-copy h3 {
	margin: 0;
	color: #fff;
	font-size: clamp(20px, 2.5vw, 25px);
	font-weight: 850;
	letter-spacing: -0.02em;
	line-height: 1.18;
}

.af-maf__report-copy > p:last-child {
	max-width: 720px;
	margin: 8px 0 0;
	color: rgba(255, 255, 255, 0.93);
	font-size: 14px;
	line-height: 1.55;
}

.af-maf__print-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-width: 250px;
	min-height: 68px;
	padding: 12px 20px;
	color: #06245a;
	border: 1px solid #9cec13;
	border-radius: 12px;
	background: linear-gradient(180deg, #98e817 0%, #7bd600 100%);
	box-shadow: 0 8px 18px rgba(21, 55, 16, 0.18);
	cursor: pointer;
	transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.af-maf__print-button:hover {
	transform: translateY(-2px);
	filter: brightness(1.035);
	box-shadow: 0 12px 24px rgba(21, 55, 16, 0.24);
}

.af-maf__print-button:focus-visible {
	outline: 3px solid rgba(158, 238, 29, 0.48);
	outline-offset: 3px;
}

.af-maf__print-icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 43px;
	height: 43px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.86);
}

.af-maf__print-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	line-height: 1.1;
}

.af-maf__print-text strong {
	font-size: 16px;
	font-weight: 900;
}

.af-maf__print-text small {
	margin-top: 5px;
	font-size: 11px;
	font-weight: 800;
}

@media (max-width: 760px) {
	.af-maf__report-cta {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 25px 22px;
	}

	.af-maf__report-orb {
		left: auto;
		right: 7%;
	}

	.af-maf__print-button {
		width: 100%;
		min-width: 0;
	}
}

@media (max-width: 420px) {
	.af-maf__report-cta {
		margin-top: 24px;
		padding: 23px 17px;
		border-radius: 16px;
	}

	.af-maf__print-button {
		padding: 11px 15px;
	}
}
