/**
 * Módulo Sitio de Garantías — estilos aislados.
 * Todo cuelga de .af-garantias para no tocar el resto del tema.
 */

/*
 * Astra abre `#content > .ast-container` como flex y limita el ancho.
 * El módulo necesita ancho completo, así que se neutraliza solo acá.
 */
.af-garantias-page .ast-container {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.af-garantias-page #content,
.af-garantias-page #page {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
}

.af-garantias {
	width: 100%;
	--af-petrol: #156082;
	--af-petrol-dark: #0d3d53;
	--af-petrol-deep: #082a3a;
	--af-orange: #f28c00;
	--af-orange-dark: #d97a00;
	--af-ink: #13212b;
	--af-body: #465360;
	--af-muted: #6c7a85;
	--af-line: #d9e3e9;
	--af-soft: #f4f8fa;
	--af-radius: 20px;

	color: var(--af-ink);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

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

.af-garantias .af-container {
	width: 100%;
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 24px;
}

.af-eyebrow {
	margin: 0 0 14px;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--af-orange);
}

/* ---------------------------------------------------------------
   Hero
--------------------------------------------------------------- */

.af-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(290px, 27vw, 380px);
	overflow: hidden;
	background: var(--af-petrol-deep);
	color: #fff;
}

.af-hero--hub {
	display: flex;
	align-items: flex-end;
	min-height: clamp(340px, 28vw, 400px);
	background: var(--af-petrol-deep);
}

.af-hero--hub .af-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 0%;
}

.af-hero--hub .af-hero__shade {
	display: block;
}

.af-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--af-hero-pos, 50% 50%);
}

.af-hero__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(5, 24, 35, 0.9) 0%,
		rgba(5, 24, 35, 0.68) 34%,
		rgba(5, 24, 35, 0.22) 66%,
		rgba(5, 24, 35, 0.04) 100%
	);
}

.af-hero--brand .af-hero__shade {
	background: linear-gradient(
		90deg,
		rgba(5, 24, 35, 0.82) 0%,
		rgba(5, 24, 35, 0.56) 34%,
		rgba(5, 24, 35, 0.18) 66%,
		rgba(5, 24, 35, 0.02) 100%
	);
}

.af-garantias .af-hero__inner {
	position: relative;
	z-index: 2;
	padding-top: 88px;
	padding-bottom: 112px;
}

.af-hero__eyebrow {
	margin: 0 0 10px;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #ffb347;
}

.af-hero__title {
	max-width: 720px;
	margin: 0;
	color: #fff;
	font-size: clamp(2.15rem, 4.2vw, 3.5rem);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.01em;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}

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

.af-hero__wave {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	z-index: 3;
	display: block;
	width: 100%;
	height: 54px;
}

/* Migas */

.af-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
}

.af-crumbs a {
	color: inherit;
	text-decoration: none;
	opacity: 0.8;
}

.af-crumbs a:hover,
.af-crumbs a:focus {
	opacity: 1;
	text-decoration: underline;
}

.af-crumbs--hero {
	margin: 0 0 26px;
	color: rgba(255, 255, 255, 0.85);
}

.af-crumbs--hero [aria-current="page"] {
	color: #fff;
	font-weight: 600;
}

/* ---------------------------------------------------------------
   Política de garantía
--------------------------------------------------------------- */

.af-policy {
	padding: 66px 0 48px;
	background: #fff;
}

.af-policy__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 356px;
	gap: 72px;
	align-items: start;
}

.af-policy__copy {
	max-width: 680px;
}

.af-policy__copy > p:not(.af-eyebrow) {
	margin: 0 0 17px;
	color: var(--af-body);
	font-size: 16.5px;
	line-height: 1.85;
}

.af-list {
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.af-list li {
	position: relative;
	margin-bottom: 12px;
	padding-left: 32px;
	color: var(--af-body);
	font-size: 15.5px;
	line-height: 1.7;
}

.af-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1.5px solid rgba(21, 96, 130, 0.4);
	background: rgba(21, 96, 130, 0.08);
}

