/* ===========================================================
   Auto Paniagua — propuesta v3 "Pista"
   Light-first · angular · diagonales de marca
   =========================================================== */
:root {
  --bg: #F2F3F5;
  --bg-2: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #EDEFF2;
  --surface-3: #E0E3E8;
  --border: rgba(17,22,29,0.10);
  --border-2: rgba(17,22,29,0.18);
  --text: #15171B;
  --muted: #565D68;
  --dim: #939AA5;
  --accent: #FE6711;          /* naranja de marca */
  --accent-2: color-mix(in srgb, var(--accent) 82%, white);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-deep: color-mix(in srgb, var(--accent) 74%, black);
  --brand-gray: #58595B;      /* gris secundario de marca */
  --wa: #25D366;
  --wa-dark: #1da851;
  --radius: 6px;
  --radius-sm: 4px;
  --radius-lg: 9px;
  --wrap: 1360px;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --shadow: 0 22px 50px -26px rgba(17,22,29,0.25);
  --shadow-card: 0 12px 28px -18px rgba(17,22,29,0.16);
  /* chrome / superficies que cambian con el tema */
  --topbar-bg: #101114;
  --footer-bg: #101114;
  --header-bg: rgba(255,255,255,0.82);
  --header-bg-2: rgba(255,255,255,0.97);
  --hero-tint: #E8EAED;
  --hero-panel: #17181C;       /* panel diagonal del hero */
  --glass-bg: rgba(17,22,29,0.04);
  --glass-bg-2: rgba(17,22,29,0.08);
  --glass-border: rgba(17,22,29,0.14);
  --ghost-text: var(--text);
  --overlay: rgba(12,13,15,0.62);
  --scrollthumb: #c3c9d1;
  --marca-filter: grayscale(1) brightness(0) invert(0.16);
  /* bandas + texturas */
  --band-alt: #FAFBFC;
  --band-deep: #E9EBEE;
  --texture-dot: rgba(20,28,40,0.045);
  --texture-line: rgba(20,28,40,0.04);
  --edge: rgba(20,28,40,0.09);
}

:root[data-theme="dark"] {
  --bg: #0B0C0E;
  --bg-2: #101114;
  --surface: #15161A;
  --surface-2: #1C1D22;
  --surface-3: #25262C;
  --border: rgba(255,255,255,0.08);
  --border-2: rgba(255,255,255,0.15);
  --text: #F4F4F2;
  --muted: #9CA0A8;
  --dim: #6B6F77;
  --shadow: 0 18px 50px -20px rgba(0,0,0,0.7);
  --shadow-card: 0 10px 30px -16px rgba(0,0,0,0.6);
  --topbar-bg: #08090B;
  --footer-bg: #08090B;
  --header-bg: rgba(11,12,14,0.84);
  --header-bg-2: rgba(11,12,14,0.97);
  --hero-tint: #14151A;
  --hero-panel: #1C1E24;
  --glass-bg: rgba(255,255,255,0.05);
  --glass-bg-2: rgba(255,255,255,0.12);
  --glass-border: rgba(255,255,255,0.13);
  --ghost-text: #fff;
  --overlay: rgba(8,9,11,0.62);
  --scrollthumb: #2b2d33;
  --marca-filter: grayscale(1) brightness(0) invert(0.92);
  --band-alt: #101114;
  --band-deep: #08090B;
  --texture-dot: rgba(255,255,255,0.035);
  --texture-line: rgba(255,255,255,0.03);
  --edge: rgba(255,255,255,0.06);
}

/* topbar y footer siempre carbón: texto claro dentro, en ambos temas */
.ap-topbar, .ap-footer {
  --text: #F2F3F5; --muted: #A8ACB4; --dim: #7A7E86;
  --border: rgba(255,255,255,0.10); --border-2: rgba(255,255,255,0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #root { height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

.ap-app { display: flex; flex-direction: column; height: 100%; background: var(--bg); }
.ap-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; }
.ap-scroll::-webkit-scrollbar { width: 11px; }
.ap-scroll::-webkit-scrollbar-thumb { background: var(--scrollthumb); border-radius: 10px; border: 3px solid var(--bg); }
.ap-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; width: 100%; }

/* ---------- Tipografía utilitaria ---------- */
.ap-overline {
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
/* barra inclinada de marca antes del overline */
.ap-overline::before { content: ""; width: 15px; height: 10px; background: var(--accent); transform: skewX(-22deg); flex-shrink: 0; }
.ap-overline-light { color: var(--accent-2); }
.ap-overline-light::before { background: var(--accent-2); }
.ap-sectitle { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3.1vw, 38px); letter-spacing: -0.005em; line-height: 1.05; text-transform: uppercase; }
.ap-dot { width: 8px; height: 8px; border-radius: 1px; background: var(--accent); transform: skewX(-14deg); box-shadow: none; }

/* ---------- Botones ---------- */
.ap-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  border-radius: 5px; text-decoration: none; white-space: nowrap;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s; cursor: pointer;
}
.ap-btn-ico { display: inline-flex; }
.ap-btn:active { transform: translateY(1px); }
.ap-btn-sm { font-size: 11.5px; padding: 11px 18px; }
.ap-btn-md { font-size: 12.5px; padding: 14px 24px; }
.ap-btn-lg { font-size: 13.5px; padding: 17px 30px; }
.ap-btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px var(--accent); }
.ap-btn-primary:hover { background: var(--accent-deep); box-shadow: 0 14px 30px -12px var(--accent); }
.ap-btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border-2); }
.ap-btn-outline:hover { border-color: var(--text); background: var(--glass-bg); }
.ap-btn-ghost-light { background: var(--glass-bg); color: var(--ghost-text); backdrop-filter: blur(8px); border: 1px solid var(--glass-border); }
.ap-btn-ghost-light:hover { background: var(--glass-bg-2); }
.ap-btn-wa { background: var(--wa); color: #04240f; }
.ap-btn-wa:hover { background: #2ee36f; box-shadow: 0 12px 28px -10px var(--wa); }

/* ---------- Logo ---------- */
.ap-logo { display: inline-flex; align-items: center; }
.ap-logo-img { display: block; width: auto; }

/* ---------- Topbar ---------- */
.ap-topbar { background: var(--topbar-bg); border-top: 3px solid var(--accent); border-bottom: 1px solid var(--border); font-size: 13px; }
.ap-topbar-in { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.ap-topbar-item { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); text-decoration: none; transition: color .15s; white-space: nowrap; }
.ap-topbar-in > .ap-topbar-item { overflow: hidden; text-overflow: ellipsis; }
.ap-topbar-item:hover { color: var(--text); }
.ap-topbar-item svg { color: var(--accent); }
.ap-topbar-right { display: flex; align-items: center; gap: 16px; }
.ap-topbar-sep { width: 1px; height: 16px; background: var(--border-2); transform: skewX(-14deg); }
.ap-topbar-since svg { color: var(--accent); }
.ap-topbar-since { color: var(--text); font-weight: 600; }
.ap-topbar-since::before { content: ""; }

/* ---------- Header ---------- */
.ap-header { position: sticky; top: 0; z-index: 60; background: var(--header-bg); backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--border); transition: background .25s, box-shadow .25s; }
.ap-header.is-scrolled { background: var(--header-bg-2); box-shadow: var(--shadow-card); }
.ap-header-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.ap-nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.ap-nav-link {
  position: relative; font-weight: 700; font-size: 12.5px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted); padding: 10px 14px; border-radius: 0; transition: color .15s;
}
.ap-nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.ap-nav-link:hover { color: var(--text); }
.ap-nav-link.is-active { color: var(--text); background: none; }
.ap-nav-link.is-active::after { transform: scaleX(1); }
.ap-header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ap-icon-btn { width: 42px; height: 42px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--text); border: 1px solid var(--border); background: var(--surface); transition: background .15s, border-color .15s; }
.ap-icon-btn:hover { background: var(--surface-2); border-color: var(--border-2); }

