/* AutoEncaja Premium Refinement 1.4.0 — refinamiento visual reversible, 2026-11-01.
 * Cargar después de theme.css. No modifica contenido ni datos. */
.ae-v3, .ae-v3 *, .ae-v3 *::before, .ae-v3 *::after { box-sizing: border-box; }
.ae-v3 { --v3-sec: clamp(3.75rem, 7vw, 6.5rem); --v3-r: clamp(18px, 2vw, 24px); }
.ae-header__inner { gap: 1.5rem; }
@media (min-width: 900px) {
  .ae-header .wp-block-navigation__responsive-container-open { display: none; }
  .ae-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: block; }
  .ae-header__inner { min-height: 80px; }
}
@media (max-width: 899px) {
  .ae-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
  .ae-header .wp-block-navigation__responsive-container-open { display: inline-flex; }
  .ae-header__inner { min-height: 72px; }
}
.ae-header .wp-block-navigation__responsive-container-close:not(.is-menu-open *) { display: none; }
.ae-header .is-menu-open .wp-block-navigation__responsive-container-close { display: inline-flex; }
.ae-header .is-menu-open .wp-block-navigation__container { align-items: stretch; text-align: left; }
.ae-header .is-menu-open .wp-block-navigation-item { align-items: flex-start; }
.ae-header .is-menu-open .wp-block-navigation__submenu-container { align-items: flex-start; }
.ae-v3 .v3-hero { min-height: min(900px, calc(100svh - 80px)); padding-top: clamp(3rem, 7vh, 5rem); padding-bottom: clamp(10rem, 17vh, 12rem); }
.ae-v3 .v3-hero__title { max-width: 16ch; font-size: clamp(2.75rem, 1.4rem + 4.3vw, 5.5rem); line-height: 1.04; letter-spacing: -.045em; }
.ae-v3 .v3-hero__title .v3-line { overflow: visible; }
.ae-v3 .v3-hero__sub { max-width: 47ch; margin-block: 1.5rem 1.75rem; }
.ae-v3 .v3-eyebrow { letter-spacing: .01em; }
.ae-v3 .v3-eyebrow > span { flex: none; }
.ae-v3 .v3-btn { max-width: 100%; min-height: 56px; padding: .875rem 1.5rem; text-align: center; line-height: 1.4; transform: none; }
.ae-v3 .v3-btn > span { min-width: 0; }
.ae-v3 .v3-btn--primary { box-shadow: 0 8px 24px -12px rgba(73,214,189,.5); }
.ae-v3 .v3-btn--ghost { background: rgba(11,17,27,.65); }
.ae-v3 .v3-proof { margin-top: 2.25rem; gap: 1.25rem; }
.ae-v3 .v3-h2 { line-height: 1.09; }
.ae-v3 .v3-need__link { transform: none; border-color: rgba(255,255,255,.13); }
.ae-v3 .v3-need__media { aspect-ratio: 4 / 3.6; }
.ae-v3 .v3-need__t { line-height: 1.3; }
.ae-v3 .v3-need__d { line-height: 1.65; }
.ae-v3 .v3-tile__link::after { background: linear-gradient(180deg,rgba(11,17,27,0) 25%,rgba(11,17,27,.68) 65%,rgba(11,17,27,.96) 100%); }
.ae-v3 .v3-tile__d { color: #e2e8f0; }
.ae-v3 .v3-post { border: 1px solid #dce2ea; border-radius: var(--v3-r); overflow: hidden; }
.ae-v3 .v3-need__link:focus-visible, .ae-v3 .v3-tile__link:focus-visible { outline: 3px solid #49d6bd; outline-offset: 4px; }
.ae-v3 .v3-light a:focus-visible { outline-color: #0a6e5f; }
.ae-v3 .v3-btn:focus-visible { outline: 3px solid white; outline-offset: 4px; }
.ae-v3 .v3-light .v3-btn:focus-visible { outline-color: #0a6e5f; }
.ae-v3 .ae-hero__pause { width: 44px; height: 44px; }
@media (min-width: 1000px) {
  .ae-v3 .v3-need:nth-child(even) { margin-top: 0; }
}
@media (max-width: 999px) {
  .ae-v3 .v3-needs { scrollbar-width: thin; scrollbar-color: #49d6bd #152130; }
  .ae-v3 .v3-needs::-webkit-scrollbar { display: block; height: 5px; }
  .ae-v3 .v3-needs::-webkit-scrollbar-thumb { background: #49d6bd; border-radius: 6px; }
}
@media (max-width: 781px) {
  .ae-v3 .v3-hero { min-height: auto; padding-top: 2rem; padding-bottom: 9.5rem; }
  .ae-v3 .v3-hero__title { font-size: clamp(2.25rem, 10.8vw, 4rem); max-width: 16ch; line-height: 1.07; }
  .ae-v3 .v3-hero__sub { font-size: 1.0625rem; line-height: 1.65; }
  .ae-v3 .v3-hero__shade { background: linear-gradient(180deg,rgba(11,17,27,.62),rgba(11,17,27,.8) 55%,#0b111b 100%); }
  .ae-v3 .v3-eyebrow { font-size: .875rem; line-height: 1.5; margin-bottom: 1.5rem; }
  .ae-v3 .v3-btn { width: 100%; font-size: 1rem; padding-inline: 1rem; }
  .ae-v3 .v3-proof { gap: .35rem; margin-top: 1.75rem; }
  .ae-v3 .v3-proof li { flex-wrap: wrap; gap: .2rem .5rem; }
  .ae-v3 .v3-method__rule { box-sizing: border-box; }
}
@media (prefers-reduced-motion: reduce) {
  .ae-v3 *, .ae-v3 *::before, .ae-v3 *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ae-v3 .v3-reveal, .ae-v3 .v3-tile__link, .ae-v3 .v3-tile__img, .ae-v3 .v3-need__img, .ae-v3 .v3-state, .ae-v3 .v3-post, .ae-v3 .v3-arrow { transform: none !important; }
  .ae-v3 .v3-reveal { opacity: 1 !important; }
  .ae-v3 .ae-hero__video, .ae-v3 .ae-hero__pause { display: none !important; }
}

/* ---- 1.1: capa editorial V4 (propuesta de Codex, revisada) */
.ae-v3 { --ae-light:#f4f3ef; --v3-r:18px; --v3-sec:clamp(3.5rem,6.5vw,6rem); }
.ae-v3 .v3-kicker { font-weight:700; letter-spacing:.13em; font-size:.875rem; }
.ae-v3 .v3-eyebrow { background:rgba(11,17,27,.5); border-color:rgba(255,255,255,.2); box-shadow:none; }
.ae-v3 .v3-hero__title { font-weight:750; letter-spacing:-.055em; line-height:1.04; }
.ae-v3 .v3-hero__title em { color:#77dfc9; }
.ae-v3 .v3-hero__shade { background:linear-gradient(90deg,rgba(11,17,27,.98),rgba(11,17,27,.83) 35%,rgba(11,17,27,.12) 75%),linear-gradient(0deg,#0b111b,transparent 38%); }
.ae-v3 .v3-hero__sub { color:#d4dde7; }
.ae-v3 .v3-btn { border-radius:12px; }
.ae-v3 .v3-btn--primary { background:#72dfc8; box-shadow:0 8px 24px -16px #49d6bd; }
.ae-v3 .v3-btn--ghost { border-color:rgba(255,255,255,.3); background:rgba(11,17,27,.68); }
.ae-v3 .v3-proof { column-gap:2rem; max-width:720px; }
.ae-v3 .v3-proof li { border-color:rgba(255,255,255,.25); }
.ae-v3 .v3-proof b { font-weight:700; color:#77dfc9; }
.ae-v3 .v3-finder__panel { background:#152130; backdrop-filter:none; -webkit-backdrop-filter:none; box-shadow:0 30px 70px -45px #000; border-color:#3b4c60; }
.ae-v3 .v3-finder__panel::before { opacity:.3; }
.ae-v3 .v3-finder__head { align-items:start; gap:.75rem 3rem; margin-bottom:1rem!important; }
.ae-v3 .v3-finder__lead { max-width:54ch; line-height:1.7; }
.ae-v3 .v3-h2 { font-weight:750; letter-spacing:-.045em; max-width:22ch; font-size:clamp(2.1rem,1.3rem + 2.7vw,3.5rem); }
.ae-v3 .v3-intro { font-size:clamp(1.0625rem,1rem + .15vw,1.15rem); line-height:1.75; }
.ae-v3 .v3-head { align-items:end; gap:1.5rem 4rem; margin-bottom:clamp(2rem,4vw,3rem)!important; }
.ae-v3 .v3-head > p { flex-basis:27rem; }
.ae-v3 .v3-need__link { background:#111d2b; border:1px solid #304051; box-shadow:none; }
.ae-v3 .v3-need__media { aspect-ratio:4/3; }
.ae-v3 .v3-need__media::after { background:linear-gradient(180deg,transparent 55%,#111d2b); }
.ae-v3 .v3-need__t { margin:0 1.5rem; font-size:1.3rem; font-weight:750; }
.ae-v3 .v3-need__d { margin:.75rem 1.5rem 1.5rem; }
.ae-v3 .v3-need__go { margin-inline:1.5rem; color:#77dfc9; }
.ae-v3 .v3-need__n { width:36px;height:36px; border-radius:10px; }
.ae-v3 .v3-tile__link { box-shadow:none; border:1px solid rgba(11,17,27,.14); }
.ae-v3 .v3-tile__body { padding:clamp(1.25rem,2.5vw,2rem); }
.ae-v3 .v3-tile__go { width:42px;height:42px;border-radius:12px;background:rgba(11,17,27,.55); }
.ae-v3 .v3-method__grid { align-items:start; gap:clamp(2rem,5vw,5rem); }
.ae-v3 .v3-method__img { aspect-ratio:4/4.4; box-shadow:none; }
.ae-v3 .v3-method__rule { left:1rem;right:1rem;max-width:none;bottom:1rem;background:#152130;backdrop-filter:none; }
.ae-v3 .v3-state { border-radius:12px; background:rgba(255,255,255,.025); padding:1rem 1.15rem; }
.ae-v3 .v3-criteria > div { border-radius:12px; background:transparent; padding:1.25rem; }
.ae-v3 .v3-post { background:#fff; box-shadow:0 18px 30px -30px #0b111b; }
.ae-v3 .v3-final { min-height:460px; }
@media(max-width:781px){
 .ae-v3 .v3-hero__shade {background:linear-gradient(180deg,rgba(11,17,27,.6),rgba(11,17,27,.88) 62%,#0b111b);}
 .ae-v3 .v3-proof {gap:.4rem;}
 .ae-v3 .v3-method__img {aspect-ratio:4/3.4;}
 .ae-v3 .v3-final {min-height:420px;}
}

/* ---- 1.1: componentes comerciales del Core
 * Las chips no son interactivas: el mínimo de 44 px del tema es para enlaces. */
.ae-chips .ae-chip, .ae-card__flag.ae-chip { min-height: 32px; }
/* Respaldo SOLO para Core 0.4 (tokens --ae-* pisados por el tema). Con Core
 * 0.5 los componentes usan --aec-* y estas reglas no cambian nada. */
.ae-pd, .ae-card, .ae-cmp, .ae-results { --ae-bg:#f4f6f8; --ae-navy:#0b111b; --ae-graphite:#0b111b; }
.ae-card .ae-media--empty { max-height:180px; }

/* ==========================================================================
   1.2.0 — Catálogo editorial (2026-11-01)
   Solo CSS. Requiere Core 0.5 (clases ae-media--text, ae-pd__hero--text).
   ========================================================================== */

/* ---- Forma: menos píldora, más precisión (coherente con .v3-btn 12px) */
.ae-btn { box-sizing: border-box; max-width: 100%; border-radius: 12px; min-height: 48px; padding: .7em 1.2em; font-size: .9375rem; font-weight: 700; gap: .5em; }
.ae-btn--buy, .ae-btn--primary { box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 18px -12px rgba(10,110,95,.7); }
.ae-btn--buy:hover, .ae-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 12px 22px -12px rgba(10,110,95,.75); }
.ae-chip { border-radius: 8px; padding: .3em .65em; }
.ae-chips .ae-chip, .ae-card__flag.ae-chip { min-height: 30px; }
.ae-badge { border-radius: 7px; padding: .3em .6em; }
.ae-pd__toc a, .ae-jump a { border-radius: 10px; padding-inline: .9em; }
.ae-brands--static .ae-brand { border-radius: 10px; }
.ae-v3 .v3-btn { border-radius: 12px; }

/* ---- Cuadrícula de catálogo: nunca columnas vacías ni tarjetas de 290px
 * 3+ productos: hasta 3 columnas que llenan el ancho.
 * 2 productos : dos columnas; tarjetas horizontales en pantallas anchas.
 * 1 producto  : una tarjeta horizontal de ancho de lectura, no estirada. */
.ae-grid { --aeg: clamp(1rem, 2vw, 1.75rem); gap: var(--aeg); grid-template-columns: repeat(auto-fit, minmax(max(min(100%, 300px), calc((100% - 2 * var(--aeg)) / 3)), 1fr)); }
.ae-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.ae-grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); max-width: 940px; }

/* ---- Tarjeta */
.ae-card { border-radius: 18px; }
.ae-card__body { gap: .65rem; padding: 1.25rem 1.35rem 1.35rem; }
.ae-card__meta { font-size: .75rem; letter-spacing: .12em; }
.ae-card__title { font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem); line-height: 1.25; }
.ae-card__solves { font-size: .9688rem; line-height: 1.55; }
.ae-card .ae-ticks { gap: .35rem; font-size: .9063rem; }
.ae-card__dims { color: #2D3A4D; }
.ae-card__foot { padding-top: 1rem; gap: .5rem; display: grid; grid-template-columns: 1fr; }
.ae-card__foot .ae-cta { flex-direction: column; align-items: stretch; gap: .35rem; }
.ae-card__foot .ae-paid { text-align: center; font-size: .75rem; }
.ae-card__more { font-size: .875rem; text-decoration: none; display: inline-flex; justify-content: center; gap: .35em; color: #0A6E5F; }
.ae-card__more::after { content: "→"; content: "→" / ""; transition: transform .25s ease; } /* flecha decorativa: silenciosa para lectores de pantalla */
.ae-card__more:hover::after { transform: translateX(3px); }
.ae-card__more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Panel sin foto: banda tipográfica compacta, no un bloque alto */
.ae-card .ae-media--text { aspect-ratio: auto; min-height: 0; padding: 3.75rem 1.35rem 1rem; gap: .1rem; }
.ae-card .ae-media__brand { font-size: 1.375rem; }
.ae-card .ae-media__note { margin-top: .35rem; }
.ae-card__flag.ae-chip { top: .85rem; left: 1.35rem; padding: .2em .55em; min-height: 26px; box-shadow: none; }
.ae-card:has(.ae-media--text) .ae-card__flag { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #E3EAF3; }
.ae-card:has(.ae-media--text) .ae-card__flag.ae-chip--tested { background: #0B111B; color: #77DFC9; }

/* Tarjeta horizontal (1 producto, o 2 en pantallas anchas) */
@media (min-width: 720px) {
	.ae-grid:has(> :only-child) > .ae-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
	.ae-grid:has(> :only-child) > .ae-card .ae-card__visual,
	.ae-grid:has(> :only-child) > .ae-card .ae-media { height: 100%; }
	.ae-grid:has(> :only-child) > .ae-card .ae-media--text { padding: 1.75rem; justify-content: flex-end; border-bottom: 0; border-right: 1px solid rgba(255,255,255,.06); }
	.ae-grid:has(> :only-child) > .ae-card .ae-media__brand { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); }
	.ae-grid:has(> :only-child) > .ae-card .ae-card__flag { left: 1.75rem; top: 1.5rem; }
	.ae-grid:has(> :only-child) > .ae-card .ae-card__body { padding: 1.75rem 2rem; }
	.ae-grid:has(> :only-child) > .ae-card .ae-card__foot { grid-template-columns: auto 1fr; align-items: center; column-gap: 1.25rem; }
	.ae-grid:has(> :only-child) > .ae-card .ae-card__foot .ae-cta { align-items: flex-start; }
	.ae-grid:has(> :only-child) > .ae-card .ae-card__foot .ae-btn { width: auto; }
	.ae-grid:has(> :only-child) > .ae-card .ae-card__more { justify-content: flex-start; }
}
/* 2 productos en pantallas anchas: tarjetas verticales a media anchura,
 * pie en una fila (botón + «Ver análisis») para no alargar la tarjeta. */
@media (min-width: 1000px) {
	.ae-grid:has(> :nth-child(2):last-child) > .ae-card .ae-card__foot { grid-template-columns: auto 1fr; align-items: center; column-gap: 1.25rem; }
	.ae-grid:has(> :nth-child(2):last-child) > .ae-card .ae-card__foot .ae-cta { align-items: flex-start; }
	.ae-grid:has(> :nth-child(2):last-child) > .ae-card .ae-card__foot .ae-btn { width: auto; }
	.ae-grid:has(> :nth-child(2):last-child) > .ae-card .ae-card__more { justify-content: flex-end; }
	.ae-grid:has(> :nth-child(2):last-child) > .ae-card .ae-card__body { padding: 1.4rem 1.6rem 1.5rem; }
	.ae-grid:has(> :nth-child(2):last-child) > .ae-card .ae-media--text { padding-inline: 1.6rem; }
	.ae-grid:has(> :nth-child(2):last-child) > .ae-card .ae-card__flag { left: 1.6rem; }
}
/* Con foto en tarjeta horizontal: la imagen se centra, sin recortar */
.ae-grid:has(> :only-child) > .ae-card .ae-media:not(.ae-media--text) { aspect-ratio: auto; min-height: 240px; }

/* ---- Ficha: sin hueco bajo el título; decisión en tres columnas */
.ae-pd__hero { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.ae-pd__title { text-wrap: balance; }
.ae-pd .ae-chips { margin-top: .25rem; }
@media (min-width: 1000px) {
	.ae-pd__hero--text .ae-pd__info { display: block; }
	.ae-pd__hero--text .ae-pd__title { max-width: 24ch; font-size: clamp(2.5rem, 1.4rem + 2.4vw, 3.75rem); }
	.ae-pd__hero--text .ae-decide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2rem; }
	.ae-pd__hero--text .ae-decide__item { grid-template-columns: 1fr; align-content: start; gap: .75rem; padding: 1.5rem 1.6rem; }
	.ae-pd__hero--text .ae-decide__item + .ae-decide__item { border-top: 0; border-left: 1px solid var(--aec-hair, #E6EAF0); }
	.ae-pd__hero--text .ae-decide__item:last-child { background: linear-gradient(180deg, #F3FBF8, #E9F7F2); }
	.ae-pd__hero--text .ae-decide .ae-cta { flex-direction: column; align-items: flex-start; gap: .4rem; }
}
.ae-decide__a a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ae-pd__toc { gap: .35rem; padding: .5rem 0; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.ae-pd__toc a { min-height: 40px; font-size: .875rem; font-weight: 650; background: #F4F6F8; border: 1px solid transparent; }
.ae-pd__sec { margin-bottom: clamp(2.75rem, 6vw, 4.5rem); }
.ae-pd__sec > h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem); letter-spacing: -.035em; line-height: 1.12; margin-bottom: 1.25rem; }
.ae-pd__sec > p, .ae-pd__sec > ul, .ae-uso .ae-callout, .ae-perfil p { max-width: 70ch; }
.ae-pd .ae-table--specs { max-width: 820px; }
.ae-procon__col { border-top-width: 1px; position: relative; overflow: hidden; }
.ae-procon__col::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: #49D6BD; }
.ae-procon__col--con::before { background: #F2B8B8; }
.ae-final-cta { padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 3rem); }
.ae-final-cta .ae-cta { align-items: center; }

/* ---- Archivo de categoría y guías */
.ae-archive-hero :where(h1, .wp-block-query-title) { text-wrap: balance; }
.ae-section__head > p:not(.ae-kicker) { color: #4A5565; max-width: 62ch; }
.ae-post-card { border-radius: 18px; }
.ae-post-card .wp-block-post-title { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3rem) !important; text-wrap: balance; }
.ae-post-card .wp-block-post-excerpt__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ae-post-card .wp-block-post-terms { margin-top: 1rem !important; }

/* ---- Móvil */
@media (max-width: 719px) {
	.ae-card__body { padding: 1.15rem 1.15rem 1.25rem; }
	.ae-pd__toc { margin-inline: calc(-1 * var(--ae-gutter, 16px)); padding-inline: var(--ae-gutter, 16px); }
	.ae-decide__item:last-child .ae-cta { flex-direction: column; align-items: stretch; }
	.ae-decide__item:last-child .ae-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.ae-card__more::after, .ae-btn--buy:hover, .ae-btn--primary:hover { transition: none; transform: none; }
}

/* ==========================================================================
   1.3.0 — Hero cinematográfico, lectura con ritmo y barra de compra
   Todo es mejora progresiva: sin soporte o sin JS, la página es la de 1.2.
   ========================================================================== */

/* ---- Hero: viñeta y profundidad (solo transform/opacity en contenedores;
 * .ae-hero__img y .v3-in conservan sus animaciones del tema) */
.v3-hero .v3-hero__shade::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(120% 90% at 70% 45%, transparent 55%, rgba(5, 9, 15, .55) 100%);
}
.v3-hero .ae-hero__pause { width: 44px; height: 44px; }
.v3-hero .ae-hero__pause:focus-visible { outline: 3px solid #49D6BD; outline-offset: 3px; }

@keyframes aep-media { to { transform: translate3d(0, 16%, 0) scale(1.04); } }
@keyframes aep-inner { to { transform: translate3d(0, -6%, 0); } } /* sin opacidad: los botones nunca se apagan */

@media (min-width: 782px) and (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: scroll()) {
		/* Ligado al scroll nativo del documento: sin JS y sin capturar la rueda. */
		.v3-hero .ae-hero__media { animation: aep-media linear both; animation-timeline: scroll(root block); animation-range: 0 100vh; }
		.v3-hero .v3-hero__inner { animation: aep-inner linear both; animation-timeline: scroll(root block); animation-range: 0 85vh; }
	}
	/* Respaldo JS (Firefox, Safari antiguo): --aep va de 0 a 1 durante el primer viewport */
	.v3-hero.aep-js .ae-hero__media { transform: translate3d(0, calc(var(--aep, 0) * 16%), 0) scale(calc(1 + var(--aep, 0) * .04)); }
	.v3-hero.aep-js .v3-hero__inner { transform: translate3d(0, calc(var(--aep, 0) * -6%), 0); }
}

/* ---- Lectura con ritmo: aparición sutil ligada a la vista (solo CSS).
 * Solo en elementos que NO usan ya .ae-reveal (Core) ni .v3-reveal (tema).
 * Sin soporte de animation-timeline, o con reducir movimiento, todo es visible. */
@keyframes aep-rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } }
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		:where(.ae-pd__sec > h2, .ae-procon__col, .ae-table--specs, .ae-compat-item, .ae-uso .ae-callout, .ae-perfil, .ae-final-cta, .ae-cmp__detail, .ae-post-card, .ae-section__head):not(.ae-reveal):not(.v3-reveal):not(.ae-reveal *):not(.v3-reveal *) {
			animation: aep-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%;
		}
	}
}

/* ---- Barra de compra (fichas): la de Core, ahora también en escritorio.
 * Reutiliza EL enlace que genera Core para esa ficha (mismo href, rel y
 * etiqueta de afiliado); su visibilidad la controla Core (oculta mientras se
 * ven el CTA principal o el final). Sin JS queda oculta: el contenido no cambia. */
.ae-sticky-cta { gap: 1rem; }
.ae-sticky-cta .ae-paid { display: inline; color: #AEBBCB; font-size: .75rem; white-space: nowrap; }
.ae-sticky-cta .ae-cta { align-items: center; gap: .35rem .75rem; }
.ae-sticky-cta .ae-btn { min-height: 44px; border-radius: 10px; padding: .55em 1em; font-size: .9375rem; box-shadow: none; }
.ae-sticky-cta__t { font-size: .9375rem; color: #F5F7FA; }
@media (max-width: 899px) {
	.ae-sticky-cta { flex-wrap: wrap; row-gap: .35rem; }
	.ae-sticky-cta .ae-cta { flex: 1 1 auto; justify-content: flex-end; }
	.ae-sticky-cta__t { flex: 1 1 100%; font-size: .8125rem; color: #C9D3E0; }
}
@media (max-width: 380px) {
	.ae-sticky-cta .ae-cta { flex-direction: row-reverse; justify-content: space-between; width: 100%; }
}
@media (min-width: 900px) {
	body .ae-sticky-cta:not([hidden]) {
		display: flex !important;
		left: 50%; right: auto; bottom: 1rem; width: min(760px, calc(100% - 2rem)); transform: translateX(-50%);
		padding: .6rem .7rem .6rem 1.25rem; border-radius: 16px;
		background: rgba(11, 17, 27, .92); border: 1px solid rgba(255, 255, 255, .1);
		box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .6);
		animation: aep-bar .35s cubic-bezier(.2, .7, .2, 1);
	}
	body:has(.ae-sticky-cta:not([hidden])) { padding-bottom: 88px; }
}
@keyframes aep-bar { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translateX(-50%); } }
@supports not (backdrop-filter: blur(1px)) { .ae-sticky-cta { background: #0B111B; } }
@media (prefers-reduced-motion: reduce) {
	.ae-sticky-cta, body .ae-sticky-cta:not([hidden]) { animation: none !important; }
	.v3-hero .ae-hero__media, .v3-hero .v3-hero__inner { animation: none !important; transform: none !important; }
}
@media print { .ae-sticky-cta { display: none !important; } }

/* ---- Selección justo tras el hero (home.php: .v3-picks#seleccion antes de .v3-finder)
 * Sin márgenes negativos: el hero ya no reserva hueco para el buscador y el
 * buscador deja de flotar sobre lo que tenga encima. */
.v3-hero:has(+ .v3-picks) { padding-bottom: clamp(4.5rem, 10vh, 7rem); }
.v3-hero:has(+ .v3-picks) .ae-hero__pause { bottom: 1.5rem; }
.v3-picks { position: relative; z-index: 1; scroll-margin-top: 72px; }
/* El tema monta cada .v3-sec sobre la anterior (margin-top negativo = --v3-lap).
 * Tras el hero, la selección NO se solapa: conserva solo las esquinas. */
.ae-v3 > .v3-hero + .v3-sec.v3-picks { margin-top: 0 !important; }
.v3-picks .v3-head { margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem) !important; }
.v3-picks .ae-productos { margin-top: 0 !important; max-width: var(--ae-wrap, 1240px) !important; margin-inline: auto !important; }
.v3-picks + .v3-finder { --ov: 0px; margin-top: 0 !important; padding-top: clamp(3.5rem, 7vw, 6rem) !important; background: var(--ae-bg, #0B111B); }
@media (max-width: 781px) {
	.v3-hero:has(+ .v3-picks) { padding-bottom: 3.5rem; }
	.v3-picks { scroll-margin-top: 64px; }
}

/* ---- Hero con imagen o vídeo claros (el póster puede ser un fotograma luminoso):
 * protección del texto SIEMPRE que haya medio (imagen fija, móvil, reducir
 * movimiento y vídeo), sin depender de que la imagen sea oscura. En escritorio
 * el lado derecho queda visible; en móvil el texto ocupa todo el ancho.
 * Comprobado ≥ 4,5:1 (texto normal) sobre un fotograma blanco puro. */
.v3-hero.has-media .v3-hero__shade {
	background:
		linear-gradient(90deg, rgba(11, 17, 27, .95) 0, rgba(11, 17, 27, .92) clamp(520px, 50%, 780px), rgba(11, 17, 27, .6) clamp(700px, 68%, 1040px), rgba(11, 17, 27, .18) 100%),
		linear-gradient(0deg, #0B111B 0%, rgba(11, 17, 27, 0) 34%);
}
@media (max-width: 1199px) {
	.v3-hero.has-media .v3-hero__shade {
		background:
			linear-gradient(90deg, rgba(11, 17, 27, .95) 0, rgba(11, 17, 27, .92) 78%, rgba(11, 17, 27, .7) 100%),
			linear-gradient(0deg, #0B111B 0%, rgba(11, 17, 27, 0) 34%);
	}
}
@media (max-width: 781px) {
	.v3-hero.has-media .v3-hero__shade {
		background: linear-gradient(180deg, rgba(11, 17, 27, .88) 0%, rgba(11, 17, 27, .92) 55%, #0B111B 100%);
	}
}

/* ==========================================================================
   1.4.0 — Catálogo [ae_catalogo]
   Server-rendered; sin JS es un formulario GET normal. Tokens propios --aec-*
   en superficie clara (no dependen de --ae-bg del tema, que es oscuro).
   ========================================================================== */
.aec {
	--aec-ink: #0B111B; --aec-ink-2: #3A4757; --aec-line: #E2E7ED; --aec-soft: #F4F6F8;
	--aec-turq: #49D6BD; --aec-turq-ink: #0A6E5F; --aec-r: 14px;
	position: relative; color: var(--aec-ink); scroll-margin-top: 84px;
}
.aec, .aec *, .aec *::before, .aec *::after { box-sizing: border-box; }
.aec__head { max-width: 62ch; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.aec__kicker { display: inline-flex; align-items: center; gap: .6em; margin: 0 0 .75rem; font-size: .8125rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--aec-turq-ink); }
.aec__kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.aec__title { margin: 0 0 .6rem; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
.aec__intro { margin: 0; color: var(--aec-ink-2); font-size: 1.0625rem; line-height: 1.6; }

.aec__skip { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; z-index: 5; }
.aec__skip:focus { width: auto; height: auto; overflow: visible; clip-path: none; padding: .6rem 1rem; border-radius: 10px; background: var(--aec-ink); color: #fff; font-weight: 700; outline: 3px solid var(--aec-turq); outline-offset: 2px; }

/* ---- Filtros */
.aec__form { margin: 0 0 1.25rem; padding: clamp(1rem, 2.5vw, 1.5rem); border: 1px solid var(--aec-line); border-radius: 20px; background: linear-gradient(180deg, #fff, var(--aec-soft)); }
.aec__needs { margin: 0 0 1rem; padding: 0; border: 0; min-width: 0; }
.aec__legend { padding: 0; margin: 0 0 .65rem; font-size: .875rem; font-weight: 800; color: var(--aec-ink-2); }
.aec__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.aec__chip { position: relative; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .45rem .55rem .45rem .8rem; border: 1px solid var(--aec-line); border-radius: 12px; background: #fff; cursor: pointer; font-size: .9375rem; font-weight: 700; color: var(--aec-ink); transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.aec__chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.aec__chip:hover { border-color: #C5CFDA; }
.aec__chip:has(input:checked) { background: var(--aec-ink); border-color: var(--aec-ink); color: #fff; box-shadow: 0 10px 22px -16px rgba(11, 17, 27, .8); }
.aec__chip:has(input:focus-visible) { outline: 3px solid var(--aec-turq-ink); outline-offset: 2px; }
.aec__chip.is-empty:not(:has(input:checked)) { color: #6B7787; }
.aec__ico { width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: var(--ae-ico) center / contain no-repeat; mask: var(--ae-ico) center / contain no-repeat; opacity: .85; }
.aec__chip:has(input:checked) .aec__ico { background: var(--aec-turq); opacity: 1; }
.aec__n { min-width: 1.9em; padding: .1em .45em; border-radius: 7px; background: var(--aec-soft); color: var(--aec-ink-2); font-size: .8125rem; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.aec__chip:has(input:checked) .aec__n { background: rgba(255, 255, 255, .14); color: #fff; }

.aec__row { display: grid; gap: .75rem 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); align-items: end; }
.aec__field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.aec__field--q { grid-column: span 2; }
@media (max-width: 640px) { .aec__field--q { grid-column: auto; } }
.aec__field label { font-size: .8125rem; font-weight: 800; color: var(--aec-ink-2); }
.aec__field select, .aec__field input {
	width: 100%; min-height: 48px; padding: .65em 2.4em .65em .9em; border: 1.5px solid #D3DBE4; border-radius: 12px;
	background: #fff; color: var(--aec-ink); font: inherit; font-size: 1rem; font-weight: 600;
	appearance: none; -webkit-appearance: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.aec__field select { background: #fff 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='%230A6E5F' 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 .9em center; }
.aec__field input { padding-right: .9em; }
.aec__field select:focus-visible, .aec__field input:focus-visible { outline: none; border-color: var(--aec-turq-ink); box-shadow: 0 0 0 4px rgba(73, 214, 189, .3); }
.aec__apply { width: 100%; }
/* Con JS los filtros se aplican al cambiar: el botón queda solo para teclado
 * (Intro en la búsqueda) y aparece si recibe el foco. */
.aec.is-js .aec__field--go:not(:focus-within) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---- Barra de estado */
.aec__bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0 0 1.25rem; min-height: 44px; }
.aec__count { margin: 0; font-size: 1rem; color: var(--aec-ink-2); scroll-margin-top: 96px; }
.aec__count:focus { outline: none; }
.aec__count:focus-visible { outline: 2px solid var(--aec-turq-ink); outline-offset: 4px; border-radius: 4px; }
.aec__count strong { color: var(--aec-ink); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.aec__of { color: #6B7787; }
.aec__active { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.aec__tag, .aec__reset { display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: .3rem .4rem .3rem .75rem; border-radius: 10px; font-size: .875rem; font-weight: 700; text-decoration: none; }
.aec__tag { background: #E4F8F4; color: #075447; }
.aec__tag:hover { background: #CFF2EA; }
.aec__x { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: rgba(7, 84, 71, .1); font-size: 1rem; line-height: 1; }
.aec__reset { padding-inline: .6rem; color: var(--aec-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Resultados */
.aec__results { position: relative; min-height: 200px; view-transition-name: aec-results; transition: opacity .25s ease; }
.aec.is-loading .aec__results { opacity: .5; }
.aec__grid { margin: 0; }
.aec-enter { animation: aec-in .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--aec-i, 0) * 45ms); }
@keyframes aec-in { from { opacity: 0; transform: translate3d(0, 14px, 0) scale(.985); } }
.aec__empty { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1.5px dashed #C3CCD8; border-radius: 20px; background: #fff; text-align: center; }
.aec__empty-t { margin: 0 0 .4rem; font-size: 1.25rem; font-weight: 800; }
.aec__empty p:last-child { margin: 0; color: var(--aec-ink-2); }
.aec__empty a { color: var(--aec-turq-ink); font-weight: 700; }
.aec .ae-card:focus-within { border-color: var(--aec-turq-ink); }

/* ---- Paginación */
.aec__pages { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; margin: clamp(1.75rem, 4vw, 2.5rem) 0 0; }
.aec__pglist { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.aec__pg { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 .9rem; border: 1px solid var(--aec-line); border-radius: 12px; background: #fff; color: var(--aec-ink); font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; transition: border-color .2s ease, background-color .2s ease; }
a.aec__pg:hover { border-color: var(--aec-turq-ink); }
a.aec__pg:focus-visible, .aec__tag:focus-visible, .aec__reset:focus-visible, .aec__empty a:focus-visible { outline: 3px solid var(--aec-turq-ink); outline-offset: 2px; }
.aec__pg.is-current { background: var(--aec-ink); border-color: var(--aec-ink); color: #fff; }
.aec__note { margin: 1.5rem 0 0; font-size: .875rem; color: #5B6878; text-align: center; }

@media (max-width: 640px) {
	.aec__chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * clamp(1rem, 2.5vw, 1.5rem)); padding: .15rem clamp(1rem, 2.5vw, 1.5rem) .5rem; scrollbar-width: thin; scroll-snap-type: x proximity; }
	.aec__chip { flex: none; scroll-snap-align: start; }
	.aec__pg--prev, .aec__pg--next { flex: 1 1 40%; }
	.aec__pglist { order: 3; width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.aec-enter { animation: none; }
	.aec__results, .aec__chip { transition: none; }
	.aec__results { view-transition-name: none; }
}
::view-transition-old(aec-results), ::view-transition-new(aec-results) { animation-duration: .28s; }

/* ---- 1.4: Reseña editorial (post_content) dentro de la ficha */
.aep-resena { max-width: 72ch; }
.aep-resena__nota { margin: -.5rem 0 1.25rem; padding: .7rem .9rem; border-left: 3px solid #49D6BD; border-radius: 0 10px 10px 0; background: #F4F6F8; color: #3A4757; font-size: .9375rem; line-height: 1.55; }
.aep-resena__body { font-size: 1.0625rem; line-height: 1.75; color: #1E2A38; }
.aep-resena__body > * + * { margin-top: 1em; }
.aep-resena__body :is(h2, h3) { margin: 1.75em 0 .5em; line-height: 1.2; letter-spacing: -.02em; }
.aep-resena__body h2 { font-size: 1.375rem; }
.aep-resena__body h3 { font-size: 1.1875rem; }
.aep-resena__body :is(ul, ol) { padding-left: 1.3em; }
.aep-resena__body li + li { margin-top: .35em; }
.aep-resena__body a { color: #0A6E5F; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.aep-resena__body img { max-width: 100%; height: auto; border-radius: 12px; }
.aep-resena__body table { width: 100%; border-collapse: collapse; font-size: .9375rem; display: block; overflow-x: auto; }
.aep-resena__body :is(th, td) { padding: .6rem .75rem; border-bottom: 1px solid #E2E7ED; text-align: left; vertical-align: top; }

/* ---- 1.4: enlace al catálogo al final de la selección de la portada */
.aep-more { max-width: var(--ae-wrap, 1240px); margin: clamp(1.75rem, 4vw, 2.5rem) auto 0 !important; display: flex; justify-content: center; }
.aep-more__a { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: .7rem 1.25rem; border-radius: 12px; border: 1.5px solid #0B111B; color: #0B111B; font-weight: 750; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.aep-more__a:hover { background: #0B111B; color: #fff; }
.aep-more__a:focus-visible { outline: 3px solid #0A6E5F; outline-offset: 3px; }
.aep-more__arr { transition: transform .25s ease; }
.aep-more__a:hover .aep-more__arr { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .aep-more__a, .aep-more__arr { transition: none; } }

/* 1.4.2: the live page template uses a narrow article layout.
   Scope the catalog override to its own template, including no-JS rendering. */
main.ae-article:has([data-aec]) > * { max-width: 1280px; }
main.ae-article:has([data-aec]) > .wp-block-post-content { max-width: 1280px; }
main.ae-article [data-aec] { max-width: none; width: 100%; }
main.ae-article:has([data-aec]) > h1 { margin-bottom: 1.5rem; }
