/* Estilos del sistema. Sin frameworks: un archivo, se copia y funciona.
   Todo dimensionado para el uso real: telefono, de pie, a pleno sol. */

* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
       background: #f1f5f9; color: #0f172a; -webkit-text-size-adjust: 100%; }
.oculto { display: none !important; }

/* ---- Barra superior ---- */
.barra { background: #1e293b; color: #fff; padding: 12px 14px; display: flex;
         align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 40; }
.marca { font-weight: 900; letter-spacing: -.02em; }
.barra nav { display: flex; gap: 14px; align-items: center; }
.barra a, .enlace { color: #fff; text-decoration: none; font-size: 14px; font-weight: 600;
                    background: none; border: 0; cursor: pointer; font-family: inherit; }

main { padding: 12px; max-width: 640px; margin: 0 auto; }

/* ---- Formulario ---- */
.formulario { padding-bottom: 110px; }
section { margin-bottom: 20px; }
.bloque-titulo { display: block; font-size: 13px; font-weight: 800; text-transform: uppercase;
                 color: #475569; margin-bottom: 6px; letter-spacing: .04em; }
.etiqueta { display: block; font-size: 13px; font-weight: 600; color: #475569; margin: 10px 0 3px; }
.grupo-botones { display: flex; flex-wrap: wrap; gap: 8px; }
.espacio-abajo { margin-bottom: 12px; }
.espacio-arriba { margin-top: 8px; }
.crece { flex: 1; }
.crece-doble { flex: 2; }
.ancho-total { width: 100%; }
.dos-columnas { display: flex; gap: 8px; }
.dos-columnas > div { flex: 1; }

/* Botones: 56px, bastante mas que el minimo recomendado de 44px */
.boton-opcion { min-height: 56px; padding: 0 18px; border-radius: 10px; font-weight: 700;
                font-size: 16px; border: 2px solid #cbd5e1; background: #fff; color: #1e293b;
                cursor: pointer; font-family: inherit; }
.boton-activo { background: #1e293b; color: #fff; border-color: #1e293b; }
.boton-atajo { min-height: 48px; padding: 0 14px; border-radius: 999px; background: #e2e8f0;
               border: 0; font-weight: 600; font-size: 15px; cursor: pointer; font-family: inherit; }
.boton-principal { min-height: 60px; border-radius: 12px; background: #15803d; color: #fff;
                   font-size: 19px; font-weight: 800; border: 0; cursor: pointer; font-family: inherit; }
.boton-principal:disabled { background: #94a3b8; }
.boton-secundario { min-height: 52px; border-radius: 10px; background: #e2e8f0; color: #1e293b;
                    font-weight: 700; padding: 0 16px; border: 0; cursor: pointer; font-family: inherit; }
.boton-sugerencia { min-height: 56px; padding: 6px 16px; border-radius: 10px; background: #dbeafe;
                    color: #1e3a8a; border: 0; cursor: pointer; font-family: inherit; font-size: 16px; }
.fecha-chica { display: block; font-size: 11px; }

/* Campos */
.campo { width: 100%; min-height: 52px; border: 2px solid #cbd5e1; border-radius: 10px;
         padding: 0 12px; font-size: 17px; font-family: inherit; background: #fff; }
textarea.campo { padding: 10px 12px; }
.campo-valor { flex: 1; min-height: 66px; border: 3px solid #1e293b; border-radius: 12px;
               padding: 0 12px; font-size: 30px; font-weight: 800; font-family: inherit; }
.linea-valor { display: flex; align-items: center; gap: 8px; }
.signo-peso { font-size: 30px; font-weight: 800; }
.campo-zona { flex: 1; min-height: 48px; border: 2px solid #cbd5e1; border-radius: 10px;
              padding: 0 8px; font-size: 15px; font-family: inherit; background: #fff; }
.linea-zona { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.etiqueta-zona { font-size: 12px; font-weight: 700; color: #64748b; }
.marca-auto { font-size: 11px; font-weight: 700; color: #15803d; background: #dcfce7;
              padding: 3px 7px; border-radius: 6px; white-space: nowrap; }

/* Sugerencias de solicitante */
.lista-sugerencias { border: 2px solid #cbd5e1; border-radius: 10px; margin-top: 4px;
                     overflow: hidden; background: #fff; }
.fila-sugerencia { display: block; width: 100%; text-align: left; padding: 14px 12px;
                   border: 0; border-bottom: 1px solid #e2e8f0; background: #fff;
                   font-size: 16px; cursor: pointer; font-family: inherit; }

/* Notas */
.nota-aviso { font-size: 13px; color: #92400e; margin: 5px 0 0; }
.nota-ok { font-size: 13px; color: #15803d; margin: 5px 0 0; font-weight: 600; }
.nota-alerta { font-size: 14px; color: #b91c1c; margin: 8px 0 0; font-weight: 700; }
.nota-tenue { font-size: 13px; color: #475569; margin: 8px 0 6px; }
.tenue { color: #64748b; font-weight: 400; }

/* Barra fija de acciones */
.barra-acciones { position: fixed; bottom: 0; left: 0; right: 0; background: #fff;
                  border-top: 1px solid #cbd5e1; padding: 10px 12px; display: flex; gap: 8px; }
.cinta-cola { position: fixed; top: 0; left: 0; right: 0; background: #f59e0b; color: #000;
              text-align: center; padding: 9px; font-weight: 700; z-index: 50; }
.mensaje { position: fixed; bottom: 90px; left: 12px; right: 12px; padding: 15px;
           border-radius: 12px; background: #15803d; color: #fff; text-align: center;
           font-weight: 700; z-index: 60; }
.mensaje-error { background: #b91c1c; }

/* ---- Acceso ---- */
.centrado { display: flex; align-items: center; justify-content: center; min-height: 100vh;
            background: #1e293b; padding: 16px; }
.tarjeta-acceso { background: #fff; border-radius: 18px; padding: 26px; width: 100%; max-width: 380px; }
.marca-grande { font-size: 28px; font-weight: 900; margin: 0; }
.subtitulo { color: #64748b; margin: 2px 0 18px; font-size: 14px; }
.error { background: #fee2e2; color: #b91c1c; padding: 10px; border-radius: 8px;
         font-size: 14px; margin-bottom: 12px; }

/* ---- Historial ---- */
.titulo { font-size: 21px; font-weight: 900; margin: 0 0 2px; }
.tarjeta-vale { background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 8px;
                border-left: 5px solid #94a3b8; }
.borde-verde { border-left-color: #15803d; }
.borde-ambar { border-left-color: #f59e0b; }
.borde-rojo  { border-left-color: #b91c1c; }
.fila-superior { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.insignia { font-size: 11px; font-weight: 800; text-transform: uppercase; background: #f1f5f9;
            padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.ruta { margin: 6px 0 0; font-size: 14px; }
.monto { margin: 4px 0 0; font-weight: 800; }
.vacio { color: #64748b; }
