/* Pulido final (25-oct-2026). Va al último: gana a extra.css y a los estilos que inyectan los .js.
   1) Portada compacta: menos texto, las propiedades se ven desde el primer vistazo.
   2) Mapa chico arriba de las tarjetas en celular y tableta (lo arma pulido-final.js).
   3) Tarjetas que aparecen al bajar, con escalonado y foto que se descubre.
   4) Transiciones: una sola curva, sin animaciones de sombra o filtro repetidas en las 28 tarjetas,
      y todo lo que se repite se pausa fuera de pantalla (.rc-fuera).
   5) Tamaños en celular: foto de tarjeta proporcionada y textos con mínimo legible. */
:root{--rc-e:cubic-bezier(.22,1,.36,1);--rc-e2:cubic-bezier(.4,0,.2,1)}

/* ---------- 4) movimiento general ---------- */
html body .rc-fuera,html body .rc-fuera *,html body .rc-fuera::before,html body .rc-fuera::after,html body .rc-fuera *::before,html body .rc-fuera *::after{animation-play-state:paused!important}
.prog{width:100%!important;transform:scaleX(0);transform-origin:0 50%;will-change:transform}
html body .btn{transition:transform .3s var(--rc-e),box-shadow .3s var(--rc-e),background-color .25s,color .25s,border-color .25s}
html body .btn:active{transform:scale(.97)!important;transition-duration:.12s}
html body .chip,html body #explorar .bar[role=search] .chip{transition:background-color .2s,border-color .2s,color .2s,box-shadow .25s var(--rc-e),transform .2s var(--rc-e)}
html body .chip:active{transform:scale(.95)}
html body .ic{transition:transform .25s var(--rc-e),background-color .2s,border-color .2s,color .2s}
/* el pulgar del rango se mueve sólo tres veces para invitar a usarlo; antes no paraba */
#r-t:not(.tc)::-webkit-slider-thumb,#r-d:not(.tc)::-webkit-slider-thumb,#r-t:not(.tc)::-moz-range-thumb,#r-d:not(.tc)::-moz-range-thumb{animation-iteration-count:3!important}

/* revelado de secciones: misma curva y algo más corto */
html body .rv{transition:opacity .7s var(--rc-e),transform .8s var(--rc-e)}
html body .rv:not(.in){transform:translate3d(0,24px,0)}

/* ---------- 3) tarjetas ---------- */
html body #grid .card{will-change:auto;transition:opacity .7s var(--rc-e),transform .8s var(--rc-e),box-shadow .35s ease,border-color .3s!important;transition-delay:var(--rd,0ms)!important}
html body #grid .card.pre{opacity:0!important;transform:translate3d(0,34px,0) scale(.965)!important}
html body #grid .card .media{clip-path:inset(0 0 0 0 round 0);transition:clip-path .9s var(--rc-e);transition-delay:calc(var(--rd,0ms) + 90ms)}
html body #grid .card.pre .media{clip-path:inset(9% 9% 9% 9% round 14px)}
html body #grid .card.inclina{transition:transform .14s linear,box-shadow .35s ease!important;transition-delay:0ms!important}
html body #grid .card.press{transition:transform .18s ease,box-shadow .3s,border-color .3s!important;transition-delay:0ms!important}
/* abrir: la tarjeta gira al frente de las demás y la ficha termina el giro (cardpress.js) */
html body #grid .card.gira{z-index:40!important;pointer-events:none}
/* la ficha la anima cardpress.js (desde la tarjeta); aquí sólo se apaga su entrada normal para que no se encimen */
html body .mo.gira .dlg{animation:none!important}
/* durante el giro (Safari/iOS): tarjeta plana para que la foto no se salga del borde,
   ficha sin desplazamiento interno ni entradas propias, y fondo sin desenfoque (lo regresa al terminar) */