.af-list li::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 8px;
	width: 8px;
	height: 4px;
	border-left: 2px solid var(--af-petrol);
	border-bottom: 2px solid var(--af-petrol);
	transform: rotate(-45deg);
}

/* Exclusiones de garantía: no son coberturas, llevan ×. */

.af-list--exclude li::before {
	content: "\00d7";
	border-color: rgba(198, 40, 40, 0.35);
	background: rgba(198, 40, 40, 0.08);
	color: #c62828;
	font-size: 14px;
	font-weight: 800;
	line-height: 15px;
	text-align: center;
}

.af-list--exclude li::after {
	display: none;
}

/* Tarjeta lateral */

.af-aside-card {
	position: sticky;
	top: 96px;
	padding: 30px;
	border-radius: var(--af-radius);
	background: linear-gradient(155deg, var(--af-petrol) 0%, var(--af-petrol-dark) 100%);
	color: #fff;
	box-shadow: 0 26px 54px rgba(13, 61, 83, 0.22);
}

.af-aside-card__title {
	margin: 0 0 4px;
	color: #fff;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.25;
}

.af-check {
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.af-check li {
	position: relative;
	margin-bottom: 11px;
	padding-left: 27px;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.88);
}

.af-check li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	color: #ffb347;
	font-weight: 800;
}

.af-aside-card__note {
	margin: 20px 0;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	font-size: 13px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.78);
}

.af-aside-card__note--rule {
	color: #ffd08a;
	font-weight: 600;
}

.af-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 0 24px;
	border: 0;
	border-radius: 12px;
	background: var(--af-orange);
	color: #fff;
	font-size: 14.5px;
	font-weight: 800;
	text-decoration: none;
	transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.af-btn:hover,
.af-btn:focus-visible {
	background: var(--af-orange-dark);
	color: #fff;
	transform: translateY(-1px);
}

.af-aside-card .af-btn {
	width: 100%;
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

/* Variante clara para el hub */

.af-aside-card--light {
	position: static;
	border: 1px solid var(--af-line);
	background: #fff;
	color: var(--af-ink);
	box-shadow: 0 18px 44px rgba(13, 61, 83, 0.07);
}

.af-aside-card--light .af-aside-card__title {
	color: var(--af-ink);
}

.af-check--dark li {
	color: var(--af-body);
}

.af-check--dark li::before {
	color: var(--af-petrol);
}

.af-aside-card--light .af-aside-card__note {
	border-top-color: var(--af-line);
	color: var(--af-muted);
}

/* ---------------------------------------------------------------
   Hub
--------------------------------------------------------------- */

.af-hub-intro {
	padding: 64px 0 32px;
	background: #fff;
}

.af-hub-intro__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 356px;
	gap: 72px;
	align-items: start;
}

.af-hub-intro__copy p {
	margin: 0 0 16px;
	color: var(--af-body);
	font-size: 16.5px;
	line-height: 1.85;
}

.af-hub-intro__copy .af-lede {
	margin-bottom: 20px;
	color: var(--af-ink);
	font-size: 19px;
	font-weight: 500;
	line-height: 1.7;
}

.af-brands-section {
	padding: 46px 0 88px;
	background: #fff;
}

.af-section-head {
	max-width: 660px;
	margin: 0 auto 38px;
	text-align: center;
}

.af-section-head .af-eyebrow {
	margin-bottom: 10px;
}

.af-section-head__title {
	margin: 0 0 8px;
	font-size: clamp(1.7rem, 3vw, 2.15rem);
	font-weight: 800;
	line-height: 1.15;
	color: var(--af-ink);
}

.af-section-head__text {
	margin: 0;
	color: var(--af-muted);
	font-size: 15px;
}

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

.af-brand-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e3eaef;
	border-radius: var(--af-radius);
	background: #fff;
	color: inherit;
	text-decoration: none;
	box-shadow: 0 16px 40px rgba(13, 61, 83, 0.07);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.af-brand-card:hover,
.af-brand-card:focus-visible {
	color: inherit;
	text-decoration: none;
	transform: translateY(-4px);
	border-color: #c9d9e2;
	box-shadow: 0 26px 54px rgba(13, 61, 83, 0.13);
}

