/* Diseño exclusivo de Subastas Activas (publico_activas.php). */
.active-lots-page { background:#f5f8fc; overflow-x:clip; }
.active-lots-page .shell { max-width:1920px; padding-inline:clamp(16px,2vw,38px); }
.active-lots-page .header-top { min-height:68px; padding-block:8px; }
.active-lots-page .nav-inner > a { padding:10px 12px; text-transform:none; letter-spacing:0; }

/* ---------- Portada ---------- */
.pa-hero { position:relative; display:grid; grid-template-columns:minmax(320px,36%) minmax(0,1fr); align-items:center; min-height:clamp(210px,15vw,280px); margin-top:16px; overflow:hidden; background:#fff; border:1px solid #e1e8f1; border-radius:6px; }
.pa-hero-copy { position:relative; z-index:1; padding:24px 24px 24px clamp(20px,2.6vw,46px); }
/* La foto se desvanece hacia el texto con una máscara: nunca queda debajo de las letras. */
.pa-hero-media { align-self:stretch; min-height:100%; margin-left:-48px; background:#120507 url('assets/banners/venta-directa-publica-20261013.webp') 60% 58%/cover no-repeat; -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 26%); mask-image:linear-gradient(90deg,transparent 0,#000 26%); }
.pa-eyebrow { display:inline-flex; align-items:center; gap:7px; margin-bottom:12px; padding:5px 11px; border-radius:4px; background:#fff0f2; color:#d1001d; font-size:11px; font-weight:800; letter-spacing:.6px; text-transform:uppercase; }
.pa-hero h1 { color:#0f1b2d; font-size:clamp(30px,2.9vw,52px); font-weight:900; line-height:1.04; letter-spacing:-1.4px; margin-bottom:12px; }
.pa-hero h1 span { color:#ed0021; }
.pa-hero-copy > p { max-width:470px; color:#4f5f78; font-size:clamp(12px,.92vw,15px); line-height:1.55; }
.pa-hero-stats { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; list-style:none; }
.pa-hero-stats li { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border:1px solid #e3eaf3; border-radius:999px; background:#ffffffe6; color:#4f5f78; font-size:11px; }
.pa-hero-stats i { color:#ed0021; }.pa-hero-stats b { color:#0f1b2d; font-size:13px; }
.pa-hero-card { position:absolute; top:50%; right:clamp(16px,2vw,34px); z-index:1; display:flex; flex-direction:column; gap:8px; width:clamp(190px,14vw,250px); padding:18px 18px 54px; border-radius:6px; background:#070b12eb; color:#fff; box-shadow:0 10px 30px #0004; transform:translateY(-50%); transition:transform .15s; }
.pa-hero-card:hover { transform:translateY(calc(-50% - 2px)); }
.pa-hero-card:focus-visible { outline:2px solid #ffb400; outline-offset:3px; }
.pa-hero-card small { color:#ffcd00; font-size:12px; font-weight:900; letter-spacing:.5px; text-transform:uppercase; }
.pa-hero-card strong { font-size:13px; font-weight:600; line-height:1.45; }
.pa-hero-arrow { position:absolute; left:18px; bottom:14px; display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:#ffcd00; color:#111827; font-size:13px; }

/* ---------- Estructura ---------- */
.pa-layout { display:grid; grid-template-columns:minmax(0,1fr) clamp(200px,14%,260px); align-items:start; gap:16px; padding:16px 0 36px; }
.pa-results,.pa-right { min-width:0; }
.pa-results { scroll-margin-top:130px; }
.pa-alert { display:flex; align-items:baseline; gap:8px; margin-bottom:12px; padding:10px 12px; border:1px solid #ffe08a; border-radius:5px; background:#fff9e6; color:#7a5600; font-size:11.5px; }

/* ---------- Secciones por modalidad ---------- */
.pa-section { padding:14px 16px 10px; border:1px solid #e1e8f1; border-radius:6px; background:#fff; scroll-margin-top:130px; }
.pa-section + .pa-section,.pa-section + .pa-missing { margin-top:14px; }
.pa-section-head { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:12px; }
.pa-section-head > div:first-child { min-width:0; }
.pa-section-head h2 { display:flex; align-items:center; gap:10px; color:#0f1b2d; font-size:clamp(15px,1.1vw,19px); font-weight:900; letter-spacing:-.2px; text-transform:uppercase; }
.pa-section-head h2 i { width:24px; color:#ed0021; font-size:1.2em; text-align:center; }
.pa-section-head h2 span { color:#6b7c95; font-weight:700; }
.pa-section-head p { margin:3px 0 0 34px; color:#6b7c95; font-size:11px; }
.pa-section-link { display:inline-flex; flex-shrink:0; align-items:center; gap:7px; padding:7px 14px; border:1.5px solid #ed0021; border-radius:999px; color:#ed0021; font-size:11px; font-weight:800; white-space:nowrap; transition:background .15s,color .15s; }
.pa-section-link:hover { background:#ed0021; color:#fff; }

/* ---------- Carrusel ---------- */
.pa-carousel { position:relative; }
.pa-track { display:grid; grid-auto-flow:column; grid-auto-columns:calc((100% - 60px) / 6); gap:12px; padding:2px 2px 10px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scrollbar-width:thin; }
.pa-carousel.is-enhanced .pa-track { scrollbar-width:none; }
.pa-carousel.is-enhanced .pa-track::-webkit-scrollbar { display:none; }
.pa-track:focus-visible { outline:2px solid #ffb400; outline-offset:3px; border-radius:6px; }
.pa-carousel-btn { position:absolute; top:calc(50% - 22px); z-index:2; display:grid; place-items:center; width:34px; height:34px; border:1px solid #dfe7f1; border-radius:50%; background:#fff; color:#14213a; box-shadow:0 3px 12px #17324d2e; cursor:pointer; transition:color .15s,border-color .15s; }
.pa-carousel-btn:hover { border-color:#ed0021; color:#ed0021; }
.pa-carousel-btn:focus-visible { outline:2px solid #ffb400; outline-offset:2px; }
.pa-carousel-btn.is-prev { left:-14px; }.pa-carousel-btn.is-next { right:-14px; }
.pa-carousel-btn[hidden] { display:none; }
.pa-more-card { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; min-height:100%; padding:20px 12px; border:1.5px dashed #f0a7b1; border-radius:6px; background:#fff7f8; color:#14213a; text-align:center; scroll-snap-align:start; }
.pa-more-card i { margin-bottom:4px; color:#ed0021; font-size:24px; }
.pa-more-card b { font-size:13px; }.pa-more-card small { color:#6b7c95; font-size:10.5px; }
.pa-more-card:hover { border-color:#ed0021; background:#fff0f2; }

/* ---------- Tarjeta de lote ---------- */
.pa-card { position:relative; display:flex; flex-direction:column; min-width:0; overflow:hidden; border:1px solid #e0e7f0; border-radius:6px; background:#fff; box-shadow:0 2px 6px #17324d08; scroll-snap-align:start; transition:box-shadow .15s,transform .15s; }
.pa-card:hover { box-shadow:0 8px 20px #17324d1f; transform:translateY(-2px); }
.pa-card-media { position:relative; display:block; aspect-ratio:1.55; overflow:hidden; background:#eaf0f7; }
.pa-card-media img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.pa-card:hover .pa-card-media img { transform:scale(1.04); }
.pa-badge { position:absolute; top:8px; left:8px; display:inline-flex; align-items:center; gap:5px; max-width:calc(100% - 16px); padding:4px 8px; border-radius:4px; background:#ed0021; color:#fff; box-shadow:0 2px 6px #0003; font-size:9.5px; font-weight:800; letter-spacing:.3px; white-space:nowrap; }
.pa-badge.is-live { background:#0e9f5b; }
.pa-badge.is-live::before { content:""; width:6px; height:6px; border-radius:50%; background:#fff; animation:pa-pulse 1.6s ease-in-out infinite; }
.pa-badge.is-soon { background:#1d5fd1; }
.pa-badge.is-warn { background:#ef7400; }
.pa-badge.is-gold { background:#ffcd00; color:#14213a; }
@keyframes pa-pulse { 50% { opacity:.25; } }
.pa-card-body { display:flex; flex:1; flex-direction:column; padding:10px 11px 11px; }
.pa-card-mod { display:flex; align-items:center; gap:5px; margin-bottom:4px; overflow:hidden; color:#d1001d; font-size:9.5px; font-weight:800; letter-spacing:.3px; text-transform:uppercase; white-space:nowrap; }
.pa-card-lot { overflow:hidden; color:#14213a; font-size:10px; font-weight:800; letter-spacing:.3px; text-overflow:ellipsis; text-transform:uppercase; white-space:nowrap; }
.pa-card-lot span { color:#6b7c95; font-weight:600; letter-spacing:0; text-transform:none; }
.pa-card h3 { display:-webkit-box; min-height:34px; margin:4px 0 8px; overflow:hidden; font-size:13px; font-weight:800; line-height:1.3; overflow-wrap:anywhere; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.pa-card h3 a:hover { color:#ed0021; }
.pa-card-meta { display:grid; gap:4px; margin-bottom:8px; color:#5f708a; font-size:10.5px; }
.pa-timer { display:flex; align-items:center; gap:5px; color:#ed0021; font-variant-numeric:tabular-nums; }
.pa-timer em { color:#6b7c95; font-style:normal; font-weight:600; }
.pa-timer b { font-weight:800; }
.pa-timer.is-soon b { color:#d1001d; }
.pa-timer.is-ended { color:#7b8798; }
.pa-meta-note { display:flex; align-items:baseline; gap:5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pa-card-meta small { display:flex; align-items:center; gap:5px; overflow:hidden; font-size:10px; white-space:nowrap; text-overflow:ellipsis; }
.pa-card-meta small i,.pa-meta-note i { color:#8a9ab0; }
.pa-card-price { margin-top:auto; margin-bottom:9px; }
.pa-card-price > small { display:block; color:#6b7c95; font-size:9.5px; }
.pa-card-price b { display:block; color:#ed0021; font-size:clamp(15px,1.1vw,19px); font-weight:900; line-height:1.25; overflow-wrap:anywhere; }
.pa-card-price b small { color:#6b7c95; font-size:10px; font-weight:600; }
.pa-card-price b.is-empty { color:#14213a; font-size:14px; font-weight:800; }
.pa-card-cta { display:flex; align-items:center; justify-content:center; gap:6px; padding:8px; border-radius:4px; background:#ed0021; color:#fff; font-size:11px; font-weight:800; transition:background .15s; }
.pa-card-cta:hover { background:#c9001c; }
.pa-card-cta:focus-visible,.pa-card h3 a:focus-visible,.pa-section-link:focus-visible,.pa-more-card:focus-visible { outline:2px solid #ffb400; outline-offset:2px; }

/* ---------- Estados vacíos ---------- */
.pa-missing { display:flex; align-items:baseline; gap:9px; padding:11px 14px; border:1px solid #e1e8f1; border-radius:6px; background:#fff; color:#5f708a; font-size:11.5px; line-height:1.6; }
.pa-missing > i { color:#1d5fd1; }
.pa-missing b { color:#14213a; }
.pa-missing a { color:#14213a; font-weight:700; text-decoration:underline; text-underline-offset:2px; }
.pa-missing a:hover { color:#ed0021; }
.pa-empty { padding:54px 20px; border:1px dashed #d5dfed; border-radius:6px; background:#fff; text-align:center; }
.pa-empty > i { margin-bottom:14px; color:#93a5bc; font-size:34px; }
.pa-empty h3 { color:#0f1b2d; font-size:18px; }
.pa-empty p { max-width:460px; margin:8px auto 20px; color:#6e7d94; font-size:12px; line-height:1.6; }
.pa-empty div { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.pa-empty a { display:inline-flex; align-items:center; gap:7px; padding:10px 15px; border:1px solid #dce5ee; border-radius:4px; background:#fff; font-size:11.5px; font-weight:700; }
.pa-empty a.is-primary { border-color:#ed0021; background:#ed0021; color:#fff; }

/* ---------- Columna derecha ---------- */
.pa-right { display:grid; gap:12px; }
.pa-right h2 { margin-bottom:12px; font-size:14px; font-weight:800; }
.pa-why { padding:15px 14px; border-radius:6px; background:#061725; color:#fff; }
.pa-why ul { display:grid; gap:11px; list-style:none; }
.pa-why li { display:flex; align-items:center; gap:9px; color:#dbe3ef; font-size:11.5px; line-height:1.35; }
.pa-why li i { display:grid; place-items:center; width:18px; height:18px; flex-shrink:0; border-radius:50%; background:#ffcd00; color:#101a28; font-size:9px; }
.pa-how { padding:15px 14px; border:1.5px solid #ed0021; border-radius:6px; background:#fff; }
.pa-how ol { display:grid; gap:14px; list-style:none; }
.pa-how li { display:flex; align-items:flex-start; gap:10px; }
.pa-how li > b { display:grid; place-items:center; width:26px; height:26px; flex-shrink:0; border-radius:50%; background:#ed0021; color:#fff; font-size:12px; }
.pa-how h3 { margin:2px 0 3px; font-size:12px; font-weight:800; }
.pa-how p { color:#5f708a; font-size:10.5px; line-height:1.45; }
.pa-register { display:flex; align-items:center; justify-content:center; gap:7px; margin-top:15px; padding:9px 8px; border-radius:4px; background:#ed0021; color:#fff; font-size:11px; font-weight:800; }
.pa-register:hover { background:#c9001c; }
.pa-help { padding:14px; border:1px solid #e0e8f1; border-radius:6px; background:#fff; }
.pa-help h2 { display:flex; align-items:center; gap:7px; margin-bottom:3px; }
.pa-help h2 i { color:#ed0021; }
.pa-help p { margin-bottom:10px; color:#708099; font-size:10.5px; }
.pa-help a { display:flex; align-items:center; justify-content:center; gap:8px; margin-top:8px; padding:9px 6px; border:1px solid #dce5ee; border-radius:4px; font-size:11px; font-weight:700; }
.pa-help a:hover { border-color:#14213a; }
.pa-help a.pa-whatsapp { border-color:#00a86b; background:#00a86b; color:#fff; }
.pa-help a.pa-whatsapp:hover { background:#008f5b; }

/* ---------- Adaptación por ancho ---------- */
@media (min-width:1750px) {
 .pa-layout { gap:22px; }
 .pa-card h3 { min-height:37px; font-size:14px; }
 .pa-card-body { padding:12px; }
}
@media (max-width:1600px) { .pa-track { grid-auto-columns:calc((100% - 48px) / 5); } }
@media (max-width:1300px) {
 .pa-layout { grid-template-columns:minmax(0,1fr) 200px; gap:12px; }
 .pa-track { grid-auto-columns:calc((100% - 36px) / 4); }
 .pa-hero { grid-template-columns:minmax(300px,42%) minmax(0,1fr); }
}
/* ---------- Tabletas: la ayuda pasa debajo de los lotes ---------- */
@media (max-width:1000px) {
 .pa-layout { grid-template-columns:minmax(0,1fr); }
 .pa-right { grid-template-columns:1fr 1.3fr 1fr; align-items:start; }
 .pa-track { grid-auto-columns:calc((100% - 24px) / 3); }
 .pa-hero { grid-template-columns:minmax(0,54%) minmax(0,1fr); }
 .pa-hero-card { display:none; }
}
/* ---------- Teléfonos ---------- */
@media (max-width:760px) {
 .active-lots-page .shell { padding-inline:14px; }
 .pa-hero { grid-template-columns:minmax(0,1fr); min-height:0; margin-top:12px; }
 .pa-hero-copy { padding:22px 18px 6px; }
 .pa-hero-media { min-height:170px; margin:-26px 0 0; background-position:66% 60%; -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 34%); mask-image:linear-gradient(180deg,transparent 0,#000 34%); }
 .pa-hero h1 { font-size:34px; }
 .pa-hero-copy > p { font-size:13px; }
 .pa-layout { padding-top:12px; }
 .pa-section { padding:12px 12px 8px; }
 .pa-section-head { flex-wrap:wrap; align-items:flex-start; }
 .pa-section-head h2 { font-size:16px; }
 .pa-section-head p { font-size:11.5px; }
 .pa-track { grid-auto-columns:calc((100% - 12px) / 2.15); }
 .pa-carousel-btn { display:none!important; }
 .pa-carousel.is-enhanced .pa-track { scrollbar-width:thin; }
 .pa-carousel.is-enhanced .pa-track::-webkit-scrollbar { display:initial; height:4px; }
 .pa-card h3 { font-size:12.5px; }
 .pa-card-cta { min-height:38px; font-size:12px; }
 .pa-right { grid-template-columns:1fr 1fr; }
 .pa-help { grid-column:1/-1; }
}
@media (max-width:420px) {
 .pa-track { grid-auto-columns:72%; }
 .pa-right { grid-template-columns:1fr; }
 .pa-section-link { padding:7px 11px; }
}
@media (prefers-reduced-motion:reduce) {
 .pa-card,.pa-card-media img,.pa-hero-card { transition:none; }
 .pa-card:hover,.pa-hero-card:hover { transform:none; }
 .pa-card:hover .pa-card-media img { transform:none; }
 .pa-badge.is-live::before { animation:none; }
}