.ap-show-sm { display: none !important; }
@media (max-width: 900px) {
  .ap-nav { display: none; }
  .ap-hide-sm { display: none !important; }
  .ap-show-sm { display: inline-flex !important; }
}

/* ---------- Mobile menu ---------- */
.ap-mobile-menu { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); display: flex; justify-content: flex-end; animation: apFade .2s ease; }
.ap-mobile-panel { width: min(340px, 88vw); background: var(--bg-2); border-left: 1px solid var(--border); padding: 20px; display: flex; flex-direction: column; gap: 6px; animation: apSlideIn .25s ease; }
.ap-mobile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ap-mobile-link { display: flex; align-items: center; justify-content: space-between; padding: 16px 6px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--border); color: var(--text); }
.ap-mobile-link svg { color: var(--dim); }
.ap-mobile-cta { margin-top: 18px; }
@keyframes apSlideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes apFade { from { opacity: 0; } to { opacity: 1; } }

/* ===========================================================
   HERO — panel diagonal carbón a la derecha (barras del logo)
   =========================================================== */
.ap-hero { position: relative; padding-top: 64px; padding-bottom: 70px; overflow: hidden; }
.ap-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(102deg,
    var(--bg) calc(57% - 4px),
    var(--accent) calc(57% - 4px), var(--accent) 57%,
    var(--hero-panel) 57%);
}
/* rayas diagonales sutiles dentro del panel oscuro */
.ap-hero-glow {
  position: absolute; inset: 0; width: auto; height: auto; filter: none;
  background: repeating-linear-gradient(102deg, transparent 0 30px, rgba(255,255,255,0.035) 30px 31.5px);
  -webkit-mask-image: linear-gradient(102deg, transparent 57%, #000 57%);
  mask-image: linear-gradient(102deg, transparent 57%, #000 57%);
}
.ap-hero-grain { position: absolute; inset: 0; opacity: 0.4; background-image: radial-gradient(var(--texture-dot) 1px, transparent 1px); background-size: 4px 4px; -webkit-mask-image: linear-gradient(102deg, #000 40%, transparent 58%); mask-image: linear-gradient(102deg, #000 40%, transparent 58%); }
.ap-hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; min-height: 520px; }
.ap-hero-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 8px 15px; border: 1px solid var(--border-2); border-radius: 4px; background: var(--bg-2); margin-bottom: 24px; }
.ap-hero-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 5.2vw, 62px); line-height: 1.0; letter-spacing: -0.02em; text-wrap: balance; }
.ap-hero-title em { font-style: italic; color: var(--accent); }
.ap-hero-sub { color: var(--muted); font-size: clamp(15.5px, 1.4vw, 18px); line-height: 1.55; max-width: 470px; margin-top: 22px; }
.ap-hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.ap-hero-trust { display: flex; gap: 34px; margin-top: 42px; }
.ap-hero-trust-item { display: flex; flex-direction: column; border-left: 3px solid var(--accent); padding-left: 14px; }
.ap-hero-trust-item strong { font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -0.01em; }
.ap-hero-trust-item span { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* tarjeta destacada en hero — sobre el panel oscuro */
.ap-hero-feature { transform: translateZ(0); backface-visibility: hidden; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow); cursor: pointer; transition: transform .25s, box-shadow .25s; }
.ap-hero-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow), inset 0 -3px 0 var(--accent); }
.ap-hero-feature-media { position: relative; aspect-ratio: 16/10; border-radius: calc(var(--radius-lg) - 4px); overflow: hidden; background: var(--surface-2); }
.ap-hero-feature-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ap-hero-feature-media-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 70%, rgba(10,10,12,0.35)); pointer-events: none; }
.ap-hero-feature-tag { position: absolute; top: 14px; left: 14px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 14px; border-radius: 2px; transform: skewX(-10deg); z-index: 2; }
.ap-hero-feature-body { padding: 18px 12px 8px; }
.ap-hero-feature-brand { color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.ap-hero-feature-title { font-family: var(--font-display); font-size: 25px; font-weight: 700; letter-spacing: -0.01em; margin-top: 4px; }
.ap-hero-feature-specs { display: flex; flex-wrap: wrap; gap: 16px; margin: 14px 0 18px; }
.ap-hero-feature-specs span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 500; }
.ap-hero-feature-specs svg { color: var(--accent); }
.ap-hero-feature-foot { display: flex; align-items: flex-end; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--border); }
.ap-hero-feature-price { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.ap-hero-dots { display: flex; gap: 7px; justify-content: center; margin-top: 18px; }
.ap-hero-dot { width: 9px; height: 6px; border-radius: 1px; transform: skewX(-14deg); background: var(--border-2); transition: width .25s, background .25s; }
.ap-hero-dot.is-on { width: 24px; background: var(--accent); }

/* ---------- Quick search ---------- */
.ap-quicksearch { position: relative; z-index: 3; margin-top: 46px; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 14px; box-shadow: var(--shadow-card); }
.ap-qs-field { display: flex; flex-direction: column; gap: 7px; }
.ap-qs-field > label { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; padding-left: 2px; }
.ap-select { position: relative; }
.ap-select select { width: 100%; appearance: none; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius-sm); padding: 13px 38px 13px 14px; font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color .15s; }
.ap-select select:hover { border-color: var(--border-2); }
.ap-select select:focus { outline: none; border-color: var(--accent); }
.ap-select svg { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.ap-select option { background: var(--surface-2); color: var(--text); }

/* Select con búsqueda (custom) */
.ap-ss { position: relative; }
.ap-ss-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius-sm); padding: 13px 14px; font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color .15s; text-align: left; }
.ap-ss-btn:hover { border-color: var(--border-2); }
.ap-ss.is-open .ap-ss-btn { border-color: var(--accent); }
.ap-ss-btn svg { color: var(--muted); flex-shrink: 0; transition: transform .15s; }
.ap-ss.is-open .ap-ss-btn svg { transform: rotate(180deg); }
.ap-ss-ph { color: var(--muted); font-weight: 500; }
.ap-ss-panel { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
.ap-ss-search { width: 100%; border: 0; border-bottom: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 11px 14px; font-size: 14px; outline: none; }
.ap-ss-list { max-height: 240px; overflow-y: auto; padding: 5px; }
.ap-ss-opt { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 9px 11px; border-radius: 6px; font-size: 14.5px; cursor: pointer; }
.ap-ss-opt:hover { background: var(--surface-2); }
.ap-ss-opt.is-sel { background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; }
.ap-ss-empty { padding: 14px; text-align: center; color: var(--dim); font-size: 13px; }

/* ===========================================================
   SECCIONES + GRID DE TARJETAS
   =========================================================== */
.ap-section { padding: 74px 0; position: relative; isolation: isolate; }
.ap-section > .ap-wrap { position: relative; z-index: 2; }
.ap-section-tight { padding: 40px 0; }

/* ---- Bandas ---- */
.ap-band-alt { background: var(--band-alt); border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.ap-band-deep { background: var(--band-deep); border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.ap-band-alt::after, .ap-band-deep::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--edge) 30%, var(--edge) 70%, transparent); z-index: 3; }