.af-brand-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--af-soft);
}

.af-brand-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: var(--af-hero-pos, 50% 50%);
	transition: transform 0.45s ease;
}

.af-brand-card:hover .af-brand-card__media img {
	transform: scale(1.045);
}

.af-brand-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 5px;
	padding: 20px 22px 22px;
}

.af-brand-card__name {
	color: var(--af-ink);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
}

.af-brand-card__text {
	color: var(--af-muted);
	font-size: 13px;
	line-height: 1.55;
}

.af-brand-card__cta {
	margin-top: auto;
	padding-top: 12px;
	color: var(--af-petrol);
	font-size: 13.5px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.af-support {
	margin: 38px 0 0;
	text-align: center;
	color: var(--af-muted);
	font-size: 14px;
}

.af-support a {
	color: var(--af-petrol);
	font-weight: 600;
}

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

.af-form-section {
	scroll-margin-top: 90px;
	padding: 72px 0 96px;
	border-top: 1px solid #e7eef2;
	background: linear-gradient(180deg, #f4f8fa 0%, #edf3f6 100%);
}

.af-form-layout {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}

.af-form-aside {
	position: sticky;
	top: 96px;
}

.af-form-aside__title {
	margin: 0 0 12px;
	font-size: 31px;
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--af-ink);
}

.af-form-aside__text {
	margin: 0;
	color: var(--af-muted);
	font-size: 14.5px;
	line-height: 1.7;
}

.af-steps {
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}

.af-steps li {
	display: flex;
	gap: 13px;
	align-items: flex-start;
	padding: 14px 0;
	border-top: 1px solid #d9e5eb;
}

.af-steps li:last-child {
	border-bottom: 1px solid #d9e5eb;
}

.af-steps span {
	display: grid;
	flex: 0 0 30px;
	place-items: center;
	width: 30px;
	height: 30px;
	border: 1px solid #cbdee7;
	border-radius: 50%;
	background: #fff;
	color: var(--af-petrol);
	font-size: 12.5px;
	font-weight: 800;
}

.af-steps strong {
	display: block;
	color: var(--af-ink);
	font-size: 13.5px;
	line-height: 1.4;
}

.af-steps small {
	display: block;
	margin-top: 2px;
	color: var(--af-muted);
	font-size: 12px;
	line-height: 1.5;
}

.af-help-card {
	margin-top: 26px;
	padding: 18px 20px;
	border: 1px solid #e2eaef;
	border-radius: 14px;
	background: #fff;
}

.af-help-card strong {
	display: block;
	margin-bottom: 4px;
	font-size: 13.5px;
	color: var(--af-ink);
}

.af-help-card p {
	margin: 0;
	color: var(--af-muted);
	font-size: 12.5px;
	line-height: 1.6;
}

.af-help-card a {
	color: var(--af-petrol);
	font-weight: 600;
}

.af-form-wrap {
	min-width: 0;
}

.af-form-required {
	margin: 0 0 14px;
	color: var(--af-muted);
	font-size: 12.5px;
}

.af-form-required span {
	color: var(--af-orange);
	font-weight: 800;
}

.af-form-card {
	padding: 32px 34px;
	border: 1px solid #e2eaef;
	border-radius: var(--af-radius);
	background: #fff;
	box-shadow: 0 24px 60px rgba(13, 61, 83, 0.07);
}

.af-form-card + .af-form-card {
	margin-top: 22px;
}

.af-form-step {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin: 0 0 22px;
}

.af-form-step--sep {
	margin-top: 32px;
	padding-top: 30px;
	border-top: 1px solid #edf2f5;
}

.af-step-num {
	display: grid;
	flex: 0 0 32px;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--af-petrol);
	color: #fff;
	font-size: 12.5px;
	font-weight: 800;
}

.af-form-step__text h3 {
	margin: 0;
	color: var(--af-ink);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.25;
}

.af-form-step__text p {
	margin: 3px 0 0;
	color: var(--af-muted);
	font-size: 12.5px;
	line-height: 1.5;
}

/* Grilla de campos */

.af-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 18px;
}

