/* CazaMolinos — prueba de concepto
   Paleta: cielo de cierzo, tinta de pizarra y el rojo de la baliza de las góndolas como único acento. */
:root {
  --cielo: #E6EEF3;
  --cielo-2: #D3E0E8;
  --papel: #FFFFFF;
  --tinta: #14293B;
  --tinta-2: #4B6072;
  --linea: #C6D4DE;
  --baliza: #D3261C;
  --operativo: #2E7A4E;
  --repotenciado: #2A63A8;
  --prevista: #B9790B;
  --noche: #0E1C29;
  --f-texto: "Barlow", "Segoe UI", system-ui, sans-serif;
  --f-titulo: "Barlow Semi Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --r-s: 8px; --r-m: 14px; --r-l: 22px;
  --tab-h: 64px;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: var(--f-texto); color: var(--tinta); background: var(--cielo-2); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--baliza); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-titulo); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: .005em; }

/* ---------- escenario: teléfono + simulador en el PC, pantalla completa en el móvil ---------- */
.stage { height: 100%; }
.device { height: 100%; }
.app { position: relative; height: 100%; overflow: hidden; overflow: clip; background: var(--cielo); }
.sim { display: none; }
@media (min-width: 900px) {
  body { background: radial-gradient(1200px 700px at 30% 10%, #EFF4F7 0%, var(--cielo-2) 60%, #C3D3DE 100%); }
  .stage { display: flex; gap: 40px; align-items: center; justify-content: center; min-height: 100%; padding: 24px; }
  .device { width: var(--dev-w, 390px); height: var(--dev-h, 844px); flex: none; border-radius: 46px; padding: 11px; background: var(--tinta); box-shadow: 0 30px 60px -20px rgba(20, 41, 59, .45); }
  .app { border-radius: 36px; }
  .sim { display: block; width: 320px; max-height: calc(100vh - 48px); overflow: auto; background: var(--papel); border-radius: var(--r-l); padding: 22px 22px 18px; border: 1px solid var(--linea); }
  .sim h2 { font-size: 24px; }
  .sim-intro { margin: 4px 0 16px; color: var(--tinta-2); }
}

/* ---------- vistas ---------- */
.view { position: absolute; inset: 0 0 var(--tab-h) 0; z-index: 1; display: none; flex-direction: column; overflow: hidden; }
.view.is-active { display: flex; }
.view-head { padding: 22px 18px 8px; }
.view-head h1 { font-size: 34px; }
.view-head p { margin: 4px 0 0; color: var(--tinta-2); }

/* ---------- barra de pestañas ---------- */
.tabs { position: absolute; left: 0; right: 0; bottom: 0; height: var(--tab-h); display: grid; grid-template-columns: repeat(5, 1fr); background: var(--papel); border-top: 1px solid var(--linea); z-index: 40; padding-bottom: env(safe-area-inset-bottom); }
.tab { position: relative; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11.5px; padding: 0; white-space: nowrap; font-weight: 500; color: var(--tinta-2); }
.tab svg { width: 24px; height: 24px; }
.tab.is-active { color: var(--tinta); font-weight: 600; }
.tab.is-active::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--tinta); }
.badge { position: absolute; top: 9px; left: calc(50% + 8px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--baliza); color: #fff; font-size: 11px; line-height: 17px; text-align: center; }

/* ---------- mapa ---------- */
#map { position: absolute; inset: 0; background: #DDE6EC; }
.leaflet-container { font-family: var(--f-texto); }
.map-top { position: absolute; top: 0; left: 0; right: 0; z-index: 500; padding: 14px 12px 0; pointer-events: none; }
.map-top > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-titulo); font-weight: 700; font-size: 22px; padding: 2px 4px 8px; text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.brand-beacon { width: 10px; height: 10px; border-radius: 50%; background: var(--baliza); box-shadow: 0 0 0 4px rgba(211, 38, 28, .18); animation: beacon 2s ease-in-out infinite; }
@keyframes beacon { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.search { position: relative; }
.search input { width: 100%; height: 46px; border-radius: 23px; border: 1px solid var(--linea); background: var(--papel); padding: 0 18px; box-shadow: 0 6px 18px -10px rgba(20, 41, 59, .5); }
.search-res { position: absolute; left: 0; right: 0; top: 52px; margin: 0; padding: 6px; list-style: none; background: var(--papel); border-radius: var(--r-m); border: 1px solid var(--linea); max-height: 50vh; overflow: auto; box-shadow: 0 14px 30px -14px rgba(20, 41, 59, .5); }
.search-res li button { width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: var(--r-s); display: block; }
.search-res li button:hover, .search-res li button:focus-visible { background: var(--cielo); }
.search-res small { display: block; color: var(--tinta-2); }
.fab { position: absolute; right: 12px; bottom: 132px; z-index: 500; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--linea); background: var(--papel); color: var(--tinta); display: grid; place-items: center; box-shadow: 0 6px 18px -8px rgba(20, 41, 59, .5); }
.pick-hint { position: absolute; top: 120px; left: 50%; transform: translateX(-50%); z-index: 600; background: var(--tinta); color: #fff; padding: 8px 14px; border-radius: 20px; font-weight: 600; font-size: 14px; }
.leaflet-control-attribution { font-size: 10px; }
.leaflet-bottom.leaflet-right { bottom: 112px; }

.me-marker { width: 22px; height: 22px; border-radius: 50%; background: var(--baliza); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(211, 38, 28, .2); }

/* cerca de ti */
.near { position: absolute; left: 0; right: 0; bottom: 0; z-index: 520; background: var(--papel); border-radius: var(--r-l) var(--r-l) 0 0; box-shadow: 0 -10px 30px -18px rgba(20, 41, 59, .6); max-height: 62%; display: flex; flex-direction: column; }
.near-handle { border: 0; background: none; padding: 8px 18px 14px; text-align: left; font-family: var(--f-titulo); font-weight: 700; font-size: 19px; display: flex; flex-direction: column; gap: 8px; }
.grip { align-self: center; width: 38px; height: 4px; border-radius: 2px; background: var(--linea); }
.near-list { list-style: none; margin: 0; padding: 0 10px 10px; overflow: auto; display: none; }
.near.is-open .near-list { display: block; }
.near-list li button, .plist li button { width: 100%; border: 0; background: none; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 8px; border-bottom: 1px solid var(--cielo-2); }
.near-list li button:hover, .plist li button:hover { background: var(--cielo); }
.near-list b, .plist b { font-weight: 600; }
.near-list small, .plist small { color: var(--tinta-2); grid-column: 1; }
.dist { grid-row: 1 / span 2; grid-column: 2; align-self: center; text-align: right; font-family: var(--f-titulo); font-weight: 600; font-size: 17px; }
.dist small { display: block; font-family: var(--f-texto); font-weight: 500; font-size: 12px; }

/* ---------- ¿qué veo? ---------- */
#v-veo { background: var(--noche); color: #fff; }
.hud-tape { position: relative; height: 44px; overflow: hidden; background: rgba(14, 28, 41, .92); border-bottom: 1px solid rgba(255, 255, 255, .12); flex: none; }
.tape-inner { position: absolute; top: 0; bottom: 0; left: 0; will-change: transform; }
.tape-inner span { position: absolute; bottom: 6px; transform: translateX(-50%); font-family: var(--f-titulo); font-weight: 600; font-size: 13px; color: rgba(255, 255, 255, .75); }
.tape-inner span.card { color: #fff; font-size: 16px; }
.tape-inner i { position: absolute; top: 0; width: 1px; height: 9px; background: rgba(255, 255, 255, .45); }
.tape-inner i.big { height: 15px; background: #fff; }
.tape-needle { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--baliza); }
.tape-needle::after { content: attr(data-deg); }
.viewport { position: relative; flex: 1; overflow: hidden; touch-action: none; cursor: grab; }
.viewport:active { cursor: grabbing; }
#cam, #scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.labels { position: absolute; inset: 0; pointer-events: none; }
.vlabel { position: absolute; transform: translate(-50%, -100%); pointer-events: auto; border: 0; background: rgba(255, 255, 255, .94); color: var(--tinta); border-radius: 12px; padding: 5px 10px 6px; font-size: 13px; line-height: 1.2; text-align: left; white-space: nowrap; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .6); }
.vlabel b { display: block; font-family: var(--f-titulo); font-size: 15px; }
.vlabel::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: rgba(255, 255, 255, .94); }
.vlabel.is-top { background: var(--baliza); color: #fff; }
.vlabel.is-top::after { border-top-color: var(--baliza); }
.zoom { position: absolute; top: 8px; right: 10px; display: flex; gap: 4px; }
.zoom button { min-width: 38px; height: 30px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, .45); background: rgba(14, 28, 41, .5); color: #fff; font-weight: 600; font-size: 13px; }
.zoom button[aria-pressed="true"] { background: #fff; color: var(--tinta); }
.veo-mode { position: absolute; top: 10px; left: 12px; font-size: 12px; color: rgba(255, 255, 255, .8); background: rgba(14, 28, 41, .55); padding: 3px 9px; border-radius: 10px; }
.veo-controls { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; align-items: center; gap: 34px; pointer-events: none; }
.veo-controls > * { pointer-events: auto; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(14, 28, 41, .5); color: #fff; display: grid; place-items: center; }
.shutter { width: 66px; height: 66px; border-radius: 50%; border: 4px solid #fff; background: transparent; padding: 4px; }
.shutter span { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; }
.shutter:active span { background: var(--baliza); }
.veo-result { flex: none; min-height: 104px; background: var(--papel); color: var(--tinta); border-radius: var(--r-l) var(--r-l) 0 0; padding: 14px 16px 12px; }
.veo-result h3 { font-size: 20px; }
.veo-result p { margin: 2px 0 0; color: var(--tinta-2); font-size: 14px; }
.veo-top { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.veo-others { margin: 8px 0 0; padding: 0; list-style: none; display: flex; gap: 6px; flex-wrap: wrap; }
.veo-others button { border: 1px solid var(--linea); background: var(--cielo); border-radius: 14px; padding: 3px 10px; font-size: 13px; }

/* ---------- ficha ---------- */
.sheet { position: absolute; inset: 0 0 var(--tab-h) 0; z-index: 30; background: var(--cielo); transform: translateY(102%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; }
.sheet.is-open { transform: none; }
.sheet-bar { display: flex; align-items: center; gap: 8px; padding: 10px 10px 0; flex: none; }
.back { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--papel); display: grid; place-items: center; }
.sheet-kind { font-weight: 600; color: var(--tinta-2); font-size: 14px; }
.sheet-body { overflow: auto; flex: 1; padding: 6px 16px 28px; }
.f-head h2 { font-size: 32px; margin-top: 6px; }
.f-place { color: var(--tinta-2); margin: 4px 0 0; }
.estado { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 12px; background: var(--papel); margin-top: 10px; }
.estado::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--operativo)); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--linea); border: 1px solid var(--linea); border-radius: var(--r-m); overflow: hidden; margin: 16px 0 0; }
.fact { background: var(--papel); padding: 10px 12px 11px; position: relative; min-width: 0; }
.fact dt { font-size: 12.5px; color: var(--tinta-2); }
.fact dd { margin: 1px 0 0; font-family: var(--f-titulo); font-weight: 600; font-size: 21px; line-height: 1.15; overflow-wrap: anywhere; }
.fact dd a, .linkish { color: var(--repotenciado); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; background: none; border: 0; padding: 0; font: inherit; text-align: left; }
.fact.wide { grid-column: span 2; }
.fact dd small { font-family: var(--f-texto); font-weight: 500; font-size: 13px; color: var(--tinta-2); display: block; }
.flag { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; color: #9AAAB7; display: grid; place-items: center; }
.flag:hover { background: var(--cielo); color: var(--baliza); }
.block { background: var(--papel); border-radius: var(--r-m); padding: 14px 14px 16px; margin-top: 14px; }
.block h3 { font-size: 20px; margin-bottom: 8px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 8px; }
.block h3 small { font-family: var(--f-texto); font-weight: 500; font-size: 13px; color: var(--tinta-2); }
.block p { margin: 0 0 8px; }
.muted { color: var(--tinta-2); font-size: 13.5px; }
.curioso { background: var(--tinta); color: #fff; }
.curioso h3 { color: #fff; }
.curioso p { font-size: 16px; line-height: 1.5; }
.curioso .muted { color: rgba(255, 255, 255, .7); }
.curioso a { color: #fff; }
.silueta { display: grid; grid-template-columns: 1fr 132px; gap: 10px; align-items: end; }
.silueta svg { width: 100%; height: auto; display: block; }
.alturas { display: grid; gap: 8px; font-size: 14px; }
.alturas b { display: block; font-family: var(--f-titulo); font-size: 22px; line-height: 1; }
.prod-big { font-family: var(--f-titulo); font-weight: 700; font-size: 40px; line-height: 1; }
.prod-big small { font-size: 18px; font-weight: 600; color: var(--tinta-2); }
.equiv { list-style: none; margin: 12px 0 6px; padding: 0; display: grid; gap: 6px; }
.equiv li { display: grid; grid-template-columns: 28px 1fr; align-items: center; }
.equiv svg { width: 20px; height: 20px; color: var(--tinta-2); }
.repo { display: grid; grid-template-columns: 1fr 24px 1fr; gap: 6px; align-items: center; margin: 4px 0 10px; }
.repo div { background: var(--cielo); border-radius: var(--r-s); padding: 8px 10px; font-size: 14px; }
.repo div b { display: block; font-family: var(--f-titulo); font-size: 17px; }
.repo .arrow { text-align: center; color: var(--tinta-2); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 4px 0 10px; }
.gallery button { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 6px; overflow: hidden; background: var(--cielo-2); }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .25); }
.empty { border: 1.5px dashed var(--linea); border-radius: var(--r-m); padding: 14px; color: var(--tinta-2); text-align: center; font-size: 14px; margin: 4px 0 10px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-primary, .btn { height: 42px; border-radius: 21px; padding: 0 18px; font-weight: 600; border: 1px solid var(--tinta); }
.btn-primary { background: var(--tinta); color: #fff; }
.btn { background: var(--papel); color: var(--tinta); }
.btn-quiet { background: none; border: 0; color: var(--tinta-2); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; font-size: 14px; }
.btn-danger { border-color: var(--baliza); color: var(--baliza); }
.msgs { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.msg { background: var(--cielo); border-radius: 4px var(--r-m) var(--r-m) var(--r-m); padding: 8px 11px 9px; }
.msg-meta { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; color: var(--tinta-2); }
.msg-meta b { color: var(--tinta); font-weight: 600; }
.msg p { margin: 2px 0 0; }
.ctx { display: inline-block; border: 0; font-size: 12px; font-weight: 600; border-radius: 9px; padding: 1px 8px; margin-top: 4px; background: var(--papel); color: var(--tinta); cursor: pointer; }
.ctx[data-tipo="parque"]::before { content: "Parque: "; font-weight: 500; color: var(--tinta-2); }
.ctx[data-tipo="modelo"]::before { content: "Modelo: "; font-weight: 500; color: var(--tinta-2); }
.inline-composer { display: flex; gap: 6px; }
.inline-composer input { flex: 1; min-width: 0; height: 42px; border-radius: 21px; border: 1px solid var(--linea); padding: 0 14px; background: var(--cielo); }
.plist { list-style: none; margin: 0; padding: 0; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 0; }
.specs dt { font-size: 12.5px; color: var(--tinta-2); }
.specs dd { margin: 0; font-weight: 600; }
.curve svg { width: 100%; height: auto; display: block; }
.fuente { font-size: 12.5px; color: var(--tinta-2); margin-top: 14px; overflow-wrap: anywhere; }

/* ---------- chat ---------- */
.chips { display: flex; gap: 6px; padding: 4px 16px 10px; overflow-x: auto; flex: none; }
.chip { flex: none; height: 32px; border-radius: 16px; border: 1px solid var(--linea); background: var(--papel); padding: 0 13px; font-size: 13.5px; font-weight: 500; }
.chip[aria-selected="true"] { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.chat { list-style: none; margin: 0; padding: 4px 16px 12px; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.chat .msg { background: var(--papel); }
.chat .msg.mine { background: #DCE8F4; align-self: flex-end; border-radius: var(--r-m) 4px var(--r-m) var(--r-m); max-width: 88%; }
.chat .msg { max-width: 88%; }
.day { align-self: center; font-size: 12px; color: var(--tinta-2); }
.composer { flex: none; background: var(--papel); border-top: 1px solid var(--linea); padding: 8px 12px 10px; }
.composer-ctx { font-size: 12.5px; color: var(--tinta-2); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.composer-ctx:empty { display: none; }
.composer-row { display: flex; gap: 8px; }
.composer-row input { flex: 1; min-width: 0; height: 42px; border-radius: 21px; border: 1px solid var(--linea); padding: 0 14px; background: var(--cielo); }

/* ---------- más ---------- */
.mas { overflow: auto; padding: 0 16px 24px; }
.mas .block:first-child { margin-top: 4px; }
.field { display: grid; gap: 4px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea { border: 1px solid var(--linea); border-radius: var(--r-s); padding: 9px 11px; background: var(--papel); width: 100%; }
.field textarea { min-height: 76px; resize: vertical; }
.field .hint { font-size: 12.5px; color: var(--tinta-2); }
.range-row { display: grid; grid-template-columns: 1fr 64px; gap: 10px; align-items: center; }
.range-row input[type="number"] { padding: 6px 8px; }
input[type="range"] { accent-color: var(--tinta); width: 100%; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.presets button { border: 1px solid var(--linea); background: var(--cielo); border-radius: 14px; padding: 4px 11px; font-size: 13px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0 12px; font-weight: 600; font-size: 14px; }
.switch input { width: 42px; height: 24px; accent-color: var(--tinta); }
.rep-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rep-list li { border: 1px solid var(--linea); border-radius: var(--r-s); padding: 8px 10px; font-size: 14px; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; border-radius: 8px; padding: 1px 7px; background: #F6E8C9; color: #6C4706; }
.tag.ok { background: #D8EEDF; color: #1F5A37; }
.tag.no { background: #F4D9D6; color: #7D1B14; }

/* ---------- modal, visor, aviso ---------- */
.modal { position: absolute; inset: 0; z-index: 80; background: rgba(14, 28, 41, .5); display: flex; align-items: flex-end; }
.modal[hidden] { display: none; }
.modal-card { width: 100%; max-height: 92%; overflow: auto; background: var(--papel); border-radius: var(--r-l) var(--r-l) 0 0; padding: 18px 16px 18px; }
.modal-card h2 { font-size: 24px; margin-bottom: 4px; }
.modal-card > p { color: var(--tinta-2); margin: 0 0 14px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.preview { width: 100%; max-height: 220px; object-fit: contain; background: var(--cielo); border-radius: var(--r-s); margin-bottom: 12px; display: block; }
.lightbox { position: absolute; inset: 0; z-index: 90; background: rgba(5, 12, 18, .94); color: #fff; display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lightbox .lb-media { flex: 1; display: grid; place-items: center; min-height: 0; padding: 8px; }
.lightbox img, .lightbox video { max-width: 100%; max-height: 100%; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; gap: 10px; }
.lb-bar .btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.lb-caption { padding: 0 16px 18px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.toast { position: absolute; left: 50%; bottom: calc(var(--tab-h) + 14px); transform: translate(-50%, 20px); z-index: 100; background: var(--tinta); color: #fff; padding: 10px 16px; border-radius: 20px; font-weight: 500; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: 90%; text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .brand-beacon { animation: none; }
  .sheet, .toast { transition: none; }
}

/* minificha del mapa */
.leaflet-tooltip.mini { padding: 0; border: 0; border-radius: 12px; box-shadow: 0 10px 26px -10px rgba(20, 41, 59, .55); background: var(--papel); }
.leaflet-tooltip.mini::before { border-top-color: var(--papel); }
.mini-card { display: grid; gap: 2px; padding: 9px 12px 10px; min-width: 190px; max-width: 250px; white-space: normal; font-family: var(--f-texto); font-size: 13px; color: var(--tinta); }
.mini-card b { font-family: var(--f-titulo); font-size: 17px; line-height: 1.15; }
.mini-estado { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 12px; }
.mini-estado::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.mini-dist { color: var(--tinta-2); }
.mini-hint { color: var(--tinta-2); font-size: 11.5px; margin-top: 3px; }
/* tamaño real */
svg.tamano { width: 100%; height: auto; display: block; margin: 2px 0 6px; }
details.calc { margin-top: 6px; }
details.calc summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--tinta-2); }
/* captura de foto y vídeo */
.capmode { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); display: flex; gap: 2px; background: rgba(14, 28, 41, .55); border-radius: 16px; padding: 3px; }
.capmode button { border: 0; background: none; color: rgba(255, 255, 255, .8); font-weight: 600; font-size: 13px; padding: 4px 12px; border-radius: 13px; }
.capmode button[aria-pressed="true"] { background: #fff; color: var(--tinta); }
.veo-controls { gap: 18px; }
.round-spacer { width: 44px; }
.shutter.is-video span { background: var(--baliza); }
.shutter.is-rec span { border-radius: 8px; transform: scale(.55); background: var(--baliza); transition: transform .15s; }
.rec-time { position: absolute; top: 44px; left: 50%; transform: translateX(-50%); background: var(--baliza); color: #fff; font-weight: 600; font-size: 13px; padding: 3px 10px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.rec-time[hidden] { display: none; }
.block a { color: var(--repotenciado); text-underline-offset: 3px; }

/* ficha de modelo: foto de referencia */
.hero { margin: 4px -16px 0; position: relative; background: var(--cielo-2); }
.hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; display: block; background: var(--cielo-2); }
.hero-img { border: 0; padding: 0; display: block; width: 100%; background: none; cursor: zoom-in; }
.hero figcaption { font-size: 11.5px; color: var(--tinta-2); padding: 5px 16px 0; }
.hero figcaption a { color: var(--tinta-2); }
.hero-empty { aspect-ratio: 16 / 7; display: grid; place-items: center; padding: 16px; text-align: center; background: repeating-linear-gradient(135deg, var(--cielo) 0 12px, var(--cielo-2) 12px 24px); }
.hero-empty b { display: block; font-family: var(--f-titulo); font-size: 19px; }
.hero-empty span { font-size: 13.5px; color: var(--tinta-2); }
.m-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.m-head .btn { height: 38px; padding: 0 14px; font-size: 14px; }
/* miniatura del modelo en la ficha de parque */
.mthumbs { display: flex; gap: 6px; margin: 4px 0 6px; }
.mthumb { width: 64px; height: 48px; border: 1px solid var(--linea); border-radius: 6px; overflow: hidden; padding: 0; background: var(--cielo-2); }
.mthumb img { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--cielo-2); }
/* ¿Qué veo?: confirmar modelo */
.ident { margin-top: 10px; border-top: 1px solid var(--cielo-2); padding-top: 8px; }
.ident-q { font-size: 13.5px; font-weight: 600; margin: 0 0 6px !important; color: var(--tinta) !important; }
.ident-row { display: flex; gap: 8px; overflow-x: auto; }
.ident-m { flex: none; display: grid; gap: 3px; width: 92px; border: 1px solid var(--linea); border-radius: 10px; background: var(--papel); padding: 4px 4px 6px; font-size: 12.5px; font-weight: 600; text-align: center; }
.ident-m img, .ident-m .noimg { width: 100%; height: 80px; object-fit: contain; border-radius: 6px; display: grid; place-items: center; background: var(--cielo); color: var(--tinta-2); font-weight: 500; }
.ident-m:hover { border-color: var(--tinta); }
.hero figcaption b.fam{display:block;font-weight:600;color:var(--ink,#1d2b36);margin-bottom:2px}
.curioso ul.curios { margin: 8px 0 0; padding-left: 18px; } .curioso ul.curios li { margin: 6px 0; }
.veo-start { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 6; border: 0; border-radius: 999px; padding: 14px 22px; font: 600 16px var(--f-texto, system-ui); background: var(--baliza); color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.veo-start[hidden] { display: none; }
.publicada .sim { display: none !important; }
.leaflet-tile-pane { filter: saturate(.6) brightness(1.04); }
/* etiquetas de parque en el mapa */
.plabel-wrap { background: none; border: 0; }
.plabel { box-sizing: border-box; width: 100%; height: 100%; padding: 2px 6px; background: rgba(255, 255, 255, .93); border: 1px solid var(--linea); border-radius: 6px; box-shadow: 0 1px 3px rgba(20, 41, 59, .18); font: 600 10.5px/1.2 var(--f-texto); color: var(--tinta); white-space: nowrap; text-align: center; overflow: hidden; cursor: pointer; }
.plabel small { display: block; font: 500 9.5px/1.2 var(--f-texto); color: var(--tinta-2); }
.veo-forzar { position: absolute; left: 12px; top: 48px; z-index: 6; border: 0; border-radius: 999px; padding: 6px 12px; font: 600 12.5px var(--f-texto); background: rgba(255, 255, 255, .92); color: var(--tinta); }
.veo-forzar[hidden] { display: none; }
.veo-mode { max-width: calc(100% - 160px); }
.veo-result[hidden] { display: none; }
.veo-result .veo-top { grid-template-columns: 1fr auto auto; }
.veo-close { flex: none; width: 34px; height: 34px; margin-left: 6px; border: 0; border-radius: 50%; background: var(--cielo); color: var(--tinta); font-size: 22px; line-height: 1; }
/* ---------- marca ---------- */
.brand { padding: 2px 4px 8px; }
.brand-logo { display: block; height: 30px; width: auto; filter: drop-shadow(0 1px 1px rgba(255, 255, 255, .9)); }
.acerca { position: relative; }
.acerca-ico { float: right; width: 56px; height: 56px; margin: -4px 0 4px 10px; }
/* carátula de inicio */
.splash { position: absolute; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 32px 28px calc(32px + env(safe-area-inset-bottom)); background: #fff; text-align: center; cursor: pointer; transition: opacity .4s ease; }
.splash.out { opacity: 0; pointer-events: none; }
.splash-logo { width: min(86%, 380px); height: auto; animation: splashIn .7s ease-out both; }
.splash-lema { margin: 0; max-width: 300px; font: 500 18px/1.35 var(--f-texto); color: #001E4A; animation: splashIn .7s .15s ease-out both; }
.splash-tap { position: absolute; bottom: calc(28px + env(safe-area-inset-bottom)); margin: 0; font-size: 13px; color: #019B8F; letter-spacing: .02em; }
@keyframes splashIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .splash-logo, .splash-lema { animation: none; } .splash { transition: none; } }

/* ---------- ayuda: botón y recorrido guiado ---------- */
.help-fab { position: absolute; z-index: 45; top: 7px; right: 8px; height: 30px; border-radius: 15px; border: 1px solid rgba(229, 38, 28, .22); background: rgba(255, 255, 255, .95); color: #E5261C; display: inline-flex; align-items: center; gap: 5px; padding: 0 11px 0 6px; font: 600 13.5px/1 var(--f-texto); letter-spacing: .01em; box-shadow: 0 4px 12px -6px rgba(0, 30, 74, .55); transition: transform .15s, opacity .2s; }
.help-fab:active { transform: scale(.92); }
.app[data-view="mapa"] .help-fab { top: 17px; right: 12px; }
.app[data-view="chat"] .help-fab, .app[data-view="mas"] .help-fab, .app[data-view="cazadores"] .help-fab { top: 22px; right: 16px; }
.sheet.is-open ~ .help-fab { top: 10px; right: 12px; }
.touring .help-fab { z-index: 151; pointer-events: none; }

.tour { position: absolute; inset: 0; z-index: 150; opacity: 0; transition: opacity .25s ease; }
.tour.is-on { opacity: 1; }
.tour-spot { position: absolute; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(0, 22, 52, .68); transition: left .38s cubic-bezier(.2, .8, .2, 1), top .38s cubic-bezier(.2, .8, .2, 1), width .38s cubic-bezier(.2, .8, .2, 1), height .38s cubic-bezier(.2, .8, .2, 1), border-radius .38s; pointer-events: none; }
.tour-spot.is-on::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid #019B8F; animation: tourPulse 1.8s ease-out infinite; }
@keyframes tourPulse { 0% { box-shadow: 0 0 0 0 rgba(1, 155, 143, .55); } 70% { box-shadow: 0 0 0 12px rgba(1, 155, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(1, 155, 143, 0); } }
.touring .tabs { z-index: 152; }
.touring .tab { opacity: .38; transition: opacity .25s; }
.touring .tab.tour-tab { opacity: 1; color: #019B8F; }
.touring .tab.tour-tab-dot { opacity: 1; }

.tour-card { position: absolute; background: #fff; color: #001E4A; border-radius: 16px; padding: 11px 13px 10px; box-shadow: 0 24px 48px -20px rgba(0, 10, 30, .7); transition: top .38s cubic-bezier(.2, .8, .2, 1), left .38s cubic-bezier(.2, .8, .2, 1), opacity .2s, transform .2s; }
.tour-card.is-moving { opacity: 0; transform: translateY(6px); }
.tour-card.is-intro { text-align: center; padding: 26px 22px 16px; }
.tour-arrow { display: none; position: absolute; left: var(--ax, 50%); width: 12px; height: 12px; margin-left: -6px; background: #fff; transform: rotate(45deg); border-radius: 3px; }
.tour-card.arrow-up .tour-arrow { display: block; top: -5px; }
.tour-card.arrow-down .tour-arrow { display: block; bottom: -5px; }
.tour-eye { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.te-ico { width: 21px; height: 21px; border-radius: 6px; background: #E3F4F2; color: #019B8F; display: grid; place-items: center; }
.te-ico svg { width: 14px; height: 14px; }
.te-sec { font-family: var(--f-titulo); font-weight: 700; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #019B8F; }
.te-dots { margin-left: auto; display: flex; gap: 5px; }
.te-dots i { width: 6px; height: 6px; border-radius: 3px; background: #D5DEE6; transition: width .25s, background .25s; }
.te-dots i.done { background: #8FCFC9; }
.te-dots i.on { width: 18px; background: #019B8F; }
.tour-body h2 { font-size: 18px; color: #001E4A; }
.tour-body p { margin: 3px 0 0; color: var(--tinta-2); font-size: 13.5px; line-height: 1.38; }
.tour-logo { display: block; margin: 0 auto 12px; width: 64px; height: 64px; }
.is-intro .tour-body h2 { font-size: 25px; }
.tour-hints { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px; }
.tour-hints li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; line-height: 1.25; color: #001E4A; font-weight: 500; }
.th-ico { flex: none; width: 24px; height: 24px; border-radius: 7px; background: #F0F4F8; color: #001E4A; display: grid; place-items: center; }
.th-ico svg { width: 15px; height: 15px; }
.tour-flow { display: flex; align-items: center; gap: 5px; margin-top: 8px; color: #8A9BAB; flex-wrap: wrap; }
.tour-flow .tf { font-size: 11.5px; font-weight: 600; color: #001E4A; background: #F0F4F8; border-radius: 7px; padding: 3px 7px; }
.tour-flow .tf-lab { background: #fff; border: 1px solid var(--linea); box-shadow: 0 1px 3px rgba(20, 41, 59, .18); }
.tour-alias { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.tour-alias input { flex: 1; min-width: 0; height: 34px; border: 1.5px solid var(--linea); border-radius: 10px; padding: 0 10px; font-size: 14px; background: #fff; }
.tour-alias input:focus { outline: none; border-color: #019B8F; box-shadow: 0 0 0 3px rgba(1, 155, 143, .18); }
.tour-small { font-size: 11.5px !important; margin-top: 4px !important; }
.tour-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 8px; }
.is-intro .tour-foot { flex-direction: column-reverse; gap: 6px; margin-top: 20px; }
.tour-skip { border: 0; background: none; color: var(--tinta-2); font-weight: 500; font-size: 13px; padding: 6px 2px; }
.tour-nav { display: flex; align-items: center; gap: 8px; }
.is-intro .tour-nav { width: 100%; }
.tour-back { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--linea); background: #fff; color: #001E4A; display: grid; place-items: center; padding: 0; }
.tour-ok { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 14px; border: 0; border-radius: 16px; background: #001E4A; color: #fff; font-weight: 600; font-size: 13.5px; }
.is-intro .tour-ok { width: 100%; height: 46px; border-radius: 23px; font-size: 16px; }
.tour-ok:active { background: #019B8F; }
.tour-card button:focus-visible, .help-fab:focus-visible { outline: 2.5px solid #019B8F; outline-offset: 2px; }
.tour-dot { position: absolute; z-index: 153; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #E5261C; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: left .38s cubic-bezier(.2, .8, .2, 1), top .38s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.tour-dot.is-on { opacity: 1; animation: tourBlink 1.1s ease-in-out infinite; }
.tour-dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #E5261C; animation: tourRing 1.1s ease-out infinite; }
@keyframes tourBlink { 0%, 100% { background: #E5261C; } 50% { background: #FF8A80; } }
@keyframes tourRing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .tour, .tour-spot, .tour-card, .tour-dot { transition: none; }
  .tour-dot.is-on, .tour-dot::after { animation: none; }
  .tour-spot.is-on::after { animation: none; }
}

/* ---------- cazadores: ranking y puntos ---------- */
#v-cazadores .view-head { padding-bottom: 10px; }
.seg { flex: none; margin: 0 16px; display: grid; grid-template-columns: 1fr 1fr; background: #D5E0E8; border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: none; font-weight: 600; font-size: 14px; padding: 8px 0; border-radius: 10px; color: var(--tinta-2); }
.seg button[aria-selected="true"] { background: #fff; color: #001E4A; box-shadow: 0 1px 3px rgba(20, 41, 59, .15); }
.cz { flex: 1; overflow: auto; padding: 0 0 14px; position: relative; }
.cz-load { text-align: center; color: var(--tinta-2); padding: 40px 0; }
.cz-pad { margin: 4px 16px 8px; }
.cz-chips { padding: 12px 16px 4px; }
.cz-empty { margin: 22px 16px; background: #fff; border: 1px solid var(--linea); border-radius: 16px; padding: 22px 18px; text-align: center; }
.cz-empty b { font-family: var(--f-titulo); font-size: 20px; color: #001E4A; }
.cz-empty p { color: var(--tinta-2); margin: 6px 0 14px; }
.lnk { border: 0; background: none; padding: 0; color: #019B8F; font-weight: 600; font-size: 13px; }
.podio { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; padding: 14px 16px 0; }
.pd { text-align: center; min-width: 0; }
.pd .av { width: 50px; height: 50px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; font: 700 18px var(--f-titulo); color: #fff; position: relative; border: 3px solid #fff; box-shadow: 0 4px 10px -4px rgba(0, 30, 74, .5); }
.pd.p1 .av { width: 62px; height: 62px; font-size: 22px; }
.medal { position: absolute; bottom: -5px; right: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--f-texto); color: #fff; border: 2px solid #fff; }
.medal.m1 { background: #C9971C; } .medal.m2 { background: #8C9BA8; } .medal.m3 { background: #B06A3B; }
.pd .nm { font-weight: 600; font-size: 14px; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd .lv { font-size: 11px; color: var(--tinta-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd .pt { font: 700 16px var(--f-titulo); color: #001E4A; }
.pd .base { margin-top: 6px; border-radius: 10px 10px 0 0; background: linear-gradient(#fff, #F3F7FA); border: 1px solid var(--linea); border-bottom: 0; }
.pd.p1 .base { height: 46px; } .pd.p2 .base { height: 30px; } .pd.p3 .base { height: 20px; }
.pd.es-yo .nm { color: #019B8F; }
.cz-list { list-style: none; margin: 0 12px; padding: 0; background: #fff; border-radius: 16px; border: 1px solid var(--linea); overflow: hidden; }
.podio + .cz-list { border-top-left-radius: 12px; border-top-right-radius: 12px; }
.cz-list .li { display: grid; grid-template-columns: 24px 34px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px solid #E6EDF2; }
.cz-list .li:first-child { border-top: 0; }
.cz-list .n { font: 700 15px var(--f-titulo); color: var(--tinta-2); text-align: center; }
.cz-list .a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 14px var(--f-titulo); }
.cz-list .t { min-width: 0; }
.cz-list .t b { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz-list .t b em { font-style: normal; font-weight: 500; color: #019B8F; }
.cz-list .t small { color: var(--tinta-2); font-size: 12px; }
.cz-list .p { font: 700 16px var(--f-titulo); color: #001E4A; text-align: right; }
.cz-list .p small { display: block; font: 500 11px var(--f-texto); color: var(--tinta-2); }
.cz-list .li.es-yo { background: #E3F4F2; }
.me-row { position: sticky; bottom: 0; margin-top: 12px; padding: 0 0 2px; }
.me-row .cz-list { background: #001E4A; border-color: #001E4A; box-shadow: 0 12px 26px -12px rgba(0, 30, 74, .8); }
.me-row .cz-list .li { background: none; }
.me-row .cz-list .n, .me-row .cz-list .t small, .me-row .cz-list .p small { color: #9FB3CC; }
.me-row .cz-list .t b, .me-row .cz-list .p { color: #fff; }
.me-row .cz-list .t b em { color: #3FD1C3; }
.me-row > p { margin: 0 12px; background: #fff; border: 1px solid var(--linea); border-radius: 14px; padding: 10px 14px; font-size: 13.5px; color: var(--tinta-2); box-shadow: 0 10px 22px -14px rgba(0, 30, 74, .6); }
.lvl { margin: 12px 12px 0; background: linear-gradient(135deg, #001E4A 0%, #06386B 100%); color: #fff; border-radius: 18px; padding: 14px 16px; position: relative; overflow: hidden; }
.lvl::after { content: ""; position: absolute; right: -30px; top: -30px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(1, 155, 143, .45), transparent 70%); pointer-events: none; }
.lvl-top { display: flex; gap: 12px; align-items: center; }
.shield { width: 48px; height: 48px; flex: none; }
.lvl-n { min-width: 0; }
.lvl-n small { color: #9FB3CC; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.lvl-n h2 { font-size: 22px; color: #fff; }
.lvl-pts { margin-left: auto; text-align: right; font: 700 30px/1 var(--f-titulo); position: relative; z-index: 1; }
.lvl-pts span { display: block; font: 500 11px var(--f-texto); color: #9FB3CC; white-space: nowrap; margin-top: 3px; }
.lvl .bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .18); margin-top: 12px; overflow: hidden; }
.lvl .bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #019B8F, #3FD1C3); }
.lvl .nx { display: flex; justify-content: space-between; font-size: 12px; color: #C8D5E4; margin-top: 5px; gap: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 12px 0; }
.st { background: #fff; border: 1px solid var(--linea); border-radius: 14px; padding: 6px 10px; text-align: center; }
.st b { display: block; font: 700 22px var(--f-titulo); color: #001E4A; }
.st span { font-size: 12px; color: var(--tinta-2); }
.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 14px 16px 7px; }
.sec h3 { font-size: 18px; color: #001E4A; }
.reto { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; width: calc(100% - 24px); margin: 0 12px 7px; background: #fff; border: 1px solid var(--linea); border-radius: 14px; padding: 9px 11px; text-align: left; }
.reto:active { background: #F3F7FA; }
.ri { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #F0F4F8; color: #001E4A; }
.ri svg { width: 20px; height: 20px; }
.ri-joya { background: #F3E8FF; color: #7A3BB8; } .ri-raro { background: #FFF4DB; color: #B9790B; } .ri-ext { background: #FDE8E7; color: #E5261C; }
.ri-pio { background: #E3F4F2; color: #019B8F; } .ri-com { background: #EAF1FA; color: #2A63A8; }
.rt { min-width: 0; }
.rt b { font-size: 14px; font-weight: 600; display: block; line-height: 1.25; }
.rt small { font-size: 12px; color: var(--tinta-2); line-height: 1.3; display: block; }
.rt .pr { display: block; height: 5px; border-radius: 3px; background: #E6EDF2; margin-top: 5px; overflow: hidden; }
.rt .pr i { display: block; height: 100%; background: #019B8F; }
.rw { font: 700 15px var(--f-titulo); color: #019B8F; background: #E3F4F2; border-radius: 10px; padding: 4px 8px; white-space: nowrap; }
.rz { display: inline-block; font: 700 9.5px/1.5 var(--f-texto); letter-spacing: .06em; text-transform: uppercase; padding: 0 5px; border-radius: 5px; vertical-align: 1px; background: #EEF2F5; color: var(--tinta-2); }
.rz-habitual { background: #EAF1FA; color: #2A63A8; } .rz-raro { background: #FFF4DB; color: #A86B05; } .rz-joya { background: #F3E8FF; color: #7A3BB8; } .rz-ext { background: #FDE8E7; color: #E5261C; }
.rz-line { margin: 4px 0 0; font-size: 12.5px; color: var(--tinta-2); }
.cuenta { margin: 14px 12px 0; background: #fff; border: 1px solid var(--linea); border-radius: 16px; padding: 12px 14px; }
.cuenta.es-ok { display: flex; gap: 10px; align-items: center; background: #E3F4F2; border-color: #BFE3DF; }
.cu-h { display: flex; gap: 10px; }
.cu-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #FFF4DB; color: #A86B05; }
.es-ok .cu-ico { background: none; color: #019B8F; }
.cu-ico svg { width: 20px; height: 20px; }
.cuenta b { display: block; font-size: 14.5px; color: #001E4A; }
.cuenta span { font-size: 12.5px; color: var(--tinta-2); line-height: 1.35; display: block; }
.cuenta span b { display: inline; font-size: inherit; }
.cu-f { display: flex; gap: 8px; margin: 10px 0 8px; }
.cu-f input { flex: 1; min-width: 0; height: 40px; border: 1.5px solid var(--linea); border-radius: 12px; padding: 0 12px; font-size: 15px; background: #fff; }
.cu-f input:focus { outline: none; border-color: #019B8F; box-shadow: 0 0 0 3px rgba(1, 155, 143, .18); }
.cu-f .btn-primary { height: 40px; }
.hist { list-style: none; margin: 0 12px; padding: 0; background: #fff; border: 1px solid var(--linea); border-radius: 16px; overflow: hidden; }
.hist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-top: 1px solid #E6EDF2; font-size: 13.5px; }
.hist li:first-child { border-top: 0; }
.hist li span { min-width: 0; }
.hist li small { display: block; font-size: 11.5px; color: var(--tinta-2); }
.hist li b { font: 700 15px var(--f-titulo); color: #019B8F; }
table.reglas { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 8px 0 4px; }
table.reglas td { padding: 6px 0; border-bottom: 1px solid #E6EDF2; vertical-align: top; }
table.reglas td:last-child { text-align: right; font-weight: 600; color: #001E4A; white-space: nowrap; padding-left: 10px; }
.reglas-h { font-size: 16px; margin: 12px 0 6px; color: #001E4A; }
.rz-fila { display: flex; gap: 6px; flex-wrap: wrap; }
.rz-fila .rz { font-size: 11px; padding: 2px 7px; }
.niveles { margin: 0; padding: 0; list-style: none; counter-reset: nv; }
.niveles li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #E6EDF2; font-size: 13.5px; counter-increment: nv; }
.niveles li b::before { content: counter(nv) ". "; color: #019B8F; }
.niveles li span { color: var(--tinta-2); }
/* tarjeta al cazar */
.caza { position: absolute; inset: 0; z-index: 120; background: rgba(0, 22, 52, .55); display: grid; place-items: center; padding: 24px; opacity: 0; transition: opacity .25s; }
.caza.is-on { opacity: 1; }
.caza-card { width: min(340px, 100%); background: #fff; border-radius: 22px; padding: 22px 20px 14px; text-align: center; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); transform: scale(.92); transition: transform .3s cubic-bezier(.2, 1.4, .4, 1); }
.caza.is-on .caza-card { transform: none; }
.caza-tit { font: 700 12px var(--f-texto); letter-spacing: .1em; text-transform: uppercase; color: #019B8F; }
.caza-tit.rz-t-joya { color: #7A3BB8; } .caza-tit.rz-t-raro { color: #A86B05; }
.caza-pts { font: 700 56px/1 var(--f-titulo); color: #001E4A; margin-top: 6px; animation: cazaPop .6s ease-out; }
@keyframes cazaPop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
.caza-sub { font-weight: 600; font-size: 16px; margin-top: 6px; }
.caza-l { list-style: none; margin: 14px 0 0; padding: 0; text-align: left; font-size: 13.5px; color: var(--tinta-2); display: grid; gap: 5px; }
.caza-l li { display: flex; justify-content: space-between; gap: 10px; }
.caza-l b { color: #001E4A; }
.caza-nivel { display: flex; align-items: center; gap: 10px; margin-top: 14px; background: #E3F4F2; border-radius: 14px; padding: 8px 12px; text-align: left; font-size: 13px; color: var(--tinta-2); }
.caza-nivel .shield { width: 34px; height: 34px; }
.caza-nivel b { display: block; color: #001E4A; font-size: 15px; }
.caza-ok { width: 100%; height: 44px; border-radius: 22px; margin-top: 16px; font-size: 15px; }
.caza-ver { margin-top: 10px; font-size: 13.5px; }
@media (prefers-reduced-motion: reduce) { .caza, .caza-card { transition: none; } .caza-pts { animation: none; } }
.field[hidden] { display: none !important; }
