/* Estilos de la página de venta y de la app. Colores en variables: azul notarial y dorado de martillo. */
:root {
  --azul: #12355b; --azul-2: #1d4f82; --azul-claro: #e8eef6; --oro: #c8902e; --oro-claro: #f7ecd9;
  --tinta: #16202b; --gris: #5d6875; --gris-claro: #eef1f5; --borde: #dde3ea; --fondo: #f7f8fa; --blanco: #fff;
  --verde: #1f7a4d; --verde-claro: #e3f3ea; --amarillo: #a86b00; --amarillo-claro: #fdf2d8; --rojo: #b42318; --rojo-claro: #fde8e6;
  --radio: 12px; --sombra: 0 1px 2px rgba(16, 32, 48, .06), 0 6px 20px rgba(16, 32, 48, .06);
  --letra: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; --titulo: 'Fraunces', Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--letra); color: var(--tinta); background: var(--fondo); line-height: 1.55; font-size: 16px; }
a { color: var(--azul-2); }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--titulo); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); } h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); } h3 { font-size: 1.15rem; font-family: var(--letra); font-weight: 700; }
.contenedor { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.boton { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .75em 1.2em; border-radius: 10px; border: 1px solid transparent; font: 600 15px var(--letra);
  cursor: pointer; text-decoration: none; background: var(--azul); color: #fff; transition: transform .08s, background .15s; white-space: nowrap; }
.boton:hover { background: var(--azul-2); } .boton:active { transform: translateY(1px); }
.boton.oro { background: var(--oro); color: #1d1406; } .boton.oro:hover { background: #d9a345; }
.boton.claro { background: #fff; color: var(--azul); border-color: var(--borde); } .boton.claro:hover { background: var(--azul-claro); }
.boton.wa { background: #1f8f4d; } .boton.wa:hover { background: #18773f; }
.boton.peligro { background: var(--rojo); } .boton.chico { padding: .45em .8em; font-size: 13px; }
.boton[disabled] { opacity: .5; cursor: not-allowed; }
.chip { display: inline-block; padding: .15em .6em; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--gris-claro); color: var(--gris); }
.chip.verde { background: var(--verde-claro); color: var(--verde); } .chip.amarillo { background: var(--amarillo-claro); color: var(--amarillo); } .chip.rojo { background: var(--rojo-claro); color: var(--rojo); }
.chip.azul { background: var(--azul-claro); color: var(--azul); } .chip.oro { background: var(--oro-claro); color: #7a5214; }
.tarjeta { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); padding: 20px; box-shadow: var(--sombra); }
.nota { font-size: 13px; color: var(--gris); }
.aviso { padding: 12px 14px; border-radius: 10px; background: var(--amarillo-claro); color: #5c3d00; font-size: 14px; border: 1px solid #f1d9a6; }
.aviso.azul { background: var(--azul-claro); color: var(--azul); border-color: #c8d7ea; } .aviso.rojo { background: var(--rojo-claro); color: var(--rojo); border-color: #f6c3bd; }
.aviso.verde { background: var(--verde-claro); color: var(--verde); border-color: #bfe3cd; }
.rejilla { display: grid; gap: 16px; } .r2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .r3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .r4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .r3, .r4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .r2, .r3, .r4 { grid-template-columns: 1fr; } }
input, select, textarea { font: 15px var(--letra); padding: .6em .7em; border: 1px solid var(--borde); border-radius: 9px; background: #fff; color: var(--tinta); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid #9cc0e8; border-color: var(--azul-2); }
label { display: block; font-size: 13px; font-weight: 600; color: var(--gris); margin: 0 0 4px; }
.campo { margin-bottom: 12px; } .fila { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
table { width: 100%; border-collapse: collapse; font-size: 14px; } th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--borde); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--gris); }
.tabla-scroll { overflow-x: auto; }
.oculto { display: none !important; }

/* ── Página de venta ── */
.barra { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--borde); }
.barra .contenedor { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 20px var(--titulo); color: var(--azul); text-decoration: none; }
.logo svg { width: 32px; height: 32px; }
.menu-venta { display: flex; gap: 18px; align-items: center; font-size: 14px; } .menu-venta a { text-decoration: none; color: var(--tinta); }
@media (max-width: 760px) { .menu-venta .solo-ancho { display: none; } }
.heroe { background: radial-gradient(1200px 500px at 85% -10%, #284f7d 0, transparent 60%), linear-gradient(160deg, #0e2a49, #12355b 55%, #173f69); color: #fff; padding: 72px 0 60px; overflow: hidden; }
.heroe .contenedor { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .heroe .contenedor { grid-template-columns: 1fr; } }
.heroe p.lema { font-size: 1.15rem; color: #d8e3f0; max-width: 34em; }
.heroe .sello { display: inline-block; color: var(--oro); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.cifras { display: flex; gap: 26px; margin-top: 28px; flex-wrap: wrap; } .cifras b { display: block; font: 700 1.9rem var(--titulo); color: #fff; } .cifras span { font-size: 13px; color: #b9c9db; }
.ficha-muestra { background: #fff; color: var(--tinta); border-radius: 16px; padding: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); transform: rotate(1.2deg); }
.ficha-muestra .renglon { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--borde); font-size: 14px; } .ficha-muestra .renglon:last-child { border: 0; }
.seccion { padding: 64px 0; } .seccion.blanca { background: #fff; } .seccion .intro { max-width: 46em; color: var(--gris); margin-bottom: 28px; }
.paso { counter-increment: paso; } .paso::before { content: counter(paso); display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--oro-claro); color: #7a5214; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 10px; }
.pasos { counter-reset: paso; }
.comparar td:nth-child(2) { color: var(--gris); } .comparar td:nth-child(3) { font-weight: 600; color: var(--azul); }
.precio b { font: 700 2rem var(--titulo); color: var(--azul); } .precio.destacado { border: 2px solid var(--oro); position: relative; }
.precio.destacado::after { content: 'El más pedido'; position: absolute; top: -12px; right: 16px; background: var(--oro); color: #1d1406; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; }
.precio ul { padding-left: 1.1em; font-size: 14px; color: var(--gris); }
details { background: #fff; border: 1px solid var(--borde); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; } summary { cursor: pointer; font-weight: 600; }
.barras .b { display: grid; grid-template-columns: 170px 1fr 52px; gap: 10px; align-items: center; font-size: 13px; margin: 3px 0; }
.barras .b i { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--azul-2), var(--oro)); min-width: 2px; }
.barras .b.cero span { color: #9aa4ae; }
@media (max-width: 600px) { .barras .b { grid-template-columns: 120px 1fr 40px; } }
.pie { background: #0d2238; color: #b9c9db; padding: 40px 0; font-size: 14px; } .pie a { color: #e6eef7; }
/* Chat de ventas */
.chat-boton { position: fixed; right: 16px; bottom: 16px; z-index: 40; border-radius: 99px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.chat { position: fixed; right: 16px; bottom: 76px; z-index: 41; width: min(380px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); overflow: hidden; }
.chat header { background: var(--azul); color: #fff; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; }
.chat header button { background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }
.chat .mensajes { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--fondo); }
.chat .m { max-width: 85%; padding: 8px 11px; border-radius: 12px; font-size: 14px; } .chat .m.yo { align-self: flex-end; background: var(--azul); color: #fff; } .chat .m.el { align-self: flex-start; background: #fff; border: 1px solid var(--borde); }
.chat form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--borde); }
.chat .atajos { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 10px 10px; } .chat .atajos button { font-size: 12px; padding: 4px 9px; border-radius: 99px; border: 1px solid var(--borde); background: #fff; cursor: pointer; }

/* ── App ── */
.app-barra { background: var(--azul); color: #fff; } .app-barra .contenedor { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 10px; }
.app-barra .logo { color: #fff; font-size: 18px; }
.app-menu { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; } .app-menu a { color: #dbe6f2; text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 8px; }
.app-menu a.activo, .app-menu a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.app-menu .contador { background: var(--oro); color: #1d1406; border-radius: 99px; font-size: 11px; padding: 0 6px; margin-left: 4px; font-weight: 700; }
@media (max-width: 760px) { .app-barra .contenedor { height: auto; flex-direction: column; align-items: flex-start; padding: 10px 16px; } .app-menu a { padding: 5px 7px; font-size: 13px; } }
main.app { padding: 22px 0 80px; }
.filtros { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; }
@media (max-width: 960px) { .filtros { grid-template-columns: repeat(3, minmax(0, 1fr)); } } @media (max-width: 560px) { .filtros { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lista { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); margin-top: 16px; }
.remate { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; transition: transform .1s, box-shadow .1s; }
.remate:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(16, 32, 48, .12); }
.remate .lugar { font-weight: 700; font-size: 17px; } .remate .monto { font: 700 1.25rem var(--titulo); color: var(--azul); }
.remate .pie-r { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--gris); }
.estrella { background: none; border: 0; font-size: 22px; cursor: pointer; color: #c3cad3; line-height: 1; } .estrella.si { color: var(--oro); }
.ficha h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.datos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.dato { background: var(--fondo); border-radius: 10px; padding: 10px 12px; } .dato small { display: block; color: var(--gris); font-size: 12px; } .dato b { font-size: 15px; word-break: break-word; }
.dato.duda { background: var(--amarillo-claro); }
.consignacion { border: 2px solid var(--oro); background: linear-gradient(180deg, #fffaf0, #fff); }
.consignacion .grande { font: 700 1.5rem var(--titulo); color: var(--azul); letter-spacing: .02em; }
.linea-tiempo { border-left: 3px solid var(--azul-claro); padding-left: 14px; } .linea-tiempo div { margin-bottom: 10px; font-size: 14px; }
.mapa { background: linear-gradient(180deg, #eaf1f8, #f6f9fc); border-radius: 12px; border: 1px solid var(--borde); }
.mapa circle { fill: var(--oro); fill-opacity: .75; stroke: var(--azul); stroke-width: .6; cursor: pointer; } .mapa text { font-size: 7px; fill: var(--gris); }
.semaforo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; } .semaforo i { width: 18px; height: 18px; border-radius: 50%; display: inline-block; }
.pestanas { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; } .pestanas button { border: 1px solid var(--borde); background: #fff; padding: 7px 12px; border-radius: 99px; cursor: pointer; font: 600 13px var(--letra); }
.pestanas button.activo { background: var(--azul); color: #fff; border-color: var(--azul); }
.tablero { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.tablero .col { background: var(--gris-claro); border-radius: 10px; padding: 8px; min-height: 120px; } .tablero .tar { background: #fff; border-radius: 8px; padding: 8px; margin-bottom: 6px; font-size: 13px; border: 1px solid var(--borde); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--tinta); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 60; font-size: 14px; max-width: calc(100vw - 32px); }
.modal-fondo { position: fixed; inset: 0; background: rgba(10, 20, 30, .45); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: #fff; border-radius: 14px; padding: 22px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; }
.resultado-calc td:last-child { text-align: right; font-variant-numeric: tabular-nums; } .resultado-calc tr.total td { font-weight: 700; border-top: 2px solid var(--tinta); }
.cargando { color: var(--gris); padding: 30px; text-align: center; }

/* ── Mapa con puntos (etapa 2) ── */
.mapa-vivo { position: relative; height: min(68vh, 560px); min-height: 340px; overflow: hidden; border-radius: var(--radio); background: #dfe8f1; touch-action: none; user-select: none; outline: none; }
.mapa-capa img { position: absolute; width: 256px; height: 256px; max-width: none; pointer-events: none; }
.mapa-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mapa-marcas { position: absolute; inset: 0; pointer-events: none; }
.marca { position: absolute; pointer-events: auto; border: 2px solid #fff; border-radius: 50%; color: #fff; font: 700 12px var(--letra); cursor: pointer; padding: 0; box-shadow: 0 1px 4px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; }
.marca.aprox { border-style: dashed; opacity: .85; }
.mapa-botones { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; }
.mapa-botones button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--borde); background: #fff; font: 700 20px var(--letra); cursor: pointer; box-shadow: var(--sombra); }
.mapa-globo { position: absolute; z-index: 3; width: 260px; max-height: 300px; overflow: auto; background: #fff; border-radius: 10px; padding: 10px 12px; box-shadow: 0 6px 24px rgba(0,0,0,.25); font-size: 14px; }
.mapa-globo .cerrar { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 20px; cursor: pointer; }
.mapa-globo .item { border-top: 1px solid var(--borde); padding: 6px 0; } .mapa-globo .item:first-of-type { border-top: 0; }
.mapa-atrib { position: absolute; right: 0; bottom: 0; background: rgba(255,255,255,.88); font-size: 11px; padding: 2px 6px; border-top-left-radius: 6px; }
.mapa-leyenda { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--gris); margin-top: 8px; }
.mapa-leyenda i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; border: 2px solid #fff; box-shadow: 0 0 0 1px #9aa; }
@media (max-width: 600px) { .mapa-vivo { height: 62vh; } .mapa-globo { width: calc(100% - 20px); left: 10px !important; } }
/* Fotos de la fuente oficial */
.remate .foto { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; background: var(--gris-claro); display: block; margin-bottom: 8px; }
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.galeria img { width: 100%; height: 130px; object-fit: cover; border-radius: 8px; background: var(--gris-claro); }
.chip.verde-osc { background: #dff2e7; color: #1f7a4d; }