.af-field {
	min-width: 0;
	margin: 0;
}

.af-field--full {
	grid-column: 1 / -1;
}

.af-label {
	display: block;
	margin: 0 0 7px;
	color: var(--af-ink);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.4;
}

.af-req {
	color: var(--af-orange);
}

.af-opt {
	color: var(--af-muted);
	font-weight: 400;
}

.af-help {
	display: block;
	margin: 6px 0 0;
	color: var(--af-muted);
	font-size: 11.5px;
	line-height: 1.5;
}

/* Controles CF7 */

.af-garantias .wpcf7 {
	margin: 0;
}

.af-garantias .wpcf7-form p {
	margin: 0;
}

.af-garantias .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.af-garantias .wpcf7 input[type="text"],
.af-garantias .wpcf7 input[type="email"],
.af-garantias .wpcf7 input[type="tel"],
.af-garantias .wpcf7 input[type="date"],
.af-garantias .wpcf7 input[type="number"],
.af-garantias .wpcf7 input[type="url"],
.af-garantias .wpcf7 select,
.af-garantias .wpcf7 textarea {
	width: 100%;
	max-width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--af-line);
	border-radius: 10px;
	background: #fbfdfe;
	color: var(--af-ink);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
	box-shadow: inset 0 1px 2px rgba(13, 61, 83, 0.03);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.af-garantias .wpcf7 textarea {
	height: auto;
	min-height: 124px;
	padding: 12px 14px;
	border-radius: 12px;
	resize: vertical;
}

.af-garantias .wpcf7 input:focus,
.af-garantias .wpcf7 select:focus,
.af-garantias .wpcf7 textarea:focus {
	outline: none;
	border-color: var(--af-petrol);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(21, 96, 130, 0.12);
}

.af-garantias .wpcf7 ::placeholder {
	color: #94a3ac;
	opacity: 1;
}

/* Radios en pastillas */

