/* Aspecto provisional: la marca de Nexor está en rediseño. */
[hidden] { display: none !important; }
:root { --tinta: #1F3A5F; --fondo: #F5F6F8; --blanco: #fff; --gris: #5B6470; --rojo: #B3261E; --verde: #1E7B45; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--fondo); color: #1B1F24; font: 17px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
header { display: flex; justify-content: space-between; align-items: center; padding: calc(env(safe-area-inset-top) + 12px) 16px 12px; background: var(--tinta); color: #fff; }
.marca { font-weight: 700; letter-spacing: .02em; }
main { max-width: 480px; margin: 0 auto; padding: 20px 16px 40px; }
h1 { font-size: 1.4rem; margin: 8px 0 20px; text-align: center; }
h2 { font-size: 1.05rem; margin: 20px 0 8px; }
label { display: block; margin: 0 0 14px; font-weight: 600; }
input { display: block; width: 100%; margin-top: 6px; padding: 14px; font-size: 1.05rem; border: 1px solid #C5CBD3; border-radius: 10px; background: #fff; }
.botones { display: flex; flex-direction: column; gap: 14px; margin: 16px 0; }
button { font: inherit; cursor: pointer; }
.grande { width: 100%; min-height: 64px; padding: 16px; font-size: 1.25rem; font-weight: 700; color: #fff; background: var(--tinta); border: 0; border-radius: 14px; }
#b-foto, #b-archivo { min-height: 120px; font-size: 1.5rem; }
.secundario { background: #fff; color: var(--tinta); border: 2px solid var(--tinta); }
.grande:active { transform: scale(.98); }
.enlace { background: none; border: 0; color: inherit; text-decoration: underline; padding: 8px; }
main .enlace { color: var(--tinta); }
.nota { color: var(--gris); font-size: .92rem; text-align: center; }
.error { color: var(--rojo); min-height: 1.2em; }
.destino { text-align: center; font-size: 1.05rem; }
.aviso { background: #FFF4D6; color: #5A4300; padding: 10px 16px; text-align: center; font-size: .95rem; }
#miniaturas { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
#miniaturas img { width: 30%; max-width: 140px; border-radius: 8px; border: 1px solid #C5CBD3; }
.icono { font-size: 64px; text-align: center; margin-top: 12px; }
.ok { color: var(--verde); } .mal { color: var(--rojo); }
#v-resultado p { text-align: center; }
.rueda { width: 56px; height: 56px; margin: 40px auto 0; border: 6px solid #D5DAE1; border-top-color: var(--tinta); border-radius: 50%; animation: gira 0.9s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
/* Panel de administración */
table { width: 100%; border-collapse: collapse; background: #fff; font-size: .9rem; }
th, td { border-bottom: 1px solid #E1E5EA; padding: 8px; text-align: left; vertical-align: top; }
textarea { width: 100%; min-height: 90px; padding: 10px; font: .95rem/1.4 ui-monospace, Menlo, monospace; border: 1px solid #C5CBD3; border-radius: 10px; }
.admin main { max-width: 1000px; }
.fila { display: flex; gap: 8px; flex-wrap: wrap; }
.fila > * { flex: 1 1 200px; }
.peq { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--tinta); background: #fff; color: var(--tinta); font-size: .85rem; margin: 2px 0; }
.inactivo { opacity: .5; }
