/*!
 * Gold Autos — estilos principales (mobile-first). v1.2
 * Portada: negro y blanco cinematográfico (clase body .ag-dark). Páginas internas: blanco.
 * Acento dorado champaña usado con moderación; sobre fondos claros se usa --ag-gold-ink para contraste AA.
 */

/* 1. Variables y base ---------------------------------------------------- */
:root {
	--ag-white: #FAFAF8;
	--ag-pure: #FFFFFF;
	--ag-black: #111111;
	--ag-void: #050505;
	--ag-raised: #0E0E10;
	--ag-panel: #141416;
	--ag-char: #242424;
	--ag-grey: #EEEEEA;
	--ag-gold: #B89B5E;
	--ag-gold-soft: #D6BE8A;
	--ag-gold-ink: #7A6330;
	--ag-line: #E2E2DC;
	--ag-line-dark: rgba(255, 255, 255, .09);
	--ag-muted: #5B5B56;
	--ag-muted-dark: #A3A39C;
	--ag-field: #8C8C85;
	--ag-wa: #0E7A3E;
	--ag-error: #B3261E;
	--ag-radius: 14px;
	--ag-ease: cubic-bezier(.22, .61, .36, 1);
	--ag-shadow: 0 1px 2px rgba(17, 17, 17, .05), 0 8px 24px rgba(17, 17, 17, .06);
	--ag-shadow-lg: 0 2px 4px rgba(17, 17, 17, .06), 0 18px 44px rgba(17, 17, 17, .14);
	--ag-font-head: Manrope, "Segoe UI", system-ui, -apple-system, sans-serif;
	--ag-font-body: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
	--ag-header-h: 72px;
	--bg: var(--ag-white);
	--fg: var(--ag-black);
	--muted: var(--ag-muted);
	--line: var(--ag-line);
	--card: #FFFFFF;
	--accent-ink: var(--ag-gold-ink);
}
.ag-dark {
	--bg: var(--ag-void);
	--fg: #F5F5F2;
	--muted: var(--ag-muted-dark);
	--line: var(--ag-line-dark);
	--card: var(--ag-panel);
	--accent-ink: var(--ag-gold-soft);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--ag-header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--ag-font-body); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--ag-font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--fg); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--ag-gold); color: var(--ag-black); }