.af-garantias .wpcf7-radio {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.af-garantias .wpcf7-radio .wpcf7-list-item {
	margin: 0;
}

.af-garantias .wpcf7-radio .wpcf7-list-item label {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 9px 16px;
	border: 1px solid var(--af-line);
	border-radius: 999px;
	background: #fff;
	color: var(--af-body);
	font-size: 13.5px;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.af-garantias .wpcf7-radio .wpcf7-list-item label:hover {
	border-color: #b9cbd6;
}

.af-garantias .wpcf7-radio input[type="radio"] {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}

.af-garantias .wpcf7-radio .wpcf7-list-item label:has(input:checked) {
	border-color: var(--af-petrol);
	background: rgba(21, 96, 130, 0.08);
	color: var(--af-petrol);
	font-weight: 700;
	box-shadow: inset 0 0 0 1px var(--af-petrol);
}

/* Archivos (drag & drop CF7) */

.af-grid--files {
	grid-template-columns: 1fr 1fr;
	margin-top: 20px;
}

.af-garantias .codedropz-upload-wrapper {
	margin: 0;
}

.af-garantias .codedropz-upload-handler {
	position: relative;
	padding: 22px 16px 16px;
	border: 1.5px dashed #c5d5df;
	border-radius: 14px;
	background: #f8fbfc;
	text-align: center;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.af-garantias .codedropz-upload-handler:hover {
	border-color: var(--af-petrol);
	background: #f3f9fc;
}

.af-garantias .codedropz-upload-handler::before {
	content: "\2191";
	display: block;
	width: 34px;
	height: 34px;
	margin: 0 auto 9px;
	border-radius: 50%;
	background: rgba(21, 96, 130, 0.1);
	color: var(--af-petrol);
	font-size: 20px;
	font-weight: 800;
	line-height: 34px;
	text-align: center;
}

.af-garantias .codedropz-upload-inner h3 {
	margin: 0 0 2px;
	color: var(--af-ink);
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.4;
}

.af-garantias .codedropz-upload-inner > span {
	display: inline-block;
	margin: 0 0 8px;
	color: var(--af-muted);
	font-size: 12px;
}

.af-garantias .cd-upload-btn {
	display: inline-block;
	margin-top: 2px;
	padding: 8px 18px;
	border-radius: 999px;
	background: var(--af-petrol);
	color: #fff !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: background 0.15s ease;
}

.af-garantias .cd-upload-btn:hover,
.af-garantias .cd-upload-btn:focus {
	background: var(--af-petrol-dark);
	color: #fff;
}

.af-garantias .dnd-upload-counter {
	display: block;
	margin-top: 8px;
	color: var(--af-muted);
	font-size: 11.5px;
}

.af-garantias .codedropz-upload-container {
	padding: 0;
}

.af-garantias .codedropz-upload-wrapper .dnd-upload-status {
	border-radius: 10px;
}

/* Notas y avisos */

.af-rule {
	margin: 0 0 18px;
	padding: 13px 16px;
	border-left: 3px solid var(--af-orange);
	border-radius: 8px;
	background: #fff6e8;
	color: #7a4c00;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.55;
}

.af-note {
	margin: 16px 0 0;
	color: var(--af-muted);
	font-size: 12px;
	line-height: 1.6;
}

.af-note + .af-note {
	margin-top: 6px;
}

/* Envío */

.af-form-actions {
	margin-top: 26px;
}

.af-garantias .wpcf7 input[type="submit"],
.af-garantias .af-submit {
	display: block;
	width: 100%;
	height: 56px;
	padding: 0 30px;
	border: 0;
	border-radius: 12px;
	background: var(--af-orange);
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0.01em;
	cursor: pointer;
	box-shadow: 0 14px 28px rgba(242, 140, 0, 0.26);
	transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.af-garantias .wpcf7 input[type="submit"]:hover,
.af-garantias .af-submit:hover {
	background: var(--af-orange-dark);
	transform: translateY(-1px);
	box-shadow: 0 18px 32px rgba(242, 140, 0, 0.3);
}

.af-garantias .wpcf7 input[type="submit"]:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* Mensajes CF7 */

.af-garantias .wpcf7-not-valid-tip {
	margin: 6px 0 0;
	color: #c62828;
	font-size: 12px;
}

.af-garantias .wpcf7 form .wpcf7-response-output {
	margin: 18px 0 0;
	padding: 14px 18px;
	border: 1px solid #badbcc;
	border-radius: 12px;
	background: #edf7f1;
	color: #1b5e3a;
	font-size: 13.5px;
}

.af-garantias .wpcf7 form.invalid .wpcf7-response-output,
.af-garantias .wpcf7 form.unaccepted .wpcf7-response-output,
.af-garantias .wpcf7 form.failed .wpcf7-response-output,
.af-garantias .wpcf7 form.aborted .wpcf7-response-output {
	border-color: #f1c0c0;
	background: #fdf0f0;
	color: #a02828;
}

.af-garantias .wpcf7-spinner {
	margin: 0 auto;
}

.af-alert {
	max-width: 620px;
	margin: 0 auto;
	padding: 20px 24px;
	border: 1px solid #f0d5a8;
	border-radius: 14px;
	background: #fff8ee;
	color: #6b4a00;
	font-size: 14.5px;
	text-align: center;
}

.af-alert a {
	color: var(--af-petrol);
}

/* ---------------------------------------------------------------
   Responsive
--------------------------------------------------------------- */

@media (max-width: 1080px) {
	.af-policy__grid,
	.af-hub-intro__grid {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 44px;
	}

	.af-form-layout {
		grid-template-columns: 270px minmax(0, 1fr);
		gap: 36px;
	}

	.af-form-card {
		padding: 28px 26px;
	}
}

@media (max-width: 900px) {
	.af-garantias .af-hero__inner {
		padding-top: 72px;
		padding-bottom: 102px;
	}

	.af-policy__grid,
	.af-hub-intro__grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.af-policy__aside {
		max-width: 520px;
	}

	.af-aside-card {
		position: static;
	}

	.af-form-layout {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.af-form-aside {
		position: static;
	}

	.af-steps {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0 14px;
	}

	.af-steps li {
		display: block;
		padding: 14px 0 0;
	}

	.af-steps span {
		margin-bottom: 8px;
	}

	.af-steps li:last-child {
		border-bottom: 0;
	}

	.af-help-card {
		margin-top: 20px;
	}

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

@media (max-width: 720px) {
	.af-garantias .af-container {
		padding: 0 18px;
	}

	.af-hero {
		min-height: 290px;
	}

	.af-hero--hub {
		min-height: 320px;
	}

	.af-hero__img {
		object-position: var(--af-hero-pos-mobile, var(--af-hero-pos, 50% 50%));
	}

	.af-hero__shade {
		background: linear-gradient(
			180deg,
			rgba(5, 24, 35, 0.5) 0%,
			rgba(5, 24, 35, 0.72) 55%,
			rgba(5, 24, 35, 0.88) 100%
		);
	}

	.af-garantias .af-hero__inner {
		padding-top: 60px;
		padding-bottom: 92px;
	}

	.af-hero__title {
		font-size: clamp(1.9rem, 7.4vw, 2.5rem);
	}

	.af-hero__tagline {
		font-size: 15px;
	}

	.af-hero__wave {
		height: 36px;
	}

	.af-policy {
		padding: 44px 0 36px;
	}

	.af-policy__copy > p:not(.af-eyebrow),
	.af-hub-intro__copy p {
		font-size: 15.5px;
	}

	.af-hub-intro {
		padding: 44px 0 24px;
	}

	.af-hub-intro__copy .af-lede {
		font-size: 17.5px;
	}

	.af-brands-section {
		padding: 36px 0 64px;
	}

	.af-brand-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.af-brand-card__media {
		aspect-ratio: 16 / 10;
	}

	.af-form-section {
		padding: 48px 0 64px;
	}

	.af-form-aside__title {
		font-size: 26px;
	}

	.af-steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0 10px;
	}

	.af-steps li {
		display: block;
		padding: 12px 0 0;
		border-top: 1px solid #d9e5eb;
	}

	.af-steps span {
		margin-bottom: 7px;
	}

	.af-steps strong {
		font-size: 12.5px;
	}

	.af-steps small {
		display: none;
	}

	.af-steps li:last-child {
		border-bottom: 0;
	}

	.af-form-card {
		padding: 24px 18px;
		border-radius: 16px;
	}

	.af-grid,
	.af-grid--files {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.af-field--full {
		grid-column: auto;
	}

	.af-form-step__text h3 {
		font-size: 16.5px;
	}

	.af-garantias .wpcf7 input[type="submit"],
	.af-garantias .af-submit {
		height: 54px;
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.af-btn,
	.af-brand-card,
	.af-brand-card__media img,
	.af-garantias .wpcf7 input[type="submit"],
	.af-garantias .cd-upload-btn {
		transition: none;
	}

	.af-brand-card:hover {
		transform: none;
	}

	.af-brand-card:hover .af-brand-card__media img {
		transform: none;
	}
}

/* --------------------------------------------------------------------
 * Hub rediseñado según PPT del cliente.
 * ------------------------------------------------------------------ */

.af-hub-body {
	background: #ffffff;
	padding: 32px 0 48px;
}

.af-hub-body__inner {
	max-width: 920px;
	text-align: left;
	margin: 0 auto;
}

.af-hub-title {
	margin: 0 0 24px;
	font-size: clamp(26px, 3.2vw, 34px);
	font-weight: 800;
	letter-spacing: 0.5px;
	color: #333333;
	text-transform: uppercase;
}

.af-hub-intro {
	max-width: 820px;
	margin: 0 auto 32px;
	color: #333333;
	font-size: 15px;
	line-height: 1.75;
	text-align: left;
}

.af-hub-intro p {
	margin: 0 0 14px;
}

.af-hub-intro__lead {
	margin-top: 18px;
}

.af-brand-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px 22px;
}

.af-brand-button {
	display: inline-block;
	min-width: 150px;
	padding: 12px 26px;
	background: #155e82;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid #0f4a6b;
	border-radius: 0;
	transition: background 0.18s ease, color 0.18s ease;
}

.af-brand-button:hover {
	background: #0f4a6b;
	color: #ffffff;
}