html body #grid .card.gira,html body #grid .card.gira *{transform-style:flat!important}
html body #grid .card.gira{-webkit-backface-visibility:hidden;backface-visibility:hidden;will-change:transform}
html body #grid .card.gira .media img{will-change:auto!important;animation:none!important}
html body .mo.girando{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background:rgba(2,2,40,.78)!important}
html body .mo.girando .dlg{overflow:hidden!important;-webkit-backface-visibility:hidden;backface-visibility:hidden;will-change:transform}
/* las entradas propias del contenido se apagan mientras la ficha abierta por giro siga abierta: si se apagaran sólo
   durante el giro, se dispararían al terminarlo y el contenido parpadearía */
html body .mo.gira #dlg .di>*{animation:none!important}
html body .mo.gira{transition:background-color .3s,-webkit-backdrop-filter .35s,backdrop-filter .35s}
html body #grid .card.rc-oculta{visibility:hidden}
html body #grid .card.rc-vuelve{animation:rcVuelve .45s var(--rc-e) both}
@keyframes rcVuelve{from{opacity:0;transform:scale(.96)}}
@keyframes rcEntra{from{opacity:0;transform:translate3d(0,14px,0) scale(.98)}}
html body #grid .card.rc-entra{animation:rcEntra .5s var(--rc-e) var(--rd,0ms) both}
/* anillo del % : se dibuja una vez al aparecer (antes se vaciaba y llenaba sin parar y llegaba a leerse «6%») */
html body #grid .card .badge .fg{animation:none!important}
html body #grid .card .badge svg{animation:none!important;filter:drop-shadow(0 0 4px rgba(232,214,174,.5))!important}
html body #grid .card .rrow .badge{animation:none!important;position:relative!important}
html body #grid .card .rrow .badge::after{content:"";position:absolute;inset:-3px;border-radius:50%;box-shadow:0 0 0 4px rgba(214,196,150,.28),0 0 14px rgba(214,196,150,.35);opacity:0;pointer-events:none;animation:rcHalo 3.2s ease-in-out infinite}
@keyframes rcHalo{50%{opacity:1}}
html body #grid .card.pre .badge::after{animation:none}
html body #grid .card.pop .tot b{animation-timing-function:var(--rc-e)}
/* «A tu favor» con la cifra completa abajo, igual que «Mercado ≈»: dos renglones parejos, fáciles de comparar */
html body #grid .card .rrow .vsl .fav{white-space:nowrap!important}
html body #grid .card .rrow .vsl .fav b{display:block;font-size:13.5px;color:#8a6f3c!important;font-weight:800}

/* ---------- ventana de detalle ---------- */
html body .mo.on .dlg,html body .mo.on .cmp{animation:rcSubeDlg .5s var(--rc-e) both}
@keyframes rcSubeDlg{from{opacity:0;transform:translate3d(0,36px,0) scale(.97)}}
html body .mo.sale{animation:rcFuera .23s var(--rc-e2) both!important}
html body .mo.sale .dlg,html body .mo.sale .cmp{animation:rcBaja .23s var(--rc-e2) both!important}
@keyframes rcFuera{to{opacity:0}}@keyframes rcBaja{to{opacity:0;transform:translate3d(0,24px,0) scale(.98)}}
html body .fic:not([hidden]){animation:rcSube .4s var(--rc-e) both}
@keyframes rcSube{from{opacity:0;transform:translate3d(0,10px,0)}}