:focus-visible { outline: 3px solid var(--fg); outline-offset: 2px; border-radius: 4px; }
.ag-header :focus-visible, .ag-hero :focus-visible, .ag-cta-band :focus-visible, .ag-footer :focus-visible, .ag-lightbox :focus-visible, .ag-dark :focus-visible { outline-color: var(--ag-gold); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; left: 12px; top: 12px; width: auto; height: auto; margin: 0; clip: auto; padding: 12px 18px; background: var(--ag-black); color: #fff; z-index: 1000; border-radius: 6px; }

.ag-container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .ag-container { padding-inline: 32px; } }
.ag-section { padding-block: 56px; }
@media (min-width: 900px) { .ag-section { padding-block: 96px; } }
.ag-section--tint { background: var(--ag-grey); }
.ag-dark .ag-section--tint, .ag-section--raised { background: var(--ag-raised); }
.ag-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 36px; }
.ag-section__head h2 { margin: 0; }
.ag-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--accent-ink); margin: 0 0 14px; }
.ag-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .8; }
.ag-hero .ag-eyebrow::before { display: none; }
.ag-eyebrow--dark { color: var(--ag-gold-ink); }
.ag-link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat, linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat; transition: background-size .35s var(--ag-ease); }
.ag-link-arrow:hover { background-size: 100% 1px, 100% 1px; }
.ag-link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ag-ease); }
.ag-link-arrow:hover svg { transform: translateX(4px); }
.ag-page-head { margin-bottom: 28px; }
.ag-page-head h1 { margin-bottom: 6px; }
.ag-page-head__note { color: var(--muted); margin: 0; }
.ag-admin-note { font-size: .875rem; padding: 10px 14px; background: #FFF7E0; color: #3d3000; border-left: 3px solid var(--ag-gold); border-radius: 4px; }

.ag-page-hero { position: relative; padding: 40px 0 36px; background: linear-gradient(180deg, #FFFFFF 0%, var(--ag-white) 100%); border-bottom: 1px solid var(--ag-line); overflow: hidden; }
.ag-page-hero::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(184, 155, 94, .35); box-shadow: 0 0 0 40px rgba(184, 155, 94, .05), 0 0 0 80px rgba(184, 155, 94, .03); pointer-events: none; }
.ag-page-hero h1 { margin: 6px 0 6px; position: relative; }
.ag-page-hero .ag-breadcrumbs { margin-bottom: 8px; }
@media (min-width: 900px) { .ag-page-hero { padding: 56px 0 48px; } }

/* 2. Botones --------------------------------------------------------------- */
.ag-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border: 1.5px solid transparent; border-radius: 999px; font-weight: 600; font-size: .95rem; line-height: 1.2; letter-spacing: .01em; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; transition: background-color .25s var(--ag-ease), color .25s var(--ag-ease), border-color .25s var(--ag-ease), transform .2s var(--ag-ease), box-shadow .25s var(--ag-ease); }
.ag-btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ag-ease); }
.ag-btn:hover { text-decoration: none; transform: translateY(-2px); }
.ag-btn:hover svg.ag-icon--arrow { transform: translateX(3px); }
.ag-btn:active { transform: none; }
.ag-btn--sm { min-height: 42px; padding: 9px 18px; font-size: .9rem; }
.ag-btn--lg { min-height: 56px; padding: 14px 30px; font-size: 1rem; }
.ag-btn--block { width: 100%; }
.ag-btn--gold { background: var(--ag-gold); color: var(--ag-black); }
.ag-btn--gold:hover { background: var(--ag-gold-soft); box-shadow: 0 10px 28px rgba(184, 155, 94, .35); }
.ag-btn--light { background: #FFFFFF; color: var(--ag-black); }
.ag-btn--light:hover { background: var(--ag-gold-soft); box-shadow: 0 10px 30px rgba(255, 255, 255, .12); }
.ag-btn--dark { background: var(--ag-black); color: #fff; }
.ag-btn--dark:hover { background: var(--ag-char); }
.ag-btn--outline { background: transparent; border-color: var(--fg); color: var(--fg); }
.ag-btn--outline:hover { background: var(--fg); color: var(--bg); }
.ag-btn--ghost { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .45); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ag-btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.ag-btn--wa { background: var(--ag-wa); color: #fff; }
.ag-btn--wa:hover { background: #0B6633; box-shadow: 0 10px 26px rgba(14, 122, 62, .3); }
.ag-btn--text { background: transparent; color: var(--fg); text-decoration: underline; }
.ag-btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* 3. Header ---------------------------------------------------------------- */
.ag-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 248, .92); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--ag-line); transition: background-color .35s var(--ag-ease), border-color .35s var(--ag-ease), transform .35s var(--ag-ease); }
.admin-bar .ag-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ag-header { top: 46px; } }
.ag-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--ag-header-h); gap: 16px; }
.ag-brand a { text-decoration: none; }
.ag-brand .custom-logo { max-height: 46px; width: auto; }
.ag-brand__text { display: inline-flex; flex-direction: column; gap: 4px; }
.ag-brand__name { font-family: var(--ag-font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: .14em; text-transform: uppercase; }
.ag-brand__line { display: block; width: 36px; height: 2px; background: var(--ag-gold); transition: width .35s var(--ag-ease); }
.ag-brand__text:hover .ag-brand__line { width: 100%; }
.ag-nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: transparent; border: 1.5px solid currentColor; border-radius: 50%; cursor: pointer; color: inherit; }
.ag-burger { position: relative; width: 20px; height: 14px; }
.ag-burger span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ag-ease), opacity .2s, top .3s var(--ag-ease); }
.ag-burger span:nth-child(1) { top: 0; }
.ag-burger span:nth-child(2) { top: 6px; }
.ag-burger span:nth-child(3) { top: 12px; }
.ag-nav-toggle[aria-expanded="true"] .ag-burger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.ag-nav-toggle[aria-expanded="true"] .ag-burger span:nth-child(2) { opacity: 0; }
.ag-nav-toggle[aria-expanded="true"] .ag-burger span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.ag-menu { display: flex; flex-direction: column; }
.ag-menu a { position: relative; display: block; padding: 14px 4px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.ag-header__cta { padding: 16px 0 20px; }
.ag-header__cta .ag-btn { width: 100%; }
html.js .ag-nav-wrap { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ag-white); color: var(--ag-black); border-bottom: 1px solid var(--ag-line); padding: 4px 20px 0; box-shadow: var(--ag-shadow); max-height: calc(100vh - var(--ag-header-h)); overflow: auto; }
html.js .ag-nav-wrap.is-open { display: block; animation: ag-drop .3s var(--ag-ease); }
html:not(.js) .ag-nav-toggle { display: none; }
html:not(.js) .ag-header__inner { flex-wrap: wrap; }
html:not(.js) .ag-nav-wrap { width: 100%; }
@keyframes ag-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (min-width: 960px) {
	.ag-nav-toggle { display: none !important; }
	html.js .ag-nav-wrap, .ag-nav-wrap { display: flex !important; position: static; align-items: center; gap: 32px; padding: 0; border: 0; box-shadow: none; background: transparent; color: inherit; overflow: visible; max-height: none; width: auto; animation: none; }
	.ag-menu { flex-direction: row; gap: 30px; }
	.ag-menu a { padding: 8px 0; border: 0; font-size: .93rem; letter-spacing: .02em; }
	.ag-menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--ag-gold); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ag-ease); }
	.ag-menu a:hover::after, .ag-menu .current-menu-item > a::after, .ag-menu a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
	.ag-header__cta { padding: 0; }
	.ag-header__cta .ag-btn { width: auto; }
}
.ag-header--overlay { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; color: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ag-header--overlay.is-scrolled { background: rgba(5, 5, 5, .86); border-bottom-color: var(--ag-line-dark); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.ag-header--overlay.is-hidden { transform: translateY(-100%); }
@media (min-width: 960px) { .ag-header--overlay .ag-nav-wrap { color: #fff; } }

/* 4. Hero cinematográfico -------------------------------------------------- */
.ag-hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 100vh; min-height: 100svh; background: var(--ag-void); color: #fff; overflow: hidden; }
.ag-hero__media { position: absolute; inset: 0; z-index: -1; }
.ag-hero__media picture, .ag-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ag-hero__img { object-fit: cover; object-position: 70% 50%; transform-origin: 70% 60%; animation: ag-kenburns 22s var(--ag-ease) both; }
.ag-hero__shade { position: absolute; inset: 0; background:
	linear-gradient(90deg, rgba(5, 5, 5, .96) 0%, rgba(5, 5, 5, .78) 34%, rgba(5, 5, 5, .2) 70%, rgba(5, 5, 5, .45) 100%),
	linear-gradient(0deg, rgba(5, 5, 5, 1) 0%, rgba(5, 5, 5, 0) 38%),
	linear-gradient(180deg, rgba(5, 5, 5, .7) 0%, rgba(5, 5, 5, 0) 22%); }
.ag-hero__grain { position: absolute; inset: 0; opacity: .08; mix-blend-mode: overlay; background-image: radial-gradient(rgba(255, 255, 255, .7) 1px, transparent 1px); background-size: 3px 3px; }
/* El haz se mueve con transform (no con left): no recalcula el diseño en cada fotograma ni cuenta como salto (CLS). */
.ag-hero__beam { position: absolute; top: -20%; left: -40%; width: 40%; height: 140%; background: linear-gradient(90deg, transparent, rgba(214, 190, 138, .10), transparent); transform: translateX(0) rotate(18deg); opacity: 0; animation: ag-beam 9s ease-in-out 1.2s infinite; will-change: transform, opacity; pointer-events: none; }
.ag-hero__inner { position: relative; padding-top: calc(var(--ag-header-h) + 48px); padding-bottom: 96px; }
.ag-hero__eyebrow { color: var(--ag-gold-soft); margin-bottom: 22px; opacity: 0; animation: ag-fade-up .9s var(--ag-ease) .1s forwards; }
.ag-hero__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ag-gold); box-shadow: 0 0 0 0 rgba(184, 155, 94, .7); animation: ag-pulse 2.4s infinite; }
.ag-hero__title { color: #fff; max-width: 14ch; font-size: clamp(2.6rem, 8.4vw, 6rem); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 24px; }
.ag-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-right: .22em; }
.ag-word > span { display: inline-block; transform: translateY(110%); animation: ag-word-up 1s var(--ag-ease) forwards; animation-delay: calc(.25s + var(--i) * .08s); }
.ag-word:last-child > span { background: linear-gradient(100deg, #FFFFFF 10%, var(--ag-gold-soft) 55%, #FFFFFF 90%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ag-word-up 1s var(--ag-ease) forwards, ag-shine 6s linear 2s infinite; animation-delay: calc(.25s + var(--i) * .08s), 2s; }
.ag-hero__text { max-width: 50ch; color: #D4D4CE; font-size: clamp(1rem, 1.6vw, 1.15rem); margin-bottom: 32px; opacity: 0; animation: ag-fade-up .9s var(--ag-ease) .7s forwards; }
.ag-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; opacity: 0; animation: ag-fade-up .9s var(--ag-ease) .85s forwards; }
.ag-hero__search { opacity: 0; animation: ag-fade-up .9s var(--ag-ease) 1s forwards; }
.ag-hero__updated { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: .82rem; color: #A9A9A2; }
.ag-hero__updated svg { width: 14px; height: 14px; color: var(--ag-gold); }
.ag-hero__scroll { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 14px; display: none; }
.ag-hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: ag-scroll 1.8s var(--ag-ease) infinite; }
@media (min-width: 900px) {
	.ag-hero__inner { padding-bottom: 120px; }
	.ag-hero__scroll { display: block; }
}
@media (max-width: 640px) {
	.ag-hero__img { object-position: 64% 50%; }
	.ag-hero__shade { background: linear-gradient(0deg, rgba(5, 5, 5, 1) 0%, rgba(5, 5, 5, .8) 50%, rgba(5, 5, 5, .2) 100%); }
	.ag-hero__actions .ag-btn { flex: 1 1 100%; }
}
@keyframes ag-kenburns { from { transform: scale(1.14) translate3d(1.5%, 0, 0); } to { transform: scale(1.02) translate3d(0, 0, 0); } }
@keyframes ag-word-up { to { transform: none; } }
@keyframes ag-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ag-shine { from { background-position: 200% 0; } to { background-position: -20% 0; } }
/* De left:-40% a left:110% = 150% del hero = 375% del ancho del haz (40%). */
@keyframes ag-beam { 0%, 100% { transform: translateX(0) rotate(18deg); opacity: 0; } 15% { opacity: 1; } 60% { transform: translateX(375%) rotate(18deg); opacity: 0; } }
@keyframes ag-pulse { 0% { box-shadow: 0 0 0 0 rgba(184, 155, 94, .6); } 70% { box-shadow: 0 0 0 10px rgba(184, 155, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(184, 155, 94, 0); } }
@keyframes ag-scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.ag-quick { background: rgba(255, 255, 255, .97); color: var(--ag-black); border-radius: 18px; padding: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); max-width: 1000px; }
.ag-hero .ag-quick { background: rgba(20, 20, 22, .62); color: #fff; border: 1px solid rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
.ag-hero .ag-quick label { color: #CFCFC8; }
.ag-hero .ag-quick select, .ag-hero .ag-quick input { background-color: rgba(255, 255, 255, .06) !important; border-color: rgba(255, 255, 255, .22) !important; color: #fff; }
.ag-hero .ag-quick select option { color: #111; }
.ag-hero .ag-quick select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='m1 1 5 5 5-5'/%3E%3C/svg%3E") !important; }
.ag-hero .ag-quick input::placeholder { color: #8f8f88; }
.ag-hero .ag-quick :focus { outline-color: var(--ag-gold) !important; border-color: var(--ag-gold) !important; }
.ag-quick__row { display: grid; gap: 12px; }
.ag-quick__submit { width: 100%; align-self: end; border-radius: 12px; }
.ag-quick__more { margin-top: 12px; }
.ag-quick__more summary { cursor: pointer; font-size: .86rem; font-weight: 600; padding: 6px 0; opacity: .9; }
.ag-quick__grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 10px; }
.ag-quick__grid--5 > .ag-field:first-child { grid-column: 1 / -1; }
@media (min-width: 760px) {
	.ag-quick { padding: 20px 22px; }
	.ag-quick__row { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; }
	.ag-quick__submit { width: auto; min-width: 150px; }
	.ag-quick__grid { grid-template-columns: repeat(4, 1fr); }
	.ag-quick__grid--5 { grid-template-columns: 1.4fr repeat(4, 1fr); }
	.ag-quick__grid--5 > .ag-field:first-child { grid-column: auto; }
}

/* 5. Marcas y cifras ------------------------------------------------------- */
.ag-marquee { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ag-marquee__track { display: flex; width: max-content; animation: ag-marquee 38s linear infinite; }
.ag-marquee:hover .ag-marquee__track, .ag-marquee:focus-within .ag-marquee__track { animation-play-state: paused; }
.ag-marquee__list { display: flex; flex: none; }
.ag-marquee__list li { display: flex; align-items: center; }
.ag-marquee__list li::after { content: "✦"; color: var(--ag-gold); font-size: .7rem; margin: 0 34px; opacity: .8; }
.ag-marquee__list a { font-family: var(--ag-font-head); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.6rem); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color .25s; white-space: nowrap; }
.ag-marquee__list a:hover { color: var(--fg); }
@keyframes ag-marquee { to { transform: translateX(-50%); } }
.ag-section--stats { padding-block: 48px; }
.ag-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--ag-radius); overflow: hidden; }
.ag-stat { display: flex; flex-direction: column; gap: 4px; padding: 26px 22px; background: var(--bg); }
.ag-stat__num { font-family: var(--ag-font-head); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--fg); font-variant-numeric: tabular-nums; }
.ag-stat__label { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ag-stat:first-child .ag-stat__num { color: var(--ag-gold-soft); }
@media (min-width: 760px) { .ag-stats { grid-template-columns: repeat(4, 1fr); } }
.ag-section--stats:has(.ag-stats:empty), .ag-section--stats:not(:has(.ag-stats)) { display: none; }

/* 6. Formularios ----------------------------------------------------------- */
.ag-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.ag-quick .ag-field, .ag-field-row .ag-field { margin-bottom: 0; }
.ag-field label, .ag-fieldset legend { font-size: .82rem; font-weight: 600; color: var(--fg); opacity: .9; }
.ag-field input:not([type="checkbox"]):not([type="radio"]), .ag-field select, .ag-field textarea { width: 100%; min-height: 48px; padding: 10px 14px; background: #fff; color: var(--ag-black); border: 1.5px solid var(--ag-field); border-radius: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.ag-field textarea { min-height: 96px; resize: vertical; }
.ag-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23111' stroke-width='2' d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.ag-field input:focus, .ag-field select:focus, .ag-field textarea:focus { outline: 3px solid var(--ag-black); outline-offset: 1px; border-color: var(--ag-black); }
.ag-field [aria-invalid="true"] { border-color: var(--ag-error); }
.ag-field__error { margin: 0; font-size: .85rem; color: var(--ag-error); font-weight: 500; }
.ag-field-row { display: grid; gap: 12px; margin-bottom: 14px; }
@media (min-width: 480px) { .ag-field-row { grid-template-columns: 1fr 1fr; } }
.ag-hint { font-size: .82rem; color: var(--muted); margin: -6px 0 14px; }
.ag-req { color: var(--ag-error); }
.ag-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ag-fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.ag-fieldset legend { padding: 0; margin-bottom: 6px; }
.ag-fieldset--inline { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ag-fieldset--inline legend { width: 100%; }
.ag-radio, .ag-check { display: inline-flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.ag-radio input, .ag-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ag-black); flex: none; }
.ag-form-card { background: #fff; border: 1px solid var(--ag-line); border-radius: 18px; padding: 24px; box-shadow: var(--ag-shadow); color: var(--ag-black); }
.ag-form-card__title { font-size: 1.3rem; margin-bottom: 4px; color: var(--ag-black); }
.ag-form-card__lead { color: var(--ag-muted); font-size: .92rem; }
.ag-form__vehicle { font-size: .9rem; background: var(--ag-grey); padding: 10px 14px; border-radius: 10px; }
.ag-form__vehicle span { color: var(--ag-muted); }
.ag-alert { padding: 14px 16px; border-radius: 10px; border-left: 4px solid; margin-bottom: 16px; font-size: .92rem; color: var(--ag-black); }
.ag-alert ul { margin-top: 6px; list-style: disc; padding-left: 18px; }
.ag-alert--success { background: #E9F5EE; border-color: var(--ag-wa); }
.ag-alert--error { background: #FCECEA; border-color: var(--ag-error); }
.ag-alert--info { background: #FFF7E0; border-color: var(--ag-gold); }
.ag-searchform { display: flex; gap: 8px; }
.ag-searchform input { flex: 1; min-height: 46px; padding: 8px 14px; border: 1.5px solid var(--ag-field); border-radius: 999px; }

/* 7. Tarjetas de vehículo -------------------------------------------------- */
.ag-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .ag-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ag-grid { grid-template-columns: repeat(4, 1fr); } .ag-grid--catalog { grid-template-columns: repeat(3, 1fr); } }
.ag-card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--ag-radius); overflow: hidden; transition: transform .45s var(--ag-ease), box-shadow .45s var(--ag-ease), border-color .45s var(--ag-ease); }
.ag-card:hover, .ag-card:focus-within { transform: translateY(-6px); box-shadow: var(--ag-shadow-lg); border-color: rgba(184, 155, 94, .65); }
.ag-dark .ag-card:hover, .ag-dark .ag-card:focus-within { box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(184, 155, 94, .35); }
.ag-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--ag-grey); overflow: hidden; }
.ag-dark .ag-card__media { background: #1B1B1E; }
.ag-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ag-ease); }
.ag-card:hover .ag-card__media img { transform: scale(1.07); }
.ag-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent 55%); opacity: 0; transition: opacity .45s var(--ag-ease); pointer-events: none; }
.ag-card:hover .ag-card__media::after { opacity: 1; }
.ag-card__view { position: absolute; left: 16px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: .85rem; font-weight: 600; opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ag-ease), transform .4s var(--ag-ease); }
.ag-card__view svg { width: 15px; height: 15px; }
.ag-card:hover .ag-card__view { opacity: 1; transform: none; }
.ag-card--sold .ag-card__media img, .ag-card--sold .ag-placeholder { filter: grayscale(.9); opacity: .7; }
.ag-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 160px; color: #A5A59E; background: linear-gradient(135deg, #F3F3EF, #E5E5DF); }
.ag-dark .ag-placeholder { color: #4A4A4E; background: radial-gradient(120% 90% at 70% 20%, #232326 0%, #121214 70%); }
.ag-placeholder svg { width: 52%; max-width: 280px; }
.ag-card__badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }
.ag-badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: #fff; color: var(--ag-black); border: 1px solid var(--ag-line); }
.ag-badge--reserved { background: #FFF1CF; color: #5E4300; border-color: #F0D58A; }
.ag-badge--sold { background: var(--ag-black); color: #fff; border-color: #333; }
.ag-badge--upcoming { background: #E6EDF8; color: #17305A; border-color: #C5D3EC; }
.ag-badge--available { background: #E9F5EE; color: #0B5B2E; border-color: #BFE0CC; }
.ag-badge--featured { background: var(--ag-gold); color: var(--ag-black); border-color: var(--ag-gold); }
.ag-badge--offer { background: var(--ag-black); color: var(--ag-gold-soft); border-color: var(--ag-black); }
.ag-badge--demo { background: rgba(255, 255, 255, .9); color: #555; border: 1px dashed #888; }
.ag-card__body { display: flex; flex-direction: column; gap: 3px; padding: 18px 20px 20px; flex: 1; }
.ag-card__meta { margin: 0; font-size: .74rem; color: var(--muted); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.ag-card__title { margin: 2px 0 0; font-size: 1.15rem; }
.ag-card__link { text-decoration: none; }
.ag-card__link::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.ag-card__trim { margin: 0; font-size: .88rem; color: var(--muted); }
.ag-card__specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
.ag-card__specs li { font-size: .76rem; padding: 4px 10px; border-radius: 999px; background: var(--ag-grey); color: var(--ag-char); }
.ag-dark .ag-card__specs li { background: rgba(255, 255, 255, .06); color: #CFCFC8; }
.ag-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.ag-card__foot .ag-price { margin: 0; }
.ag-card__arrow { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--line); color: var(--fg); transition: background-color .35s var(--ag-ease), color .35s var(--ag-ease), transform .35s var(--ag-ease), border-color .35s; }
.ag-card__arrow svg { width: 16px; height: 16px; transform: rotate(-45deg); transition: transform .35s var(--ag-ease); }
.ag-card:hover .ag-card__arrow { background: var(--ag-gold); border-color: var(--ag-gold); color: var(--ag-black); }
.ag-card:hover .ag-card__arrow svg { transform: rotate(0); }
.ag-price { margin: 10px 0 8px; font-family: var(--ag-font-head); }
.ag-price__main { white-space: nowrap; font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }
.ag-price__old { white-space: nowrap; margin-left: 6px; font-size: .85rem; color: var(--muted); font-weight: 500; }
.ag-price--lg .ag-price__main { font-size: 2.1rem; }

/* 8. Catálogo y filtros ---------------------------------------------------- */
.ag-catalog { padding-top: 32px; }
.ag-catalog__layout { display: block; }
.ag-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.ag-toolbar__sort { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; margin-left: auto; }
.ag-toolbar__sort select { min-height: 44px; padding: 6px 34px 6px 14px; border: 1.5px solid var(--ag-field); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23111' stroke-width='2' d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; }
.ag-results { transition: opacity .25s ease; min-height: 200px; }
.ag-results[aria-busy="true"] { opacity: .45; pointer-events: none; }
.ag-results__count { font-weight: 600; margin-bottom: 12px; }
.ag-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ag-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; min-height: 36px; border: 1px solid var(--ag-field); border-radius: 999px; font-size: .85rem; background: #fff; color: var(--ag-black); text-decoration: none; transition: background-color .2s ease, border-color .2s ease; }
.ag-chip:hover { border-color: var(--ag-black); background: var(--ag-grey); }
.ag-chip--remove span[aria-hidden] { font-size: 1.1rem; line-height: 1; }
.ag-empty { text-align: center; max-width: 640px; margin: 32px auto; padding: 36px 22px; background: var(--card); border: 1px dashed var(--ag-field); border-radius: 18px; }
.ag-empty__label { color: var(--muted); font-size: .9rem; margin-top: 18px; }
.ag-empty .ag-chips { justify-content: center; }
.ag-disclaimer { margin-top: 32px; font-size: .8rem; color: var(--muted); max-width: 70ch; }
.ag-filters { background: #fff; border: 1px solid var(--ag-line); border-radius: 18px; padding: 20px; }
.ag-filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ag-filters__head h2 { font-size: 1.1rem; margin: 0; }
.ag-filters__close { display: none; background: transparent; border: 0; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.ag-filters__close svg { width: 22px; height: 22px; }
.ag-filters__more { margin: 4px 0 14px; }
.ag-filters__more summary { cursor: pointer; font-weight: 600; font-size: .9rem; padding: 8px 0; }
.ag-filters__more .ag-field { margin-top: 10px; }
.ag-filters__actions { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.ag-filters-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 59; }
.ag-toolbar__filters { display: none; }
html.js .ag-toolbar__filters { display: inline-flex; }
@media (max-width: 1023px) {
	html.js .ag-catalog__filters { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 90vh; overflow: auto; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, .25); transform: translateY(105%); visibility: hidden; transition: transform .35s var(--ag-ease), visibility 0s linear .35s; padding: 6px 4px 0; color: var(--ag-black); }
	html.js .ag-catalog__filters.is-open { transform: none; visibility: visible; transition: transform .35s var(--ag-ease); }
	html.js .ag-catalog__filters .ag-filters { border: 0; border-radius: 0; }
	html.js .ag-filters__close { display: inline-flex; }
	html.js .ag-filters__actions { position: sticky; bottom: 0; background: #fff; padding: 12px 0 8px; border-top: 1px solid var(--ag-line); flex-direction: row; align-items: center; }
	html.js .ag-filters__actions .ag-btn--dark { flex: 1; }
	.ag-catalog__filters { margin-bottom: 20px; }
}
@media (min-width: 1024px) {
	.ag-catalog__layout { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; }
	.ag-catalog__filters { position: sticky; top: calc(var(--ag-header-h) + 16px); max-height: calc(100vh - var(--ag-header-h) - 32px); overflow: auto; }
	.ag-toolbar__filters { display: none !important; }
	.ag-filters-backdrop { display: none !important; }
}
body.ag-no-scroll { overflow: hidden; }
.ag-pagination { margin-top: 36px; }
.ag-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ag-pagination a, .ag-pagination span.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 46px; padding: 0 12px; border: 1px solid var(--ag-line); border-radius: 999px; background: #fff; color: var(--ag-black); text-decoration: none; font-weight: 600; }
.ag-pagination a:hover { border-color: var(--ag-black); }
.ag-pagination .page-numbers.current { background: var(--ag-black); color: #fff; border-color: var(--ag-black); }
.ag-pagination .page-numbers.dots { border: 0; background: transparent; }

/* 9. Breadcrumbs ----------------------------------------------------------- */
.ag-breadcrumbs { margin-bottom: 18px; font-size: .82rem; color: var(--muted); }
.ag-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.ag-breadcrumbs li + li::before { content: "/"; margin: 0 8px; color: var(--ag-field); }
.ag-breadcrumbs a { text-decoration: none; }
.ag-breadcrumbs a:hover { text-decoration: underline; }
.ag-breadcrumbs [aria-current] { color: var(--fg); }

/* 10. Detalle de vehículo -------------------------------------------------- */
.ag-vehicle__layout { display: grid; gap: 28px; }
@media (min-width: 960px) {
	.ag-vehicle__layout { grid-template-columns: minmax(0, 1fr) 410px; gap: 44px; align-items: start; }
	.ag-vehicle__side { position: sticky; top: calc(var(--ag-header-h) + 16px); }
}
.ag-gallery__main { position: relative; aspect-ratio: 16 / 10; background: #1B1B1E; border-radius: 18px; overflow: hidden; }
.ag-gallery__open { display: block; position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.ag-gallery__img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ag-ease); }
.ag-gallery__open:hover .ag-gallery__img { transform: scale(1.03); }
.ag-gallery__zoom { position: absolute; right: 14px; bottom: 14px; padding: 7px 14px; border-radius: 999px; background: rgba(17, 17, 17, .78); color: #fff; font-size: .8rem; font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ag-gallery__count { position: absolute; left: 14px; bottom: 14px; margin: 0; padding: 5px 12px; border-radius: 999px; background: rgba(17, 17, 17, .78); color: #fff; font-size: .78rem; }
.ag-gallery__status { position: absolute; left: 14px; top: 14px; font-size: .8rem; padding: 6px 14px; }
.ag-gallery__main--empty .ag-placeholder { position: absolute; inset: 0; color: #4A4A4E; background: radial-gradient(120% 90% at 70% 20%, #232326 0%, #121214 70%); }
.ag-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.ag-thumb { flex: none; width: 96px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--ag-grey); cursor: pointer; opacity: .65; transition: opacity .25s ease, border-color .25s ease; scroll-snap-align: start; }
.ag-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ag-thumb:hover { opacity: 1; }
.ag-thumb[aria-current="true"] { border-color: var(--ag-gold); opacity: 1; }
.ag-lightbox { padding: 0; border: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: rgba(5, 5, 5, .96); color: #fff; }
.ag-lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.ag-lightbox[open] { display: flex; align-items: center; justify-content: center; animation: ag-fade .3s ease; }
@keyframes ag-fade { from { opacity: 0; } to { opacity: 1; } }
.ag-lightbox__figure { margin: 0; padding: 56px 64px; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.ag-lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.ag-lightbox__close, .ag-lightbox__nav { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .5); color: #fff; font-size: 1.4rem; cursor: pointer; transition: background-color .2s; }
.ag-lightbox__close:hover, .ag-lightbox__nav:hover { background: var(--ag-gold); color: var(--ag-black); }
.ag-lightbox__close { top: 14px; right: 14px; }
.ag-lightbox__close svg { width: 20px; height: 20px; }
.ag-lightbox__nav { top: 50%; transform: translateY(-50%); }
.ag-lightbox__nav--prev { left: 12px; }
.ag-lightbox__nav--next { right: 12px; }
.ag-lightbox__count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; margin: 0; font-size: .85rem; }
@media (max-width: 640px) { .ag-lightbox__figure { padding: 64px 8px; } }
.ag-vehicle__note { margin-top: 16px; }
.ag-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0 8px; }
@media (min-width: 640px) { .ag-summary { grid-template-columns: repeat(4, 1fr); } }
.ag-summary li { position: relative; background: #fff; border: 1px solid var(--ag-line); border-radius: 14px; padding: 14px 16px 14px 50px; display: flex; flex-direction: column; gap: 2px; }
.ag-summary svg { position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: var(--ag-gold-ink); }
.ag-summary__label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ag-muted); font-weight: 600; }
.ag-summary__value { font-family: var(--ag-font-head); font-size: 1rem; }
.ag-block { margin-top: 36px; }
.ag-block h2 { font-size: 1.35rem; padding-bottom: 10px; border-bottom: 1px solid var(--ag-line); position: relative; }
.ag-block h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 48px; height: 2px; background: var(--ag-gold); }
.ag-lead { font-size: 1.05rem; color: var(--ag-char); }
.ag-specs { display: grid; gap: 0 32px; margin: 0; }
@media (min-width: 720px) { .ag-specs { grid-template-columns: 1fr 1fr; } }
.ag-specs__row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--ag-line); font-size: .93rem; }
.ag-specs dt { color: var(--ag-muted); }
.ag-specs dd { margin: 0; font-weight: 600; text-align: right; }
.ag-ticks { display: grid; gap: 8px; }
.ag-ticks--cols { gap: 8px 28px; }
@media (min-width: 720px) { .ag-ticks--cols { grid-template-columns: 1fr 1fr; } }
.ag-ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.ag-ticks svg { width: 18px; height: 18px; margin-top: 3px; color: var(--ag-gold-ink); flex: none; }
.ag-buybox { position: relative; background: var(--ag-black); color: #fff; border-radius: 20px; padding: 26px; box-shadow: var(--ag-shadow-lg); margin-bottom: 18px; overflow: hidden; }
.ag-buybox::before { content: ""; position: absolute; right: -80px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(184, 155, 94, .28), transparent 70%); pointer-events: none; }
.ag-buybox h1, .ag-buybox .ag-price { color: #fff; }
.ag-buybox__status { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.ag-buybox__title { font-size: 1.55rem; margin-bottom: 4px; }
.ag-buybox__sub { color: #B9B9B2; font-size: .9rem; margin-bottom: 4px; }
.ag-buybox .ag-price__old { color: #9a9a93; }
.ag-buybox__actions { display: grid; gap: 10px; margin-top: 18px; }
.ag-buybox .ag-btn--outline { border-color: rgba(255, 255, 255, .5); color: #fff; }
.ag-buybox .ag-btn--outline:hover { background: #fff; color: var(--ag-black); }
.ag-buybox .ag-btn--text { color: #fff; }
.ag-buybox__code { margin: 14px 0 0; font-size: .8rem; color: #9a9a93; }
.ag-related { margin-top: 64px; }
.ag-related .ag-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.ag-mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(250, 250, 248, .97); border-top: 1px solid var(--ag-line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); }
.ag-mobile-cta .ag-btn { padding-inline: 8px; }
body.has-mobile-cta { padding-bottom: 68px; }
@media (min-width: 960px) { .ag-mobile-cta { display: none; } body.has-mobile-cta { padding-bottom: 0; } }

/* 11. Secciones de portada ------------------------------------------------- */
.ag-tiles { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ag-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
	.ag-tiles { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 240px; }
	.ag-tiles li { grid-column: span 2; }
	.ag-tiles li:nth-child(1) { grid-column: span 3; grid-row: span 2; }
	.ag-tiles li:nth-child(2) { grid-column: span 3; }
	.ag-tiles li:nth-child(3) { grid-column: span 3; }
	.ag-tiles li:nth-child(4):nth-last-child(2), .ag-tiles li:nth-child(5):nth-last-child(1) { grid-column: span 3; }
	.ag-tiles li:nth-child(4):last-child { grid-column: span 6; }
}
.ag-tiles li { min-height: 220px; }
.ag-tile { position: relative; display: flex; align-items: flex-end; height: 100%; min-height: 220px; border-radius: 18px; overflow: hidden; text-decoration: none; color: #fff; background: radial-gradient(120% 120% at 80% 0%, #2A2A2E 0%, #121214 65%); border: 1px solid var(--ag-line-dark); isolation: isolate; }
.ag-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ag-ease), filter .6s; filter: saturate(.9) brightness(.85); }
.ag-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .15) 60%, rgba(0, 0, 0, .05) 100%); }
.ag-tile:hover img { transform: scale(1.08); filter: saturate(1) brightness(1); }
.ag-tile--plain::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(184, 155, 94, .35); z-index: -1; }
.ag-tile__body { display: flex; flex-direction: column; gap: 4px; padding: 24px; width: 100%; }
.ag-tile__count { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ag-gold-soft); }
.ag-tile__name { font-family: var(--ag-font-head); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.02em; line-height: 1.1; }
.ag-tile__go { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; margin-top: 6px; opacity: .85; transition: gap .3s var(--ag-ease), opacity .3s; }
.ag-tile__go svg { width: 16px; height: 16px; }
.ag-tile:hover .ag-tile__go { gap: 12px; opacity: 1; }
/* Móvil: categorías en dos columnas y más bajas (antes una debajo de otra, ~1,6 pantallas). */
@media (max-width: 639px) {
	.ag-tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.ag-tiles li, .ag-tile { min-height: 150px; }
	.ag-tile { border-radius: 14px; }
	.ag-tile__body { padding: 14px; gap: 2px; }
	.ag-tile__count { font-size: .62rem; letter-spacing: .12em; }
	.ag-tile__name { font-size: 1.02rem; overflow-wrap: break-word; hyphens: auto; }
	.ag-tile__go { display: none; }
	.ag-tiles li:only-child, .ag-tiles li:last-child:nth-child(odd) { grid-column: span 2; }
}
.ag-featured__more { margin: 28px 0 0; }
@media (min-width: 1100px) { .ag-featured__more { display: none; } }
@media (min-width: 600px) { .ag-featured__more .ag-btn { width: auto; display: inline-flex; } .ag-featured__more { text-align: center; } }
.ag-promise-wrap { position: relative; overflow: hidden; }
.ag-promise-wrap::before { content: ""; position: absolute; left: -200px; top: 10%; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(184, 155, 94, .14), transparent 65%); pointer-events: none; }
.ag-promise-grid { position: relative; display: grid; gap: 40px; }
@media (min-width: 960px) { .ag-promise-grid { grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; } }
.ag-promise-intro p:not(.ag-eyebrow) { color: var(--muted); font-size: 1.05rem; max-width: 46ch; }
.ag-promise-intro .ag-btn { margin-top: 10px; }
.ag-promise { display: grid; gap: 14px; }
.ag-promise__item { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: border-color .35s var(--ag-ease), transform .35s var(--ag-ease); }
.ag-promise__item:hover { border-color: rgba(184, 155, 94, .55); transform: translateX(6px); }
.ag-promise__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: linear-gradient(135deg, var(--ag-gold), #8E7440); color: var(--ag-black); }
.ag-promise__icon svg { width: 24px; height: 24px; }
.ag-promise__item h3 { margin: 0 0 4px; }
.ag-promise__item p { margin: 0; color: var(--muted); font-size: .94rem; }
.ag-section--tint .ag-promise__item { background: #fff; }
.ag-values { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.ag-value { padding: 30px 26px; background: var(--bg); transition: background-color .35s var(--ag-ease); }
.ag-value:hover { background: var(--card); }
.ag-value svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; border: 1px solid var(--ag-gold); color: var(--accent-ink); margin-bottom: 18px; }
.ag-value h3 { margin-bottom: 6px; }
.ag-value p { color: var(--muted); font-size: .93rem; margin: 0; }
.ag-trust { display: grid; gap: 36px; }
@media (min-width: 900px) { .ag-trust { grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: start; } }
.ag-steps { counter-reset: step; display: grid; gap: 22px; margin-top: 24px; position: relative; }
.ag-steps li { counter-increment: step; position: relative; padding-left: 64px; }
.ag-steps li::before { content: "0" counter(step); position: absolute; left: 0; top: -2px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ag-gold); color: var(--accent-ink); font-weight: 800; font-family: var(--ag-font-head); font-size: .9rem; }
.ag-steps strong { display: block; font-family: var(--ag-font-head); font-size: 1.1rem; }
.ag-steps span { color: var(--muted); font-size: .94rem; }
.ag-trust__contact { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.ag-contact-list { display: grid; gap: 12px; margin: 0 0 16px; }
.ag-contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.ag-contact-list svg { width: 20px; height: 20px; margin-top: 2px; color: var(--accent-ink); flex: none; }
.ag-social { display: flex; gap: 10px; margin: 12px 0 0; }
.ag-social a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--ag-field); border-radius: 50%; transition: background-color .25s ease, color .25s ease, border-color .25s; }
.ag-social a:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.ag-cta-band { position: relative; isolation: isolate; background: var(--ag-void); color: #fff; padding-block: 88px; overflow: hidden; }
.ag-cta-band::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: var(--ag-cta-img, none); background-size: cover; background-position: center 60%; opacity: .45; }
.ag-cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 5, 5, .96) 0%, rgba(5, 5, 5, .7) 55%, rgba(5, 5, 5, .5) 100%); }
@media (min-width: 1024px) and (hover: hover) { .ag-cta-band::before { background-attachment: fixed; } }
.ag-cta-band h2 { color: #fff; margin-bottom: 10px; font-size: clamp(1.8rem, 4.2vw, 3rem); max-width: 18ch; }
.ag-cta-band p:not(.ag-eyebrow) { color: #CFCFC8; margin: 0; max-width: 52ch; }
.ag-cta-band .ag-eyebrow { color: var(--ag-gold-soft); }
.ag-cta-band__inner { display: grid; gap: 28px; }
.ag-cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .ag-cta-band__inner { grid-template-columns: 1fr auto; align-items: center; } }

/* 12. Contacto y páginas --------------------------------------------------- */
.ag-contact { display: grid; gap: 32px; }
@media (min-width: 900px) { .ag-contact { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; } }
.ag-contact__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 24px; }
.ag-prose { max-width: 72ch; }
.ag-prose--wide { max-width: 80ch; font-size: 1.05rem; }
.ag-prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.ag-prose ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }
.ag-prose a { color: var(--accent-ink); }
.ag-entry { padding: 20px 0; border-bottom: 1px solid var(--line); }

/* 13. Footer ---------------------------------------------------------------- */
.ag-footer { background: #000; color: #CFCFC8; }
.ag-footer a { color: #fff; text-decoration: none; }
.ag-footer a:hover { color: var(--ag-gold-soft); }
.ag-footer .ag-btn--light, .ag-footer .ag-btn--light:hover { color: var(--ag-black); }
.ag-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 56px 0 40px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ag-footer__brand { font-family: var(--ag-font-head); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 6px; }
.ag-footer__about { margin: 0; color: #9A9A93; max-width: 46ch; }
.ag-footer__grid { display: grid; gap: 36px; padding: 48px 0; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .ag-footer__grid { grid-template-columns: repeat(4, 1fr); gap: 48px; padding: 64px 0; } }
@media (max-width: 520px) { .ag-footer__grid { grid-template-columns: 1fr; } }
.ag-footer__title { position: relative; font-family: var(--ag-font-head); font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; color: #fff; margin-bottom: 26px; padding-bottom: 22px; }
.ag-footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 1px; background: rgba(255, 255, 255, .25); }
.ag-footer__menu { display: grid; gap: 12px; }
.ag-footer__menu a { font-size: .94rem; position: relative; }
.ag-footer__menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--ag-gold); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ag-ease); }
.ag-footer__menu a:hover::after { transform: scaleX(1); transform-origin: left; }
.ag-footer .ag-contact-list svg { color: var(--ag-gold); }
.ag-footer__bar { display: grid; gap: 22px; align-items: center; justify-items: center; padding: 32px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
@media (min-width: 900px) { .ag-footer__bar { grid-template-columns: 1fr auto 1fr; justify-items: stretch; } .ag-footer__social { justify-content: flex-end; } }
.ag-footer__legal, .ag-footer__social { display: flex; flex-wrap: wrap; gap: 10px 30px; font-size: .92rem; }
.ag-footer__emblem { display: inline-flex; color: #fff; transition: color .3s, transform .4s var(--ag-ease); }
.ag-footer__emblem:hover { color: var(--ag-gold); transform: translateY(-3px); }
.ag-emblem { width: 120px; height: auto; }
.ag-footer__copy { margin: 0; padding: 0 0 28px; text-align: center; font-size: .8rem; color: #77776F; }

/* 14. Animaciones al hacer scroll ----------------------------------------- */
html.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ag-ease), transform .9s var(--ag-ease); transition-delay: calc(var(--d, 0) * 90ms); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* 15. v1.2 — Carfax, acciones de la ficha, ventanas, testimonios, FAQ ------ */
.ag-badge--carfax { display: inline-flex; align-items: center; gap: 5px; background: #E9F5EE; color: #0B5B2E; border-color: #BFE0CC; }
.ag-badge--carfax svg { width: 12px; height: 12px; }
.ag-card__carfax { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(5, 5, 5, .72); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ag-card__carfax svg { width: 13px; height: 13px; color: #7DD3A0; }
.ag-filter-carfax .ag-check span { display: inline-flex; align-items: center; gap: 6px; }
.ag-filter-carfax svg { width: 16px; height: 16px; color: var(--ag-wa); }
.ag-carfax { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; margin-top: 20px; padding: 18px 20px; border-radius: 16px; background: linear-gradient(135deg, #F2FAF5, #FFFFFF); border: 1px solid #BFE0CC; }
.ag-carfax__icon { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 12px; background: var(--ag-wa); color: #fff; grid-row: span 2; }
.ag-carfax__icon svg { width: 24px; height: 24px; }
.ag-carfax h2 { font-size: 1.1rem; margin: 0; }
.ag-carfax p { margin: 0; color: var(--ag-muted); font-size: .9rem; }
.ag-carfax .ag-btn { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }
@media (min-width: 640px) { .ag-carfax { grid-template-columns: auto 1fr auto; } .ag-carfax .ag-btn { grid-column: 3; grid-row: 1 / span 2; margin: 0; } }
.ag-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 2px; }
.ag-action { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); color: #fff; font-size: .86rem; font-weight: 600; line-height: 1.2; text-decoration: none; transition: background-color .25s var(--ag-ease), border-color .25s var(--ag-ease), transform .2s var(--ag-ease); }
.ag-action svg { width: 18px; height: 18px; flex: none; color: var(--ag-gold-soft); }
.ag-action:hover { background: rgba(184, 155, 94, .16); border-color: var(--ag-gold); transform: translateY(-1px); text-decoration: none; }
.ag-form-card__kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ag-gold-ink); }
.ag-form-card__kicker svg { width: 16px; height: 16px; }
.ag-form__extra { margin: 4px 0 14px; padding: 16px; border: 1px solid var(--ag-line); border-radius: 14px; background: var(--ag-white); }
.ag-form__extra > legend { padding: 0 6px; margin-left: -6px; }
.ag-form__grid { display: grid; gap: 12px; }
@media (min-width: 480px) { .ag-form__grid { grid-template-columns: 1fr 1fr; } }
.ag-form__grid .ag-field { margin-bottom: 0; }
.ag-form__grid .ag-hint { margin: 2px 0 0; }
.ag-modal { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 20px; background: transparent; overflow: visible; }
.ag-modal::backdrop { background: rgba(5, 5, 5, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ag-modal[open] { animation: ag-modal-in .35s var(--ag-ease); }
@keyframes ag-modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.ag-modal__body { max-height: calc(100vh - 32px); overflow: auto; border-radius: 20px; }
.ag-modal__body .ag-form-card { box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.ag-modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--ag-grey); color: var(--ag-black); cursor: pointer; }
.ag-modal__close:hover { background: var(--ag-black); color: #fff; }
.ag-modal__close svg { width: 20px; height: 20px; }
.ag-form-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ag-form-tab { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--ag-field); border-radius: 999px; background: #fff; font-size: .86rem; font-weight: 600; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.ag-form-tab:hover { border-color: var(--ag-black); }
.ag-form-tab[aria-current="page"] { background: var(--ag-black); border-color: var(--ag-black); color: #fff; }
.ag-testimonials .ag-section__head { align-items: center; }
.ag-carousel-nav { display: flex; gap: 8px; }
.ag-carousel-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--fg); font-size: 1.2rem; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.ag-carousel-btn:hover { background: var(--ag-gold); border-color: var(--ag-gold); color: var(--ag-black); }
.ag-tst-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 86%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
@media (min-width: 760px) { .ag-tst-track { grid-auto-columns: calc((100% - 40px) / 3); } }
.ag-tst { scroll-snap-align: start; }
.ag-tst figure { position: relative; display: flex; flex-direction: column; height: 100%; margin: 0; padding: 28px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.ag-tst .ag-icon--quote { width: 34px; height: 34px; color: var(--ag-gold); margin-bottom: 10px; }
.ag-tst__stars { margin: 0 0 8px; color: var(--ag-gold); letter-spacing: .1em; }
.ag-tst__text { margin: 0 0 20px; font-size: 1rem; line-height: 1.65; color: var(--fg); }
.ag-tst__text p:last-child { margin: 0; }
.ag-tst__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.ag-tst__photo, .ag-tst__initial { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.ag-tst__initial { display: grid; place-items: center; background: var(--ag-gold); color: var(--ag-black); font-family: var(--ag-font-head); font-weight: 800; }
.ag-tst__who strong { display: block; font-family: var(--ag-font-head); }
.ag-tst__who small { color: var(--muted); }
.ag-faq { display: grid; gap: 10px; }
.ag-faq__item { border: 1px solid var(--line); border-radius: 14px; background: var(--card); transition: border-color .25s; }
.ag-faq__item[open] { border-color: rgba(184, 155, 94, .6); }
.ag-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font-family: var(--ag-font-head); font-weight: 700; font-size: 1.02rem; }
.ag-faq__item summary::-webkit-details-marker { display: none; }
.ag-faq__icon { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--ag-gold); }
.ag-faq__icon::before, .ag-faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--accent-ink); transition: transform .3s var(--ag-ease); }
.ag-faq__icon::after { transform: rotate(90deg); }
.ag-faq__item[open] .ag-faq__icon::after { transform: rotate(0); }
.ag-faq__answer { padding: 0 20px 18px; color: var(--muted); }
.ag-faq__answer p:last-child { margin-bottom: 0; }
.ag-faq-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .ag-faq-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; } }
.ag-faq-wrap { max-width: 860px; }
.ag-faq-more { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.ag-faq-more p { margin: 0; font-weight: 600; }
.ag-contact-faq { margin-top: 64px; max-width: 900px; }

/* 16. Movimiento reducido -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.ag-word > span, .ag-hero__eyebrow, .ag-hero__text, .ag-hero__actions, .ag-hero__search { transform: none !important; opacity: 1 !important; }
	html.js [data-reveal] { opacity: 1; transform: none; }
	.ag-marquee__track { animation: none; }
	.ag-hero__beam { display: none; }
	.ag-cta-band::before { background-attachment: scroll !important; }
}

@media print {
	.ag-header, .ag-footer, .ag-mobile-cta, .ag-filters, .ag-hero__media, .ag-modal { display: none !important; }
	.ag-dark { --bg: #fff; --fg: #000; }
}

/* 16. v1.3 — equivalente en pesos, calculadora de cuotas y avisos ---------- */
.ag-price__eq { display: block; margin-top: 2px; font-family: var(--ag-font-body); font-size: .78rem; font-weight: 500; color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.ag-price--lg .ag-price__eq { font-size: .95rem; }
.ag-fx-note { margin: -4px 0 12px; font-size: .74rem; color: var(--muted); max-width: 46ch; }
.ag-buybox .ag-price__eq, .ag-buybox .ag-fx-note { color: #b5b5ae; }
.ag-calc__intro { color: var(--muted); max-width: 60ch; }
.ag-calc__form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 6px; }
.ag-calc__form .ag-field { margin-bottom: 0; }
.ag-calc__result { margin-top: 10px; padding: 16px 18px; border: 1px solid var(--ag-line); border-radius: var(--ag-radius); background: var(--card); min-height: 64px; }
.ag-calc__big { margin: 0 0 8px; font-family: var(--ag-font-head); font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; }
.ag-calc__hint { margin: 0; color: var(--muted); font-size: .9rem; }
.ag-calc__rows { margin: 0; display: grid; gap: 4px; }
.ag-calc__row { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; border-top: 1px solid var(--ag-line); padding-top: 6px; }
.ag-calc__row dt { color: var(--muted); }
.ag-calc__row dd { margin: 0; font-weight: 600; }
.ag-calc__legal { margin: 10px 0 0; font-size: .76rem; color: var(--muted); max-width: 70ch; }
@media (max-width: 560px) { .ag-calc__form { grid-template-columns: 1fr; } }

.ag-marquee { position: relative; }
.ag-marquee__pause { position: absolute; z-index: 2; right: 12px; top: 6px; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--fg); font-size: .6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.ag-marquee__pause[aria-pressed="true"] { background: var(--ag-gold); color: var(--ag-black); border-color: var(--ag-gold); }
.ag-marquee.is-paused .ag-marquee__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ag-marquee__pause { display: none; } }

/* 17. v1.4 — el aviso de cookies del plugin se apoya sobre la barra fija de contacto en móvil. */
@media (max-width: 959px) {
	body.has-mobile-cta .ga-consent { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* 18. v1.4.1 — asesor del vehículo */
.ag-agent { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.ag-agent__photo, .ag-agent__initial { width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; }
.ag-agent__initial { display: grid; place-items: center; background: var(--ag-gold); color: var(--ag-black); font: 800 1.1rem var(--ag-font-head); }
.ag-agent__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ag-agent__text small { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ag-agent__text strong { font-size: .98rem; overflow-wrap: anywhere; }
.ag-buybox .ag-agent__text small { color: #b5b5ae; }

/* 19. v1.4.2 — prueba de manejo y WhatsApp en el encabezado móvil */
.ag-actions .ag-action:last-child:nth-child(odd) { grid-column: 1 / -1; }

.ag-header__tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ag-header__wa { min-height: 48px; min-width: 48px; padding: 0; border-radius: 999px; gap: 8px; box-shadow: none; }
.ag-header__wa svg { width: 24px; height: 24px; }
/* Teléfonos estrechos: solo el ícono (el nombre accesible sigue para lectores de pantalla). */
.ag-header__wa > span:not(.screen-reader-text) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
@media (min-width: 440px) {
	.ag-header__wa { padding: 0 18px 0 14px; }
	.ag-header__wa > span:not(.screen-reader-text) { position: static; width: auto; height: auto; clip: auto; overflow: visible; }
}
/* La ficha ya tiene su barra inferior de contacto; el menú plegado no repite el botón si el encabezado ya lo muestra. */
.has-mobile-cta .ag-header__wa { display: none; }
.ag-header--has-wa .ag-header__cta { display: none; }
@media (min-width: 960px) {
	.ag-header__tools { display: none; }
	.ag-header--has-wa .ag-header__cta { display: block; }
}
@media (max-width: 959px) {
	.has-mobile-cta .ag-header--has-wa .ag-header__cta { display: block; } /* en la ficha, el botón del menú sigue disponible */
}

/* 20. v1.4.3 — leyenda de campos obligatorios y aviso de filtros automáticos */
.ag-form__legend { margin: 0 0 14px; font-size: .82rem; color: var(--muted); }
.ag-filters__note { margin: 0 0 14px; padding: 10px 12px; font-size: .82rem; line-height: 1.45; color: var(--muted); background: var(--ag-grey); border-radius: 10px; }
.ag-dark .ag-filters__note { background: rgba(255, 255, 255, .06); }
/* Sin JavaScript no hay actualización automática: el aviso no aplica. */
html:not(.js) .ag-filters__note { display: none; }

/* ==========================================================================
   21. Ventana de confirmación de envío
   ========================================================================== */
.ag-success { width: min(460px, calc(100vw - 24px)); padding: 40px 32px 32px; border: 0; border-radius: 24px; background: #fff; color: var(--ag-black); text-align: center; box-shadow: 0 40px 100px rgba(0, 0, 0, .45); }
.ag-success::backdrop { background: rgba(5, 5, 5, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ag-success[open] { animation: ag-modal-in .4s var(--ag-ease); }
.ag-success__icon { display: inline-flex; width: 88px; height: 88px; align-items: center; justify-content: center; margin-bottom: 18px; border-radius: 50%; background: linear-gradient(145deg, var(--ag-gold-soft), var(--ag-gold)); box-shadow: 0 10px 30px rgba(184, 155, 94, .45); }
.ag-success__icon svg { width: 56px; height: 56px; }
.ag-success__ring { stroke: rgba(255, 255, 255, .55); }
.ag-success__tick { stroke: #fff; stroke-dasharray: 40; stroke-dashoffset: 40; animation: ag-tick .6s .25s var(--ag-ease) forwards; }
@keyframes ag-tick { to { stroke-dashoffset: 0; } }
.ag-success__title { margin: 0 0 10px; font-size: clamp(1.5rem, 5vw, 1.9rem); line-height: 1.2; }
.ag-success__text { margin: 0 0 26px; color: #3b3b3b; font-size: 1.02rem; line-height: 1.55; }
.ag-success__actions { display: flex; flex-direction: column; gap: 10px; }
.ag-success__actions .ag-btn { width: 100%; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .ag-success[open] { animation: none; } .ag-success__tick { animation: none; stroke-dashoffset: 0; } }
html:not(.js) .ag-success { display: none; }

/* Flechas del carrusel de la ficha */
.ag-gallery__nav { position: absolute; top: 50%; z-index: 2; display: inline-flex; width: 48px; height: 48px; margin-top: -24px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(17, 17, 17, .72); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s; }
.ag-gallery__nav:hover { background: var(--ag-gold); color: var(--ag-black); }
.ag-gallery__nav--prev { left: 12px; }
.ag-gallery__nav--next { right: 12px; }
.ag-gallery__nav:focus-visible { outline: 3px solid var(--ag-gold); outline-offset: 2px; }
@media (max-width: 600px) { .ag-gallery__nav { width: 44px; height: 44px; margin-top: -22px; } }

/* ==========================================================================
   22. Favoritos (sin cuenta, en el navegador)
   ========================================================================== */
.ag-fav__icon { width: 22px; height: 22px; fill: transparent; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; transition: fill .2s, stroke .2s, transform .2s var(--ag-ease); }
.ag-fav[aria-pressed="true"] .ag-fav__icon { fill: var(--ag-gold); stroke: var(--ag-gold); }
.ag-fav--card { position: absolute; top: 12px; right: 12px; z-index: 4; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--ag-black); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); cursor: pointer; transition: transform .2s var(--ag-ease), background .2s; }
.ag-fav--card:hover { transform: scale(1.08); }
.ag-fav--card[aria-pressed="true"] { background: var(--ag-black); }
.ag-fav--card:focus-visible { outline: 3px solid var(--ag-gold); outline-offset: 2px; }
.ag-fav--text { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ag-fav--text[aria-pressed="true"] { font-weight: 700; }
.ag-card__badges { right: 64px; }
.ag-fav-link { position: relative; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; color: inherit; text-decoration: none; }
.ag-fav-link:hover .ag-fav__icon { stroke: var(--ag-gold); }
.ag-fav-link__count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ag-gold); color: var(--ag-black); font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; }
.ag-fav-link__count[hidden] { display: none; }
.ag-fav-link--desktop { display: none; }
@media (min-width: 960px) { .ag-fav-link--desktop { display: inline-flex; } .ag-fav-link--mobile { display: none; } }
@media (max-width: 380px) { .ag-fav-link { width: 40px; } }
.ag-fav-note { margin-top: 28px; color: var(--muted); font-size: .9rem; text-align: center; }
html:not(.js) .ag-fav, html:not(.js) .ag-fav-link { display: none; }
@media (prefers-reduced-motion: reduce) { .ag-fav__icon, .ag-fav--card { transition: none; } }

/* ==========================================================================
   23. Prueba de manejo: un solo botón junto al nombre del vehículo (v1.9.2)
   ========================================================================== */
.ag-vehicle__head { display: grid; gap: 14px; align-items: center; }
.ag-test-drive-btn { width: 100%; }
.ag-test-drive-btn svg { width: 22px; height: 22px; fill: currentColor; }
@media (min-width: 720px) {
	/* Escritorio y tableta: nombre a la izquierda, botón a la derecha. */
	.ag-vehicle__head { grid-template-columns: minmax(0, 1fr) auto; gap: 24px; }
	.ag-test-drive-btn { width: auto; white-space: nowrap; }
}
/* Botón de la barra inferior del móvil: ícono + texto corto. */
.ag-mobile-cta__drive svg { width: 18px; height: 18px; fill: currentColor; }
@media print { .ag-test-drive-btn { display: none !important; } }

/* ==========================================================================
   24. v1.8.0 — SEO: nombre del vehículo (h1) arriba de la ficha e introducción de marcas
   ========================================================================== */
.ag-vehicle__head { margin: 0 0 18px; }
.ag-vehicle__title { margin: 0; font-size: clamp(1.55rem, 4.2vw, 2.35rem); line-height: 1.15; }
.ag-vehicle__sub { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.ag-vehicle__head-price { margin: 8px 0 0; }
.ag-vehicle__head-price .ag-price__main { font-size: 1.45rem; }
@media (min-width: 960px) {
	.ag-vehicle__head { margin-bottom: 22px; }
	.ag-vehicle__head-price { display: none; } /* en escritorio el precio está en la caja lateral, a la vista */
}
.ag-page-hero__intro { position: relative; max-width: 68ch; margin: 4px 0 10px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.ag-page-hero__intro p { margin: 0 0 .6em; }
.ag-page-hero__intro p:last-child { margin-bottom: 0; }
