@font-face { font-family: Nunito; font-weight: 800; src: url(/fonts/nunito-latin-800-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: Nunito; font-weight: 900; src: url(/fonts/nunito-latin-900-normal.woff2) format('woff2'); font-display: swap; }
:root { --tinta: #1d2b2b; --oro: #FFC93C; --borde: #2b3a3a; --mar: #8EBFD2; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--mar); font-family: Nunito, system-ui, sans-serif; font-weight: 800; color: var(--tinta); -webkit-tap-highlight-color: transparent; }
#lienzo { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; }
#etiquetas { position: fixed; inset: 0; pointer-events: none; }
#cabecera { position: fixed; top: max(10px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(560px, calc(100vw - 20px)); text-align: center; }
.marca { font-weight: 900; font-size: 22px; color: #fff; text-shadow: 0 2px 0 #233, 2px 2px 0 #233, -2px 2px 0 #233, 2px -2px 0 #233, -2px -2px 0 #233; }
.marca b { color: var(--oro); }
.cifras { font-size: 13px; color: #fff; text-shadow: 0 1px 2px #0008; margin: 2px 0 8px; }
.cifras b { color: var(--oro); }
#buscar { display: flex; align-items: center; background: #fff; border: 3px solid var(--borde); border-radius: 16px; box-shadow: 0 4px 0 #0002; overflow: hidden; }
#buscar .arroba { padding: 0 4px 0 14px; font-weight: 900; color: #8a9a9a; }
#buscar input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 17px; padding: 12px 6px; min-width: 0; background: transparent; }
#buscar button { border: 0; background: var(--oro); font: inherit; font-weight: 900; font-size: 16px; padding: 0 18px; align-self: stretch; cursor: pointer; border-left: 3px solid var(--borde); }
#sugerencias { list-style: none; margin: 6px 0 0; padding: 4px; background: #fff; border: 3px solid var(--borde); border-radius: 14px; text-align: left; max-height: 50vh; overflow: auto; }
#sugerencias li { padding: 8px 10px; border-radius: 10px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
#sugerencias li:hover, #sugerencias li.activa { background: #FFF3CF; }
#sugerencias small { color: #8a9a9a; }
#aviso { margin-top: 8px; background: #fff; border: 3px solid var(--borde); border-radius: 14px; padding: 10px 12px; font-size: 14px; }
#botones { position: fixed; right: max(10px, env(safe-area-inset-right)); bottom: calc(max(14px, env(safe-area-inset-bottom)) + 26px); display: flex; flex-direction: column; gap: 8px; }
#botones button { width: 46px; height: 46px; border-radius: 14px; border: 3px solid var(--borde); background: #fff; font: inherit; font-size: 20px; font-weight: 900; cursor: pointer; box-shadow: 0 3px 0 #0002; }
#panel { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(12px, env(safe-area-inset-bottom)); width: min(520px, calc(100vw - 20px)); max-height: 62vh; overflow: auto; background: #fff; border: 3px solid var(--borde); border-radius: 22px; padding: 18px 18px 16px; box-shadow: 0 6px 0 #0002; }
#panel .cerrar { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 26px; cursor: pointer; color: #8a9a9a; }
.ficha .u { font-size: 28px; font-weight: 900; word-break: break-all; }
.ficha .donde { color: #6b7b7b; font-size: 15px; margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chips span { background: var(--oro); border: 2px solid var(--borde); border-radius: 10px; font-size: 13px; padding: 2px 8px; font-weight: 900; }
.chips span.luces { background: #FFE9B0; } .chips span.ok { background: #2E7D5B; color: #fff; }
.sello { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #2E7D5B; color: #fff; font-size: 15px; vertical-align: 4px; }
.datos { display: flex; gap: 8px; margin: 10px 0 2px; } .datos div { flex: 1; background: #f4f1e8; border-radius: 10px; padding: 6px 8px; text-align: center; }
.datos b { display: block; font-size: 16px; } .datos small { color: #6b7b7b; font-size: 11px; }
.muestra { display: inline-block; width: 11px; height: 11px; border-radius: 3px; border: 1px solid #0003; margin-right: 4px; vertical-align: 0; }
.verificar { margin-top: 10px; background: #eef7f1; border: 2px dashed #2E7D5B55; border-radius: 12px; padding: 10px; font-size: 13px; line-height: 1.4; }
.verificar .boton { display: block; margin-top: 8px; text-align: center; background: #2E7D5B; color: #fff; border-radius: 10px; padding: 9px; font-weight: 900; text-decoration: none; } .chips span.cargo { background: var(--borde); color: var(--oro); }
.nivel { display: flex; justify-content: space-between; font-weight: 900; margin-top: 4px; }
.barra { height: 14px; background: #eee6d8; border-radius: 7px; overflow: hidden; margin: 6px 0 4px; } .barra i { display: block; height: 100%; background: linear-gradient(90deg, #FFC93C, #FF7A1A); }
.falta { font-size: 13px; color: #6b7b7b; }
.acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.acciones button { border: 3px solid var(--borde); border-radius: 14px; background: #fff; font: inherit; font-weight: 900; font-size: 15px; padding: 11px 8px; cursor: pointer; }
.acciones button.principal { background: var(--oro); grid-column: 1 / -1; }
.cta { margin-top: 12px; font-size: 13px; color: #6b7b7b; text-align: center; } .cta b { color: #e1306c; }
.lista { margin: 8px 0 0; padding: 0; list-style: none; } .lista li { display: flex; gap: 10px; align-items: center; padding: 8px 4px; border-top: 2px solid #f1ece2; cursor: pointer; }
.lista .pos { width: 30px; height: 30px; border-radius: 50%; background: #eee; display: grid; place-items: center; font-weight: 900; flex: none; }
.lista li:nth-child(1) .pos { background: var(--oro); } .lista .quien { flex: 1; min-width: 0; } .lista small { display: block; color: #8a9a9a; }
.pill { position: absolute; transform: translate(-50%, -100%); background: #fff; border: 3px solid var(--borde); border-radius: 14px; padding: 4px 12px 3px; text-align: center; white-space: nowrap; box-shadow: 0 4px 0 #0002; }
.pill b { display: block; font-size: 15px; font-weight: 900; } .pill small { display: block; font-size: 11px; color: #6b7b7b; }
.pill.tu { background: var(--oro); }
.pin { position: absolute; transform: translate(-50%, -100%); font-weight: 900; font-size: 13px; color: #fff; text-shadow: 0 2px 0 #233, 1px 1px 0 #233, -1px 1px 0 #233, 1px -1px 0 #233, -1px -1px 0 #233; white-space: nowrap; }
.pin span { color: var(--oro); }
#pie { position: fixed; left: max(10px, env(safe-area-inset-left)); bottom: max(10px, env(safe-area-inset-bottom)); font-size: 12px; color: #fff; text-shadow: 0 1px 2px #0008; }
#cargando { position: fixed; inset: 0; display: grid; place-content: center; text-align: center; background: var(--mar); color: #fff; font-weight: 900; font-size: 18px; transition: opacity .4s; }
#cargando .casita { font-size: 56px; animation: bote 1s infinite ease-in-out; } @keyframes bote { 50% { transform: translateY(-12px); } }
#cargando.fuera { opacity: 0; pointer-events: none; }
h3 { margin: 0 0 6px; font-weight: 900; font-size: 20px; }
.ayuda p { margin: 6px 0; font-size: 15px; } .ayuda b { color: #e1306c; }

@media (max-width: 700px) {
  .datos { gap: 5px; margin-top: 8px; } .datos div { padding: 4px 4px; } .datos b { font-size: 14px; } .datos small { font-size: 10px; }
  .verificar { padding: 8px; font-size: 12px; } .verificar .boton { padding: 8px; margin-top: 6px; }
  .cta { display: none; }                                   /* phones: the share button says it already */
}
/* legal pages (/privacidad): scrollable, readable text */
html:has(body.legal), body.legal { height: auto; overflow: auto; }
body.legal { background: #f4f1e8; line-height: 1.55; }
.legal p, .legal li { font-family: system-ui, -apple-system, sans-serif; font-weight: 400; } .legal b { font-weight: 700; }
.legal main { max-width: 720px; margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 20px 60px; }
.legal h1 { font-weight: 900; font-size: 30px; margin: 14px 0 0; } .legal h2 { font-weight: 900; font-size: 19px; margin: 28px 0 6px; }
.legal .fecha { color: #6b7b7b; margin-top: 2px; } .legal a { color: #2E7D5B; } .legal .volver { font-weight: 900; text-decoration: none; }
.legal ul { padding-left: 20px; } .legal li { margin: 6px 0; }
#pie a { color: inherit; margin-left: 8px; }