/* ---------- 1) portada compacta ---------- */
html body .pt .pt-lead,html body .pt .pt-cta,html body .pt .pt-nota,html body .pt .pt-der,html body .pt .pt-eb{display:none!important}
/* marca de agua completa: dentro de la franja, a la derecha y centrada en alto (antes se salía por abajo y se cortaba) */
html body .pt .pt-mark{right:28px!important;left:auto!important;top:50%!important;bottom:auto!important;width:auto!important;height:62%!important;max-width:42%!important;object-fit:contain;transform:translateY(-50%);opacity:.06!important}
@media(max-width:600px){html body .pt .pt-mark{right:14px!important;top:12px!important;height:auto!important;width:34%!important;max-width:none!important;transform:none}}
html body .pt{grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:16px 28px!important;padding:24px 30px!important;margin:0 0 16px!important;border-radius:24px!important}
html body .pt .pt-eb{padding:5px 12px;font-size:10.5px}
html body .pt h1{margin-top:0!important;font-size:clamp(24px,2.5vw,36px)!important;line-height:1.1!important}
html body .pt .pt-izq{order:1!important}
html body .pt .pt-kpi{grid-column:auto!important;order:2!important;margin:0!important;grid-template-columns:repeat(4,minmax(0,auto))!important;gap:10px!important}
html body .pt .pt-kpi div{padding:12px 16px!important;border-radius:16px!important}
html body .pt .pt-kpi b{font-size:clamp(19px,1.8vw,26px)!important}
@media(max-width:1020px){html body .pt{grid-template-columns:1fr!important}html body .pt .pt-kpi{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:600px){
html body .pt{padding:16px 16px 14px!important;gap:12px!important;border-radius:20px!important;margin:0 0 12px!important}
html body .pt .pt-eb{font-size:9.5px;padding:4px 10px;letter-spacing:.1em}
html body .pt h1{font-size:21px!important;margin-top:0!important;line-height:1.15!important;padding-right:30%}
html body .pt .pt-kpi{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
html body .pt .pt-kpi div:nth-child(4){display:none!important}
html body .pt .pt-kpi div{padding:8px 10px!important;border-radius:12px!important}
html body .pt .pt-kpi b{font-size:17px!important}
html body .pt .pt-kpi b small{font-size:9.5px!important}
html body .pt .pt-kpi span{font-size:10.5px!important;line-height:1.25!important;margin-top:2px!important}}

/* ---------- 2) mapa chico (html.rc-mini, menos de 1100 px) ---------- */
html.rc-mini{--mm-h:180px}
@media(max-width:600px){html.rc-mini{--mm-h:136px}}
html.rc-mini body .mbar{display:none!important}
/* en escritorio el mapa ya está fijo a la derecha: «Ver mapa» sobraba (extra.css lo forzaba visible) */
@media(min-width:1100px){html body .mbar{display:none!important}}
html.rc-mini body #explorar .xl-r{display:block!important;order:-1;position:relative!important;top:auto!important;height:var(--mm-h);margin:0 0 12px!important;border-radius:16px}
html.rc-mini body #explorar .xl-r:has(.mapa-w.full){position:relative!important;inset:auto!important;z-index:auto!important}
/* sin !important: así la entrada de abajo sí puede animar opacidad y posición */
html.rc-mini body .xl-r .mapa-w{opacity:1;transform:none}
html.rc-mini body .xl-r .mapa-w:not(.full){height:var(--mm-h)!important;border-radius:16px!important;box-shadow:0 10px 26px -12px rgba(2,2,66,.55)!important}
/* la entrada va en el hueco (sólo una vez al cargar), no en el mapa: si no, se repetiría al cerrarlo */
html.rc-mini body #explorar .xl-r{animation:rcAparece .6s var(--rc-e) .1s backwards}
/* con el mapa expandido nada debe quedar encima: sin animación en su contenedor */
body.mfull #explorar .xl-r{animation:none!important;opacity:1!important}
@keyframes rcAparece{from{opacity:0}}
html.rc-mini body .xl-r .mapa-w:not(.full) #mapa{height:100%!important;min-height:0!important;max-height:none!important}
html.rc-mini body .xl-r .mapa-w:not(.full) .leyenda,html.rc-mini body .xl-r .mapa-w:not(.full) .leaflet-control-zoom,html.rc-mini body .xl-r .mapa-w:not(.full) .mexp{display:none!important}
html.rc-mini body .xl-r .mapa-w:not(.full) .leaflet-control-attribution{font-size:9px;opacity:.7}
/* lo de atrás sigue pintado mientras el mapa crece o se encoge (sólo se pausan sus animaciones) */
html.rc-mini body.mfull .xl-l,html.rc-mini body.mfull .xl-l *{visibility:visible!important}
html.rc-mini body.mfull .xl-l *{animation-play-state:paused!important}
html body .xl-r .mapa-w.full{height:100vh!important;height:100dvh!important}
html body .xl-r .mapa-w.full .mexp{top:calc(12px + env(safe-area-inset-top,0px))!important;right:12px!important;min-height:42px;padding:0 16px!important}
.mm-tap{display:none}
html.rc-mini body .mapa-w:not(.full) .mm-tap{position:absolute;inset:0;z-index:1100;display:flex;align-items:flex-end;gap:8px;padding:10px;border:0;margin:0;cursor:pointer;color:#fff;text-align:left;font:inherit;
 background:linear-gradient(to top,rgba(2,2,66,.78) 0%,rgba(2,2,66,.18) 55%,rgba(2,2,66,0) 80%);-webkit-tap-highlight-color:transparent}
.mm-tap .mm-pill{display:inline-flex;align-items:center;gap:6px;padding:8px 13px;border-radius:999px;background:#fff;color:#020242;font-weight:800;font-size:13.5px;box-shadow:0 6px 16px rgba(0,0,0,.3);transition:transform .25s var(--rc-e)}
.mm-tap .mm-pill svg{width:16px;height:16px}
.mm-tap .mm-dato{flex:1;min-width:0;font-size:12px;font-weight:700;opacity:.92;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 4px rgba(0,0,0,.6);padding-bottom:7px}
@media(max-width:420px){.mm-tap .mm-est{display:none}}
.mm-tap .mm-exp{flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.16);border:1.5px solid rgba(255,255,255,.65);transition:transform .25s var(--rc-e),background-color .2s}
.mm-tap .mm-exp svg{width:17px;height:17px}
.mm-tap:active .mm-pill,.mm-tap:active .mm-exp{transform:scale(.95)}
@media(hover:hover){.mm-tap:hover .mm-exp{background:rgba(255,255,255,.28);transform:scale(1.06)}}
.mm-tap:focus-visible{outline:3px solid var(--champ);outline-offset:-3px;border-radius:16px}

/* los botones flotantes ya no tapan la última línea del pie */
html body footer .fz{padding-bottom:76px!important}

/* el diálogo de registro (acceso/registro.js) también usa la clase .paso: los estilos de «Cómo avanzar, paso a paso»
   (tarjeta, número en círculo y, en celular, rejilla de 34px) lo deshacían. Aquí se le regresa su forma. */
html body .rca .paso:not([hidden]){display:block!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;min-height:0!important;grid-template-columns:none!important;position:static!important}
html body .rca .paso::before{content:none!important;display:none!important}
html body .rca .paso .rca-eyebrow{margin:0 0 8px!important;font-size:11px!important;line-height:1.4!important}
html body .rca .paso .rca-txt{margin:0 0 20px!important;font-size:15px!important;line-height:1.55!important;color:#3E3E5E!important}
html body .rca .paso h2{margin:0 44px 8px 0!important;font-size:23px!important;line-height:1.25!important;grid-row:auto!important}
html body .rca .paso .rca-err{margin:12px 0 0!important;font-size:13.5px!important}
@media(max-width:560px){html body .rca .paso h2{font-size:21px!important}}

/* ---------- 5) tamaños en celular ---------- */
@media(max-width:700px){
html body #grid .card .media{height:auto!important;aspect-ratio:4/3!important}
html body #grid .card .media img{height:100%!important}
html body #grid .card .cod{font-size:10px!important}
html body #grid .card .cbody .tot small{font-size:10px!important;letter-spacing:.05em!important}
html body #grid .card .cbody .tot b{font-size:18px!important}
html body #grid .card .rrow .vsl{font-size:11px!important}
html body #grid .card .rrow .vsl span:first-child b{font-size:12.5px!important}
html body #grid .card .rrow .vsl .fav{font-size:11px!important;margin-top:3px!important}
html body #grid .card .rrow .vsl .fav b{font-size:12.5px!important;letter-spacing:-.02em}
html body #grid .card .rrow .badge{width:46px!important;height:46px!important}
html body #grid .card .rrow .badge b{font-size:13px!important}
html body .nav .btn{white-space:nowrap}
footer .fz{padding-bottom:96px!important}}
/* ficha en celular: todo en una sola pantalla, sin desplazarse.
   Sin huecos dobles (gap + márgenes), foto proporcional al alto de la pantalla.
   La barra «¿Te interesa esta propiedad?» repetía «Escríbenos» y tapaba los botones: se quita en celular. */
@media(max-width:700px){
html body .mo{padding:8px!important}
html body #dlg{width:calc(100vw - 16px)!important;max-height:calc(100vh - 16px)!important;max-height:calc(100dvh - 16px)!important}
html body #dlg .dm{height:clamp(112px,21vh,165px)!important;height:clamp(112px,21dvh,165px)!important;min-height:0!important;max-height:none!important}
html body #dlg .di{gap:7px!important;padding:10px 14px 12px!important}
html body #dlg .di>*{margin-top:0!important;margin-bottom:0!important}
html body #dlg .di .c1{font-size:10.5px!important}
html body #dlg .di h3{font-size:21px!important;line-height:1.1!important}
html body #dlg .di .loc{font-size:12.5px!important;line-height:1.25!important}
html body #dlg .big{gap:6px!important}
html body #dlg .big>div{padding:6px 11px!important;border-radius:12px!important}
html body #dlg .big small{font-size:9.5px!important}
html body #dlg .big b{font-size:17px!important}
html body #dlg .big .full b{font-size:22px!important}
html body #dlg .rcviz{padding:6px 10px!important;gap:10px!important}
html body #dlg .rcviz .rg,html body #dlg .rcviz .rg svg{width:42px!important;height:42px!important;flex-basis:42px!important}
html body #dlg .rcviz .rg b{font-size:12.5px!important}
html body #dlg .rcviz .bs{gap:4px!important}
html body #dlg .sim{padding:8px 11px!important}
html body #dlg .sim h4{font-size:13.5px!important;margin:0 0 6px!important}
html body #dlg .seg button{padding:7px 6px!important;font-size:13.5px!important}
html body #dlg .sim p,html body #dlg #sp{font-size:12.5px!important;line-height:1.35!important;margin:6px 0 0!important}
html body #dlg .di .dacc{padding:4px 0 0!important}
html body #dlg .dacc .btn{min-height:44px!important}
html body #rcwa{display:none!important}
html.rcwa-on body #dlg .di{padding-bottom:12px!important}}
/* pantallas bajas (teclado abierto, iPhone SE): se quita la gráfica repetida y la foto baja más */
@media(max-width:700px) and (max-height:620px){
html body #dlg .rcviz{display:none!important}
html body #dlg .dm{height:clamp(96px,19dvh,130px)!important}}
@media(max-width:360px) and (max-height:620px){
html body #dlg .dm{height:clamp(84px,16dvh,110px)!important}
html body #dlg .di h3{font-size:18px!important}
html body #dlg .big .full b{font-size:19px!important}
html body #dlg .sim p,html body #dlg #sp{font-size:11.5px!important}}

@media(max-width:360px){
html body .nav .btn{padding:9px 12px!important;font-size:13px!important}
html body .nav .btn .bi{display:none}
html body .bar[role=search] #ord{font-size:14px!important}
html body #grid{gap:8px!important}
html body #grid .card .cbody{padding:7px 8px 8px!important}
html body #grid .card .cbody .tot b{font-size:16.5px!important}
html body #grid .card .cbody .tot small{font-size:9.5px!important;letter-spacing:0!important;white-space:nowrap}
html body #grid .card .rrow{gap:4px!important}
html body #grid .card .rrow .badge{width:40px!important;height:40px!important}
html body #grid .card .rrow .badge b{font-size:11.5px!important}
html body #grid .card .rrow .vsl span:first-child b,html body #grid .card .rrow .vsl .fav b{font-size:11.5px!important}}

@media(prefers-reduced-motion:reduce){
html body #grid .card.pre{opacity:1!important;transform:none!important}
html body #grid .card.pre .media{clip-path:none}
html body #grid .card,html body #grid .card .media{transition:none!important}
html body #grid .card .rrow .badge::after,html.rc-mini body .xl-r .mapa-w:not(.full),html body .mo.on .dlg,html body .mo.on .cmp,html body .mo.sale,html body .mo.sale .dlg{animation:none!important}}
