/* ==========================================================================
   AutoEncaja — componentes comerciales
   Buscador · tarjetas · ficha · comparativas · CTA. Sin dependencias.
   Usa los tokens del tema (theme.json) con valores de respaldo.
   ========================================================================== */

:root {
	--ae-navy: var(--wp--preset--color--contrast, #101C2C);
	--ae-graphite: var(--wp--preset--color--graphite, #14171C);
	--ae-navy-2: var(--wp--preset--color--navy-2, #172638);
	--ae-turq: var(--wp--preset--color--accent-1, #49D6BD);
	--ae-turq-hover: #63E3CC;
	--ae-turq-ink: var(--wp--preset--color--accent-3, #0A6E5F);
	--ae-turq-soft: var(--wp--preset--color--accent-2, #E4F8F4);
	--ae-muted: var(--wp--preset--color--accent-4, #566173);
	--ae-bg: var(--wp--preset--color--accent-5, #F4F6F9);
	--ae-line: var(--wp--preset--color--accent-6, #DCE2EA);
	--ae-white: var(--wp--preset--color--base, #FFFFFF);
	--ae-radius: 18px;
	--ae-radius-s: 12px;
	--ae-ease: cubic-bezier(.2, .7, .2, 1);
	--ae-shadow-s: 0 1px 2px rgba(16, 28, 44, .06);
	--ae-shadow: 0 2px 4px rgba(16, 28, 44, .04), 0 18px 40px -20px rgba(16, 28, 44, .28);
	--ae-shadow-cta: 0 10px 24px -10px rgba(73, 214, 189, .65);
	--ae-focus: 0 0 0 3px var(--ae-white), 0 0 0 5px var(--ae-navy);
}

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }

/* -------------------------------------------------------------- Botones */
.ae-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 52px; padding: .8em 1.4em;
	border: 2px solid transparent; border-radius: 999px;
	font: inherit; font-size: 1rem; font-weight: 750; line-height: 1.15; letter-spacing: -.005em;
	text-decoration: none !important; cursor: pointer; white-space: nowrap;
	transition: transform .25s var(--ae-ease), background-color .2s ease, box-shadow .25s var(--ae-ease), color .2s ease;
}
.ae-btn svg { transition: transform .25s var(--ae-ease); flex: none; }
.ae-btn:hover svg { transform: translate(2px, -2px); }
.ae-btn:focus-visible { outline: none; box-shadow: var(--ae-focus); }
.ae-btn--primary, .ae-btn--buy { background: var(--ae-turq); color: var(--ae-navy) !important; box-shadow: var(--ae-shadow-cta); }
.ae-btn--primary:hover, .ae-btn--buy:hover { background: var(--ae-turq-hover); transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(73, 214, 189, .8); }
.ae-btn--primary:active, .ae-btn--buy:active { transform: translateY(0); }
.ae-btn--alt { background: transparent; color: var(--ae-navy) !important; border-color: currentColor; }
.ae-btn--alt:hover { background: var(--ae-navy); color: var(--ae-white) !important; border-color: var(--ae-navy); }
.ae-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; }
.ae-paid { font-size: .75rem; color: var(--ae-muted); letter-spacing: .01em; }
.ae-btn-missing { margin: 0; font-size: .875rem; color: var(--ae-muted); font-style: italic; }
.ae-link-arrow { font-weight: 700; color: var(--ae-turq-ink); text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.ae-link-arrow::after { content: "→"; transition: transform .25s var(--ae-ease); }
.ae-link-arrow:hover::after { transform: translateX(4px); }

/* -------------------------------------------------------------- Chips e insignias */
.ae-eyebrow { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ae-turq-ink); text-decoration: none; margin: 0 0 .5rem; }
.ae-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.ae-chip { display: inline-flex; align-items: center; padding: .32em .75em; border-radius: 999px; background: var(--ae-bg); border: 1px solid var(--ae-line); font-size: .75rem; font-weight: 700; color: var(--ae-navy); line-height: 1.2; }
.ae-chip--spec { background: #EEF2F7; }
.ae-chip--tested { background: var(--ae-navy); color: var(--ae-turq); border-color: var(--ae-navy); }
.ae-badge {
	display: inline-flex; align-items: center; gap: .45em; width: fit-content;
	padding: .32em .75em; border-radius: 999px;
	font-size: .8125rem; font-weight: 750; line-height: 1.2;
}
.ae-badge::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: currentColor; flex: none; }
.ae-badge--verificada { background: #DDF5EF; color: #075447; }
.ae-badge--parcial { background: #FFF1CC; color: #6B4A00; }
.ae-badge--medidas { background: #E4EEFF; color: #1A468F; }
.ae-badge--no_verificada { background: #ECEFF3; color: #364152; }
.ae-badge--incompatible { background: #FDE6E6; color: #8E1B1B; }
.ae-compat-line { margin: 0; display: flex; gap: .5em; align-items: flex-start; font-size: .8125rem; font-weight: 650; line-height: 1.35; }
.ae-compat-line::before { content: ""; flex: none; width: .6em; height: .6em; margin-top: .3em; border-radius: 50%; background: currentColor; }
.ae-compat-line--verificada { color: #075447; }
.ae-compat-line--medidas { color: #1A468F; }
.ae-compat-line--no_verificada { color: var(--ae-muted); }

/* -------------------------------------------------------------- Listas */
.ae-ticks, .ae-crosses { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .9375rem; }
.ae-ticks li, .ae-crosses li { position: relative; padding-left: 1.7em; line-height: 1.45; }
.ae-ticks li::before, .ae-crosses li::before { content: ""; position: absolute; left: 0; top: .15em; width: 1.15em; height: 1.15em; border-radius: 50%; background-repeat: no-repeat; background-position: center; background-size: 70%; }
.ae-ticks li::before { background-color: #DDF5EF; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075447' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.ae-crosses li::before { background-color: #FDE6E6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E1B1B' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E"); }
.ae-list { margin: 0; padding-left: 1.2em; }
.ae-list li { margin-bottom: .3rem; }

/* -------------------------------------------------------------- Buscador */
.ae-finder {
	position: relative; isolation: isolate;
	background: linear-gradient(160deg, #13233A 0%, var(--ae-navy) 45%, var(--ae-graphite) 100%);
	color: var(--ae-white);
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: calc(var(--ae-radius) + 6px);
	padding: clamp(1.25rem, 4vw, 2.25rem);
	box-shadow: 0 30px 60px -30px rgba(16, 28, 44, .55);
	overflow: hidden;
}
.ae-finder::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 60%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(73, 214, 189, .18), transparent); z-index: -1; pointer-events: none; }
.ae-finder__title { margin: 0 0 1rem; color: inherit; font-size: clamp(1.25rem, 2.4vw, 1.625rem); line-height: 1.2; letter-spacing: -.02em; }
.ae-finder__form { display: grid; gap: .875rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ae-finder__form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .ae-finder__form { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ae-finder:not(.is-js) .ae-js-only { display: none; }
.ae-brands { grid-column: 1 / -1; display: flex; gap: .5rem; overflow-x: auto; padding: .15rem .1rem .6rem; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.ae-brand {
	flex: none; min-height: 44px; padding: .55em 1.1em; border-radius: 999px;
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: #E3EAF3;
	font: inherit; font-size: .9375rem; font-weight: 700; cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s var(--ae-ease);
}
.ae-brand:hover { background: rgba(255, 255, 255, .12); transform: translateY(-1px); }
.ae-brand[aria-pressed="true"] { background: var(--ae-turq); border-color: var(--ae-turq); color: var(--ae-navy); }
.ae-brand:focus-visible { outline: 2px solid var(--ae-turq); outline-offset: 2px; }
.ae-field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.ae-field label { font-size: .8125rem; font-weight: 700; color: #C9D3E0; display: flex; align-items: center; gap: .5em; letter-spacing: .01em; }
.ae-field label small { font-weight: 500; }
.ae-step { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: rgba(73, 214, 189, .16); color: var(--ae-turq); font-size: .7rem; font-weight: 800; }
.ae-field select {
	appearance: none; -webkit-appearance: none;
	width: 100%; min-height: 52px; padding: .7em 2.6em .7em 1em;
	border: 1.5px solid #2B3B52; border-radius: var(--ae-radius-s);
	background: rgba(23, 38, 56, .9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2349D6BD' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1em center;
	color: var(--ae-white); font: inherit; font-size: 1rem; font-weight: 600;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.ae-field select:hover { border-color: #3D5373; }
.ae-field select:focus-visible { outline: none; border-color: var(--ae-turq); box-shadow: 0 0 0 4px rgba(73, 214, 189, .25); }
.ae-field select:disabled { opacity: .45; cursor: not-allowed; }
.ae-field select option, .ae-field select optgroup { color: #101C2C; background: #fff; }
.ae-field--submit { justify-content: flex-end; }
.ae-field--submit .ae-btn { width: 100%; }
.ae-finder__note { margin: 1rem 0 0; font-size: .8125rem; color: #AEBBCB; display: flex; gap: .5em; align-items: center; }
.ae-finder__note::before { content: ""; width: 1em; height: 1em; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2349D6BD' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v6c0 4.5-3 7.5-7 9-4-1.5-7-4.5-7-9V6l7-3z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E") no-repeat center / contain; }
.ae-finder--compact .ae-finder__form { grid-template-columns: 1fr; }

.ae-results { margin-top: 1.5rem; color: var(--ae-navy); scroll-margin-top: 96px; }
.ae-results:empty, .ae-results:not(:has(*)) { display: none; }
.ae-finder .ae-results { background: var(--ae-bg); border-radius: var(--ae-radius); padding: clamp(1rem, 3vw, 1.75rem); }
.ae-results.is-loading { opacity: .45; transition: opacity .2s; }
.ae-results__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; align-items: baseline; margin-bottom: 1.25rem; }
.ae-results__count { margin: 0; font-size: 1.0625rem; }
.ae-results__count:focus { outline: none; }
.ae-results__group + .ae-results__group { margin-top: 2rem; }
.ae-results__gt { margin: 0 0 .25rem; font-size: 1.125rem; }
.ae-results__gt span { color: var(--ae-muted); font-weight: 500; }
.ae-results__gd { margin: 0 0 1rem; font-size: .875rem; color: var(--ae-muted); }
.ae-empty, .ae-pending { background: var(--ae-white); border: 1.5px dashed #C3CCD8; border-radius: var(--ae-radius); padding: 1.25rem 1.5rem; color: var(--ae-navy); }
.ae-empty p, .ae-pending p { margin: 0 0 .5rem; }
.ae-empty p:last-child, .ae-pending p:last-child { margin: 0; }
.ae-pending { display: flex; gap: 1rem; align-items: flex-start; }
.ae-pending::before { content: "En preparación"; flex: none; padding: .3em .7em; border-radius: 999px; background: #FFF1CC; color: #6B4A00; font-size: .75rem; font-weight: 800; }

/* -------------------------------------------------------------- Tarjetas */
.ae-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.ae-card {
	position: relative; display: flex; flex-direction: column;
	background: var(--ae-white); color: var(--ae-navy);
	border: 1px solid var(--ae-line); border-radius: var(--ae-radius);
	overflow: hidden; box-shadow: var(--ae-shadow-s);
	transition: box-shadow .35s var(--ae-ease), transform .35s var(--ae-ease), border-color .3s ease;
}
.ae-card:hover { box-shadow: var(--ae-shadow); border-color: #C8D2DE; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .ae-card:hover { transform: translateY(-4px); } .ae-card:hover .ae-media__img { transform: scale(1.04); } }
.ae-card__visual { position: relative; }
.ae-card__flag { position: absolute; top: .75rem; left: .75rem; box-shadow: var(--ae-shadow-s); }
.ae-media { aspect-ratio: 4 / 3; background: radial-gradient(120% 90% at 30% 20%, #FFFFFF 0%, var(--ae-bg) 60%, #E8EDF3 100%); display: grid; place-items: center; overflow: hidden; }
.ae-media__img { width: 100%; height: 100%; object-fit: contain; padding: 1.25rem; transition: transform .6s var(--ae-ease); }
.ae-media--empty { position: relative; }
.ae-media--empty::after { content: ""; width: 34%; aspect-ratio: 1; background: #B9C4D2; -webkit-mask: var(--ae-ico, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='M3 15l5-4 4 3 3-2 6 4'/%3E%3C/svg%3E")) center / contain no-repeat; mask: var(--ae-ico, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='M3 15l5-4 4 3 3-2 6 4'/%3E%3C/svg%3E")) center / contain no-repeat; }
.ae-card__body { display: flex; flex-direction: column; gap: .7rem; padding: 1.15rem 1.25rem 1.35rem; flex: 1; }
.ae-card__meta { margin: 0; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ae-turq-ink); font-weight: 800; }
.ae-card__title { margin: 0; font-size: 1.125rem; line-height: 1.3; letter-spacing: -.015em; }
.ae-card__title a { color: inherit; text-decoration: none; }
.ae-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; } /* toda la tarjeta clicable */
.ae-card__title a:focus-visible { outline: none; }
.ae-card:has(.ae-card__title a:focus-visible) { box-shadow: var(--ae-focus); }
.ae-card__solves { margin: 0; font-size: .9375rem; color: #2D3A4D; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ae-card__dims { margin: 0; font-size: .8125rem; }
.ae-card__dims span { color: var(--ae-muted); font-weight: 700; margin-right: .35em; }
.ae-card__foot { margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--ae-line); display: flex; flex-direction: column; gap: .6rem; position: relative; z-index: 1; }
.ae-card__foot .ae-btn { width: 100%; }
.ae-card__foot .ae-cta { justify-content: center; }
.ae-card__more { font-size: .875rem; font-weight: 700; color: var(--ae-navy); text-align: center; text-decoration: underline; text-underline-offset: 3px; position: relative; z-index: 1; }
.ae-card .ae-source, .ae-card .ae-limits, .ae-card .ae-badge { position: relative; z-index: 1; }
.ae-limits { background: #FFF8E6; border-radius: var(--ae-radius-s); padding: .7rem .9rem; font-size: .8125rem; }
.ae-limits--lg { font-size: .9375rem; margin-top: 1.25rem; }
.ae-limits__t { margin: 0 0 .25rem; font-weight: 800; color: #6B4A00; }
.ae-limits ul { margin: 0; padding-left: 1.1em; }
.ae-source { margin: .25rem 0 0; font-size: .75rem; color: var(--ae-muted); }
.ae-source a { color: var(--ae-turq-ink); }
.ae-warn { margin: 0; font-size: .8125rem; color: #8E1B1B; font-weight: 700; }
.ae-na { color: #9AA6B6; }

/* -------------------------------------------------------------- Ficha comercial */
.ae-pd__hero { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 900px) { .ae-pd__hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } .ae-pd__visual { position: sticky; top: 96px; } }
.ae-pd__visual .ae-media { border-radius: calc(var(--ae-radius) + 4px); border: 1px solid var(--ae-line); aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .ae-pd__visual .ae-media { aspect-ratio: 1; } }
.ae-pd { padding-bottom: 0; }
@media (max-width: 899px) { body:has(.ae-sticky-cta:not([hidden])) { padding-bottom: 76px; } }
.ae-pd__title { margin: 0 0 .9rem; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); line-height: 1.1; letter-spacing: -.03em; }
.ae-decide { list-style: none; margin: 1.5rem 0 0; padding: 0; border: 1px solid var(--ae-line); border-radius: var(--ae-radius); background: var(--ae-white); box-shadow: var(--ae-shadow); overflow: hidden; }
.ae-decide__item { display: grid; grid-template-columns: auto 1fr; gap: .9rem; padding: 1.1rem 1.25rem; }
.ae-decide__item + .ae-decide__item { border-top: 1px solid var(--ae-line); }
.ae-decide__item:last-child { background: linear-gradient(180deg, #FBFCFD, var(--ae-bg)); }
.ae-decide__n { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ae-navy); color: var(--ae-turq); font-weight: 800; font-size: .875rem; }
.ae-decide__q { margin: 0 0 .2rem; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ae-muted); }
.ae-decide__a { margin: 0; font-size: 1rem; line-height: 1.5; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ae-decide__a a { color: var(--ae-navy); font-weight: 600; }
.ae-decide .ae-cta { margin-top: .35rem; }
.ae-note { font-size: .8125rem; color: var(--ae-muted); margin: .6rem 0 0; }
.ae-pd__toc { position: sticky; top: 72px; z-index: 5; display: flex; gap: .4rem; overflow-x: auto; padding: .6rem 0; margin-bottom: 1.5rem; background: color-mix(in srgb, var(--ae-white) 92%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--ae-line); }
.ae-pd__toc a { flex: none; padding: .45em .95em; border-radius: 999px; font-size: .875rem; font-weight: 700; color: var(--ae-navy); text-decoration: none; background: var(--ae-bg); transition: background-color .2s ease; }
.ae-pd__toc a:hover { background: var(--ae-turq-soft); }
.ae-pd__sec { margin: 0 0 clamp(2rem, 5vw, 3rem); scroll-margin-top: 140px; }
.ae-pd__sec > h2 { margin: 0 0 1rem; }
.ae-procon { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin: 1rem 0; }
.ae-procon__col { border: 1px solid var(--ae-line); border-radius: var(--ae-radius); padding: 1.15rem 1.35rem; background: var(--ae-white); }
.ae-procon__col--pro { border-top: 4px solid var(--ae-turq); }
.ae-procon__col--con { border-top: 4px solid #F2B8B8; }
.ae-procon__t { margin: 0 0 .75rem; font-size: 1rem; }
.ae-perfil { background: var(--ae-turq-soft); border-radius: var(--ae-radius); padding: 1.35rem 1.5rem; }
.ae-perfil h2 { margin: 0 0 .35rem; font-size: 1.25rem; }
.ae-perfil p { margin: 0; }
.ae-callout { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; background: var(--ae-bg); border-radius: var(--ae-radius); padding: 1rem 1.25rem; }
.ae-compat-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .75rem; }
.ae-compat-item { border: 1px solid var(--ae-line); border-radius: var(--ae-radius-s); padding: .9rem 1.1rem; background: var(--ae-white); }
.ae-compat-item__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; align-items: center; }
.ae-compat-item__car { font-weight: 800; color: var(--ae-navy); text-decoration: none; }
.ae-compat-item__car:hover { text-decoration: underline; }
.ae-compat-item__d { margin: .4rem 0 0; font-size: .875rem; color: #2D3A4D; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.ae-final-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding: clamp(1.5rem, 4vw, 2.25rem); border-radius: calc(var(--ae-radius) + 4px); background: linear-gradient(135deg, var(--ae-navy), var(--ae-graphite)); color: var(--ae-white); margin: clamp(2rem, 5vw, 3rem) 0 0; }
.ae-final-cta h2 { color: inherit; margin: 0 0 .35rem; font-size: clamp(1.25rem, 2.5vw, 1.625rem); }
.ae-final-cta p { margin: 0; color: #C9D3E0; }
.ae-final-cta .ae-paid { color: #AEBBCB; }
.ae-sticky-cta {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
	display: flex; align-items: center; gap: .75rem; justify-content: space-between;
	padding: .65rem max(1rem, env(safe-area-inset-left)) calc(.65rem + env(safe-area-inset-bottom));
	background: rgba(16, 28, 44, .96); backdrop-filter: blur(10px); color: var(--ae-white);
	box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, .35);
	animation: ae-up .35s var(--ae-ease);
}
.ae-sticky-cta[hidden] { display: none; }
.ae-sticky-cta__t { margin: 0; font-size: .875rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ae-sticky-cta .ae-cta { flex: none; flex-wrap: nowrap; }
.ae-sticky-cta .ae-paid { display: none; }
.ae-sticky-cta .ae-btn { min-height: 46px; padding: .6em 1.1em; font-size: .9375rem; }
@media (min-width: 900px) { .ae-sticky-cta { display: none !important; } }
@keyframes ae-up { from { transform: translateY(100%); } to { transform: none; } }

/* -------------------------------------------------------------- Comparativas */
.ae-cmp__title { margin: 0 0 1.25rem; }
.ae-picks { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-bottom: 1.75rem; }
.ae-pick { display: flex; flex-direction: column; gap: .55rem; padding: 1.25rem; border-radius: var(--ae-radius); background: var(--ae-white); border: 1px solid var(--ae-line); box-shadow: var(--ae-shadow-s); transition: box-shadow .3s var(--ae-ease), transform .3s var(--ae-ease); }
.ae-pick:hover { box-shadow: var(--ae-shadow); }
.ae-pick:first-child { border: 2px solid var(--ae-turq); }
.ae-pick__label { margin: 0; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ae-turq-ink); }
.ae-pick__who { margin: 0; font-size: 1.0625rem; font-weight: 750; line-height: 1.3; }
.ae-pick__name { margin: 0; font-size: .9375rem; font-weight: 600; color: #2D3A4D; }
.ae-pick .ae-cta { margin-top: auto; padding-top: .4rem; }
.ae-pick .ae-btn { width: 100%; }
.ae-pick__jump { font-size: .8125rem; font-weight: 700; color: var(--ae-navy); text-align: center; }
.ae-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--ae-line); border-radius: var(--ae-radius); background: var(--ae-white); box-shadow: var(--ae-shadow-s); }
.ae-table-wrap:focus-visible { outline: 2px solid var(--ae-navy); outline-offset: 2px; }
.ae-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9375rem; margin: 0; }
.ae-table th, .ae-table td { padding: .9rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ae-line); }
.ae-table tr:last-child > * { border-bottom: 0; }
.ae-table thead th { background: var(--ae-navy); color: var(--ae-white); font-size: .9375rem; }
.ae-table thead th a { color: var(--ae-white); text-decoration: none; }
.ae-table thead th a:hover { color: var(--ae-turq); }
.ae-table thead td { background: var(--ae-navy); }
.ae-table tbody th { font-weight: 750; color: var(--ae-muted); font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.ae-table tbody tr:nth-child(even) td { background: #FAFBFC; }
.ae-table ul { margin: 0; }
.ae-table--compare { min-width: calc(150px + var(--ae-cols, 3) * 210px); }
.ae-table--compare tbody th, .ae-table--compare thead td { position: sticky; left: 0; z-index: 1; background: var(--ae-white); box-shadow: 1px 0 0 var(--ae-line); }
.ae-table--compare thead td { background: var(--ae-navy); }
.ae-table--compare .ae-cta { flex-direction: column; align-items: stretch; }
.ae-table--compare .ae-btn { white-space: normal; text-align: center; }
.ae-table--specs { border: 1px solid var(--ae-line); border-radius: var(--ae-radius); overflow: hidden; }
.ae-table--specs tbody th { width: 40%; white-space: normal; text-transform: none; letter-spacing: 0; font-size: .9375rem; color: var(--ae-muted); background: var(--ae-bg); }
.ae-compare { margin: 0 0 1.5rem; }
.ae-jump { position: sticky; top: 72px; z-index: 5; display: flex; gap: .5rem; overflow-x: auto; padding: .6rem 0; margin: 2rem 0 1rem; background: color-mix(in srgb, var(--ae-white) 92%, transparent); backdrop-filter: blur(8px); }
.ae-jump a { flex: none; display: inline-flex; gap: .5em; align-items: center; padding: .45em 1em .45em .45em; border-radius: 999px; border: 1px solid var(--ae-line); font-size: .875rem; font-weight: 700; color: var(--ae-navy); text-decoration: none; background: var(--ae-white); }
.ae-jump a span { display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--ae-navy); color: var(--ae-turq); font-size: .75rem; }
.ae-jump a:hover { border-color: var(--ae-turq); }
.ae-cmp__detail { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--ae-line); border-radius: var(--ae-radius); margin-bottom: 1.25rem; scroll-margin-top: 140px; background: var(--ae-white); }
.ae-cmp__dt { margin: 0 0 .75rem; font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
.ae-lead { font-size: 1.0625rem; color: #2D3A4D; }
.ae-cmp__cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.25rem; }

/* -------------------------------------------------------------- Aviso y migas */
.ae-disclosure { font-size: .8125rem; line-height: 1.55; margin: 0; }
.ae-disclosure a { color: inherit; text-decoration: underline; }
.ae-crumbs { font-size: .8125rem; color: var(--ae-muted); }
.ae-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.ae-crumbs li:not(:last-child)::after { content: "/"; margin-left: .4rem; color: #9AA6B6; }
.ae-crumbs a { color: var(--ae-muted); text-decoration: none; }
.ae-crumbs a:hover { color: var(--ae-navy); text-decoration: underline; }
.ae-crumbs [aria-current] { color: var(--ae-navy); font-weight: 600; }

/* -------------------------------------------------------------- Animación de aparición */
.ae-anim .ae-reveal:not(.is-in) { opacity: 0; transform: translateY(18px); }
.ae-anim .ae-reveal { transition: opacity .7s var(--ae-ease), transform .7s var(--ae-ease), box-shadow .35s var(--ae-ease), border-color .3s ease; }

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

/* Tabla comparativa en móvil: columna de criterios más estrecha */
@media (max-width: 600px) {
	.ae-table--compare { min-width: calc(112px + var(--ae-cols, 3) * 190px); font-size: .875rem; }
	.ae-table--compare tbody th { white-space: normal; width: 112px; font-size: .6875rem; padding: .8rem .65rem; }
	.ae-table--compare td { padding: .8rem .75rem; }
}

/* ==========================================================================
   Microinteracciones (v0.2) — solo transform/opacity/box-shadow
   ========================================================================== */

/* Brillo que recorre el botón de compra al pasar el ratón */
.ae-btn--buy, .ae-btn--primary { overflow: hidden; isolation: isolate; }
.ae-btn--buy::after, .ae-btn--primary::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
	transform: translateX(-120%); transition: transform .7s var(--ae-ease);
}
.ae-btn--buy:hover::after, .ae-btn--primary:hover::after { transform: translateX(120%); }
.ae-btn:active { transform: translateY(0) scale(.98); }

/* Luz que sigue al puntero en tarjetas (variables --mx/--my desde JS) */
.ae-card, .ae-pick { --mx: 50%; --my: 0%; }
.ae-card::before, .ae-pick::before {
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
	background: radial-gradient(360px circle at var(--mx) var(--my), rgba(73, 214, 189, .10), transparent 60%);
	opacity: 0; transition: opacity .35s ease;
}
.ae-pick { position: relative; }
.ae-card:hover::before, .ae-pick:hover::before { opacity: 1; }
.ae-card > *, .ae-pick > * { position: relative; z-index: 1; }
.ae-card__visual { z-index: 0; }

/* Aparición escalonada */
.ae-anim .ae-reveal { transition-delay: calc(var(--ae-i, 0) * 70ms); }
.ae-pop { animation: ae-pop-in .6s var(--ae-ease) both; animation-delay: calc(var(--ae-i, 0) * 60ms); }
@keyframes ae-pop-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

/* Buscador: pasos completados y coche elegido */
.ae-field.is-done .ae-step { background: var(--ae-turq); color: var(--ae-navy); font-size: 0; }
.ae-field.is-done .ae-step::before { content: "✓"; font-size: .75rem; }
.ae-step { transition: background-color .3s ease, color .3s ease; }
.ae-finder { transition: box-shadow .5s var(--ae-ease), border-color .5s ease; }
.ae-finder.has-vehicle { border-color: rgba(73, 214, 189, .45); box-shadow: 0 30px 60px -30px rgba(16, 28, 44, .55), 0 0 0 1px rgba(73, 214, 189, .25), 0 0 48px -12px rgba(73, 214, 189, .35); }
.ae-finder.has-vehicle .ae-field select[data-ae="vehiculo"] { border-color: var(--ae-turq); }
.ae-finder__picked { display: flex; align-items: center; gap: .6rem; margin: 1rem 0 0; padding: .55rem .9rem .55rem .6rem; width: fit-content; max-width: 100%; border-radius: 999px; background: rgba(73, 214, 189, .12); border: 1px solid rgba(73, 214, 189, .35); color: #DCE3EC; font-size: .875rem; }
.ae-finder__picked[hidden] { display: none; }
.ae-finder__picked strong { color: #fff; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ae-finder__car { flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--ae-turq) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101C2C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 16h14l-1.5-5.2A2 2 0 0 0 15.6 9.3H8.4a2 2 0 0 0-1.9 1.5z'/%3E%3Ccircle cx='8' cy='16.5' r='1.6'/%3E%3Ccircle cx='16' cy='16.5' r='1.6'/%3E%3C/svg%3E") no-repeat center / 70%; }
.ae-finder__picked.is-pop { animation: ae-pop-in .5s var(--ae-ease) both; }

/* Índices con sección activa */
.ae-pd__toc a[aria-current="true"], .ae-jump a[aria-current="true"] { background: var(--ae-navy); color: var(--ae-white); border-color: var(--ae-navy); }
.ae-pd__toc a, .ae-jump a { transition: background-color .25s ease, color .25s ease, border-color .25s ease; }

/* Comparativa: fila resaltada y cabecera con brillo turquesa */
.ae-table--compare tbody tr { transition: background-color .2s ease; }
.ae-table--compare tbody tr:hover td { background: #F1FBF8; }
.ae-table thead th { background-image: linear-gradient(180deg, rgba(73, 214, 189, .08), transparent); }

/* v0.3 — Buscador sin vehículos publicados: estado honesto + accesos por categoría */
.ae-finder__soon-t { margin: 0 0 .9rem; color: #DCE3EC; font-size: 1.0625rem; line-height: 1.6; display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; }
.ae-finder__soon-l { margin: 0 0 .6rem; color: #AEBBCB; font-size: .9375rem; font-weight: 600; }
.ae-brands--static { flex-wrap: wrap; overflow: visible; padding: 0; }
.ae-brands--static .ae-brand { text-decoration: none; display: inline-flex; align-items: center; }
.ae-brands--static .ae-brand:hover { background: var(--ae-turq); border-color: var(--ae-turq); color: var(--ae-navy); }
.ae-demo-flag { display: inline-block; margin: 0 0 .5rem; padding: .35em .75em; border-radius: 8px; background: #FFF1CC; color: #6B4A00; font-size: .75rem; font-weight: 800; letter-spacing: .04em; }
/* Textos más legibles (V2) */
.ae-card__solves { font-size: 1rem; }
.ae-card__meta { font-size: .78rem; }
.ae-source { font-size: .8125rem; }
.ae-paid { font-size: .8125rem; }
.ae-finder__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.875rem); }
.ae-field label { font-size: .875rem; }