/* ---- Texturas ---- */
.ap-tex::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ap-tex-dots::before { background-image: radial-gradient(var(--texture-dot) 1.3px, transparent 1.3px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000, #000 75%, transparent); mask-image: linear-gradient(180deg, #000, #000 75%, transparent); }
.ap-tex-grid::before { background-image: linear-gradient(var(--texture-line) 1px, transparent 1px), linear-gradient(90deg, var(--texture-line) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(130% 90% at 50% 0%, #000, transparent 72%); mask-image: radial-gradient(130% 90% at 50% 0%, #000, transparent 72%); }
.ap-tex-diag::before { background-image: repeating-linear-gradient(-60deg, var(--texture-line) 0 2px, transparent 2px 18px); -webkit-mask-image: radial-gradient(120% 100% at 100% 0%, #000, transparent 70%); mask-image: radial-gradient(120% 100% at 100% 0%, #000, transparent 70%); }
.ap-sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.ap-sechead-action { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 4px; transition: gap .2s, color .2s; }
.ap-sechead-action:hover { gap: 12px; color: var(--accent); }
.ap-section-foot { display: flex; justify-content: center; margin-top: 44px; }

.ap-grid-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ap-grid-listing { grid-template-columns: repeat(3, 1fr); }

/* ---------- Tarjeta de vehículo ---------- */
.ap-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; display: flex; flex-direction: column; transform: translateZ(0); backface-visibility: hidden; will-change: transform; }
.ap-card:hover { transform: translateY(-6px) translateZ(0); border-color: var(--border-2); box-shadow: var(--shadow-card), inset 0 -3px 0 var(--accent); }
.ap-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); transform: translateZ(0); }
.ap-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; transform: translateZ(0); backface-visibility: hidden; will-change: transform; }
.ap-card:hover .ap-card-media img { transform: scale(1.07) translateZ(0); }
.ap-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.3)); pointer-events: none; }
.ap-card-cond { position: absolute; top: 12px; left: 12px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 12px; border-radius: 2px; transform: skewX(-10deg); backdrop-filter: blur(6px); z-index: 2; }
.ap-tag-new { background: var(--accent); color: #fff; }
.ap-tag-used { background: rgba(14,15,18,0.55); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.ap-card-fav { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 5px; background: var(--overlay); backdrop-filter: blur(6px); display: inline-flex; align-items: center; justify-content: center; color: #fff; z-index: 2; transition: background .15s, color .15s; }
.ap-card-fav:hover { background: var(--accent); }
.ap-card-fav.is-faved { background: rgba(255,255,255,.92); color: #ef4444; }
.ap-card-fav.is-faved svg { fill: #ef4444; }
.ap-card-fav.is-faved:hover { background: #fee2e2; color: #dc2626; }
.ap-favs-toggle { width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--radius); border: 1.5px solid var(--border); background: var(--bg); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.ap-favs-toggle svg { flex-shrink: 0; }
.ap-favs-toggle.is-on { border-color: #ef4444; background: #fef2f2; color: #dc2626; }
.ap-favs-toggle.is-on svg { fill: #ef4444; }
.ap-favs-toggle:not(.is-on):hover { border-color: var(--accent); color: var(--accent); }
.ap-fav-header-btn { position: relative; color: #ef4444; }
.ap-fav-header-btn svg { fill: #ef4444; }
.ap-fav-badge { position: absolute; top: 2px; right: 2px; background: #FE6711; color: #fff; font-size: 9px; font-weight: 700; width: 14px; height: 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 1; }
.ap-card-body { padding: 17px 17px 16px; display: flex; flex-direction: column; flex: 1; }
.ap-card-brand { font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.ap-card-title { font-family: var(--font-display); font-size: 17.5px; font-weight: 700; letter-spacing: -0.005em; margin-top: 2px; line-height: 1.2; }
.ap-card-specs { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.ap-spec { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.ap-spec-ico { display: inline-flex; color: var(--dim); }
.ap-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.ap-card-price-label { font-size: 10.5px; color: var(--dim); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.ap-card-price { font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin-top: 2px; }
.ap-card-cta { width: 38px; height: 38px; border-radius: 5px; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; color: var(--text); transition: background .2s, color .2s; }
.ap-card:hover .ap-card-cta { background: var(--accent); color: #fff; }

/* ---------- Tabs ---------- */
.ap-tabs { display: inline-flex; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 7px; padding: 4px; }
.ap-tab { font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding: 9px 17px; border-radius: 4px; transition: color .15s, background .15s; }
.ap-tab:hover { color: var(--text); }
.ap-tab.is-on { background: var(--accent); color: #fff; }

/* ---------- Marcas ---------- */
.ap-marcas { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.ap-marca { transform: translateZ(0); backface-visibility: hidden; aspect-ratio: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; padding: 20px; transition: transform .2s, border-color .2s, background .2s, box-shadow .2s; }
.ap-marca:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: inset 0 -3px 0 var(--accent); }
.ap-marca img { max-height: 46px; max-width: 70%; object-fit: contain; filter: var(--marca-filter); opacity: 0.6; transition: opacity .2s, filter .2s; }
.ap-marca:hover img { opacity: 1; filter: none; }

/* ---------- Categorías ---------- */
.ap-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ap-cat { position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; text-align: left; border: 1px solid var(--border); transform: translateZ(0); }
.ap-cat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; transform: translateZ(0); backface-visibility: hidden; will-change: transform; }
.ap-cat:hover .ap-cat-img { transform: scale(1.08) translateZ(0); }
.ap-cat-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,13,15,0.12) 30%, rgba(12,13,15,0.92)); }
.ap-cat-body { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; }
.ap-cat-count { font-size: 11.5px; font-weight: 700; color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.12em; }
.ap-cat-title { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; margin-top: 4px; color: #fff; }
.ap-cat-desc { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 2px; }
.ap-cat-arrow { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 5px; background: rgba(255,255,255,0.12); backdrop-filter: blur(6px); display: inline-flex; align-items: center; justify-content: center; color: #fff; z-index: 2; transition: background .2s, transform .2s; }
.ap-cat:hover .ap-cat-arrow { background: var(--accent); transform: translate(3px,-3px); }

/* ---------- Financiamiento band ---------- */
.ap-finband { position: relative; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius-lg); padding: 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; overflow: hidden; box-shadow: var(--shadow-card); }
.ap-finband-glow { position: absolute; top: -30%; right: -8%; width: 420px; height: 160%; background: repeating-linear-gradient(-60deg, var(--accent-soft) 0 12px, transparent 12px 30px); opacity: 0.45; transform: skewX(-6deg); pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.ap-finband-copy { position: relative; z-index: 2; }
.ap-finband-title { font-family: var(--font-display); font-size: clamp(28px, 3.3vw, 42px); font-weight: 800; letter-spacing: -0.005em; line-height: 1.02; text-transform: uppercase; }
.ap-finband-sub { color: var(--muted); font-size: 16.5px; line-height: 1.55; margin: 20px 0 30px; max-width: 440px; }

/* mini calc */
.ap-finband-card { position: relative; z-index: 2; }
.ap-minicalc { background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.ap-minicalc-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 16px; }
.ap-minicalc-row { margin-bottom: 18px; }
.ap-minicalc-field { display: flex; flex-direction: column; }
.ap-minicalc-field label { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.ap-minicalc-val { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin: 3px 0 10px; }
.ap-minicalc-result { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; margin-top: 20px; }
.ap-minicalc-result-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.ap-minicalc-cuota { font-family: var(--font-display); font-size: 29px; font-weight: 800; letter-spacing: -0.01em; margin-top: 2px; }
.ap-minicalc-cuota small { font-size: 14px; font-weight: 600; color: var(--muted); }
.ap-minicalc-note { font-size: 12px; color: var(--dim); margin-top: 4px; }
.ap-minicalc-go { width: 48px; height: 48px; border-radius: 6px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .2s, background .2s; }
.ap-minicalc-go:hover { background: var(--accent-deep); transform: translateX(3px); }
.ap-calc-vehbanner { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 22px; }
.ap-calc-vehbanner img { width: 64px; height: 48px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.ap-calc-vehbanner-txt { display: flex; flex-direction: column; min-width: 0; }
.ap-calc-vehbanner-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); font-weight: 700; }
.ap-calc-vehbanner-txt strong { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.ap-calc-vehbanner-link { margin-left: auto; flex-shrink: 0; background: none; border: 0; color: var(--accent); font-weight: 700; font-size: 13px; cursor: pointer; }
.ap-calc-vehbanner-link:hover { color: var(--accent-deep); }

/* range global */
.ap-range, .ap-minicalc-field input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 2px; background: var(--surface-3); outline: none; }
.ap-range::-webkit-slider-thumb, .ap-minicalc-field input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 19px; height: 19px; border-radius: 4px; background: #fff; border: 5px solid var(--accent); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.3); transition: transform .12s; }
.ap-range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.ap-range::-moz-range-thumb, .ap-minicalc-field input[type=range]::-moz-range-thumb { width: 19px; height: 19px; border-radius: 4px; background: #fff; border: 5px solid var(--accent); cursor: pointer; }
.ap-range-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--dim); margin-top: 8px; font-weight: 600; }

/* ---------- Features ---------- */
.ap-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ap-feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.ap-feature:hover { border-color: var(--border-2); transform: translateY(-3px); box-shadow: inset 0 -3px 0 var(--accent); }
.ap-feature-ico { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.ap-feature h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: 0; }
.ap-feature p { color: var(--muted); font-size: 14px; line-height: 1.55; margin-top: 9px; }

/* ---------- CTA band ---------- */
.ap-ctaband { background: linear-gradient(100deg, var(--accent), var(--accent-deep)); position: relative; overflow: hidden; margin: 0; }
.ap-ctaband::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-60deg, rgba(255,255,255,0.05) 0 22px, transparent 22px 44px); pointer-events: none; }
.ap-ctaband-in { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 56px 28px; flex-wrap: wrap; }
.ap-ctaband-title { font-family: var(--font-display); font-size: clamp(26px, 3.1vw, 38px); font-weight: 800; letter-spacing: 0; text-transform: uppercase; color: #fff; }
.ap-ctaband-sub { color: rgba(255,255,255,0.9); font-size: 16.5px; margin-top: 8px; max-width: 480px; }
.ap-ctaband .ap-btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.ap-ctaband .ap-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ===========================================================
   FOOTER
   =========================================================== */
.ap-footer { background: var(--footer-bg); border-top: 3px solid var(--accent); padding: 64px 0 28px; }
.ap-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.ap-footer-desc { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 18px 0 22px; max-width: 320px; }
.ap-footer-social { display: flex; gap: 10px; }
.ap-social { width: 40px; height: 40px; border-radius: 5px; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); transition: all .18s; }
.ap-social:hover { color: #fff; border-color: var(--accent); background: var(--accent); }
.ap-footer-col h4 { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.ap-footer-link { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; text-decoration: none; padding: 7px 0; transition: color .15s; text-align: left; }
.ap-footer-link:hover { color: #fff; }
.ap-footer-link svg { color: var(--dim); flex-shrink: 0; }
.ap-footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-top: 1px solid var(--border); margin-top: 44px; padding-top: 24px; color: var(--dim); font-size: 13px; gap: 12px; }
.ap-footer-bottom-links { display: flex; gap: 18px; justify-self: end; }
.ap-footer-mini { color: var(--dim); font-size: 13px; transition: color .15s; }
.ap-footer-mini:hover { color: #fff; }
.ap-footer-cubik { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; opacity: 0.5; transition: opacity .15s; justify-self: center; }
.ap-footer-cubik:hover { opacity: 1; }
.ap-footer-cubik-text { font-size: 11px; color: var(--dim); letter-spacing: 0.06em; }
.ap-footer-cubik-name { font-size: 12px; font-weight: 600; color: var(--dim); letter-spacing: 0.04em; }
.ap-footer-cubik svg { color: var(--dim); flex-shrink: 0; }
.ap-legal-body { max-width: 720px; color: var(--text); line-height: 1.8; }
.ap-legal-body h2 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin: 36px 0 10px; }
.ap-legal-body p { margin-bottom: 14px; font-size: 15px; }
.ap-legal-body ul { margin: 0 0 14px 24px; font-size: 15px; }
.ap-legal-body ul li { margin-bottom: 6px; }
.ap-legal-body a { color: var(--accent); text-decoration: none; }
.ap-legal-body a:hover { text-decoration: underline; }

/* ---------- WhatsApp FAB ---------- */
.ap-wa-fab { position: fixed; right: 22px; bottom: 22px; z-index: 120; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,0.6); transition: transform .2s; }
.ap-wa-fab:hover { transform: scale(1.08); }
.ap-wa-pulse { position: absolute; inset: 0; border-radius: 50%; background: var(--wa); opacity: 0.5; animation: apPulse 2.4s ease-out infinite; z-index: -1; }
@keyframes apPulse { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.8); opacity: 0; } }

/* ===========================================================
   LISTADO
   =========================================================== */
/* ---- Header de páginas internas: banda carbón con barras del logo ---- */
.ap-listing-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(102deg, #15161B 0%, #0B0C0E 78%);
  position: relative; isolation: isolate; overflow: hidden;
  --text: #F4F4F2; --muted: #A2A6AE; --dim: #6E727A;
  box-shadow: inset 0 -3px 0 0 var(--accent);
}
.ap-listing-hero > .ap-wrap { position: relative; z-index: 2; }
/* rayas diagonales sutiles */
.ap-listing-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: repeating-linear-gradient(102deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 34px);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 70%);
  mask-image: linear-gradient(90deg, transparent 30%, #000 70%);
}
/* barras inclinadas de marca (eco del logo) */
.ap-listing-hero::after {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  top: -20%; right: 7%; width: 130px; height: 140%;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  opacity: 0.16; transform: skewX(-14deg);
  box-shadow: -190px 0 0 rgba(254,103,17,0.45), 190px 0 0 rgba(88,89,91,0.5);
}
.ap-listing-hero .ap-back { color: rgba(255,255,255,0.62); }
.ap-listing-hero .ap-back:hover { color: #fff; }
.ap-listing-hero .ap-listing-title { color: #F4F4F2; }
.ap-listing-hero .ap-listing-sub { color: #A2A6AE; }
.ap-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; transition: color .15s; }
.ap-back:hover { color: var(--text); }
.ap-listing-title { font-family: var(--font-display); font-size: clamp(28px, 3.7vw, 42px); font-weight: 800; letter-spacing: -0.005em; text-transform: uppercase; }
.ap-listing-sub { color: var(--muted); font-size: 16px; margin-top: 8px; }
.ap-listing-layout { display: grid; grid-template-columns: 290px 1fr; gap: 34px; padding-top: 34px; padding-bottom: 70px; align-items: start; }
.ap-listing-aside { position: sticky; top: 16px; max-height: calc(100vh - 96px - 32px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }

.ap-filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.ap-filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.ap-filters-head h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; display: flex; align-items: center; gap: 9px; }
.ap-filters-badge { background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; min-width: 22px; height: 22px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.ap-filters-clear { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.ap-filter-group { padding: 18px 0; border-top: 1px solid var(--border); }
.ap-filter-group:first-of-type { border-top: none; padding-top: 0; }
.ap-filter-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); margin-bottom: 13px; }
.ap-segment { display: flex; gap: 5px; background: var(--surface-2); padding: 4px; border-radius: 6px; }
.ap-seg { flex: 1; font-size: 13px; font-weight: 600; color: var(--muted); padding: 9px; border-radius: 4px; transition: all .15s; }
.ap-seg.is-on { background: var(--accent); color: #fff; }
.ap-checks { display: flex; flex-direction: column; gap: 3px; }
.ap-check { display: flex; align-items: center; gap: 11px; padding: 8px 6px; border-radius: 5px; cursor: pointer; transition: background .12s; }
.ap-check:hover { background: var(--surface-2); }
.ap-check input { display: none; }
.ap-check-box { width: 19px; height: 19px; border-radius: 4px; border: 1.5px solid var(--border-2); display: inline-flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; transition: all .15s; }
.ap-check.is-on .ap-check-box { background: var(--accent); border-color: var(--accent); }
.ap-check-text { font-size: 14px; font-weight: 500; flex: 1; }
.ap-check-count { font-size: 12px; color: var(--dim); font-weight: 600; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-chip { font-size: 13px; font-weight: 600; color: var(--muted); padding: 8px 14px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface-2); transition: all .15s; }
.ap-chip:hover { border-color: var(--border-2); color: var(--text); }
.ap-chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

.ap-listing-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.ap-search-input { flex: 1; display: flex; align-items: center; gap: 11px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 16px; height: 50px; transition: border-color .15s; }
.ap-search-input:focus-within { border-color: var(--accent); }
.ap-search-input svg { color: var(--muted); flex-shrink: 0; }
.ap-search-input input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 15px; font-weight: 500; }
.ap-search-input input::placeholder { color: var(--dim); }
.ap-sort select { height: 50px; }
.ap-sort.ap-select svg { top: 50%; }
.ap-filter-toggle { display: none; align-items: center; gap: 8px; height: 50px; padding: 0 18px; border: 1px solid var(--border-2); border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; background: var(--surface); }
.ap-listing-count { font-size: 14px; color: var(--muted); margin-bottom: 20px; display: flex; align-items: center; gap: 14px; }
.ap-listing-count strong { color: var(--text); font-size: 16px; }
.ap-clear-inline { color: var(--accent); font-weight: 700; font-size: 13px; }
.ap-empty { text-align: center; padding: 80px 20px; }
.ap-empty-ico { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); margin-bottom: 20px; }
.ap-empty h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; text-transform: uppercase; }
.ap-empty p { color: var(--muted); margin: 8px 0 22px; }

/* drawer mobile filtros */
.ap-drawer { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); display: flex; align-items: flex-end; animation: apFade .2s; }
.ap-drawer-panel { width: 100%; max-height: 88vh; background: var(--bg-2); border-top-left-radius: 14px; border-top-right-radius: 14px; border-top: 1px solid var(--border-2); display: flex; flex-direction: column; animation: apSlideUp .28s ease; }
@keyframes apSlideUp { from { transform: translateY(40px); } to { transform: none; } }
.ap-drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--border); }
.ap-drawer-top h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; text-transform: uppercase; }
.ap-drawer-body { overflow-y: auto; padding: 4px 20px; }
.ap-drawer-foot { padding: 18px 20px; border-top: 1px solid var(--border); }
.ap-drawer-foot .ap-btn { width: 100%; }

.ap-show-md { display: none !important; }
@media (max-width: 980px) {
  .ap-listing-layout { grid-template-columns: 1fr; }
  .ap-hide-md { display: none !important; }
  .ap-show-md { display: inline-flex !important; }
  .ap-filter-toggle { display: inline-flex; }
}

/* ===========================================================
   DETALLE
   =========================================================== */
.ap-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 26px 0 6px; flex-wrap: wrap; }
.ap-breadcrumb button { color: var(--muted); font-weight: 600; transition: color .15s; }
.ap-breadcrumb button:hover { color: var(--text); }
.ap-breadcrumb svg { color: var(--dim); }
.ap-breadcrumb span { color: var(--text); font-weight: 600; }
/* cabecera oscura del detalle */
.ap-detail-hero .ap-breadcrumb { padding: 0 0 16px; }
.ap-detail-hero-specs { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 18px; }
.ap-detail-hero-specs span { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.ap-detail-hero-specs svg { color: var(--accent); flex-shrink: 0; }
.ap-detail-layout { display: grid; grid-template-columns: 1fr 400px; gap: 40px; padding-top: 18px; padding-bottom: 40px; align-items: start; }
.ap-gallery-main { position: relative; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.ap-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.ap-gallery-fav { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: var(--radius); background: var(--overlay); backdrop-filter: blur(8px); border: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, color .15s; z-index: 2; }
.ap-gallery-fav:hover { background: rgba(0,0,0,.72); }
.ap-gallery-fav.is-faved { background: rgba(255,255,255,.92); color: #ef4444; }
.ap-gallery-fav.is-faved svg { fill: #ef4444; }
.ap-gallery-fav.is-faved:hover { background: #fee2e2; }
.ap-gallery-count { position: absolute; bottom: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; background: var(--overlay); backdrop-filter: blur(8px); color: #fff; font-size: 12.5px; font-weight: 600; padding: 8px 13px; border-radius: 4px; }
.ap-gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.52); backdrop-filter: blur(6px); border: none; color: #fff; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, opacity .15s; z-index: 2; opacity: .85; }
.ap-gallery-nav:hover { background: rgba(0,0,0,.78); opacity: 1; }
.ap-gallery-nav--prev { left: 14px; }
.ap-gallery-nav--next { right: 14px; }
.ap-gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.ap-gthumb { aspect-ratio: 16/11; border-radius: 5px; overflow: hidden; border: 2px solid transparent; transition: border-color .15s; background: var(--surface-2); }
.ap-gthumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.65; transition: opacity .15s; }
.ap-gthumb.is-on { border-color: var(--accent); }
.ap-gthumb.is-on img, .ap-gthumb:hover img { opacity: 1; }

.ap-detail-block { margin-top: 44px; }
.ap-block-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; margin-bottom: 20px; }
.ap-specsheet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ap-specsheet-item { display: flex; align-items: center; gap: 13px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; }
.ap-specsheet-ico { width: 40px; height: 40px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ap-specsheet-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.ap-specsheet-val { font-size: 15px; font-weight: 700; font-family: var(--font-display); letter-spacing: 0; margin-top: 2px; }
/* Card que agrupa equipamiento + descripción */
.ap-detail-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; margin-top: 44px; box-shadow: var(--shadow-card); }
.ap-detail-block-flush { margin-top: 0; }
.ap-detail-divider { height: 1px; background: var(--border); margin: 28px 0; }

.ap-equip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ap-equip-item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text); font-weight: 600; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 15px; transition: border-color .15s; }
.ap-equip-item:hover { border-color: var(--border-2); }
.ap-equip-check { width: 23px; height: 23px; border-radius: 4px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.ap-equip-text { line-height: 1.3; }
.ap-detail-desc { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 720px; text-wrap: pretty; }

.ap-detail-aside { position: sticky; top: 24px; }
.ap-buybox { background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-card); border-top: 3px solid var(--accent); }
.ap-buybox-brand { color: var(--muted); font-size: 13px; font-weight: 600; }
.ap-buybox-eyebrow { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2px; }
.ap-buybox-title { font-family: var(--font-display); font-size: 27px; font-weight: 800; letter-spacing: -0.01em; margin-top: 4px; line-height: 1.1; }
.ap-buybox-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.ap-minitag { font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 12px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--border); }
.ap-buybox-price { padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ap-buybox-amount { font-family: var(--font-display); font-size: 33px; font-weight: 800; letter-spacing: -0.015em; margin-top: 4px; }
.ap-buybox-fin { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; margin: 20px 0; }
.ap-buybox-fin-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.ap-buybox-fin-head span { font-size: 13px; color: var(--muted); font-weight: 600; }
.ap-buybox-fin-head strong { font-family: var(--font-display); font-size: 23px; font-weight: 800; letter-spacing: -0.01em; }
.ap-buybox-fin-head small { font-size: 13px; font-weight: 600; color: var(--muted); }
.ap-buybox-fin-label { font-size: 13px; color: var(--muted); font-weight: 600; display: block; margin-bottom: 10px; }
.ap-buybox-fin-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 14px; }
.ap-buybox-btn { width: 100%; margin-bottom: 10px; }
.ap-buybox-trust { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.ap-buybox-trust span { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.ap-buybox-trust svg { color: var(--wa); }

/* ===========================================================
   CALCULADORA
   =========================================================== */
.ap-calc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding-top: 40px; padding-bottom: 80px; align-items: start; }
.ap-calc-inputs { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.ap-calc-field { margin-bottom: 28px; }
.ap-calc-field:last-child { margin-bottom: 0; }
.ap-calc-field-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ap-calc-field-top label { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
.ap-calc-hint { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--accent); }
.ap-calc-money { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 16px; height: 56px; margin-bottom: 14px; transition: border-color .15s; }
.ap-calc-money:focus-within { border-color: var(--accent); }
.ap-calc-money span { font-family: var(--font-display); font-weight: 700; color: var(--muted); font-size: 18px; }
.ap-calc-money input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -0.01em; width: 100%; }
.ap-calc-plazos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ap-plazo { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px; border: 1px solid var(--border); background: var(--surface-2); border-radius: 5px; font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--text); transition: all .15s; }
.ap-plazo small { font-family: var(--font-body); font-size: 10.5px; font-weight: 600; color: var(--muted); }
.ap-plazo.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.ap-plazo.is-on small { color: rgba(255,255,255,0.85); }

.ap-calc-result { position: sticky; top: 96px; }
.ap-calc-result-card { background: var(--surface); border: 1px solid var(--border-2); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.ap-calc-result-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.ap-calc-cuota { font-family: var(--font-display); font-size: clamp(42px, 5.8vw, 58px); font-weight: 800; letter-spacing: -0.025em; line-height: 1; margin: 8px 0 22px; }
.ap-calc-cuota small { font-size: 19px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.ap-calc-bar { height: 8px; border-radius: 2px; background: var(--surface-3); overflow: hidden; margin-bottom: 22px; }
.ap-calc-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 2px; transition: width .3s ease; }
.ap-calc-breakdown { display: flex; flex-direction: column; gap: 2px; margin-bottom: 24px; }
.ap-calc-line { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
.ap-calc-line span { color: var(--muted); font-size: 14px; font-weight: 500; }
.ap-calc-line strong { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: 0; }
.ap-calc-line-total { border-bottom: none; }
.ap-calc-line-total span { color: var(--text); font-weight: 700; }
.ap-calc-line-total strong { font-size: 20px; color: var(--accent); }
.ap-calc-btn { width: 100%; }
.ap-calc-disclaimer { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--dim); line-height: 1.5; margin-top: 16px; }
.ap-calc-disclaimer svg { flex-shrink: 0; margin-top: 1px; }
.ap-calc-explore { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin-top: 18px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.ap-calc-explore:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: inset 0 -3px 0 var(--accent); }
.ap-calc-explore h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: 0; margin-top: 4px; }

/* ---------- Nosotros / Contacto ---------- */
.ap-about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 50px; }
.ap-about-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 24px; text-align: center; box-shadow: inset 0 3px 0 var(--accent); }
.ap-about-stat-n { font-family: var(--font-display); font-size: 42px; font-weight: 800; letter-spacing: -0.015em; color: var(--accent); }
.ap-about-stat-l { font-size: 13.5px; color: var(--muted); font-weight: 600; margin-top: 6px; }
.ap-about-copy { max-width: 760px; margin: 0 auto 60px; }
.ap-about-copy p { color: var(--muted); font-size: 17px; line-height: 1.7; margin-bottom: 20px; text-wrap: pretty; }

.ap-contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
/* ---------- Contacto: métodos ---------- */
.ap-contact-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 60px; }
.ap-contact-card { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s, box-shadow .2s; }
.ap-contact-card:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: var(--shadow-card), inset 0 -3px 0 var(--accent); }
.ap-contact-ico { width: 52px; height: 52px; border-radius: 6px; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.ap-contact-ico svg { display: block; }
.ap-contact-wa .ap-contact-ico { background: rgba(37,211,102,0.14); color: var(--wa); }
.ap-contact-wa:hover { box-shadow: var(--shadow-card), inset 0 -3px 0 var(--wa); }
.ap-contact-card-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ap-contact-card-l { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.03em; }
.ap-contact-card-v { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-contact-card-arrow { margin-left: auto; color: var(--muted); display: inline-flex; flex-shrink: 0; transition: transform .2s, color .2s; }
.ap-contact-card:hover .ap-contact-card-arrow { color: var(--accent); transform: translateX(3px); }

/* ---------- Contacto: sucursales con mapa ---------- */
.ap-branches-head { margin-bottom: 28px; }
.ap-branches-sub { color: var(--muted); font-size: 15px; margin-top: 10px; }
/* Explorador: tabs + mapa grande + panel de detalle */
.ap-branch-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.ap-branch-tab { display: flex; align-items: center; gap: 11px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 16px; cursor: pointer; text-align: left; transition: border-color .15s, background .15s, transform .15s; }
.ap-branch-tab:hover { border-color: var(--border-2); transform: translateY(-1px); }
.ap-branch-tab .ap-dot { opacity: .4; transition: opacity .15s; }
.ap-branch-tab.is-active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.ap-branch-tab.is-active .ap-dot { opacity: 1; }
.ap-branch-tab-txt { display: flex; flex-direction: column; gap: 1px; }
.ap-branch-tab-name { font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.ap-branch-tab-zona { font-size: 12px; color: var(--muted); }

.ap-branch-stage { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: stretch; }
.ap-branch-mapwrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--surface-2); }
.ap-branch-bigmap { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

.ap-branch-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 30px 32px; display: flex; flex-direction: column; }
.ap-branch-badge { display: inline-flex; align-items: center; gap: 9px; align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 6px 13px; margin-bottom: 16px; }
.ap-branch-panel-name { font-family: var(--font-display); font-size: 25px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; text-transform: uppercase; margin-bottom: 4px; }
.ap-branch-row { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.5; margin-top: 18px; }
.ap-branch-row svg { color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.ap-branch-zona-2 { color: var(--dim); font-size: 13px; }
.ap-branch-panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 26px; }
.ap-branch-dir-link, .ap-branch-call, .ap-branch-wa { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; padding: 11px 16px; border-radius: 5px; transition: background .15s, border-color .15s, color .15s; }
.ap-branch-dir-link { background: var(--accent); color: #fff; }
.ap-branch-dir-link:hover { background: var(--accent-deep); }
.ap-branch-wa { background: rgba(37,211,102,0.14); color: var(--wa); }
.ap-branch-wa:hover { background: rgba(37,211,102,0.24); }
.ap-branch-call { color: var(--text); border: 1.5px solid var(--border-2); }
.ap-branch-call:hover { border-color: var(--text); }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1100px) {
  .ap-grid-cards { grid-template-columns: repeat(3, 1fr); }
  .ap-marcas { grid-template-columns: repeat(4, 1fr); }
  .ap-features { grid-template-columns: repeat(2, 1fr); }
  .ap-specsheet { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .ap-hero-in { grid-template-columns: 1fr; min-height: 0; }
  .ap-hero-feature { max-width: 460px; }
  .ap-hero-bg { background: linear-gradient(180deg, var(--hero-tint), var(--bg) 70%); }
  .ap-hero-glow { display: none; }
  .ap-hero-grain { -webkit-mask-image: none; mask-image: none; }
  .ap-hero-dot { background: var(--border-2); }
  .ap-hero-dot.is-on { background: var(--accent); }
  .ap-finband { grid-template-columns: 1fr; padding: 36px; }
  .ap-detail-layout { grid-template-columns: 1fr; }
  .ap-detail-aside { position: static; }
  .ap-calc-layout { grid-template-columns: 1fr; }
  .ap-calc-result { position: static; }
  .ap-contact-layout { grid-template-columns: 1fr; }
  .ap-branch-stage { grid-template-columns: 1fr; }
  .ap-branch-mapwrap { min-height: 320px; }
  .ap-branch-bigmap { min-height: 320px; }
  .ap-form-row { grid-template-columns: 1fr; }
  .ap-grid-listing { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .ap-wrap { padding: 0 18px; }
  .ap-topbar { display: none; }
  .ap-header { border-top: 3px solid var(--accent); }
  .ap-section { padding: 50px 0; }
  .ap-grid-cards, .ap-grid-listing { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .ap-cats { grid-template-columns: repeat(2, 1fr); }
  .ap-quicksearch { grid-template-columns: 1fr; }
  /* Barra del listado: búsqueda a ancho completo; Filtros y Orden comparten la 2ª fila */
  .ap-listing-bar { flex-wrap: wrap; gap: 10px; }
  .ap-search-input { flex: 1 1 100%; height: 46px; }
  .ap-filter-toggle { flex: 1; justify-content: center; height: 46px; }
  .ap-sort { flex: 1; }
  .ap-sort .ap-ss-btn { height: 46px; }
  .ap-listing-layout { padding-top: 22px; }
  .ap-hero-trust { gap: 22px; }
  .ap-specsheet { grid-template-columns: repeat(2, 1fr); }
  .ap-equip { grid-template-columns: 1fr; }
  .ap-detail-card { padding: 22px; }
  .ap-calc-plazos { grid-template-columns: repeat(3, 1fr); }
  .ap-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .ap-about-stats { grid-template-columns: repeat(2, 1fr); }
  .ap-contact-methods { grid-template-columns: 1fr; }
  .ap-ctaband-in { padding: 40px 18px; }
}
@media (max-width: 460px) {
  .ap-grid-cards, .ap-grid-listing { grid-template-columns: 1fr; }
  .ap-cats { grid-template-columns: 1fr; }
  .ap-card-specs { gap: 9px; }
  .ap-hero-trust-item strong { font-size: 24px; }
  .ap-footer-grid { grid-template-columns: 1fr; }
}

/* ===========================================================
   Formulario de contacto
   =========================================================== */
.ap-contactform-head { margin: 64px 0 24px; }
.ap-form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; margin-bottom: 64px; }
.ap-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ap-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.ap-field label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.ap-field input, .ap-field textarea { width: 100%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius-sm); padding: 13px 15px; font-family: var(--font-body); font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.ap-field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.ap-field input::placeholder, .ap-field textarea::placeholder { color: var(--dim); }
.ap-field input:focus, .ap-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ap-field input.is-error, .ap-field textarea.is-error { border-color: #e5484d; }
.ap-field .ap-select select { width: 100%; }
.ap-field-err { font-size: 12.5px; color: #e5484d; font-weight: 600; }
.ap-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 6px; padding-top: 22px; border-top: 1px solid var(--border); }
.ap-form-note { font-size: 13px; color: var(--muted); }
.ap-form-submit { cursor: pointer; }

.ap-form-done { text-align: center; display: flex; flex-direction: column; align-items: center; padding: 54px 34px; }
.ap-form-done-ico { width: 64px; height: 64px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: rgba(37,211,102,0.14); color: var(--wa); margin-bottom: 18px; }
.ap-form-done-title { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -0.01em; text-transform: uppercase; }
.ap-form-done-sub { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 460px; margin: 10px auto 22px; text-wrap: pretty; }
.ap-form-done-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ap-form-done-actions .ap-branch-call { cursor: pointer; }

/* ===========================================================
   Reveal al hacer scroll + transiciones de carrusel/sliders
   =========================================================== */
.ap-reveal { opacity: 0; }
.ap-reveal-in { animation: apRevealUp .62s cubic-bezier(.22,.7,.2,1) both; }
@keyframes apRevealUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* Carrusel destacado del hero: cross-fade de la imagen y del texto */
.ap-hero-feature-img.is-on { animation: apHeroImg .7s ease both; }
@keyframes apHeroImg { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.ap-hero-feature-body { animation: apFade .5s ease both; }

/* InventarioReciente: fundido al cambiar de pestaña */
.ap-grid-cards { animation: apFade .4s ease both; }

/* Galería del detalle: paneo suave entre encuadres */
.ap-gallery-main img { transition: object-position .55s cubic-bezier(.4,0,.2,1), opacity .3s ease; }

@media (prefers-reduced-motion: reduce) {
  .ap-reveal, .ap-reveal-in,
  .ap-hero-feature-img.is-on, .ap-hero-feature-body, .ap-grid-cards { animation: none !important; opacity: 1 !important; }
  .ap-gallery-main img { transition: none !important; }
}
